method and terminal for coexistence of private network connection and audio and video recorder Wifi connection

文档序号:1712356 发布日期:2019-12-13 浏览:21次 中文

阅读说明:本技术 一种专网连接和音视频记录仪Wifi连接并存的方法和终端 (method and terminal for coexistence of private network connection and audio and video recorder Wifi connection ) 是由 程时彬 尚炎 赵玉霞 郭岩海 于 2018-06-05 设计创作,主要内容包括:本申请公开了一种专网连接和音视频记录仪Wifi连接并存的方法,包括:当检测到用户启动音视频记录仪时,终端调用特定接口,允许Wifi连接与专网连接并存;设置终端的默认路由为专网连接路由,Wifi路由为普通路由;音视频记录仪实时采集音视频,终端通过Wifi连接从音视频记录仪获取数据,并通过专网连接转发到UDC。本申请还公开了一种对应的终端设备。应用本申请公开的技术方案,能够实现专网终端通过Wifi连接获取音视频记录仪拍摄的音视频后,再通过专网数据连接将音视频上传到云端保存。(the application discloses a method for coexistence of private network connection and audio and video recorder Wifi connection, which comprises the following steps: when detecting that a user starts the audio and video recorder, the terminal calls a specific interface to allow the coexistence of the Wifi connection and the private network connection; setting a default route of the terminal as a private network connection route, and setting a Wifi route as a common route; the audio and video recorder collects audio and video in real time, and the terminal acquires data from the audio and video recorder through Wifi connection and forwards the data to the UDC through private network connection. The application also discloses a corresponding terminal device. By the aid of the technical scheme, after the audio and video shot by the audio and video recorder is acquired through the Wifi connection by the private network terminal, the audio and video are uploaded to the cloud for storage through the private network data connection.)

1. A method for coexistence of private network connection and audio and video recorder Wifi connection is characterized by comprising the following steps:

When detecting that a user starts the audio and video recorder, the terminal calls a specific interface to allow the coexistence of the Wifi connection and the private network connection;

Setting a default route of the terminal as a private network connection route, and setting a Wifi route as a common route;

the audio and video recorder collects audio and video in real time, and the terminal acquires data from the audio and video recorder through Wifi connection and forwards the data to the UDC through private network connection.

2. The method of claim 1, further comprising:

When the user does not use the audio and video recorder, the terminal is disconnected from the Wifi connection of the audio and video recorder, and the single connection characteristic of the terminal is recovered.

3. The method according to claim 1 or 2, characterized in that the method further comprises:

and providing an audio and video recorder setting inlet in a system setting menu of the terminal, and determining whether the audio and video recorder is supported at present according to the configuration of a user.

4. The method according to claim 1 or 2, characterized in that the method further comprises:

and providing a switch on the setting interface of the audio and video recorder to control whether the user starts the recorder or not.

5. the utility model provides a terminal that coexists is connected to private network connection and audio video recorder Wifi which characterized in that includes:

the connection management module is used for calling a specific interface when detecting that a user starts the audio and video recorder, and allowing the coexistence of the Wifi connection and the private network connection;

the routing setting module is used for setting a default route of the terminal as a private network connection route and setting a Wifi route as a common route;

And the transmission module is used for acquiring the audio and video acquired by the audio and video recorder in real time from the audio and video recorder through the Wifi connection and forwarding the audio and video to the UDC through the private network connection.

6. The terminal of claim 5, wherein:

When the user does not use the audio and video recorder, the connection management module is disconnected with Wifi of the audio and video recorder, and the single connection characteristic of the terminal is recovered.

7. the terminal according to claim 5 or 6, characterized in that the terminal further comprises: an interaction module;

and the interactive module is used for providing an audio and video recorder setting inlet in a system setting menu of the terminal and determining whether the audio and video recorder is supported at present according to the configuration of a user.

8. the terminal of claim 7, wherein:

The interactive module is also used for providing a switch on the setting interface of the audio and video recorder to control whether the user starts the recorder or not.

Technical Field

the application relates to the technical field of communication, in particular to a method and a terminal for coexistence of private network connection and audio and video recorder Wifi connection.

Background

