CN104284142A - Communication method, device and system - Google Patents

Communication method, device and system Download PDF

Info

Publication number
CN104284142A
CN104284142A CN201310286900.2A CN201310286900A CN104284142A CN 104284142 A CN104284142 A CN 104284142A CN 201310286900 A CN201310286900 A CN 201310286900A CN 104284142 A CN104284142 A CN 104284142A
Authority
CN
China
Prior art keywords
communication
request
monitoring
response message
communication request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310286900.2A
Other languages
Chinese (zh)
Inventor
周波
贺彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201310286900.2A priority Critical patent/CN104284142A/en
Publication of CN104284142A publication Critical patent/CN104284142A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a communication method, device and system. The communication method includes the steps that a first communication request sent by a monitoring terminal is received, and the first communication request comprises an access request and a service request; the first communication request is converted into a second communication request, the second communication request is forwarded to a monitoring platform, and the data format of the second communication request is supported by the monitoring platform; a first response message fed back by the monitoring platform is received; the first response message is converted into a second response message, the second response message is forwarded to the monitoring terminal, and the data format of the second response message is supported by the monitoring terminal. When the communication method, device and system are implemented, the first communication request sent by the monitoring terminal is converted into the second communication request matched with the data format supported by the monitoring platform, the second communication request is forwarded to the monitoring platform, and the problem in the prior art that multiple types of terminals are not compatible in a server/ service platform is resolved.

Description

