Summary of the invention
The technical problem to be solved in the present invention is, above-mentioned defective at prior art, a kind of video frequency monitoring method and system based on fixed network and mobile broadband network is provided, give full play to fixed network and mobile network's advantage, overcome fixed network monitoring region restriction and the high shortcoming of mobile network data rate, for the user provides round-the-clock monitor video access services.
The technical scheme that technical solution problem of the present invention is adopted is as follows:
A kind of video frequency monitoring method based on fixed network and mobile broadband network wherein, comprises step:
A, mobile intelligent terminal send the monitoring request short message to gateway, and wait for the gateway replying short message;
B, gateway verify that whether described monitoring request short message is that the mobile intelligent terminal of expecting sends, and reply corresponding short message and give described mobile intelligent terminal;
C, described mobile intelligent terminal are resolved described replying short message, when the replying short message content of the random port that parses the IP address that comprises gateway and video server number, start the random port number of the IP address of browser access gateway and video server, the IP address by gateway and the random port of video server number have access to video server, obtain video monitoring information.
Described video frequency monitoring method based on fixed network and mobile broadband network, wherein, described step B specifically comprises:
B1, when checking is that monitoring request short message and the gateway that legal cell-phone number is sent connected the Internet, then form the replying short message of the random port number of the IP address comprise gateway and video server, reply to described mobile intelligent terminal;
B2, when checking is the monitoring request short message sent of legal cell-phone number but gateway does not connect the Internet, send to described mobile intelligent terminal then that network not have to connect and the message of wait.
Described video frequency monitoring method based on fixed network and mobile broadband network, wherein, described step B1 also comprises:
B11, when gateway inserts the Internet by the 3G module, the IP address of gateway and the random port of video server number are the IP address ofgateway 3G module dial-up connection and Video service random port number, then send the IP address of 3G module dial-up connection and Video service random port short message to described mobile intelligent terminal.
Described video frequency monitoring method based on fixed network and mobile broadband network, wherein, described step B1 also comprises:
B12, when described gateway when the wired connection the Internet, the IP address of this gateway and the random port of video server number are selected the wired WAN mouth of gateway IP address and Video service random port number for use, then and send wired WAN mouth IP address and Video service random port short message to described mobile intelligent terminal.
Described video frequency monitoring method based on fixed network and mobile broadband network, wherein, described step B2 also comprises:
B21, start the Internet connection service, after the successful connection, send the random port number of the IP address of gateway and video server to mobile intelligent terminal;
B22, when Internet connection failure, send network connection failure information to mobile intelligent terminal.
Described video frequency monitoring method based on fixed network and mobile broadband network, wherein, described step C further comprises:
C11, described mobile intelligent terminal resolve the IP address and the Video service random port short message of the 3G module dial-up connection that gateway beams back, and startbrowser access 3G module eat dishes without rice or wine IP address and Video service port numbers, obtain corresponding video monitoring information.
Described video frequency monitoring method based on fixed network and mobile broadband network, wherein, described step C further comprises:
C22, described mobile intelligent terminal are resolved wired WAN mouth IP address and the Video service random port short message that gateway is beamed back, and start browser access gateway WAN mouth IP address and Video service port numbers, obtain corresponding video monitoring information.
Described video frequency monitoring method based on fixed network and mobile broadband network, wherein, described step C also comprises:
C1, when parsing to returning the wait short message, wait for that then next short message arrives, and is for further processing;
C2, be illegal short message when parsing, prompting can not be obtained corresponding video monitoring information.
A kind of video monitoring system based on fixed network and mobile broadband network wherein, comprising: mobile intelligent terminal, gateway, video server;
Described mobile intelligent terminal is connected with described gateway communication, is used for sending the monitoring request short message to gateway, waits for the gateway replying short message; And resolve the replying short message content, and when content of short message is gateway ip address information and video server port numbers, then start browser, by described gateway ip address of browser access and port, obtain the video server monitor message; When returning the wait short message, wait for that then next short message arrives; When returning out of Memory, prompting can not be obtained corresponding video monitoring information;
Described gateway is connected with described video server communication, is used to verify that whether described monitoring request short message is that the mobile intelligent terminal of expecting sends, and reply corresponding short message and give described mobile intelligent terminal; And be used for inserting the Internet by the wired connection the Internet or by the 3G module;
Described video server is used for being connected with a plurality of image data cameras, so that video monitoring information to be provided.
Described video monitoring system based on fixed network and mobile broadband network, wherein,
Described gateway further comprises:
Receiver module is used to receive the short message that mobile intelligent terminal sends;
Authentication module is used to verify whether described monitoring request short message is that the mobile intelligent terminal of expecting sends;
First sending module is used for that legal and gateway has connected the Internet when authentication module checking, then forms the replying short message of the random port number of the IP address that comprises gateway and video server, replies to described mobile intelligent terminal;
Second sending module is used for when authentication module checking is legal but gateway does not connect the Internet, sends to described mobile intelligent terminal then that network not have to connect and the message of wait;
The 3G module is used for being connected to the Internet by 3G wireless dial-up mode, and sends the IP address of 3G module dial-up connection and Video service random port short message to described mobile intelligent terminal;
The wired connection module is used for being connected to the Internet by wired mode, and sends wired WAN mouth IP address and Video service random port short message to described mobile intelligent terminal;
Select and configuration module, be used to Video service selection port numbers at random, and be the setting of video server configuration virtual server.
Video frequency monitoring method and system based on fixed network and mobile broadband network provided by the present invention are owing to adopt described system to comprise mobile intelligent terminal, gateway, video server; Mobile intelligent terminal is supported the 3G wireless access, can receive and dispatch short message; Gateway has the 3G module, can receive and dispatch short message, and the 3G module is connected to mobile network by dial mode; Whole gateway supports the wired Internet of Ethernet to insert and 3G wireless dial-up Internet inserts; Video server is supported a plurality of camera data acquisitions, gives full play to fixed network and mobile network's advantage, overcomes fixed network monitoring region restriction and the high shortcoming of mobile network data rate, for the user provides round-the-clock monitor video access services.
Embodiment
A kind of video frequency monitoring method and system that the embodiment of the invention provided based on fixed network and mobile broadband network, for making purpose of the present invention, technical scheme and advantage clearer, clear and definite, below develop simultaneously with reference to accompanying drawing that the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
A kind of video monitoring system based on fixed network and mobile broadband network that the embodiment of the invention provides as shown in Figure 1, comprising: mobileintelligent terminal 100,gateway 200,video server 300; Described mobileintelligent terminal 100 is supported the 3G wireless access, can receive and dispatch short message.As shown in Figure 3, describedgateway 200 has3G module 260, is used to receive and dispatch short message, and3G module 260 is connected to mobile network by dial mode; Whole gateway supports the wired Internet of Ethernet to insert and 3G wireless dial-up Internet inserts;Video server 300 is supported a plurality of camera data acquisitions.
Mobileintelligent terminal 100 is mainly used in the request monitor service, its request monitor service main flow process as shown in Figure 2:
101, send the monitoring request short message togateway 3G module.
102, wait forgateway 3G module replying short message.
103, also resolve the content of short message of replying, whether comprise gateway ip address information and video server port numbers, if then enter 104.Otherwise return 102, the content of short message of promptly working as the parsing answer is not for comprising gateway ip address information and video server port numbers, and for example the content of short message when the parsing answer is the wait short message, waits for that then next short message arrives, and is for further processing.If out of Memory, prompting can not be obtained corresponding video monitoring information.
104, if message content is gateway ip address information and video server port numbers, then obtain described gateway ip address information and video server port numbers.
105, open the mobile intelligent terminal browser.
106, judge whether browser starts successful, after the open any browser success, import described gateway ip address information and video server port numbers again into, by browser access gateway ip address information and video server port numbers, obtain corresponding video monitoring information from described video server, obtaining finishes then enters 108 mobile intelligent terminals and withdraws from short message that browser and transmission comprise END instruction togateway 3G module, ending request, otherwise enter 107.
107, start the browser failure, return 105.
Gateway 200 is mainly used in provides Internet access service, obtains public network IP address, safeguards the serve port information of video server, and gateway is monitored the short message that the 3G module is received simultaneously, the content of the short message that parsing mobileintelligent terminal 300 sends.Wherein, resolving described monitoring request short message specifically may further comprise the steps:
1) if the monitoring request short message is the mobile intelligent terminal of expectation to be sent, then is for further processing, sends, then abandon, for video monitoring service provides certain fail safe if the monitoring request short message is the mobile intelligent terminal of non-expectation.
2) if monitoring request short message content is that video request is then checked the gateway networking situation.If connected the Internet(the Internet), then send the short message that comprises gateway ip address and Video service port numbers and arrive the request mobile intelligent terminal.If do not connect Internet, then the mobile intelligent terminal to the request Video service sends the short message that network does not have connection, the notice mobile intelligent terminal is waited for, start the Internet Connection Service simultaneously, after the successful connection, send IP address and Video service port numbers to mobile intelligent terminal, if connection failure sends network connection failure information to mobile intelligent terminal;
3) if short message is the video access ending message, then check the video access situation, do further processing according to the Internet networking mode; For example disconnect network and connect process ends.
4) if short message is the non-video solicited message, then abandon information, be left intact.
Video server 300 is connected togateway 200,gateway 200 isvideo server 300 selections port numbers at random after receiving the monitoring request short message, and be that video server configuration virtual server is provided with ongateway 200, the user can number have access to video server by gateway ip address and random port.
Describedvideo server 300 is used for being connected with a plurality of image data cameras, so that video monitoring information to be provided.
As shown in Figure 3, describedgateway 200 further comprises:
Receiver module 210 is used to receive the short message that mobileintelligent terminal 100 sends, and for example monitors request short message, monitoring end short message etc.;
Authentication module 220 is used to verify whether described mobileintelligent terminal 100 and described monitoring request short message be legal;
First sendingmodule 230 is used for that legal and gateway has connected the Internet when authentication module checking, then forms the replying short message of the random port number of the IP address that comprises gateway and video server, replies to described mobile intelligent terminal;
Second sending module 240 is used for when authentication module checking is legal but gateway does not connect the Internet, sends to described mobile intelligent terminal then that network not have to connect and the message of wait;
Wired connection module 250 is used for being connected to the Internet by wired mode, and sends wired WAN mouth IP address and Video service random port short message to described mobile intelligent terminal;
3G module 260 is used for being connected to mobile network by 3G wireless dial-up mode, and sends the IP address of 3G module dial-up connection and Video service random port short message to described mobile intelligent terminal;
Select andconfiguration module 270, be used to video server selection port numbers at random, and be the setting of video server configuration virtual server.
Based on the video monitoring system based on fixed network and mobile broadband network of the foregoing description, the embodiment of the invention also provides a kind of video frequency monitoring method based on fixed network and mobile broadband network, as shown in Figure 4, comprises step:
Step S410, mobile intelligent terminal send the monitoring request short message to gateway, and wait for the gateway replying short message;
Step S420, gateway verify that whether described monitoring request short message is that the mobile intelligent terminal of expecting sends, and reply corresponding short message and give described mobile intelligent terminal;
As shown in Figure 5, this step S420 specifically comprises:
Step 421, reception mobile intelligent terminal monitoring request short message, the content of this monitoring request short message is a video request.
Step 422, gateway verify whether described monitoring request short message is that the mobile intelligent terminal of expecting sends, promptly 423 with in this mobile intelligent terminal number and the gateway in advance the validated user number of storage compare, judge whether it is the monitoring request short message that legal cell-phone number is sent.If promptly verify by then enteringstep 424 and be for further processing, if being the mobile intelligent terminal of non-expectation, short message sends, then enter 425 and abandon short message, process ends.Monitoring request with illegal mobile phone abandons like this, for video monitoring service provides certain fail safe.
Step 424, when checking be the monitoring request short message that legal cell-phone number is sent, then judge whether to prepare to connect with described mobile intelligent terminal, if then enterstep 426, if not, during the expression gateway is safeguarded, then enter 427, the disconnection network connects, and replys gateway and safeguards the short message process ends.
Step 426, when checking is the monitoring request short message sent of legal cell-phone number and when preparing to connect with described mobile intelligent terminal, can connect by wired ethernet or by 3G wireless network and described mobile intelligent terminal, enter 428.
Step 428, gateway judge whether to connect the Internet, when checking is that monitoring request short message and the gateway that legal cell-phone number is sent connected the Internet, then form the replying short message of the random port number of the IP address comprise gateway and video server, reply to described mobile intelligent terminal; Preferably, when described gateway inserts the Internet by the 3G module, then send the IP address of 3G module dial-up connection and Video service random port short message, enter step S430 then to described mobile intelligent terminal.
When described gateway passes through the wired connection the Internet, then send wired WAN mouth IP address and Video service random port short message to described mobile intelligent terminal, enter step S430 then.
When checking is the monitoring request short message sent of legal cell-phone number but gateway does not connect the Internet, send to described mobile intelligent terminal then that network not have to connect and the message of wait.And start the Internet connection service, and after the Internet connection success, send the random port number of the IP address of gateway and video server to mobile intelligent terminal, enter step S430 then;
When starting the Internet connection failure, send network connection failure information, process ends to mobile intelligent terminal.
Step S430, described mobile intelligent terminal are resolved described replying short message, when the replying short message content of the random port that parses the IP address that comprises gateway and video server number, start the random port number of the IP address of browser access gateway and video server, number have access to video server by gateway ip address and random port, obtain video monitoring information.
As previously mentioned, when described gateway inserts the Internet by the 3G module, then send the IP address of 3G module dial-up connection and Video service random port short message to described mobile intelligent terminal.Then described mobile intelligent terminal is resolved the IP address and the Video service random port short message of the 3G module dial-up connection that gateway beams back, and startsbrowser access 3G module eat dishes without rice or wine IP address and Video service port numbers, obtains corresponding video monitoring information.
And work as described gateway by the wired connection the Internet, then send wired WAN mouth IP address and Video service random port short message to described mobile intelligent terminal.Then described mobile intelligent terminal is resolved wired WAN mouth IP address and the Video service random port short message that gateway is beamed back, and starts browser access gateway WAN mouth IP address and Video service port numbers, obtains corresponding video monitoring information.
Work as described mobile intelligent terminal in addition and parse, wait for that then next short message arrives, and is for further processing to returning the wait short message;
Be illegal short message when described mobile intelligent terminal parses, prompting can not be obtained corresponding video monitoring information.
Below will do further detailed description to the present invention by two concrete Application Examples.Wherein, first Application Example adopts gateway to insert the Internet(the Internet by the 3G module as shown in Figure 6).Mobile intelligent terminal is by mobile radio communication and gateway communication, and gateway is by local area network (LAN) and video server communication.Operation principle is as shown in Figure 6:
11, mobile intelligent terminal is sent out the monitoring request short message to gateway, and request IP promptly sends SMS message.
12, gateway is verified the monitoring request short message of described mobile intelligent terminal and transmission thereof, and checking is passed through, and then sets up short message and replys the random port of the IP address of gateway and video server and number give described mobile intelligent terminal.Because gateway inserts the Internet by the 3G module, the IP address of gateway of this moment and the random port of video server number are the IP address ofgateway 3G module dial-up connection and Video service random port number, then send the IP address of 3G module dial-up connection and Video service random port short message to described mobile intelligent terminal.
13, mobile intelligent terminal is resolved the short message that gateway is beamed back, obtain the IP address of 3G module dial-up connection and Video service random port number, and start the IP address of the described 3G module of browser access dial-up connection and Video service random port number, initiate the video traffic request.
14, gateway is initiated the video traffic request by local area network (LAN) to video server again.
15, video server receives the video traffic request of gateway, returns corresponding video information.
16, by gateway described video information biography is returned to described mobile intelligent terminal again.
17, in the time need not monitoring, mobile intelligent terminal sends video monitoring to gateway and finishes short message.
Therefore under first kind of Application Example, short message, video data stream are all transmitted by mobile radio communication.Gateway receives video request information, resolve content of short message, gateway sends the IP address and the Video service random port short message of 3G module dial-up connection, mobile intelligent terminal is resolved the short message that gateway is beamed back, startbrowser access 3G module eat dishes without rice or wine IP address and Video service port numbers, realize video access.
Second Application Example as shown in Figure 7, gateway is by wired connection the Internet (Internet).Mobile intelligent terminal carries out sending and receiving short messages by mobile radio communication and gateway, and the video traffic data are received and dispatched by the wired network connection, and gateway is by local area network (LAN) and video server communication.Operation principle is as shown in Figure 7:
21, mobile intelligent terminal is sent out the monitoring request short message to gateway, and request IP promptly sends SMS message.
22, gateway is verified the monitoring request short message of described mobile intelligent terminal and transmission thereof, and checking is passed through, and then sets up short message and replys the random port of the IP address of gateway and video server and number give described mobile intelligent terminal.This moment is owing to adopt gateway by the wired connection the Internet, so the IP address of this gateway and the random port of video server number are selected the wired WAN mouth of gateway IP address and Video service random port number for use, then send wired WAN mouth IP address and Video service random port short message to described mobile intelligent terminal.
23, since this moment gateway be to be connected to the Internet by wired ethernet.So mobile intelligent terminal is resolved the short message that gateway is beamed back, obtain wired WAN mouth IP address and Video service random port number, and start mobile intelligent terminal browser access wired WAN mouth IP address and Video service random port number, initiate the video traffic request.
24, gateway is initiated the video traffic request by local area network (LAN) to video server again.
25, video server receives the video traffic request of gateway, returns corresponding video information.
26, by gateway described video information is passed and return to described mobile intelligent terminal, video information is come out for wired mouthful from gateway, enters the Internet(the Internet), arrive behind the mobile intelligent terminal access base station and to arrive mobile intelligent terminal equipment by eating dishes without rice or wine.
27, when not needing video monitoring, mobile intelligent terminal sends video monitoring to gateway and finishes short message.
Therefore under second kind of Application Example, short message transmits by mobile radio communication, and video information mouthful is come out from gateway is wired, enters Internet, arrives behind the mobile intelligent terminal access base station and to arrive intelligent terminal by eating dishes without rice or wine.Gateway receives video request information, resolve content of short message, gateway sends wired WAN mouth IP address and Video service random port short message, intelligent mobile terminal is resolved the short message that gateway is beamed back, start browser access gateway WAN mouth IP address and Video service port numbers, realize video access.
In sum, video frequency monitoring method and system based on fixed network and mobile broadband network provided by the present invention, described system comprises mobile intelligent terminal, gateway, video server; Mobile intelligent terminal is supported the 3G wireless access, can receive and dispatch short message; Gateway has the 3G module, can receive and dispatch short message, and the 3G module is connected to mobile network by dial mode; Whole gateway supports the wired Internet of Ethernet to insert and 3G wireless dial-up Internet inserts; Video server is supported a plurality of camera data acquisitions, gives full play to fixed network and mobile network's advantage, overcomes fixed network monitoring region restriction and the high shortcoming of mobile network data rate, for the user provides round-the-clock monitor video access services.
Should be understood that application of the present invention is not limited to above-mentioned giving an example, for those of ordinary skills, can be improved according to the above description or conversion that all these improvement and conversion all should belong to the protection range of claims of the present invention.