for the private network terminal, a video can be shot through a camera of the private network terminal, and Data interaction is performed with a cloud end UDC (User Data Center) through private network LTE Data connection. However, for some industrial applications, the private network terminal needs to support an audio and video recorder connected by Wifi to perform related audio and video acquisition services. After the private network terminal acquires the video shot by the audio and video recorder through the Wifi connection, the audio and video are uploaded to the cloud for storage through the private network data connection.

Generally, a private network terminal and an audio and video recorder are connected through Wifi, and the audio and video recorder has two working modes: STA (Station: Station) mode and AP (Access Point: Access Point) mode.

when the audio and video recorder works in the STA mode, the audio and video recorder serves as the STA, and the private network terminal serves as a Wifi hotspot function, so that the Wifi hotspot function of the private network terminal can be started to realize the audio and video recording. However, in this scenario, the Wifi hot spot of the private network terminal will share the private network connection of the private network terminal to the audio/video recorder, so that the audio/video recorder can directly access the private network, and this processing mode has hidden troubles in service safety.

When the audio and video recorder works in the AP mode, the audio and video recorder serves as an AP hotspot, and the private network terminal only needs to serve as a common Wifi client to be connected with the audio and video recorder. In this way, there are two mutually independent network connections for the private network terminal: wifi connection and private network data connection. The terminal can use the Wifi to connect the audio frequency and video that obtains the audio frequency and video record appearance and shoot on the one hand, and on the other hand uses private network to connect and uploads data to UDC.

However, due to the technical principle limitation of the Android platform, the connection management of the mainstream Android terminal does not support the coexistence of multiple data connections. For multiple connections such as private network data, Wifi, public network data, Bluetooth and the like, the platform only keeps the connection with higher priority, and the connection with low priority can be automatically offline. Therefore, the scheme that the audio/video recorder serves as the AP cannot be realized.

Disclosure of Invention

The application provides a method and a terminal for coexistence of private network connection and Wifi connection of an audio and video recorder, so that after the private network terminal obtains audio and video shot by the audio and video recorder through the Wifi connection, the audio and video are uploaded to a cloud end through private network data connection to be stored.

The application discloses a method for coexistence of private network connection and audio and video recorder Wifi connection, which comprises the following steps:

When detecting that a user starts the audio and video recorder, the terminal calls a specific interface to allow the coexistence of the Wifi connection and the private network connection;

Setting a default route of the terminal as a private network connection route, and setting a Wifi route as a common route;

the audio and video recorder collects audio and video in real time, and the terminal acquires data from the audio and video recorder through Wifi connection and forwards the data to the UDC through private network connection.

Preferably, the method further comprises:

When the user does not use the audio and video recorder, the terminal is disconnected from the Wifi connection of the audio and video recorder, and the single connection characteristic of the terminal is recovered.

preferably, the method further comprises:

And providing an audio and video recorder setting inlet in a system setting menu of the terminal, and determining whether the audio and video recorder is supported at present according to the configuration of a user.

preferably, the method further comprises:

and providing a switch on the setting interface of the audio and video recorder to control whether the user starts the recorder or not.

The application also provides a terminal with coexistence of private network connection and audio and video recorder Wifi connection, including:

The connection management module is used for calling a specific interface when detecting that a user starts the audio and video recorder, and allowing the coexistence of the Wifi connection and the private network connection;

the routing setting module is used for setting a default route of the terminal as a private network connection route and setting a Wifi route as a common route;

And the transmission module is used for acquiring the audio and video acquired by the audio and video recorder in real time from the audio and video recorder through the Wifi connection and forwarding the audio and video to the UDC through the private network connection.

Preferably, when the user does not use the audio and video recorder, the connection management module disconnects the Wifi connection with the audio and video recorder, and the single connection characteristic of the terminal is recovered.

preferably, the terminal further includes: an interaction module;

and the interactive module is used for providing an audio and video recorder setting inlet in a system setting menu of the terminal and determining whether the audio and video recorder is supported at present according to the configuration of a user.

Preferably, the interaction module is further configured to provide a switch on a setting interface of the audio/video recorder to control whether the user starts the recorder.

According to the technical scheme, when the user starts the audio and video recorder, the terminal calls the specific interface, the Wifi connection and the private network connection are allowed to coexist, the private network connection route is set to be the default route by modifying the default route setting of the terminal, the Wifi route is set to be the common route, the private network connection and the Wifi connection of the audio and video recorder are realized, and then the audio and video shot by the audio and video recorder can be uploaded to the cloud end through the private network data connection for storage after the terminal acquires the audio and video shot by the audio and video recorder.

