CN112217813A - Front-end equipment control method and device - Google Patents
Front-end equipment control method and device Download PDFInfo
- Publication number
- CN112217813A CN112217813A CN202011069029.7A CN202011069029A CN112217813A CN 112217813 A CN112217813 A CN 112217813A CN 202011069029 A CN202011069029 A CN 202011069029A CN 112217813 A CN112217813 A CN 112217813A
- Authority
- CN
- China
- Prior art keywords
- operation instruction
- target
- format
- control
- sip
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/1066—Session management
- H04L65/1101—Session protocols
- H04L65/1104—Session initiation protocol [SIP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/146—Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/565—Conversion or adaptation of application format or content
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/566—Grouping or aggregating service requests, e.g. for unified processing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/08—Protocols for interworking; Protocol conversion
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
- H04N23/661—Transmitting camera control signals through networks, e.g. control via the Internet
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application provides a front-end equipment control method and a front-end equipment control device, and based on the method, an http front-end equipment control request sent by a traffic police terminal on a control selection page based on an http protocol is received, wherein the http front-end equipment control request carries a target equipment identifier and a first format operation instruction; then, according to the first format operation instruction and a preset format conversion table, obtaining a second format operation instruction corresponding to the first format operation instruction; generating a sip front-end device control request according to the target device identification and the second format operation instruction; and finally, sending the sip front-end equipment control request to the target equipment through the 5G base station based on the sip protocol so as to enable the target equipment to respond and execute corresponding control operation. The whole control process traffic police terminal of this application only needs can accomplish on web browser or platform, and simple easy operation has improved the control efficiency of front-end equipment.
Description
Technical Field
The application relates to the field of intelligent traffic, in particular to a front-end equipment control method and device.
Background
In traffic system, the video that the front end equipment that the traffic police set up in the control place was shot is through watching to carry out illegal data's discernment, according to actual conditions, need adjust the direction of front end equipment, parameters such as focus usually watching the in-process, in order to obtain more effective video information, however current front end equipment parameter adjustment adopts the manual work to control more, wastes time and energy, and the effect is not good, is difficult to adapt to illegal data identification's demand.
Therefore, the existing front-end equipment control method has the technical problem of low control efficiency, and needs to be improved.
Disclosure of Invention
The embodiment of the application provides a front-end equipment control method and a front-end equipment control device, which are used for relieving the technical problem of low control efficiency in the existing front-end equipment control method.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
the application provides a front-end equipment control method, is applicable to wisdom traffic system, wisdom traffic system includes front-end equipment, data server, 5G basic station and traffic police terminal, the front-end equipment is based on the sip agreement connection the 5G basic station, the traffic police terminal inserts based on the http protocol data server, front-end equipment control method is applied to data server, front-end equipment control method includes:
receiving an http front-end equipment control request sent by the traffic police terminal based on an http protocol; the http front-end equipment control request comprises a control selection page comprising a front-end equipment selection control and an operation instruction selection control, which is displayed by the traffic police terminal after receiving a trigger instruction for controlling the front-end equipment, target equipment is determined according to the selection operation aiming at the front-end equipment selection control, a first format operation instruction is determined according to the selection operation aiming at the operation instruction selection control, and the http front-end equipment control request conforming to an http protocol is generated according to a target equipment identifier of the target equipment and the first format operation instruction;
obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table;
generating a sip front-end device control request according to the target device identification and the second format operation instruction;
determining target equipment and a target 5G base station corresponding to the target equipment according to the target equipment identification, and determining long connection with the target 5G base station;
and sending the sip front-end equipment control request to the target 5G base station through the long connection so as to control the target 5G base station to send the sip front-end equipment control request to the target equipment through a sip private line based on a sip protocol, so that the target equipment responds and executes corresponding control operation.
Simultaneously, this application embodiment still provides a front end equipment controlling means, is applicable to wisdom traffic system, wisdom traffic system includes front end equipment, data server, 5G basic station and traffic police terminal, front end equipment connects based on the sip agreement 5G basic station, the traffic police terminal inserts based on the http protocol data server, front end equipment controlling means sets up in the data server, front end equipment controlling means includes:
the receiving module is used for receiving an http front-end equipment control request sent by the traffic police terminal based on an http protocol; the http front-end equipment control request comprises a control selection page comprising a front-end equipment selection control and an operation instruction selection control, which is displayed by the traffic police terminal after receiving a trigger instruction for controlling the front-end equipment, target equipment is determined according to the selection operation aiming at the front-end equipment selection control, a first format operation instruction is determined according to the selection operation aiming at the operation instruction selection control, and the http front-end equipment control request conforming to an http protocol is generated according to a target equipment identifier of the target equipment and the first format operation instruction;
the format conversion module is used for obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table;
the request generation module is used for generating a sip front-end equipment control request according to the target equipment identification and the second format operation instruction;
the determining module is used for determining target equipment and a target 5G base station corresponding to the target equipment according to the target equipment identification, and determining long connection between the target equipment and the target 5G base station;
a sending module, configured to send the sip front-end device control request to the target 5G base station through the long connection, so as to control the target 5G base station to send the sip front-end device control request to the target device through a sip dedicated line based on a sip protocol, so that the target device responds and executes a corresponding control operation.
The application also provides an electronic device comprising a memory and a processor; the memory stores an application program, and the processor is configured to run the application program in the memory to perform any one of the operations in the front-end device control method.
Has the advantages that: the application provides a front-end equipment control method and a device, which are suitable for an intelligent traffic system, wherein the intelligent traffic system comprises front-end equipment, a data server, a 5G base station and a traffic police terminal, the front-end equipment is connected with the 5G base station based on an sip protocol, the traffic police terminal is accessed to a data server based on an http protocol, the front-end equipment control method is applied to the data server, and based on the method, an http front-end equipment control request sent by the traffic police terminal based on the http protocol is received; the http front-end equipment control request comprises a control selection page which comprises a front-end equipment selection control piece and an operation instruction selection control piece and is displayed by the traffic police terminal after receiving a trigger instruction for controlling the front-end equipment, target equipment is determined according to the selection operation aiming at the front-end equipment selection control piece, a first format operation instruction is determined according to the selection operation aiming at the operation instruction selection control piece, and the http front-end equipment control request conforming to an http protocol is generated according to a target equipment identification of the target equipment and the first format operation instruction; obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table; generating a sip front-end device control request according to the target device identification and the second format operation instruction; determining target equipment and a target 5G base station corresponding to the target equipment according to the target equipment identifier, and determining long connection with the target 5G base station; and sending an sip front-end equipment control request to the target 5G base station through the long connection so as to control the target 5G base station to send the sip front-end equipment control request to the target equipment through an sip private line based on an sip protocol, so that the target equipment responds and executes corresponding control operation. The method and the system send out the http control request based on the http protocol and convert the http control request into the sip control request which can be identified by the front-end equipment, and can directly select the corresponding target equipment and the first format operation instruction according to the selection operation when the request is initiated on the control selection page, so that the operation is simple, the traffic police terminal can complete the whole control process only on a web browser or a platform, and the method and the system are simple and easy to operate; in addition, the information transmission is carried out through the 5G base station, the speed is high, and the control efficiency of the front-end equipment is improved.
Drawings
The technical solution and other advantages of the present application will become apparent from the detailed description of the embodiments of the present application with reference to the accompanying drawings.
Fig. 1 is a schematic view of a scenario of a front-end device control system according to an embodiment of the present application.
Fig. 2 is a schematic flowchart of a front-end device control method according to an embodiment of the present application.
Fig. 3 is a schematic diagram of a control selection page of a traffic police terminal in the front-end device control method according to the embodiment of the present application.
Fig. 4 is a schematic model diagram of a front-end device control method according to an embodiment of the present application.
Fig. 5 is a logic diagram of a front-end device control method according to an embodiment of the present application, in which a first format operation instruction is converted into a second format operation instruction by an operation instruction generator.
Fig. 6 is a logic diagram of an sip request generator generating an sip front-end device control request in the front-end device control method according to the embodiment of the present application.
Fig. 7 is a schematic view of a first video display page of a traffic police terminal in the front-end device control method according to the embodiment of the present application.
Fig. 8 is a schematic view of a second video display page of the traffic police terminal in the front-end device control method according to the embodiment of the present application.
Fig. 9 is a schematic structural diagram of a front-end device control apparatus according to an embodiment of the present application.
Fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any inventive step, are within the scope of the present application.
In the embodiment of the application, the intelligent traffic system is an integrated network system which is constructed by comprehensively applying technologies such as video and audio monitoring, communication, computer network and system integration in the traffic field and has functions of information acquisition, transmission, exchange, control, display, storage, processing and the like and can realize interconnection, intercommunication and mutual control among different devices and systems. The intelligent traffic system comprises front-end equipment, a data server, a 5G base station and a traffic police terminal, wherein the front-end equipment is connected with the 5G base station based on an sip protocol, and the traffic police terminal is accessed to the data server based on an http protocol.
In the embodiment of the present application, the front-end device refers to a device installed in a monitoring site in an intelligent traffic system and used for information acquisition, encoding, processing, storage, transmission and safety control. The front-end equipment comprises a front-end camera and a front-end holder, and the front-end camera is fixed through the front-end holder.
In the embodiment of the present application, the traffic police terminal refers to a client device registered and authorized by the intelligent transportation system and having an operation requirement on data and devices in the system, and may specifically include a traffic police client and a developer client.
The embodiment of the application provides a front-end device control method and device and an electronic device. The front-end device control apparatus may be integrated in an electronic device, and the electronic device may be a server or a terminal.
Referring to fig. 1, fig. 1 is a schematic view of a front-end device control system according to an embodiment of the present disclosure, where the system may include terminals and servers, and the terminals, the servers, and the terminals and the servers are connected and communicated through internet composed of various gateways, and the application scenario includes a traffic police terminal 11, a data server 12, a 5G base station 13, and a front-end device 14; wherein:
the traffic police terminal 11 includes, but is not limited to, a tablet Computer, a notebook Computer, a Personal Computer (PC), a micro processing box, or other devices;
the data server 12 comprises a local server and/or a remote server and the like;
the 5G base station 13 comprises a radio transceiver station which carries out information transmission with each terminal through a communication switching center in a certain radio coverage area;
the front-end equipment 14 includes video and image acquisition equipment and fixed equipment arranged at a monitoring site.
The traffic police terminal 11, the data server 12, the 5G base station 13 and the front end device 14 are located in a wireless network or a wired network, the front end device 14 is connected with the 5G base station 13 based on an sip protocol, the traffic police terminal 11 is accessed into the data server 12 based on an http protocol, and the data server 12 is connected with the 5G base station 13 based on the 5G protocol, so as to realize data interaction between the four devices, wherein:
the data server 12 receives an http front-end device control request sent by the traffic police terminal 11 based on an http protocol; the http front-end equipment control request comprises that after the traffic police terminal 11 receives a trigger instruction for controlling the front-end equipment, a target equipment and a first format operation instruction are determined on a control selection page, and then an http front-end equipment control request conforming to an http protocol is generated; obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table; generating a sip front-end device control request according to the target device identification and the second format operation instruction; according to the target equipment identification, determining target equipment from the front-end equipment 14, determining a target 5G base station corresponding to the target equipment from the 5G base station 13, and determining long connection with the target 5G base station; and sending an sip front-end equipment control request to the target 5G base station through long connection so as to control the target 5G base station to send the sip front-end equipment control request to the target equipment through an sip private line based on an sip protocol, so that the target equipment responds and executes corresponding control operation, and the control of the front-end equipment 14 is realized.
It should be noted that the system scenario diagram shown in fig. 1 is only an example, and the server and the scenario described in the embodiment of the present application are used to more clearly illustrate the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application, and as a person having ordinary skill in the art knows that along with the evolution of the system and the occurrence of a new service scenario, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems. The following are detailed below. It should be noted that the order of description of the following embodiments is not intended to limit the order of preference of the embodiments.
Referring to fig. 2, fig. 2 is a schematic flowchart of a front-end device control method according to an embodiment of the present application, where the method includes:
s201: receiving an http front-end equipment control request sent by a traffic police terminal based on an http protocol; the http front-end equipment control request comprises that after the traffic police terminal receives a trigger instruction for controlling the front-end equipment, a control selection page comprising a front-end equipment selection control and an operation instruction selection control is displayed, target equipment is determined according to selection operation aiming at the front-end equipment selection control, a first format operation instruction is determined according to selection operation aiming at the operation instruction selection control, and the http front-end equipment control request conforming to an http protocol is generated according to a target equipment identification of the target equipment and the first format operation instruction.
The traffic police terminal can be used by internal personnel of a public security system or developers controlled by equipment with access authority, and when the front-end equipment is controlled, the same traffic police terminal generally needs to carry out a plurality of control requests on the front-end equipment or carry out control requests on the front-end equipment.
The traffic police terminal sends an http front-end equipment control request to the data server based on an http protocol, when the request is sent, the front-end equipment in a monitoring place is controlled to rotate, adjust the focal length, reset and the like, so that the monitored video image information quantity is more, more accurate judgment and treatment can be carried out on illegal behaviors, a sender can also be a developer with control authority and used for controlling and adjusting the front-end equipment, relevant parameters of the front-end equipment are optimized according to the content of images shot by a front-end camera in the adjusting process, and the front-end equipment is correspondingly debugged based on relevant feedback in the controlling process, so that the optimal shooting performance is obtained. The http front-end device control request can be sent through a video monitoring platform developed independently, or can be directly sent through a web browser and received by a data server. The request under the http protocol is a one-way channel request from the traffic police terminal to the data server.
The http front-end device control request carries a target device identifier and a first format operation instruction, wherein the target device identifier comprises an ID of a target camera and/or an ID of a target holder, the first format operation instruction is an English format operation instruction under an http protocol, and the English format operation instruction is popular and easy to understand relative to other types of operation instructions and has low requirement on a request initiator.
After receiving a trigger instruction for controlling the front-end equipment, the traffic police terminal displays a control selection page comprising a front-end equipment selection control and an operation instruction selection control, and then performs corresponding selection operation on the control selection page to determine which front-end equipment in a monitoring place is to be controlled and what type of control is specifically performed on the front-end equipment. When the front-end equipment selection control is triggered, a catalog of all registered front-end equipment is generated, then, one or some front-end equipment can be selected as target equipment, and the front-end equipment catalog can set the traffic police terminal initiating the request or the front-end equipment requesting selection last time as default target equipment. When the operation instruction selection control is triggered, an operation instruction directory is generated, the operation instruction directory comprises a plurality of types of operation instructions, after a selection operation is performed on a certain operation instruction, a sub-instruction directory corresponding to the operation instruction is displayed, one operation instruction can be selected each time when the selection operation is performed, a plurality of operation sub-instructions corresponding to the operation instruction can be simultaneously selected, the operation instruction and the corresponding operation sub-instruction form a first format operation instruction, and the first format operation instruction which is requested to be selected last time in the operation instruction directory can be set as a default operation instruction.
And after the corresponding selection operation is carried out on the control selection page, generating an http front-end equipment control request conforming to the http protocol according to the target equipment identification of the target equipment and the first format operation instruction.
S202: and obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table.
The first format operation instruction acquired by the data server is an English format operation instruction under an http protocol, and the front-end device is connected with the data server based on an sip protocol, so that the first format operation instruction needs to be converted into a second format operation instruction which can be identified by the front-end device, and the second format operation instruction is a 16-system hardware operation instruction under the sip protocol. During conversion, various instructions contained in the first format operation instruction can be converted one by one based on a preset format conversion table, and then the converted instructions are arranged and combined according to a preset sequence to obtain a second format operation instruction.
S203: and generating a sip front-end equipment control request according to the target equipment identification and the second format operation instruction.
After the second format operation instruction is obtained, the second format operation instruction needs to be further processed to generate a request in the sip standard format, specifically including a request header and a request message body, where the request header is used to indicate to whom the request is sent, and the request message body is used to indicate the specific content of the request, and according to the target device identifier, an access address of the target device is obtained, and then according to the access address, the request header is obtained, the second format operation instruction is processed to obtain the request message body, and then the request message body and the request message body are combined to generate a sip front-end device control request.
S204: and determining the target equipment and a target 5G base station corresponding to the target equipment according to the target equipment identifier, and determining long connection with the target 5G base station.
In a 5G scenario, all front-end devices in a certain area are correspondingly connected with a 5G base station, a one-to-many connection relationship is formed between the 5G base station and the front-end devices, and the connection relationships are stored in a data server, so that a target device corresponding to a target device identifier can be determined according to the target device identifier, which 5G base station the target device is connected with can be further determined, and the 5G base station is used as the target 5G base station. And for all 5G base stations, long connection is established between the data server, and after the target 5G base station is determined, the long connection between the data server and the target 5G base station can be found.
S205: and sending an sip front-end equipment control request to the target 5G base station through the long connection so as to control the target 5G base station to send the sip front-end equipment control request to the target equipment through an sip private line based on an sip protocol, so that the target equipment responds and executes corresponding control operation.
And after the long connection is determined, sending an sip front-end equipment control request to the target 5G base station through the long connection. The long connection between the data server and the target 5G base station is transmitted based on a 5G protocol, and the sip front-end equipment control request is a request under the sip protocol, so that during transmission, the sip front-end equipment control request is firstly encapsulated into a first encapsulation packet and then is transmitted to the target 5G base station through the long connection, and the target 5G base station then unpacks the first encapsulation packet into the sip front-end equipment control request.
The target 5G base station is connected with the front-end equipment by adopting an sip protocol, and each front-end equipment is connected by adopting an sip dedicated line so as to ensure the safety of data, so that the target 5G base station controls the target 5G base station to send a sip front-end equipment control request to the target equipment through the sip dedicated line based on the sip protocol after receiving the sip front-end equipment control request.
And after receiving the request, the target equipment executes corresponding control operation according to the specific content of the request. When the request relates to adjustment of focus adjustment, screen enlargement and reduction, etc., the corresponding operation is performed by the front-end camera, and when the request relates to adjustment of rotation, preset position, etc., the corresponding operation is performed by the front-end pan/tilt head. The traffic police terminal sends different types of control requests, so that the front-end equipment executes different control operations, multi-directional video data can be acquired, the accuracy of illegal data identification is improved, and the video acquisition requirements under different scenes are met.
According to the method, the front-end equipment control method provided by the application comprises the steps of firstly receiving an http front-end equipment control request sent by a traffic police terminal on a control selection page based on an http protocol, wherein the http front-end equipment control request carries a target equipment identifier and a first format operation instruction; then, according to the first format operation instruction and a preset format conversion table, obtaining a second format operation instruction corresponding to the first format operation instruction; generating a sip front-end device control request according to the target device identification and the second format operation instruction; and finally, sending the sip front-end equipment control request to the target equipment through the target 5G base station based on the sip protocol so as to enable the target equipment to respond and execute corresponding control operation. The method and the system send out the http control request based on the http protocol and convert the http control request into the sip control request which can be identified by the front-end equipment, and can directly select the corresponding target equipment and the first format operation instruction according to the selection operation when the request is sent out on the control selection page, so that the operation is simple, the traffic police terminal can complete the whole control process only on a web browser or a platform, and the method and the system are simple and easy to operate; in addition, the information transmission is carried out through the 5G base station, the speed is high, and the control efficiency of the front-end equipment is improved.
As shown in fig. 3, a control front-end device control 100 is arranged on a platform interface of the traffic police terminal, and when the traffic police terminal wants to control the front-end device at a certain intersection at a certain time, the traffic police terminal clicks the control front-end device control 100, receives a trigger instruction for controlling the front-end device, and displays a control selection page including a front-end device selection control 200 and an operation instruction selection control 300. The control front-end equipment control 100 and the other two controls can be arranged on different pages, namely, the control selection page can be a page generated by clicking the control front-end equipment control 100 on the other page of the traffic police terminal; the control front-end device control 100 and the other two controls may also be set on the same page, when the control front-end device control 100 is not clicked, the other two controls are not displayed, and after the control front-end device control 100 is clicked, the page serves as a control selection page to display the front-end device selection control 200 and the operation instruction selection control 300.
After the control selection page clicks the front-end device selection control 200, the control selection page generates a front-end device directory 201 according to a trigger operation for the front-end device selection control 200, all front-end devices registered in the intelligent transportation system can be displayed in the front-end device directory 201, and then a corresponding selection operation is performed in the front-end device directory 201 to determine which front-end device is controlled. When performing the selecting operation, one or more front-end devices may be selected from the front-end device directory 201 as target devices, wherein the front-end device that has been requested to be selected last time or the front-end device that has been requested to be selected with a higher frequency may be set as a default target device. When there are many front-end devices in the front-end device directory 201, a search or screening function may be set, and the search range is narrowed according to information such as keywords, so that a target device to be selected can be quickly searched.
Similarly, after the control selection page clicks the operation instruction selection control 300, the control selection page generates an operation instruction directory 301 according to the trigger operation for the operation instruction selection control 300, and all the operation instructions that can be executed by the front-end device can be displayed in the operation instruction directory. The operation instruction list 301 first displays various operation commands, such as a rotation operation, a lens control operation, a termination operation, a preset operation, a locking operation, and the like, and selects one of the various operation commands when performing a selection operation, and then displays an operation sub-command corresponding to the operation command after selecting the operation command, for example, when selecting the rotation operation, the corresponding operation sub-command may include a movement direction, a movement speed, and the like. In addition, for operation subcommands of which the movement speed and the like relate to specific numerical values, corresponding parameter input boxes are generated after selection, and the specific numerical values can be input in the corresponding parameter input boxes according to requirements. The first format operation command is generated according to the operation command and the selection operation of each operation sub command.
After the front-end device selection control 200 and the operation instruction selection control 300 are executed with corresponding selection operations, and the click determination 400, an http front-end device control request conforming to an http protocol is generated according to the target device identifier of the target device and the first format operation instruction.
As shown in fig. 4, the framework of the front-end device control is divided into several modules, an http front-end device control request 21 sent by the traffic police terminal is received by the http gateway 22, then the request parser 23 parses and classifies a first format operation instruction recognizable by the http protocol in the http front-end device control request 21, and then the operation instruction generator 24 converts the first format operation instruction to generate a second format operation instruction recognizable by the sip protocol. The sip request generator 25 generates an sip front-end device control request corresponding to the http front-end device control request 21 according to the target device identifier and the second format operation instruction carried in the http front-end device control request 21, and finally sends the sip front-end device control request to the target 5G base station 27 through the sip gateway 26, and then the sip front-end device control request is sent to the target device 28 through the target 5G base station 27, and the target device 28 responds and executes a corresponding control operation. Through the steps, the traffic police terminal completes various operation adjustments on the target equipment of the monitoring site, so that more video information amount can be obtained, and the accuracy of illegal data identification is improved.
Fig. 5 is a logic diagram of the first format operation command converted into the second format operation command by the operation command generator 24, and fig. 6 is a logic diagram of the sip request generator 25 generating the sip front-end device control request. The front-end device control method of the present application is further described below with reference to fig. 4 to 6.
The http front-end device control request 21 sent by the traffic police terminal is sent to the request parser 23 through the http gateway, and the request parser 23 parses the target device identifier and the first format operation instruction 30. The first format operation instruction 30 may include a rotation operation, a lens control operation, a termination operation, a preset bit operation, a lock operation, and the like, according to the type of the control request. Taking the http front-end device control request 21 sent by the traffic police terminal as an example, the contents include "CmdType ═ deviceControl & sessionId ═ test & platf ormId ═ 42010500002006533266& deviceId ═ 42010502001325871820& type ═ ptz & direct ═ u & speed ═ 120", and after the analysis, the description of various parameters is shown in table 1:
TABLE 1
The "type ═ ptz" indicates that the first format operation command 30 carried by the http front-end device control request 21 is a rotation operation command, "direct ═ u" indicates that the operation sub-command corresponding to the rotation operation command is an upward rotation, and "speed ═ 120" indicates that the speed of the upward rotation is 120 degrees per second. When the first format operation instruction 30 is a lens control operation instruction, the corresponding command type and assignment are aperture control "type ═ alert", zoom control "type ═ zoom", or focus control "type ═ focus", respectively. When the first format operation instruction 30 is a termination operation instruction, the corresponding command type and assignment are termination rotation "type ═ stopPtz", termination focus "type ═ stopFocus", termination aperture control "type ═ stoptask" or termination variable magnification control "type ═ stopZoom", respectively. When the first format operation instruction 30 is a preset bit operation instruction, the corresponding command type and assignment are a preset bit "type ═ preset", a call preset bit "type ═ presetCall", a delete preset bit "type ═ presetDelete", and the like, respectively. When the first format operation instruction 30 is a lock operation instruction, the corresponding command type and assignment may be any one of the command types and assignments described above, and corresponding lock control is performed through an operation sub-command following the operation command.
After the first format operation instruction 30 is obtained through analysis, the operation instruction generator 24 obtains a second format operation instruction 40 corresponding to the first format operation instruction 30 according to the first format operation instruction 30 and a preset format conversion table, where the first format operation instruction 30 is an english operation instruction, and the second format operation instruction 40 is a 16-system hardware operation instruction. In one embodiment, the steps specifically include: an operation terminal 41 for generating a second format operation instruction 40 according to the operation command 31 corresponding to the first format operation instruction 30; generating an operation code of the second format operation instruction 40 according to the operation sub-command corresponding to the operation command 31; generating a check bit 43 of the second format operation instruction 40 according to the operation terminal 41 and the operation code; the operation terminal 41, the operation code and the check bit 43 are combined to generate the second format operation instruction 40.
The assignment value of the operation command 31 is ptz, and the operation command is converted into the operation header 41 of the second format operation instruction 40 according to a preset format conversion table, as the 1 st bit of the second format operation instruction 40, and the specific value is 0xA 5.
The operation command 31 corresponds to a plurality of operation subcommands, and the number and type of the operation subcommands are different according to the different complexity of the request content, so that the more complicated the request content is, the more the number and type of the corresponding operation subcommands are, and the more accurate the control of the front-end device is. Each operation subcommand corresponds to a one-bit opcode that translates into a second format operation instruction 40.
In one embodiment, the step of generating the operation code comprises: classifying the plurality of operation subcommands corresponding to the operation command 31, determining the positions of the operation codes corresponding to the various operation subcommands in the second format operation instruction 40 according to a preset sequence, and sequentially generating the operation code corresponding to each operation subcommand. As shown in fig. 5, taking four types of operation subcommands as an example, the various types of operation subcommands are sorted in the front-back order in the http front-end device control request 21, and sequentially include a first operation subcommand 321, a second operation subcommand 322, a third operation subcommand 323, and a fourth operation subcommand 324. The first operation sub-command 321 is used to define the rotation direction of the target device, is correspondingly converted into the first operation code 421, is located at the 2 nd bit of the second format operation instruction 40, and the value of the 16 th digit of the first operation code 421 is different according to the rotation direction. The second operation subcommand 322 is used to define the vertical speed and the horizontal speed of the target device, and is correspondingly converted into the second operation code 422, which is located at the 3 rd bit of the second format operation instruction 40. And in turn, the third operation subcommand 323 is converted into the third operation code 423 located at the 4 th bit of the second format operation instruction 40, the fourth operation subcommand 324 is converted into the fourth operation code 424 located at the 5 th bit of the second format operation instruction 40, until all the operation subcommands corresponding to the operation command 31 are converted. Then, a check bit 43 is added after the operation terminal 41 and the operation code, and the calculation formula of the check bit is as follows: (upper 4 bits of byte 1 + lower 4 bits of byte 1 + upper 4 bits of byte 2)% 16, where byte 1 is the 1 st bit of the second format operation instruction 40 and byte 2 is the 2 nd bit of the second format operation instruction 40. And combining the operation terminal 41, the operation code and the check bit to generate a second format operation instruction 40.
In an embodiment, the step of generating the second format operation instruction 40 includes: after the first format operation instruction 30 is obtained, a preset format conversion table is searched to obtain an operation terminal 41 corresponding to the operation command 31 of the first format operation instruction 30 and an operation code corresponding to the operation sub-command, a check bit 43 corresponding to the first format operation instruction 30 is obtained through calculation, and a second format operation instruction 40 is generated according to a search result and a calculation result. For the operation command 31 and each operation sub-command of the first format operation command 30, a unique operation terminal or operation code is corresponding to the operation command in a preset format conversion table, the format conversion table may be stored in the data server in advance, after the first format operation command 30 is analyzed and enters the operation command generator 24, the operation command generator 24 performs corresponding search from the format conversion table, then performs format conversion, and then calculates to obtain a corresponding check bit to detect whether the data is in error in the conversion process, and finally generates the second format operation command 40 according to the search result and the calculation result.
After generating the second format operating instructions 40, the sip request generator 25 generates the sip front-end device control request 80 based on the target device identification and the second format operating instructions 40. In one embodiment, the steps specifically include: generating a sip request header 60 according to the target device identifier; generating a sip request message body 70 according to the second format operation instruction 40; the sip request header 60 and sip request message body 70 are combined to generate the sip frontend device control request 80. The data server includes a front-end device storage unit in which access addresses of a plurality of front-end devices registered in the intelligent transportation system and other related information are stored, and the sip request generator 25 acquires a target device access address 50 from the front-end device address storage unit based on a target device identification, and then generates a sip request header 60 based on the address. Then, the second format operation instruction 40 is processed to generate an sip request message body 70, and finally, the sip request header 60 and the sip request message body 70 are combined to generate an sip front-end device control request 80.
After the sip frontend device control request 80 is generated, it is sent to the sip gateway 26, and the sip gateway 26 sends the sip frontend device control request 80 to the target 5G base station 27. At this time, the target device 28 corresponding to the identifier is determined according to the target device identifier carried in the sip front-end device control request 80, and further, which 5G base station the target device 28 is connected to is determined, and the 5G base station is used as the target 5G base station 27. For all 5G base stations, long connections have been established with the data server, and after the target 5G base station 27 is determined, the long connection between the data server and the target 5G base station 27 can be found, and then the sip front-end device control request 80 is sent to the target 5G base station 27 through the long connection.
In one embodiment, the specific step of sending the sip front-end device control request 80 to the target 5G base station 27 includes: encapsulating the sip frontend device control request 80 into a first encapsulation packet; the first encapsulated packet is sent over the long connection to the target 5G base station 27. Since the long connection between the data server and the target 5G base station 27 is based on 5G protocol transmission, and the sip front-end device control request 80 is a request under the sip protocol, the sip front-end device control request 80 is encapsulated into a first encapsulation packet, and then is sent to the target 5G base station 27 through the long connection, and the target 5G base station 27 then unpacks the first encapsulation packet into the sip front-end device control request 80.
In one embodiment, the specific step of sending the sip front-end device control request 80 to the target 5G base station 27 further includes: acquiring a connection period between a target 5G base station 27 and target equipment 28; in the connection period, the sip frontend device control request 80 is sent to the target 5G base station 27 through the long connection to control the target 5G base station 27 to send the sip frontend device control request 80 to the target device 28 through the sip dedicated line based on the sip protocol. The target 5G base station 27 and all the front-end devices in the connection range form a one-to-many relationship, for each front-end device, the target 5G base station 27 has a connection channel corresponding to the front-end device, but the connection channels between the target 5G base station 27 and the front-end devices are not connected at all times, but are sequentially opened and closed according to a certain sequence, so for each front-end device, there is a connection period corresponding to the connection period, and only in the connection period, the front-end device and the target 5G base station 27 can realize communication, so that it is necessary to first obtain the connection period between the target 5G base station 27 and the target device 28, and then in the connection period, control the target 5G base station 27 to send the sip front-end device control request 80 to the target device 28.
The target 5G base station 27 and the front-end devices are connected by using an sip protocol, and for each front-end device, an sip dedicated line is used for connection to ensure the security of data, so that after the target 5G base station 27 receives the sip front-end device control request 80, the data server controls the target 5G base station 27 to send the sip front-end device control request 80 to the target device 28 through the sip dedicated line based on the sip protocol.
The data server sends an sip frontend device control request 80 to the target device 28 through the target 5G base station 27 based on the sip protocol based on the target device identification and the target device access address obtained from the frontend device address storage unit. After receiving the request, the target device 28 determines whether the front-end pan/tilt head or the front-end camera performs a corresponding control operation according to the specific content of the request. When the request relates to the focal length adjustment of the lens and the zoom-in and zoom-out adjustment of the picture, the front-end camera executes corresponding operation, and when the request relates to the adjustment of rotation, preset positions and the like, the front-end holder executes corresponding operation. The traffic police terminal sends different types of control requests, so that the front-end equipment executes different control operations, multi-azimuth video data can be acquired, the accuracy of illegal data identification is improved, and the video acquisition requirements under different scenes are met.
In the above embodiment, the http front-end device control request 21 sent by the traffic police terminal is a no-response request, that is, after the request is sent to the target device 28, the target device 28 directly responds and executes the corresponding control operation, without returning a control response to the traffic police terminal. However, the present application is not limited to this, and the traffic police terminal may also make the sent http front-end device control request 21 a request with response, and at this time, after sending the sip front-end device control request 80 to the target device 28 based on the sip protocol, the method further includes the following steps: receiving a control response generated after the target device 28 returned by the target 5G base station 27 through the long connection performs a control operation; and returning a control response to the traffic police terminal based on the http protocol.
When the http front-end device control request 21 is a response request, a message synchronizer (not shown in the figure) is further arranged in the data server, and after the sip request generator 25 generates the sip front-end device control request 80, the message synchronizer synchronizes the http front-end device control request 21 and the sip front-end device control request 80 and then sends the synchronized http front-end device control request and the sip front-end device control request 80 to the sip gateway 26. Specifically, in the message synchronizer, generating an http state identifier corresponding to the http front-end device control request 21, an sip state identifier corresponding to the sip front-end device control request 80, and synchronizing the identification content of the http state identifier and the sip state identifier in real time, wherein the identification content comprises a control request overtime state and a control request completion state, then based on the sip protocol, sending the sip front-end device control request 80 to the target device corresponding to the target device identifier through the target 5G base station 27, receiving the sip front-end device control response returned by the target device based on the sip protocol through the target 5G base station 27, synchronously updating the identification content of the sip state identifier and the http state identifier according to the content of the sip front-end device control response, and generating the http front-end device control response corresponding to the http state identifier when the identification content of the http state identifier meets the preset condition, and finally returning an http front-end equipment control response to the traffic police terminal based on the http protocol.
After the identification content of the sip state identification and the http state identification is updated, if the identification content of the http state identification meets a preset condition, the data server generates a corresponding http front-end device control response, and the response content of the http front-end device control response is the same as the response content of the sip front-end device control response. And when the identification content of the http state identification is one of the control request and the control request, generating an http front-end device control response corresponding to the http state identification.
And after generating the http front-end equipment control response, returning the http front-end equipment control response to the traffic police terminal, and determining whether a new video picture shot after the front-end equipment executes the control operation can be watched by the traffic police terminal based on the condition that the control request is completed or exceeds the time limit in the received control response. When the control request is finished, the traffic police terminal can obtain a new video picture shot by the target equipment so as to obtain more information quantity of the monitoring site, and when the control request is overtime, the traffic police terminal can send the control request again or analyze the reason of the overtime, find the reason of the overtime and send the control request after the reason is solved. The whole control request and response receiving process of the traffic police terminal can be completed only on a web browser or a platform, the operation is simple and easy, and the control efficiency of front-end equipment is improved.
As shown in fig. 7, in an initial stage, a picture shot by a target device and seen in a video area 500 of a picture display page shot by a front-end device of a traffic police terminal includes a sidewalk, pedestrians and vehicles, wherein only a part of the sidewalk can be shot due to the visual angle limitation of the target device, when information of another part of the sidewalk, surrounding pedestrians and vehicles is desired to be obtained, the traffic police terminal sends a http front-end device control request based on an http protocol, controls the target device to rotate, and makes a target camera rotate upward, at this time, the picture obtained in the video area 500 is as shown in fig. 8, the pictures in fig. 7 and fig. 8 are combined, the shot range is wider, whether a vehicle or a pedestrian has a traffic violation in the current scene can be completely seen, and thus the identification capability of the violation data is improved. In addition, when illegal vehicles or pedestrians need to be further tracked and identified, the traffic police terminal can send out an http front-end device control request again, corresponding control operations such as focal length adjustment and picture amplification are carried out, the whole process can be completed only on a webpage browser or a platform, the time from the request initiation to the target device execution operation is short, and great convenience is brought to locking and tracking of illegal objects.
On the basis of the method in the foregoing embodiment, the present embodiment will be further described from the perspective of a front-end device control apparatus, please refer to fig. 9, where fig. 9 specifically describes the front-end device control apparatus provided in the present embodiment, which may include:
the receiving module 110 is configured to receive an http front-end device control request sent by the traffic police terminal based on an http protocol; the http front-end equipment control request comprises a control selection page which comprises a front-end equipment selection control and an operation instruction selection control and is displayed by the traffic police terminal after receiving a trigger instruction for controlling the front-end equipment, target equipment is determined according to the selection operation aiming at the front-end equipment selection control, a first format operation instruction is determined according to the selection operation aiming at the operation instruction selection control, and the http front-end equipment control request conforming to an http protocol is generated according to the target equipment identification of the target equipment and the first format operation instruction;
the format conversion module 120 is configured to obtain a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table;
a request generating module 130, configured to generate a sip front-end device control request according to the target device identifier and the second format operation instruction;
a determining module 140, configured to determine, according to the target device identifier, the target device and a target 5G base station corresponding to the target device, and determine a long connection with the target 5G base station;
a sending module 150, configured to send an sip front-end device control request to the target 5G base station through the long connection, so as to control the target 5G base station to send the sip front-end device control request to the target device through an sip dedicated line based on an sip protocol, so that the target device responds and executes a corresponding control operation.
In one embodiment, the receiving module 110 includes:
the target equipment determining unit is used for generating a front-end equipment catalog according to the triggering operation aiming at the front-end equipment selection control and determining target equipment according to the selection operation aiming at the front-end equipment in the front-end equipment catalog;
and the operation instruction determining unit is used for generating an operation instruction directory according to the trigger operation aiming at the operation instruction selection control and determining a first format operation instruction according to the selection operation aiming at the operation instruction in the operation instruction directory.
In an embodiment, the first format operation instruction includes a rotation operation, a lens control operation, a termination operation, a preset bit operation, and a locking operation, and the format conversion module 120 specifically includes:
the first generating unit is used for generating an operation terminal of a second format operation instruction according to an operation command corresponding to the first format operation instruction;
the second generating unit is used for generating an operation code of the second-format operation instruction according to the operation sub-command corresponding to the operation command;
the third generating unit is used for generating a check bit of the second-format operation instruction according to the operation wharf and the operation code;
and the first combination unit is used for combining the operation wharf, the operation code and the check bit to generate a second format operation instruction.
In an embodiment, the second generating unit is configured to classify the plurality of operation subcommands corresponding to the operation command, determine the positions of the operation codes corresponding to the various operation subcommands in the second format operation instruction according to a preset sequence, and sequentially generate the operation code corresponding to each operation subcommand.
In an embodiment, the format conversion module 120 is configured to, after obtaining the first format operation instruction, search a preset format conversion table to obtain an operation terminal corresponding to the operation command of the first format operation instruction and an operation code corresponding to the operation subcommand, calculate to obtain a check bit corresponding to the first format operation instruction, and generate the second format operation instruction according to a search result and a calculation result.
In an embodiment, the request generating module 130 specifically includes:
the fourth generating unit is used for generating a sip request header according to the target equipment identifier;
the fifth generating unit is used for generating a sip request message body according to the second format operation instruction;
and the second combination unit is used for combining the sip request header and the sip request message body to generate the sip front-end equipment control request.
In an embodiment, the fourth generating unit is configured to obtain, according to the target device identifier, a target device access address from the front-end device address storage unit; and generating a sip request header according to the access address of the target equipment.
In an embodiment, the front-end device control apparatus further includes a returning module, configured to receive a control response generated after the target device executes the control operation, where the control response is returned by the target 5G base station through the long connection; and returning a control response to the traffic police terminal based on the http protocol.
Different from the prior art, according to the front-end equipment control device provided by the application, the traffic police terminal sends an http control request on a control selection page based on an http protocol and converts the http control request into an sip control request which can be identified by the front-end equipment, and when the request is sent on the control selection page, the corresponding target equipment and the first format operation instruction can be directly selected according to selection operation, so that the operation is simple, the whole control process can be completed by the traffic police terminal only on a web browser or a platform, and the operation is simple and easy; in addition, the information transmission is carried out through the 5G base station, the speed is high, and the control efficiency of the front-end equipment is improved.
Accordingly, embodiments of the present application also provide an electronic device, as shown in fig. 10, which may include components such as a radio frequency circuit 901, a memory 902 including one or more computer-readable storage media, an input unit 903, a display unit 904, a sensor 905, an audio circuit 906, a WiFi module 907, a processor 908 including one or more processing cores, and a power supply 909. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 10 does not constitute a limitation of the electronic device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. Wherein:
The display unit 904 may be used to display information input by or provided to a user as well as various graphical user interfaces of the electronic device, which may be made up of graphics, text, icons, video, and any combination thereof.
The electronic device can also include at least one sensor 905, such as a light sensor, motion sensor, and other sensors. The audio circuitry 906 includes a speaker that can provide an audio interface between a user and the electronic device.
WiFi belongs to short-distance wireless transmission technology, and the electronic equipment can help a user to receive and send emails, browse webpages, access streaming media and the like through the WiFi module 907, and provides wireless broadband internet access for the user. Although fig. 10 shows the WiFi module 907, it is understood that it does not belong to the essential constitution of the electronic device, and may be omitted entirely as needed within the scope not changing the essence of the application.
The processor 908 is the control center of the electronic device, connects various parts of the entire handset using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 902 and calling data stored in the memory 902, thereby performing overall monitoring of the handset.
The electronic device also includes a power supply 909 (e.g., a battery) that provides power to the various components, which may preferably be logically coupled to the processor 908 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the electronic device may also include a camera, a bluetooth module, etc., which are not described herein in detail. Specifically, in this embodiment, the processor 908 in the electronic device loads an executable file corresponding to a process of one or more application programs into the memory 902 according to the following instructions, and the processor 908 runs the application programs stored in the memory 902, so as to implement the following functions:
receiving an http front-end equipment control request sent by a traffic police terminal based on an http protocol; the http front-end equipment control request comprises a control selection page which comprises a front-end equipment selection control and an operation instruction selection control and is displayed by the traffic police terminal after receiving a trigger instruction for controlling the front-end equipment, target equipment is determined according to the selection operation aiming at the front-end equipment selection control, a first format operation instruction is determined according to the selection operation aiming at the operation instruction selection control, and the http front-end equipment control request conforming to an http protocol is generated according to a target equipment identification of the target equipment and the first format operation instruction; obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table; generating a sip front-end device control request according to the target device identification and the second format operation instruction; determining target equipment and a target 5G base station corresponding to the target equipment according to the target equipment identifier, and determining long connection with the target 5G base station; and sending an sip front-end equipment control request to the target 5G base station through the long connection so as to control the target 5G base station to send the sip front-end equipment control request to the target equipment through an sip private line based on an sip protocol, so that the target equipment responds and executes corresponding control operation.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description, and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium, in which a plurality of instructions are stored, and the instructions can be loaded by a processor to implement the following functions:
receiving an http front-end equipment control request sent by a traffic police terminal based on an http protocol; the http front-end equipment control request comprises a control selection page which comprises a front-end equipment selection control and an operation instruction selection control and is displayed by the traffic police terminal after receiving a trigger instruction for controlling the front-end equipment, target equipment is determined according to the selection operation aiming at the front-end equipment selection control, a first format operation instruction is determined according to the selection operation aiming at the operation instruction selection control, and the http front-end equipment control request conforming to an http protocol is generated according to a target equipment identification of the target equipment and the first format operation instruction; obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table; generating a sip front-end device control request according to the target device identification and the second format operation instruction; determining target equipment and a target 5G base station corresponding to the target equipment according to the target equipment identifier, and determining long connection with the target 5G base station; and sending an sip front-end equipment control request to the target 5G base station through the long connection so as to control the target 5G base station to send the sip front-end equipment control request to the target equipment through an sip private line based on an sip protocol, so that the target equipment responds and executes corresponding control operation.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Since the instructions stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by any method provided in the embodiments of the present application can be achieved, for details, see the foregoing embodiments, and are not described herein again.
The foregoing describes in detail a method and an apparatus for controlling front-end devices provided in an embodiment of the present application, and a specific example is applied in the detailed description to explain the principle and the implementation of the present application, and the description of the foregoing embodiment is only used to help understand the technical solution and the core idea of the present application; those of ordinary skill in the art will understand that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure as defined by the appended claims.
Claims (10)
1. A front-end equipment control method is characterized by being applicable to a smart traffic system, the smart traffic system comprises front-end equipment, a data server, a 5G base station and a traffic police terminal, the front-end equipment is connected with the 5G base station based on an sip protocol, the traffic police terminal is accessed to the data server based on an http protocol, the front-end equipment control method is applied to the data server, and the front-end equipment control method comprises the following steps:
receiving an http front-end equipment control request sent by the traffic police terminal based on an http protocol; the http front-end equipment control request comprises a control selection page comprising a front-end equipment selection control and an operation instruction selection control, which is displayed by the traffic police terminal after receiving a trigger instruction for controlling the front-end equipment, target equipment is determined according to the selection operation aiming at the front-end equipment selection control, a first format operation instruction is determined according to the selection operation aiming at the operation instruction selection control, and the http front-end equipment control request conforming to an http protocol is generated according to a target equipment identifier of the target equipment and the first format operation instruction;
obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table;
generating a sip front-end device control request according to the target device identification and the second format operation instruction;
determining target equipment and a target 5G base station corresponding to the target equipment according to the target equipment identification, and determining long connection with the target 5G base station;
and sending the sip front-end equipment control request to the target 5G base station through the long connection so as to control the target 5G base station to send the sip front-end equipment control request to the target equipment through a sip private line based on a sip protocol, so that the target equipment responds and executes corresponding control operation.
2. The front-end device control method according to claim 1, wherein the step of determining a target device according to the selection operation for the front-end device selection control, and determining a first format operation instruction according to the selection operation for the operation instruction selection control includes:
generating a front-end equipment directory according to the triggering operation aiming at the front-end equipment selection control, and determining target equipment according to the selection operation aiming at the front-end equipment in the front-end equipment directory;
and generating an operation instruction directory according to the trigger operation aiming at the operation instruction selection control, and determining a first format operation instruction according to the selection operation aiming at the operation instruction in the operation instruction directory.
3. The front-end device control method according to claim 1, wherein the first format operation command includes a rotation operation, a lens control operation, a termination operation, a preset bit operation, and a lock operation, and the step of obtaining a second format operation command corresponding to the first format operation command according to the first format operation command and a preset format conversion table includes:
generating an operation terminal of the second format operation instruction according to the operation command corresponding to the first format operation instruction;
generating an operation code of the second format operation instruction according to the operation sub-command corresponding to the operation command;
generating a check bit of the second-format operation instruction according to the operation wharf and the operation code;
and combining the operation terminal, the operation code and the check bit to generate the second format operation instruction.
4. The front-end device control method according to claim 3, wherein the step of generating the operation code corresponding to the second format operation instruction according to the operation sub-command corresponding to the operation command includes:
and classifying the plurality of operation subcommands corresponding to the operation command, determining the positions of operation codes corresponding to various operation subcommands in the second format operation instruction according to a preset sequence, and sequentially generating the operation codes corresponding to each operation subcommand.
5. The front-end device control method according to claim 1, wherein the step of obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table includes:
after the first format operation instruction is obtained, a preset format conversion table is searched to obtain an operation wharf corresponding to the operation command of the first format operation instruction and an operation code corresponding to the operation subcommand, a check bit corresponding to the first format operation instruction is obtained through calculation, and the second format operation instruction is generated according to the search result and the calculation result.
6. The front-end device control method according to claim 1, wherein the step of generating a sip front-end device control request according to the target device identifier and the second format operation instruction comprises:
generating a sip request header according to the target equipment identifier;
generating a sip request message body according to the second format operation instruction;
and combining the sip request header and the sip request message body to generate the sip front-end equipment control request.
7. The front-end device control method of claim 6, wherein the step of generating a sip request header based on the target device identification comprises:
acquiring an access address of the target equipment from a front-end equipment address storage unit according to the identification of the target equipment;
and generating a sip request header according to the target equipment access address.
8. The front-end device control method of claim 1, wherein the step of causing the target device to respond and perform a corresponding control operation is followed by:
receiving a control response generated after the target equipment executes the control operation and returned by the target 5G base station through the long connection;
and returning the control response to the traffic police terminal based on the http protocol.
9. The utility model provides a front-end equipment controlling means, its characterized in that is applicable to wisdom traffic system, wisdom traffic system includes front-end equipment, data server, 5G basic station and traffic police terminal, front-end equipment connects based on the sip agreement 5G basic station, the traffic police terminal inserts based on the http protocol data server, front-end equipment controlling means sets up in the data server, front-end equipment controlling means includes:
the receiving module is used for receiving an http front-end equipment control request sent by the traffic police terminal based on an http protocol; the http front-end equipment control request comprises a control selection page comprising a front-end equipment selection control and an operation instruction selection control, which is displayed by the traffic police terminal after receiving a trigger instruction for controlling the front-end equipment, target equipment is determined according to the selection operation aiming at the front-end equipment selection control, a first format operation instruction is determined according to the selection operation aiming at the operation instruction selection control, and the http front-end equipment control request conforming to an http protocol is generated according to a target equipment identifier of the target equipment and the first format operation instruction;
the format conversion module is used for obtaining a second format operation instruction corresponding to the first format operation instruction according to the first format operation instruction and a preset format conversion table;
the request generation module is used for generating a sip front-end equipment control request according to the target equipment identification and the second format operation instruction;
a determining module, configured to determine, according to the target device identifier, a target device and a target 5G base station corresponding to the target device, and determine a long connection with the target 5G base station;
a sending module, configured to send the sip front-end device control request to the target 5G base station through the long connection, so as to control the target 5G base station to send the sip front-end device control request to the target device through a sip dedicated line based on a sip protocol, so that the target device responds and executes a corresponding control operation.
10. The front-end device control apparatus according to claim 9, wherein the first format operation instruction includes a rotation operation, a lens control operation, a termination operation, a preset bit operation, and a lock operation, and the format conversion module includes:
the first generating unit is used for generating an operation terminal of the second format operation instruction according to the operation command corresponding to the first format operation instruction;
the second generating unit is used for generating an operation code of the second-format operation instruction according to the operation sub-command corresponding to the operation command;
the third generating unit is used for generating a check bit of the second-format operation instruction according to the operation wharf and the operation code;
and the first combination unit is used for combining the operation wharf, the operation code and the check bit to generate the second format operation instruction.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011069029.7A CN112217813A (en) | 2020-09-30 | 2020-09-30 | Front-end equipment control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011069029.7A CN112217813A (en) | 2020-09-30 | 2020-09-30 | Front-end equipment control method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112217813A true CN112217813A (en) | 2021-01-12 |
Family
ID=74052790
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011069029.7A Pending CN112217813A (en) | 2020-09-30 | 2020-09-30 | Front-end equipment control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112217813A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114050988A (en) * | 2022-01-11 | 2022-02-15 | 成都森和电子科技有限公司 | Remote testing method, system and interactive system based on multi-network-port gateway |
CN114727023A (en) * | 2022-06-07 | 2022-07-08 | 杭州星犀科技有限公司 | Method and system for adjusting camera parameters |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1913461A (en) * | 2006-08-30 | 2007-02-14 | 北京天地互连信息技术有限公司 | Remote vedio monitoring system based on next generation interconnection network and its implementing method |
EP3389230A2 (en) * | 2017-04-14 | 2018-10-17 | Samsung Electronics Co., Ltd. | System for providing dialog content |
CN109788247A (en) * | 2018-12-25 | 2019-05-21 | 视联动力信息技术股份有限公司 | A kind of method and apparatus monitoring instruction identification |
CN110557612A (en) * | 2019-08-30 | 2019-12-10 | 视联动力信息技术股份有限公司 | control method of monitoring equipment and video networking system |
-
2020
- 2020-09-30 CN CN202011069029.7A patent/CN112217813A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1913461A (en) * | 2006-08-30 | 2007-02-14 | 北京天地互连信息技术有限公司 | Remote vedio monitoring system based on next generation interconnection network and its implementing method |
EP3389230A2 (en) * | 2017-04-14 | 2018-10-17 | Samsung Electronics Co., Ltd. | System for providing dialog content |
CN109788247A (en) * | 2018-12-25 | 2019-05-21 | 视联动力信息技术股份有限公司 | A kind of method and apparatus monitoring instruction identification |
CN110557612A (en) * | 2019-08-30 | 2019-12-10 | 视联动力信息技术股份有限公司 | control method of monitoring equipment and video networking system |
Non-Patent Citations (3)
Title |
---|
代贝等: "基于SIP的手机视频监控系统设计", 《数字通信》 * |
史刚刚: "《基于智能视频分析技术的油田无人值守站点系统的设计和实现》", 《中国优秀博硕士学位论文全文数据库(硕士)工程科技I辑》 * |
许世杰等: "《基于SIP的多区域监控融合技术研究与实现》", 《计算机科学与技术》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114050988A (en) * | 2022-01-11 | 2022-02-15 | 成都森和电子科技有限公司 | Remote testing method, system and interactive system based on multi-network-port gateway |
CN114050988B (en) * | 2022-01-11 | 2022-05-06 | 成都森和电子科技有限公司 | Remote testing method, system and interactive system based on multi-network-port gateway |
CN114727023A (en) * | 2022-06-07 | 2022-07-08 | 杭州星犀科技有限公司 | Method and system for adjusting camera parameters |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
USRE47842E1 (en) | System and method of identifying networked device for establishing a P2P connection | |
US9756292B2 (en) | System and method for distributing digital video streams from remote video surveillance cameras to display devices | |
KR101515977B1 (en) | System for providing video information using IP camera in cloud configuration method thereof | |
CN111800521A (en) | Front-end equipment control method and device | |
US9801049B2 (en) | Method and system for continuously forwarding monitored information of machine-to-machine devices by a subscriber's registered terminals to a designated user terminal | |
US20190051147A1 (en) | Remote control method, apparatus, terminal device, and computer readable storage medium | |
KR101099838B1 (en) | Remote a/s method using video phone call between computer and mobile phone | |
CN110855680B (en) | Internet of things equipment docking method and device | |
CN106131407A (en) | Shooting synchronous method and synchronizer | |
CN111935177B (en) | Service control method and device | |
CN112217813A (en) | Front-end equipment control method and device | |
CN111798664A (en) | Illegal data identification method and device and electronic equipment | |
CN112187810A (en) | Front-end equipment control method and device | |
CN108664847B (en) | Object identification method, device and system | |
JP2019125068A (en) | Device cooperation server and device cooperation program and decentralized resource utilization system | |
CN112187941A (en) | Front-end equipment control method and device | |
CN103716528A (en) | PTZ camera remote control system and method based on touch terminal | |
CN112367296B (en) | Service control method and device | |
CN112188245B (en) | Front-end camera real-time video-on-demand method and device and electronic equipment | |
CN112188244B (en) | Front-end camera real-time video-on-demand method and device and electronic equipment | |
CN116778370A (en) | Event processing method, device, equipment, storage medium and program product | |
CN112202786B (en) | Illegal data identification method and device and electronic equipment | |
CN112367297A (en) | Service control method and device | |
KR20180126800A (en) | Electric power solution management method using augmented realitybased on position | |
CN112188243B (en) | Front-end camera real-time video-on-demand method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210112 |
|
RJ01 | Rejection of invention patent application after publication |