Communication method, device and system
Technical Field
The present invention relates to the field of communications, and in particular, to a communication method, apparatus, and system.
Background
With the development of communication technology, the functions of terminals and servers are increasingly powerful, the types of terminals realizing the same functions are increasingly diversified, correspondingly, the types of servers/service platforms providing services for the terminals are increasingly rich, and the problem that one server/service platform can only serve one or a limited number of types of terminals due to the fact that the communication protocols/communication standards of the servers/service platforms are different and the like exists while the diversified requirements of people are met.
For example, in the field of Video and audio monitoring, the industry chain is clearly refined according to the division of monitoring terminal manufacturers, Video monitoring platform providers, integration manufacturers, and the like, the monitoring terminal manufacturers are dedicated to providing cameras, Video servers, encoders, supporting auxiliary devices, and the like required for monitoring for a Video monitoring system, the types of monitoring terminals are increasingly abundant, the existing monitoring terminal types include a Digital Video Recorder (DVR), an encoder, a Video Server (DVS, a Digital Video Server), an IP-Camera, a wireless encoder, a Network Video Recorder (NVR), and the like, and when the purchase selection of a final client or an integration provider is increased, a huge challenge is brought to the Video monitoring platform providers or the integration manufacturers; on one hand, due to the consideration of functions, cost and the like, the diversification of the types/models of the monitoring terminals purchased by customers forces the video monitoring platform provider to be compatible with different monitoring terminal accesses; on the other hand, widely distributed monitoring terminals are shared, leased and switched among different video monitoring platform providers, which will also appear along with the development of technology; however, since the methods for accessing the video monitoring platform by the monitoring terminal are numerous and incompatible, the provider of the video monitoring platform has to select a certain type of monitoring terminal to bind with the video monitoring platform provided by the monitoring terminal, so that the existing system and method for accessing the monitoring platform are not easy to expand, the access capability and service capability of the video monitoring platform are limited, and the costs of the video monitoring platform and the integrator are increased.
Therefore, it is an urgent technical problem to be solved by those skilled in the art to provide a communication technology capable of solving the problem that a server/service platform cannot serve multiple types of terminals due to incompatibility of communication protocols between different types of terminals and the server/service platform.
Disclosure of Invention
The invention provides a communication method, a communication device and a communication system, which solve the problem that a server/service platform cannot serve multiple types of terminals due to incompatibility of communication protocols and the like between different types of terminals and the server/service platform in the prior art.
The present invention provides a communication method, which in one embodiment comprises: receiving a first communication request sent by a monitoring terminal, wherein the first communication request comprises an access request and a service request; converting the first communication request into a second communication request, and forwarding the second communication request to the monitoring platform, wherein the data format of the second communication request is a data format supported by the monitoring platform; receiving a first response message fed back by the monitoring platform; and converting the first response message into a second response message, and forwarding the second response message to the monitoring terminal, wherein the data format of the second response message is a data format supported by the monitoring terminal.
Preferably, before receiving the first communication request sent by the monitoring terminal, the communication method in the above embodiment further includes: and receiving and storing the terminal information of the monitoring terminal.
Preferably, after converting the first communication request into the second communication request and before forwarding to the monitoring platform, the communication method in the above embodiment further includes: verifying the second communication request according to the terminal information, and if the verification is passed, forwarding the second communication request to the monitoring platform; or before converting the first communication request into the second communication request, the method further comprises: and verifying the first communication request according to the terminal information, and converting the first communication request into a second communication request if the verification is passed.
Preferably, the communication method in the above embodiment further includes: receiving a keep-alive request of the monitoring terminal, converting the keep-alive request into a keep-alive request message matched with a data format supported by the monitoring platform, forwarding the keep-alive request message to the monitoring platform, receiving a keep-alive response of the monitoring platform, converting the keep-alive response message into a keep-alive response message matched with the data format supported by the monitoring terminal, and forwarding the keep-alive response message to the monitoring terminal; and/or receiving the keep-alive request of the monitoring platform, converting the keep-alive request into a keep-alive request message matched with the data format supported by the monitoring terminal, forwarding the keep-alive request message to the monitoring terminal, receiving the keep-alive response of the monitoring terminal, converting the keep-alive response message into a keep-alive response message matched with the data format supported by the monitoring platform, and forwarding the keep-alive response message to the monitoring platform.
The present invention provides a communication method, which in one embodiment comprises: receiving a first communication request sent by a monitoring terminal, wherein the first communication request comprises an access request and a service request; converting the first communication request into a second communication request, and forwarding the second communication request to the monitoring platform, wherein the data format of the second communication request is a data format supported by the monitoring platform; receiving a first response message fed back by the monitoring platform; and converting the first response message into a second response message, and forwarding the second response message to the monitoring terminal, wherein the data format of the second response message is a data format supported by the monitoring terminal.
Preferably, when the first communication request is an access request, the communication method in the above embodiment further includes: and the monitoring terminal establishes communication with the monitoring platform according to the second response message.
The present invention provides a communication device, which in one embodiment comprises: the monitoring terminal comprises a first receiving module, a first sending module, a second receiving module, a second sending module and a data processing module, wherein the first receiving module is used for receiving a first communication request sent by the monitoring terminal, and the first communication request comprises an access request and a service request; the data processing module is used for converting the first communication request into a second communication request, and the data format of the second communication request is a data format supported by the monitoring platform; the first sending module is used for forwarding the second communication request to the monitoring platform, and the second receiving module is used for receiving a first response message fed back by the monitoring platform; the data processing module is further used for converting the first response message into a second response message, and the data format of the second response message is a data format supported by the monitoring terminal; the second sending module is used for forwarding the second response message to the monitoring terminal.
Also, the present invention provides a communication system, which in one embodiment comprises: monitor terminal and monitor platform still include: the communication device provided by the invention; the monitoring terminal is used for sending a first communication request to the communication device, wherein the first communication request comprises an access request and a service request; the communication device is used for receiving and converting the first communication request into a second communication request and forwarding the second communication request to the monitoring platform, wherein the data format of the second communication request is a data format supported by the monitoring platform; the monitoring platform is used for receiving the second communication request and feeding back a first response message to the communication device; the communication device is further configured to receive the first response message, convert the first response message into a second response message, and forward the second response message to the monitoring terminal, where a data format of the second response message is a data format supported by the monitoring terminal.
The invention has the beneficial effects that:
according to the terminal communication method, device and system provided by the invention, the first communication request sent by the monitoring terminal is converted by the communication device, and is forwarded to the monitoring platform after being converted into the second communication request matched with the data format supported by the monitoring platform, so that the problem that one server/service platform cannot be compatible with various types of terminals in the prior art is solved.
Drawings
Fig. 1 is a schematic diagram of a communication method according to a first embodiment of the present invention;
fig. 2 is a schematic diagram of a communication method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a communication method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a communication system according to a fourth embodiment of the present invention;
FIG. 5 is a schematic diagram of the communication device of FIG. 4;
fig. 6 is a schematic structural diagram of the data processing module in fig. 5.
Detailed Description
The communication method, the device and the system provided by the invention can be widely applied to various types of terminals and server/service platforms thereof, so as to solve the problem that one server/service platform cannot be compatible with various types of terminals in the prior art, such as the compatibility of communication protocols between various types of monitoring terminals and the server/service platforms, and the like.
Fig. 1 is a schematic diagram of a communication method according to a first embodiment of the present invention, and as can be seen from fig. 1, in this embodiment, the communication method according to the present invention includes the following steps:
s101: receiving a first communication request sent by a monitoring terminal, wherein the first communication request comprises an access request and a service request;
when the first communication request sent by the monitoring terminal is an access request, the first communication request may carry terminal information provided by an external device data provider or a device provider when the monitoring platform opens an account for the device, where the terminal information includes, but is not limited to, a unique identifier of the monitoring terminal in the monitoring system, a use account thereof, and the password matched with the use account;
meanwhile, when a plurality of monitoring platforms exist in the monitoring system, the first communication request may also carry platform information of the monitoring platform as the target of the monitoring terminal, where the platform information includes, but is not limited to, a unique identifier of the monitoring platform in the monitoring system;
further, when a plurality of communication devices exist in the monitoring system, the first communication request may also carry device information of the communication device that is the target of the monitoring terminal, where the device information includes, but is not limited to, a unique identifier and an IP address of the communication device in the monitoring system, and a port number of the monitoring terminal;
s102: converting the first communication request into a second communication request, wherein the data format of the second communication request is a data format supported by the monitoring platform;
the data format related to the invention comprises the data content and the data bearing channel (such as communication protocol/communication specification and the like) of the received communication request/response message by the monitoring terminal/monitoring platform, and the steps are as follows: analyzing the first communication request to acquire monitoring terminal information, processing (adding and/or deleting and/or modifying) the monitoring terminal information to acquire standard information required by a monitoring platform, and constructing the standard information into a second communication request according to a data format supported by the monitoring platform;
for example: the data format requirements of the communication request supported by the target monitoring platform of the monitoring terminal include identification information of the monitoring terminal, IP and MAC addresses in a network, a use account and a password, a manufacturer, a time zone, a timestamp, a version number, a channel list, a code stream list of each channel and joint coding of provinces and cities:
when the first communication request comprises identification information of the monitoring terminal, IP and MAC addresses in a network, a use account number and a password, a time zone and a timestamp, a version number, a manufacturer, an equipment number, a channel list, a channel code stream list and a provincial and urban area joint code, the equipment number carried by the first communication request needs to be deleted to construct a second communication request, wherein the equipment number can be a user-defined number for purchasing the monitoring terminal and is different from the identification information of the monitoring terminal and other unique identification information of the terminal;
when the first communication request only includes identification information of the monitoring terminal, an IP and MAC address in a network, a use account and password, a time zone and a timestamp, a version number, a manufacturer, a device number, a channel list, and each channel code stream list, it is necessary to delete the "device number" carried by the first communication request and add a "provincial/urban area joint code" to construct a second communication request, where the "provincial/urban area joint code" may be added in a manner of determining geographical location information of the monitoring terminal according to the IP in the first communication request, and determining and adding a "provincial/urban area joint code" according to a corresponding relationship between the geographical location information and the provincial/urban area joint code;
s103: forwarding the second communication request to the monitoring platform;
when a plurality of monitoring platforms exist, the first communication request also carries the unique identification of the monitoring platform serving as the target of the monitoring terminal in the monitoring system, and the communication device forwards the constructed second communication request to the target monitoring platforms according to the unique identification of the target monitoring platforms;
s104: receiving a first response message fed back by the monitoring platform;
one monitoring platform can be provided with a plurality of service node servers, one service node server can be provided with a plurality of streaming media servers, the monitoring platform selects the streaming media server for the monitoring terminal after receiving a second communication request forwarded by the communication device, and the selecting step comprises the following steps:
the communication device calculates the load of various service node management servers in the target monitoring platform, takes the service node server with the minimum load as a forwarding target, and forwards the second communication request to the service node server; the method for selecting the service node management server with the minimum load can be that the server with the maximum channel available number in the current service node management server is selected;
after receiving the second communication request, the service node server selects a streaming media server for the monitoring terminal, which specifically includes: the service management node server records the state information of the monitoring terminal, and calculates and obtains the optimal server in the service node multiple streaming media servers as the communication target of the monitoring terminal by utilizing an optimal selection algorithm; the state information includes but is not limited to a unique identifier of the monitoring terminal, a use account, a use password, a keep-alive period, a device state, a time zone and a current node management server identifier; the optimal selection algorithm is a server which has a normal streaming media server state, a normal server disk state, a normal streaming media server CPU utilization rate and a maximum residual weight value in a plurality of streaming media servers, wherein the residual weight value is obtained by subtracting a currently used weight from a maximum weight of streaming media configuration, and the weight refers to the number of communicable channels of a single streaming media server;
the service node server generates a first response message, which specifically includes: constructing a redirection URL based on an RTSP (real time streaming protocol) according to the acquired streaming media server information, calculating a message abstract of the URL, combining the abstract and the original URL, and returning a response; the URL at least comprises an IP (Internet protocol), a port, a session identifier, a channel identifier, a collection terminal device identifier, a code stream identifier, a use account number, a timestamp, URL effective time, URL abstract algorithm category and a URL abstract text of the streaming media server; wherein, the URL summarization algorithm is known by the service node management server and the streaming media server, including but not limited to MD5, SHA 1;
s105: converting the first response message into a second response message, wherein the data format of the second response message is a data format supported by the monitoring terminal;
the data format conversion of this step is similar to step S102 and is not described again;
s106: forwarding the second response message to the monitoring terminal;
the communication apparatus transmits a second response message to the monitoring terminal, which here refers to the monitoring terminal that transmitted the first communication request in step S101.
Fig. 2 is a schematic diagram of a communication method according to a second embodiment of the present invention; as can be seen from fig. 2, in this embodiment, the communication method provided by the present invention includes:
s201: the monitoring terminal sends a first communication request to the communication device, wherein the first communication request comprises an access request and a service request;
the first communication request in this step is the same as step S101 in the first embodiment, and is not described in detail;
s202: the communication device converts the first communication request into a second communication request and forwards the second communication request to the monitoring platform, wherein the data format of the second communication request is a data format supported by the monitoring platform;
the conversion process of the first communication request involved in this step is the same as step S102 in the first embodiment, and is not described in detail;
s203: the monitoring platform feeds back a first response message to the communication device;
the first response message related to this step is the same as step S104 in the first embodiment, and is not described in detail;
s204: the communication device converts the first response message into a second response message, and forwards the second response message to the monitoring device, wherein the data format of the second response message is a data format supported by the monitoring terminal;
the conversion process of the first response message involved in this step is the same as step S102 in the first embodiment, and is not described in detail.
Fig. 3 is a schematic diagram of a communication method according to a third embodiment of the present invention; as can be seen from fig. 3, in this embodiment, the communication method provided by the present invention includes:
s301: opening an account for the monitoring terminal, and receiving and storing terminal information of the monitoring terminal;
an external platform or a monitoring terminal equipment data provider sends an XML message carrying WebService for opening an account for equipment to an account opening authentication module of a communication device by using a SOAP protocol; the account opening authentication module receives the SOAP request, checks whether the message conforms to the WebService definition, if so, enters the next step, otherwise, returns a failure response to an external platform or a data provider of the acquisition terminal equipment, and terminates the process; the account opening authentication module stores parameter information such as a device unique identifier, a use account and a password of the use account in a received account opening request of the monitoring terminal;
the account opening authentication module analyzes the response result, if the account opening result is successful, a response success message is responded to the monitoring terminal, otherwise, a response failure message is responded to an external platform or a data provider of the acquisition terminal equipment, and the process is ended;
s302: the communication device receives a first communication request sent by a monitoring terminal;
s303: converting the first communication request into a second communication request;
here, before step S303, the method may further include: the first communication request is verified according to the terminal information, if the verification is passed, the first communication request is converted into a second communication request, and if the verification is not passed, the flow is ended;
the verification mode can be that the unique identification, the use account and the password of the monitoring terminal carried by the first communication request are compared with those stored by the account opening authentication module;
the method specifically comprises the following steps: searching in an account opening authentication module according to the unique identifier of the monitoring terminal carried by the first communication request, if the corresponding monitoring terminal is not searched, the verification fails, if the corresponding monitoring terminal is searched, acquiring a use account and a password which are stored in association with the searched monitoring terminal, matching the use account and the password with the use account and the password carried by the first communication request, and only under the condition that the use account and the password are completely the same, the verification passes;
s304: forwarding the second communication request to the target monitoring platform;
here, before step S304, the method may further include: verifying the second communication request according to the terminal information, if the verification is passed, forwarding the second communication request to the monitoring platform, and if the verification is not passed, ending the flow;
the verification method is similar to the above-described method for verifying the first communication request, and may be: comparing the unique identification, the use account and the password of the monitoring terminal carried by the second communication request with those stored by the account opening authentication module;
the method specifically comprises the following steps: searching in an account opening authentication module according to the unique identifier of the monitoring terminal carried by the second communication request, if the corresponding monitoring terminal is not searched, the verification fails, if the corresponding monitoring terminal is searched, acquiring a use account and a password which are stored in association with the searched monitoring terminal, matching the use account and the password with the use account and the password carried by the second communication request, and only under the condition that the use account and the password are completely the same, the verification passes;
s305: the monitoring platform selects a streaming media server for a monitoring terminal corresponding to the second communication request;
the communication device firstly selects one service node server from a plurality of service node servers of the monitoring platform to forward a second communication request, the service node server extracts and caches terminal information after receiving the second communication request, the terminal information can comprise a unique identifier of a monitoring terminal, a use account and a password, a keep-alive period, a device state, time and a current service node server identifier, wherein the time is set as current time, and the device state is set as on-line; after the terminal information is cached, the service node server calculates and obtains the optimal streaming media server information in a plurality of streaming media under the current node, wherein the optimal streaming media server refers to a streaming media server which has a normal operation state and a normal disk state, has a CPU (Central processing Unit) utilization rate not exceeding a configurable threshold value and has the largest number of residual communication channels; after obtaining the optimal streaming media server, the service node server returns a first response message carrying the information of the streaming media server to the communication device; the stream media server information contains URL of RTSP protocol format specification, the URL contains stream media server IP and interception port, and conversation label, channel label, collecting terminal equipment label, code stream label, using account number, time stamp, URL effective time and URL abstract algorithm category parameter, all parameters are in accordance with the splice, and the URL is attached with the abstract calculated by abstract algorithm appointed in the new URL after the URL attaches the using account number corresponding cipher;
s306: the monitoring platform feeds back the first response message to the communication device;
s307: the communication device converts the first response message into a second response message, wherein the data format of the second response message is a data format supported by the monitoring terminal;
s308: forwarding the second response message to the monitoring terminal;
s309: the monitoring terminal establishes communication with the monitoring platform according to the second response message;
this step may include: the monitoring terminal analyzes the second response message and acquires the information of the streaming media server carried by the monitoring terminal; sending a connection request to a streaming media server corresponding to the streaming media server information to establish communication; the method specifically comprises the following steps: the monitoring terminal analyzes the second response message, acquires a URL (uniform resource locator) string in an RTSP (real time streaming protocol) format in a second response result, analyzes the IP (Internet protocol) and the interception port of the streaming media server in the URL, initiates a connection request to the streaming media server by using the RTSP protocol and the URL, establishes communication after the streaming media server receives the connection request, and transmits and/or caches the video and audio data acquired by the monitoring terminal in real time;
further, the method can also comprise the following steps: the streaming media server verifies the connection request, and if the verification is passed, communication is established; the method specifically comprises the following steps: the streaming media server analyzes parameters in the connection request URL to obtain the URL and abstract information of the URL, acquires authority information of a monitoring terminal from a service node server of the streaming media server by utilizing self identification and monitoring terminal identification in the URL, wherein the authority information comprises a use account and a password, attaches the acquired password to the URL to obtain a new URL, and calculates an abstract of the new URL by using an abstract algorithm specified in the URL; comparing the calculated abstract with the abstract attached in the request URL, if the two abstracts are different, failing to authenticate, replying a response of the RTSP of the monitoring terminal to establish the connection request failure, and terminating the flow; if the authentication is successful, finishing the authentication and finishing real-time audio and video stream transmission and/or caching with the monitoring terminal by using an RTP (real time transport protocol) and an RTCP (real time transport control protocol) protocol to finish a communication monitoring platform of the monitoring terminal;
s310: the monitoring terminal and the monitoring platform keep the state alive;
the step specifically includes that the monitoring terminal and the service node server under the monitoring platform perform state keep-alive, and the method specifically includes the following steps: the communication device receives the keep-alive request of the monitoring terminal, converts the keep-alive request into a keep-alive request message matched with a data format supported by the monitoring platform, forwards the keep-alive request message to the monitoring platform, receives a keep-alive response of the monitoring platform, converts the keep-alive response message into a keep-alive response message matched with the data format supported by the monitoring terminal, and forwards the keep-alive response message to the monitoring terminal; and/or the communication device receives the keep-alive request of the monitoring platform, converts the keep-alive request into a keep-alive request message matched with the data format supported by the monitoring terminal, forwards the keep-alive request message to the monitoring terminal, receives the keep-alive response of the monitoring terminal, converts the keep-alive response message into a keep-alive response message matched with the data format supported by the monitoring platform, and forwards the keep-alive response message to the monitoring platform. Taking the monitor terminal to initiate the keep-alive request as an example, the state keep-alive method specifically includes the following steps:
the monitoring terminal sends a keep-alive request to the service node server periodically, such as every minute, through the communication device, and the keep-alive request carries terminal information, such as a unique identifier of the monitoring terminal, a channel list and the state of each channel;
the service node server receives the keep-alive request, analyzes the terminal information in the keep-alive request, and queries the terminal information cached in step S305; if the terminal information is inquired, updating the cached time value to be the current time value, and returning a keep-alive response to the monitoring terminal through the communication device; if the terminal cannot be inquired, discarding the keep-alive request;
the monitoring terminal receives the keep-alive response and updates the keep-alive success time value to be a current value;
in order to further ensure the effectiveness of communication between the monitoring terminals and the monitoring platform, the service node server can scan various cached terminal information every minute by self-setting tasks, calculate whether the cached time value and the current value of each monitoring terminal exceed three keep-alive periods or not, set the state of the monitoring terminal to be offline if the cached time value and the current value exceed three keep-alive periods, broadcast the offline information of the monitoring terminal to other modules which concern the event in the monitoring platform, such as a display module and the like, and inform a user; and if the monitoring terminal detects that the keep-alive response of the service node server is not received in more than three keep-alive periods, initiating communication operation to the target platform again according to the flow from the step S303 to the step S309.
Fig. 4 is a schematic structural diagram of a communication system according to a fourth embodiment of the present invention; as can be seen from fig. 4, in this embodiment, the communication system 4 provided by the present invention includes: a monitoring terminal 41, a monitoring platform 42 and a communication device 43 provided by the invention; wherein,
the monitoring terminal 41 is used for sending a first communication request to the communication device 43
The communication device 43 is configured to receive and convert the first communication request into a second communication request, and forward the second communication request to the monitoring platform 42, where a data format of the second communication request is a data format supported by the monitoring platform 42;
the monitoring platform 42 is configured to receive the second communication request and feed back the first response message to the communication device 43;
the communication device 43 is further configured to receive and convert the first response message into a second response message, and forward the second response message to the monitoring terminal 41, where a data format of the second response message is a data format supported by the monitoring terminal 41.
Further, when the first communication request is an access request, the monitoring terminal 41 is further configured to establish communication with the monitoring platform 42 according to the second response message.
Further, the monitoring platform 42 includes a streaming media server; the monitoring terminal 41 is specifically configured to analyze the second response message and obtain information of the streaming media server carried by the second response message; and sending a connection request to a streaming media server corresponding to the streaming media server information to establish communication.
Further, the streaming media server is further configured to verify the connection request before establishing communication, and establish communication if the verification is passed.
FIG. 5 is a schematic diagram of the communication device of FIG. 4; as can be seen from fig. 5, in the present embodiment, the communication device 43 in the communication system 4 shown in fig. 4 includes: a first receiving module 431, a first sending module 432, a second receiving module 433, a second sending module 434 and a data processing module 435.
The first receiving module 431 is configured to receive a first communication request sent by the monitoring terminal 41;
the data processing module 435 is configured to convert the first communication request into a second communication request, where a data format of the second communication request is a data format supported by the monitoring platform 42;
the first sending module 432 is configured to forward the second communication request to the monitoring platform 42,
the second receiving module 433 is configured to receive a first response message fed back by the monitoring platform 42;
the data processing module 435 is further configured to convert the first response message into a second response message, where a data format of the second response message is a data format supported by the monitoring terminal 41;
the second sending module 434 is configured to forward the second response message to the monitoring terminal 41.
Further, the communication device 43 in the communication system 4 shown in fig. 4 further includes an account opening authentication module, and the account opening authentication module is configured to receive and store the terminal information of the monitoring terminal.
Further, the account opening authentication module is further configured to, after the data processing module 435 converts the first communication request into the second communication request and before the first sending module 432 forwards the second communication request to the monitoring platform, check the second communication request according to the terminal information, and if the check is passed, trigger the first sending module 432 to forward the second communication request to the monitoring platform; or, the first communication request is verified according to the terminal information, and if the verification is passed, the data processing module 435 is triggered to convert the first communication request into the second communication request.
Further, the data processing module 435 is specifically configured to parse the first communication request to obtain the monitoring terminal information, add and/or delete the monitoring terminal information to obtain the standard information required by the monitoring platform 42, and construct the standard information as the second communication request according to the data format supported by the monitoring platform 42.
Further, the communication device 43 in the communication system 4 shown in fig. 4 further includes a status keep-alive module, where the status keep-alive module is configured to receive a keep-alive request of the monitoring terminal 41, convert the keep-alive request into a keep-alive request message matched with the data format supported by the monitoring platform 42, forward the keep-alive request message to the monitoring platform 42, receive a keep-alive response of the monitoring platform 42, convert the keep-alive response message into a keep-alive response message matched with the data format supported by the monitoring terminal 41, and forward the keep-alive response message to the monitoring terminal 41; and/or receiving the keep-alive request of the monitoring platform 42, converting the keep-alive request into a keep-alive request message matched with the data format supported by the monitoring terminal 41, forwarding the keep-alive request message to the monitoring terminal 41, receiving the keep-alive response of the monitoring terminal 41, converting the keep-alive response message into a keep-alive response message matched with the data format supported by the monitoring platform 42, and forwarding the keep-alive response message to the monitoring platform 42.
FIG. 6 is a block diagram of the data processing module shown in FIG. 5; as can be seen from fig. 6, in the present embodiment, the data processing module 435 in the communication device 43 in the embodiment shown in fig. 5 includes: an assignment module 4351, an analysis module 4352 and a construction module 4353; wherein,
the distribution module 4351 is configured to classify according to the data format of the first communication request, and output the data format to the parsing module 4352;
the parsing module 4352 includes a plurality of parsing sub-modules, which are used to adapt different communication specifications to the unified communication request specification of the monitoring platform, and are implemented by a plurality of common communication specification adapters, including an ONVIF standard communication adapter, a zero configuration terminal communication adapter, an NVR communication adapter, and the like, specific contents of which are not described again, and are used to parse the first communication request according to the data format thereof to obtain the terminal information carried by the first communication request;
the constructing module 4353 is configured to construct the second communication request according to the data format supported by the target monitoring platform.
In summary, the implementation of the present invention has at least the following advantages:
firstly: the communication device is used for converting the first communication request sent by the monitoring terminal into a second communication request matched with a data format supported by the monitoring platform and then forwarding the second communication request to the monitoring platform, so that the problem that one server/service platform cannot be compatible with various types of terminals in the prior art is solved, and the use experience of a user is enhanced;
secondly, an account opening authentication module is arranged to receive and store terminal information of various monitoring terminals connected with the account opening authentication module, so that the identity validity of the monitoring terminals is ensured, and a basis is provided for sharing, renting and switching the monitoring terminals among a plurality of monitoring platforms;
thirdly, the user opening request, the communication request (including the first communication request and the second communication request) and the connection request are verified, so that the validity of communication is ensured;
and finally, a keep-alive mechanism is set, so that the effectiveness of communication between the monitoring terminal and the monitoring platform is ensured.
The above embodiments are only examples of the present invention, and are not intended to limit the present invention in any way, and any simple modification, equivalent change or modification made to the above embodiments according to the technical spirit of the present invention still belongs to the protection scope of the technical solution of the present invention.