drawings

FIG. 1 is a schematic diagram of the connection between a terminal and a recorder and a private network server according to the present invention;

Fig. 2 is a schematic diagram of a method for coexistence of private network connection and Wifi connection of an audio and video recorder according to the present application.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is further described in detail below by referring to the accompanying drawings and examples.

the invention proposes: in order to implement the scheme that the audio and video recorder serves as the AP, the connection management policy of the terminal needs to be modified to implement coexistence of Wifi connection and LTE private network connection.

after the private network terminal is connected with the audio and video recorder, the private network data connection and the Wifi connection are maintained at the same time. The audio and video recorder collects audio and video in real time, and the terminal acquires data from the audio and video recorder through Wifi connection and forwards the data to the UDC through private network connection, as shown in figure 1. When the user does not use the audio and video recorder, the terminal is disconnected from the Wifi connection of the audio and video recorder, and the single connection characteristic of the terminal is recovered.

specifically, the method for coexistence of private network connection and audio and video recorder Wifi connection provided by the application comprises the following steps:

When detecting that a user starts the audio and video recorder, the terminal calls a specific interface to allow the coexistence of the Wifi connection and the private network connection;

Setting a default route of the terminal as a private network connection route, and setting a Wifi route as a common route;

The audio and video recorder collects audio and video in real time, and the terminal acquires data from the audio and video recorder through Wifi connection and forwards the data to the UDC through private network connection.

The specific implementation manner of the technical scheme of the invention is shown in fig. 2, and comprises the following steps:

1) And a setting inlet of the audio and video recorder is provided in the system setting menu, so that a user can manually configure whether the audio and video recorder is supported currently.

2) and adding a switch on a setting interface of the audio and video recorder to control whether a user starts the recorder or not. When a user starts the audio and video recorder, the terminal platform calls a specific interface to allow the Wifi to be connected with the private network and coexist. If the Wifi functionality is not enabled, the user is prompted to enable Wifi.

3) After the Wifi function is enabled, the hotspot name of the current audio and video recorder can be displayed in the Wifi list. The user is connected with the hot spot of the recorder, and the Wifi connection between the terminal and the recorder can be established. Compared with the default mode of the system, the method has two changes: the first point is that under the condition that private network connection with higher priority is available, the Wifi connection can also be established, the second point is that the default route of Wifi is invalid, the Wifi route is only a common route, and the default route of the system is still provided by the private network.

4) And when the user does not support the audio and video recorder, closing the switch of the recorder through the setting menu. At the moment, the platform no longer supports the coexistence of the Wifi connection and the private network connection, the terminal automatically disconnects the established Wifi connection and rescans an available Wifi hotspot list.

In addition, the coexistence condition of the dual connection is that the connection of the audio and video recorder exists at present, and when the audio and video recorder is not connected or disconnected, the private network terminal still recovers the default mode of connection management.

The technology is actually measured on EP820 and EP681 terminals of the ancient bridge company based on the K3V3 platform, and can support the matched use of the audio and video recorder named city.

Corresponding to the method, the application also provides a terminal with coexistence of private network connection and audio and video recorder Wifi connection, which comprises the following steps:

The connection management module is used for calling a specific interface when detecting that a user starts the audio and video recorder, and allowing the coexistence of the Wifi connection and the private network connection;

The routing setting module is used for setting a default route of the terminal as a private network connection route and setting a Wifi route as a common route;

and the transmission module is used for acquiring the audio and video data acquired by the audio and video recorder in real time from the audio and video recorder through the Wifi connection and forwarding the audio and video data to the UDC through the private network connection.

Preferably, when the user does not use the audio and video recorder, the connection management module is disconnected from the Wifi connection of the audio and video recorder, and the single connection characteristic of the terminal is recovered.

Preferably, the terminal further includes: an interaction module;

and the interactive module is used for providing an audio and video recorder setting inlet in a system setting menu of the terminal and determining whether the audio and video recorder is supported at present according to the configuration of a user.

preferably, the interaction module is further configured to provide a switch on a setting interface of the audio/video recorder to control whether the user starts the recorder.

The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于远程通信系统中的连接重建立的方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!