Claims (18)

1. A communication method of a monitoring terminal and a monitoring platform is characterized by comprising the following steps:
receiving a first communication request sent by a monitoring terminal, wherein the first communication request comprises an access request and a service request;
converting the first communication request into a second communication request, and forwarding the second communication request to a monitoring platform, wherein the data format of the second communication request is a data format supported by the monitoring platform;
receiving a first response message fed back by the monitoring platform;
and converting the first response message into a second response message, and forwarding the second response message to the monitoring terminal, wherein the data format of the second response message is a data format supported by the monitoring terminal.
2. The communication method according to claim 1, before receiving the first communication request transmitted by the monitoring terminal, further comprising: and receiving and storing the terminal information of the monitoring terminal.
3. The communication method of claim 2, wherein after converting the first communication request into the second communication request and before forwarding to the monitoring platform, further comprising: verifying the second communication request according to the terminal information, and if the verification is passed, forwarding the second communication request to a monitoring platform; or before converting the first communication request into the second communication request, the method further includes: and checking the first communication request according to the terminal information, and if the first communication request passes the check, converting the first communication request into the second communication request.
4. The communication method according to any one of claims 1 to 3, wherein the step of converting the first communication request into a second communication request comprises: analyzing the first communication request to obtain terminal information of a monitoring terminal, processing the terminal information to obtain standard information required by the monitoring platform, and constructing the standard information into the second communication request according to a data format supported by the monitoring platform.
5. The communication method according to any one of claims 1 to 3, further comprising:
receiving a keep-alive request of the monitoring terminal, converting the keep-alive request into a keep-alive request message matched with a data format supported by the monitoring platform, forwarding the keep-alive request message to the monitoring platform, receiving a keep-alive response of the monitoring platform, converting the keep-alive response into a keep-alive response message matched with the data format supported by the monitoring terminal, and forwarding the keep-alive response message to the monitoring terminal; and/or the presence of a gas in the gas,
and receiving the keep-alive request of the monitoring platform, converting the keep-alive request into a keep-alive request message matched with the data format supported by the monitoring terminal, forwarding the keep-alive request message to the monitoring terminal, receiving the keep-alive response of the monitoring terminal, converting the keep-alive response message into a keep-alive response message matched with the data format supported by the monitoring platform, and forwarding the keep-alive response message to the monitoring platform.
6. A communication method of a monitoring terminal and a monitoring platform is characterized by comprising the following steps:
the method comprises the steps that a monitoring terminal sends a first communication request to a communication device, wherein the first communication request comprises an access request and a service request;
the communication device converts the first communication request into a second communication request and forwards the second communication request to a monitoring platform, wherein the data format of the second communication request is a data format supported by the monitoring platform;
a first response message fed back to the communication device by the monitoring platform;
and the communication device converts the first response message into a second response message and forwards the second response message to the monitoring terminal, wherein the data format of the second response message is a data format supported by the monitoring terminal.
7. The communication method according to claim 6, wherein when the first communication request is an access request, further comprising: and the monitoring terminal establishes communication with the monitoring platform according to the second response message.
8. The communication method according to claim 7, wherein the step of the monitoring terminal establishing communication with the monitoring platform according to the second response message comprises:
analyzing the second response message to obtain the information of the streaming media server carried by the second response message;
and sending a connection request to a streaming media server corresponding to the streaming media server information to establish communication.
9. The communication method of claim 8, prior to establishing communication, further comprising: and the streaming media server verifies the connection request, and if the verification is passed, communication is established.
10. A communication apparatus for communication between a monitoring terminal and a monitoring platform, comprising: the device comprises a first receiving module, a first sending module, a second receiving module, a second sending module and a data processing module; wherein,
the first receiving module is configured to receive a first communication request sent by the monitoring terminal, where the first communication request includes an access request and a service request;
the data processing module is used for converting the first communication request into a second communication request, and the data format of the second communication request is a data format supported by the monitoring platform;
the first sending module is used for forwarding the second communication request to a monitoring platform;
the second receiving module is used for receiving a first response message fed back by the monitoring platform;
the data processing module is further configured to convert the first response message into a second response message, where a data format of the second response message is a data format supported by the monitoring terminal;
the second sending module is configured to forward the second response message to the monitoring terminal.
11. The communication device according to claim 10, further comprising an account opening authentication module, wherein the account opening authentication module is configured to receive and store the terminal information of the monitoring terminal.
12. The communication apparatus according to claim 11, wherein the account opening authentication module is further configured to, after converting the first communication request into a second communication request and before forwarding the second communication request to the monitoring platform, check the second communication request according to the terminal information, and if the check is passed, forward the second communication request to the monitoring platform; or, before the first communication request is converted into the second communication request, the first communication request is verified according to the terminal information, and if the verification is passed, the first communication request is converted into the second communication request.
13. The communication apparatus according to any one of claims 10 to 12, wherein the data processing module is specifically configured to parse the first communication request to obtain monitoring terminal information, process the monitoring terminal information to obtain standard information required by the monitoring platform, and construct the standard information as the second communication request according to a data format supported by the monitoring platform.
14. The communication device according to any one of claims 10 to 12, further comprising a status keep-alive module, wherein the status keep-alive module is configured to receive a keep-alive request of the monitoring terminal, convert the keep-alive request into a keep-alive request message matching with a data format supported by the monitoring platform, forward the keep-alive request message to the monitoring platform, receive a keep-alive response of the monitoring platform, convert the keep-alive response message matching with the data format supported by the monitoring terminal, and forward the keep-alive response message to the monitoring terminal; and/or receiving the keep-alive request of the monitoring platform, converting the keep-alive request into a keep-alive request message matched with the data format supported by the monitoring terminal, forwarding the keep-alive request message to the monitoring terminal, receiving the keep-alive response of the monitoring terminal, converting the keep-alive response message into a keep-alive response message matched with the data format supported by the monitoring platform, and forwarding the keep-alive response message to the monitoring platform.
15. The utility model provides a communication system which characterized in that, includes monitor terminal and monitoring platform, still includes: the communication device of any one of claims 10 to 14; wherein,
the monitoring terminal is used for sending a first communication request to the communication device, wherein the first communication request comprises an access request and a service request;
the communication device is used for receiving and converting the first communication request into a second communication request and forwarding the second communication request to the monitoring platform, wherein the data format of the second communication request is a data format supported by the monitoring platform;
the monitoring platform is used for receiving the second communication request and feeding back a first response message to the communication device;
the communication device is further configured to receive a second response message that is converted from the first response message and is forwarded to the monitoring terminal, where a data format of the second response message is a data format supported by the monitoring terminal.
16. The communication system of claim 15, wherein the monitoring terminal is further configured to establish communication with the monitoring platform according to the second response message when the first communication request is an access request.
17. The communication system of claim 16, wherein the monitoring platform comprises a streaming media server; the monitoring terminal is specifically configured to analyze the second response message and acquire information of the streaming media server carried by the monitoring terminal; and sending a connection request to a streaming media server corresponding to the streaming media server information to establish communication.
18. The communication system of claim 17, wherein the streaming server is further configured to verify the connection request before establishing communication, and to establish communication if verification is successful.
CN201310286900.2A 2013-07-09 2013-07-09 Communication method, device and system Pending CN104284142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310286900.2A CN104284142A (en) 2013-07-09 2013-07-09 Communication method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310286900.2A CN104284142A (en) 2013-07-09 2013-07-09 Communication method, device and system

Publications (1)

Publication Number Publication Date
CN104284142A true CN104284142A (en) 2015-01-14

Family

ID=52258566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310286900.2A Pending CN104284142A (en) 2013-07-09 2013-07-09 Communication method, device and system

Country Status (1)

Country Link
CN (1) CN104284142A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161178A (en) * 2015-03-24 2016-11-23 阿里巴巴集团控股有限公司 A kind of method and apparatus accessing instant messaging network
CN107808562A (en) * 2017-11-09 2018-03-16 北京市农林科学院 The control device and control method of a kind of remote education terminal
CN108092995A (en) * 2018-01-12 2018-05-29 珠海市杰理科技股份有限公司 Streaming medium data processing method, device, computer equipment and storage medium
CN113535639A (en) * 2020-04-21 2021-10-22 明基智能科技(上海)有限公司 Cross-platform data processing system
CN116915935A (en) * 2023-09-07 2023-10-20 比亚迪股份有限公司 Intercommunication processing method, intercommunication processing system, server and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212654A (en) * 2007-12-24 2008-07-02 深圳市同洲电子股份有限公司 Network video monitoring system and data acquisition method
JP2011061439A (en) * 2009-09-09 2011-03-24 Toshiba Corp Monitoring system, image processing apparatus, interface circuit and imaging apparatus
CN102769739A (en) * 2012-06-21 2012-11-07 北京交通大学 Device and method for achieving interconnection and intercommunication of video monitoring systems
CN103051881A (en) * 2012-12-31 2013-04-17 深圳市捷顺科技实业股份有限公司 Monitoring method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212654A (en) * 2007-12-24 2008-07-02 深圳市同洲电子股份有限公司 Network video monitoring system and data acquisition method
JP2011061439A (en) * 2009-09-09 2011-03-24 Toshiba Corp Monitoring system, image processing apparatus, interface circuit and imaging apparatus
CN102769739A (en) * 2012-06-21 2012-11-07 北京交通大学 Device and method for achieving interconnection and intercommunication of video monitoring systems
CN103051881A (en) * 2012-12-31 2013-04-17 深圳市捷顺科技实业股份有限公司 Monitoring method and system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161178A (en) * 2015-03-24 2016-11-23 阿里巴巴集团控股有限公司 A kind of method and apparatus accessing instant messaging network
CN106161178B (en) * 2015-03-24 2019-08-02 阿里巴巴集团控股有限公司 A kind of method and apparatus accessing instant messaging network
CN107808562A (en) * 2017-11-09 2018-03-16 北京市农林科学院 The control device and control method of a kind of remote education terminal
CN108092995A (en) * 2018-01-12 2018-05-29 珠海市杰理科技股份有限公司 Streaming medium data processing method, device, computer equipment and storage medium
CN108092995B (en) * 2018-01-12 2020-07-24 珠海市杰理科技股份有限公司 Streaming media data processing method and device, computer equipment and storage medium
CN113535639A (en) * 2020-04-21 2021-10-22 明基智能科技(上海)有限公司 Cross-platform data processing system
CN116915935A (en) * 2023-09-07 2023-10-20 比亚迪股份有限公司 Intercommunication processing method, intercommunication processing system, server and storage medium
CN116915935B (en) * 2023-09-07 2024-05-07 比亚迪股份有限公司 Intercommunication processing method, intercommunication processing system, server and storage medium

Similar Documents

Publication Publication Date Title
CN102761864B (en) Data transmission method, system and device
CN101577631B (en) Method, system and network device for evaluating experience quality of user
CN103269329B (en) A kind of domestic video monitoring system based on digital TV set-top box and IMS system
US20130191890A1 (en) Method and system for user identity recognition based on specific information
CN101808233A (en) Universal system for realizing video monitoring of mobile phone and method thereof
CN108696588B (en) Information sending method and equipment
CN108964962B (en) Method and system for controlling video network terminal
CN104284142A (en) Communication method, device and system
CN103152378A (en) Network data transmission method and system and client
WO2016070633A1 (en) Network log generation method and device
CN112995234B (en) Media transmission link management method and device
CN102724322A (en) Remote control method and device
WO2013182120A1 (en) Terminal information obtaining device and method in heterogeneous terminal environment
JP2014060678A (en) Cache distribution apparatus, cache distribution program, and content distribution system
CN104378451A (en) Network communication route selecting method, device and system
CN107623752B (en) Network management method and device based on link layer
CN108804486A (en) A kind of image-recognizing method and device
CN101742265A (en) Video monitoring method, fixed network video monitoring service platform and mobile terminal
CN102647432B (en) A kind of authentication information transmission method, device and certification middleware
CN102413069A (en) Method and system for downloading in multicast way in ubiquitous network
CN104539749B (en) A kind of connection method and device based on virtual ip address
CN110839142B (en) Monitoring directory sharing method and device
CN106210611B (en) A kind of method for playing video, video monitoring platform and system
CN102487382B (en) Resource providing method, apparatus thereof and system thereof
CN102137102A (en) Realizing method of service supporting platform for supporting multiclass information publishing modes

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150114