Holder driving equipment configuration method, device and system, electronic equipment and carrier

Obtaining and sending configuration instructions through the client of the PTZ configuration system realizes customized configuration of PTZ drive equipment, solves the problem of low configuration efficiency in the existing technology, and improves the production efficiency and ease of operation of roadside integrated machine equipment. sex.

CN118733164APending Publication Date: 2024-10-01ZHIDAO NETWORK TECH (BEIJING) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410707134.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The default configuration of existing PTZ drive equipment cannot meet the overall design and application requirements of roadside all-in-one equipment, resulting in low production efficiency.

Method used

Obtain the current serial port information of the client and the configuration information of the PTZ driver device through the client of the PTZ configuration system, generate and send configuration instructions, determine the configuration results based on the response results, and realize customized configuration of the PTZ driver device.

Benefits of technology

It realizes one-click configuration of PTZ drive equipment, improves the production efficiency of roadside integrated machine equipment, simplifies operations, and is suitable for parameter configuration of any PTZ drive equipment on the production line.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118733164A_ABST
    Figure CN118733164A_ABST
Patent Text Reader

Abstract

The invention discloses a cloud deck driving equipment configuration method, device and system, electronic equipment and a carrier, cloud deck driving equipment is applied to roadside all-in-one machine equipment, the method is executed by a client of the cloud deck configuration system, and the method comprises the steps of obtaining current serial port information of the client and configuration information of the cloud deck driving equipment; generating a configuration instruction of the holder driving equipment according to the current serial port information of the client and the configuration information of the holder driving equipment, and sending the configuration instruction to the holder driving equipment; and determining a configuration result of the holder driving equipment according to a response result of the holder driving equipment to the configuration instruction. The method is suitable for a parameter configuration stage before the assembly of the holder driving equipment in the roadside all-in-one machine equipment, one-key configuration of any holder driving equipment on a production line can be realized through the independently deployed client of the holder configuration system, the requirements of complete machine design and application of the roadside all-in-one machine equipment are met, and the cost is reduced. And the production efficiency of the roadside all-in-one machine equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of roadside integrated equipment production, and in particular to a method, device, system, electronic equipment and carrier for configuring a pan-tilt drive device. Background Art

[0002] The roadside all-in-one device is a new type of V2X roadside product. It integrates multiple modules in an integrated manner, such as cameras, millimeter-wave radars, GPS, edge computers, cooling fans, etc. Multiple modules are integrated into the box and fixed on the crossbar on the side of the road to realize road perception, monitoring, communication, data processing and other functions.

[0003] When designing the roadside integrated device, a gimbal control camera function was added through a hardware solution. The gimbal drive device and the edge computer (MEC) are connected to each other through the RS485 bus. The rotation of the gimbal drive device is controlled by the edge computer to adjust the camera angle.

[0004] Taking into account the actual deployment scenarios of roadside integrated equipment, multiple pan-tilt drive devices are often assembled on a roadside integrated equipment to realize the drive control of different cameras. However, the pan-tilt drive devices currently provided by manufacturers are all default configurations. This default configuration method cannot meet the needs of the overall design and application of roadside integrated equipment. Summary of the invention

[0005] The embodiments of the present application provide a method, apparatus, system, electronic device and carrier for configuring a pan-tilt drive device to achieve customized configuration of the pan-tilt drive device and meet the requirements of overall design and application of roadside integrated device.

[0006] The present application embodiment adopts the following technical solutions:

[0007] In a first aspect, an embodiment of the present application provides a method for configuring a pan-tilt drive device, wherein the pan-tilt drive device is applied to a roadside integrated device, and the method for configuring the pan-tilt drive device is executed by a client of a pan-tilt configuration system, and the method for configuring the pan-tilt drive device includes:

[0008] Get the current serial port information of the client and the configuration information of the PTZ driver device;

[0009] Generate a configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and send the configuration instruction to the pan-tilt drive device;

[0010] The configuration result of the pan / tilt drive device is determined according to the response result of the pan / tilt drive device to the configuration instruction.

[0011] Optionally, the obtaining of the current serial port information of the client and the configuration information of the PTZ drive device includes:

[0012] Display the configuration interface of the PTZ driver device;

[0013] Obtaining the current serial port information of the client and the configuration information of the pan-tilt drive device through the configuration interface of the pan-tilt drive device;

[0014] Among them, the configuration interface of the pan-tilt drive device is provided with function controls, and the function controls include at least one of a serial port information scanning control, a configuration control and a verification control.

[0015] Optionally, obtaining the current serial port information of the client includes:

[0016] When the client is initialized and started, scan all serial port information of the client and determine the current serial port information of the client according to the access status of all serial ports;

[0017] When the client is running, monitor the user's operation events on the serial port information scanning control;

[0018] When an operation event of the user on the serial port information scanning control is monitored, the current serial port information of the client is re-determined.

[0019] Optionally, the configuration information of the pan-tilt drive device includes a device number, the configuration control includes a device number configuration control, and obtaining the configuration information of the pan-tilt drive device includes:

[0020] Displaying all the device numbers to be allocated through the device number configuration control so that the user can select the device number to be allocated;

[0021] Get the device number selected by the user.

[0022] Optionally, generating a configuration instruction of a pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and sending the instruction to the pan-tilt drive device comprises:

[0023] Monitoring the operation events of the user on the device number configuration control;

[0024] When monitoring the operation event of the user on the device number configuration control, the configuration instruction of the pan-tilt drive device is generated according to the current serial port information of the client and the configuration information of the pan-tilt drive device and sent to the pan-tilt drive device.

[0025] Optionally, generating a configuration instruction of a pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and sending the instruction to the pan-tilt drive device comprises:

[0026] The current serial port information of the client and the configuration information of the PTZ drive device are respectively parsed to obtain the parsed current serial port information and the parsed configuration information;

[0027] Generate a checksum value using a preset checksum algorithm based on the parsed current serial port information and the parsed configuration information;

[0028] Concatenate the check value with the parsed current serial port information and the parsed configuration information;

[0029] A configuration instruction of the pan / tilt drive device is generated according to the splicing result and sent to the pan / tilt drive device.

[0030] Optionally, determining the configuration result of the pan / tilt drive device according to a response result of the pan / tilt drive device to the configuration instruction includes:

[0031] Determine whether the pan / tilt drive device has data returned according to the response result of the pan / tilt drive device to the configuration instruction;

[0032] If yes, then determining that the configuration result of the pan / tilt drive device is successful;

[0033] Otherwise, it is determined that the configuration result of the pan / tilt drive device is a configuration failure and reconfiguration is performed.

[0034] Optionally, determining the configuration result of the pan / tilt drive device according to a response result of the pan / tilt drive device to the configuration instruction includes:

[0035] When the PTZ driving device returns data, monitoring the user's operation events on the verification control;

[0036] When monitoring an operation event of the user on the verification control, sending a configuration information acquisition instruction to the PTZ driving device;

[0037] Receiving a response result of the PTZ driving device to the configuration information acquisition instruction;

[0038] Verify whether the pan / tilt drive device is configured successfully according to the response result of the pan / tilt drive device to the configuration information acquisition instruction.

[0039] In a second aspect, an embodiment of the present application further provides a pan-tilt drive device configuration device, wherein the pan-tilt drive device is applied to a roadside integrated device, the pan-tilt drive device configuration device is applied to a client of a pan-tilt configuration system, and the pan-tilt drive device configuration device includes:

[0040] The acquisition unit is used to obtain the current serial port information of the client and the configuration information of the PTZ drive device;

[0041] A configuration unit, configured to generate a configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and send the configuration instruction to the pan-tilt drive device;

[0042] A determination unit is used to determine the configuration result of the pan-tilt drive device according to the response result of the pan-tilt drive device to the configuration instruction.

[0043] In a third aspect, an embodiment of the present application further provides a gimbal configuration system, wherein the gimbal configuration system includes a client, and the client is used to execute any of the aforementioned gimbal drive device configuration methods.

[0044] In a third aspect, an embodiment of the present application further provides an electronic device, including:

[0045] Processor; and

[0046] A memory arranged to store computer executable instructions, which, when executed, cause the processor to execute any of the aforementioned gimbal drive device configuration methods.

[0047] In a fourth aspect, an embodiment of the present application further provides a carrier, which is a computer-readable storage medium, and the computer-readable storage medium stores one or more programs, which, when executed by an electronic device including multiple application programs, enables the electronic device to execute any of the aforementioned gimbal drive device configuration methods.

[0048] At least one of the above technical solutions adopted in the embodiments of the present application can achieve the following beneficial effects: the pan-tilt drive device of the embodiments of the present application is applied to the roadside integrated device, and the pan-tilt drive device configuration method is executed by the client of the pan-tilt configuration system, first obtaining the current serial port information of the client and the configuration information of the pan-tilt drive device; then generating the configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and sending it to the pan-tilt drive device; finally determining the configuration result of the pan-tilt drive device according to the response result of the pan-tilt drive device to the configuration instruction. The pan-tilt drive device configuration method of the embodiments of the present application is applicable to the parameter configuration stage before the pan-tilt drive device in the roadside integrated device is assembled. Through the client of the independently deployed pan-tilt configuration system, one-click configuration of any pan-tilt drive device on the production line can be realized, which meets the requirements of the overall design and application of the roadside integrated device and improves the production efficiency of the roadside integrated device. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0050] Figure 1 A schematic diagram of a flow chart of a method for configuring a pan / tilt drive device in an embodiment of the present application;

[0051] Figure 2 This is a schematic diagram of the effect of a configuration interface in an embodiment of the present application;

[0052] Figure 3 This is a schematic diagram of a configuration process of a pan / tilt drive device in an embodiment of the present application;

[0053] Figure 4 This is a structural schematic diagram of a pan / tilt drive device configuration device in an embodiment of the present application;

[0054] Figure 5 It is a schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0056] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.

[0057] The present application embodiment provides a method for configuring a pan / tilt drive device, such as Figure 1 As shown, a flow chart of a method for configuring a pan-tilt drive device in an embodiment of the present application is provided. The pan-tilt drive device is applied to a roadside integrated device. The pan-tilt drive device configuration method is executed by a client of a pan-tilt configuration system. The pan-tilt drive device configuration method includes at least the following steps S110 to S130:

[0058] Step S110, obtaining the current serial port information of the client and obtaining the configuration information of the PTZ drive device.

[0059] The pan-tilt drive device of the embodiment of the present application refers to a device used in a roadside integrated device. The pan-tilt drive device configuration method is executed by the client of the pan-tilt configuration system and is applicable to the parameter configuration stage of the pan-tilt drive device in the roadside integrated device before assembly.

[0060] When configuring the parameters of the gimbal driver device, it is necessary to first obtain the client's current serial port information and the configuration information of the gimbal driver device. A communication connection can be established between the client and the gimbal driver device through a serial port line. Since there may be multiple serial ports set on the client, it is necessary to first determine the serial port information currently used by the client to connect to the gimbal driver device.

[0061] The configuration information of the gimbal drive device may include basic configuration information and custom configuration information. The basic configuration information can be applied to any gimbal drive device, and the custom configuration information needs to be customized for different gimbal drive devices according to actual needs. Of course, the specific dimensions of the configuration information can be flexibly set by technical personnel in this field in combination with the application scenarios of the roadside integrated device, and no specific limitation is made here.

[0062] Step S120: Generate a configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and send the configuration instruction to the pan-tilt drive device.

[0063] The configuration information obtained in the above steps is the configuration information set by the user for the current gimbal driver device, and the current serial port information is mainly used to ensure that the generated configuration instructions conform to the current serial port information. Therefore, after obtaining the current serial port information of the client and the configuration information of the gimbal driver device currently connected to the client, the configuration instructions of the gimbal driver device can be generated according to the current serial port information and the configuration information of the gimbal driver device, and the configuration instructions can be sent to the gimbal driver device, thereby realizing the parameter configuration of the gimbal driver device.

[0064] Step S130: determining the configuration result of the pan / tilt drive device according to the response result of the pan / tilt drive device to the configuration instruction.

[0065] After sending the configuration instruction to the gimbal drive device, it is also necessary to determine the response result of the gimbal drive device to the configuration instruction, so as to determine whether the configuration is successful based on the response of the gimbal drive device to the configuration instruction. If the configuration is successful, the parameter configuration of the next gimbal drive device can be performed. If the configuration fails, it can be reconfigured.

[0066] The pan-tilt drive device configuration method of the embodiment of the present application is applicable to the parameter configuration stage before the pan-tilt drive device in the roadside integrated device is assembled. Through the client of the independently deployed pan-tilt configuration system, one-click configuration of any pan-tilt drive device on the production line can be achieved, which meets the requirements of the overall design and application of the roadside integrated device, improves the production efficiency of the roadside integrated device, and is simple and easy to use for the production line workers.

[0067] In some embodiments of the present application, during the parameter configuration stage of the gimbal drive device, the client only connects to one gimbal drive device at a time, thereby ensuring the accuracy of the gimbal parameter configuration. Moreover, since the parameter configuration method of the embodiments of the present application adopts one-click configuration, plug-and-play configuration can be achieved for the gimbal drive device, thereby ensuring the efficiency of the parameter configuration. It is very friendly to production line workers, and the operation is simple and easy to use.

[0068] In some embodiments of the present application, on the one hand, the desktop client can be created by using PyQt5 development technology and Qt Desginer tools, .ui files can be created in Qt Designer, and the Python serial port module and Modbus RTU protocol can be used to realize data communication between the client and the PTZ driver device, and the client can configure the PTZ driver device by sending corresponding configuration instructions. On the other hand, the client can connect to the PTZ driver device through an RS232 serial line and use an RS485 converter to ensure normal data communication on the hardware link.

[0069] In some embodiments of the present application, obtaining the current serial port information of the client and the configuration information of the gimbal drive device includes: displaying the configuration interface of the gimbal drive device; obtaining the current serial port information of the client and the configuration information of the gimbal drive device through the configuration interface of the gimbal drive device; wherein the configuration interface of the gimbal drive device is provided with function controls, and the function controls include at least one of a serial port information scanning control, a configuration control and a verification control.

[0070] The client of the embodiment of the present application can provide the configuration interface of the pan-tilt drive device to the production line workers to realize the visual parameter configuration. Based on the functional design of the client, a variety of functional controls can be set in the configuration interface of the pan-tilt drive device, such as serial port information scanning controls, configuration controls, and verification controls. The serial port information scanning control is mainly used to scan the current serial port information of the client, the configuration control is mainly used to realize the custom configuration of the pan-tilt drive information, and the verification control is mainly used to realize the verification of the configuration result of the pan-tilt drive information.

[0071] For the specific design of the above different types of functional controls, you can add controls such as label tags, comboBox drop-down selection boxes, and button buttons on the configuration interface canvas, and adjust the control size, style, etc. After the design is completed, use the pyuic tool to convert the ui file into a python code py file. Figure 2 As shown, a schematic diagram of the effect of a configuration interface in an embodiment of the present application is provided.

[0072] In some embodiments of the present application, obtaining the current serial port information of the client includes: when the client is initialized and started, scanning all serial port information of the client, and determining the current serial port information of the client based on the access status of all serial ports; when the client is running, monitoring the user's operation events on the serial port information scanning control; when monitoring the user's operation events on the serial port information scanning control, re-determining the current serial port information of the client.

[0073] When obtaining the current serial port information of the client, there are mainly two situations, one is the initialization startup of the client, and the other is the normal operation after startup. In the case of the initialization startup of the client, the client can automatically scan all serial port information, and determine the information of the serial port currently connected to the pan-tilt drive device based on the connection status of these serial ports and the pan-tilt drive device. In the case of normal operation after the client is started, since the client may have multiple serial ports, the serial port may be switched during actual use. When the serial port used changes, it is necessary to re-determine the currently used serial port information. Since the client is currently in the running state after startup, it will not automatically rescan. Therefore, a manual scanning function can be provided for production line workers. This can be achieved by providing a scan button on the configuration interface to monitor the user's operation event on the scan button. If the user clicks the scan button, the current serial port information of the client is scanned and displayed on the interface, thereby ensuring the correctness of subsequent configuration instructions.

[0074] In some embodiments of the present application, the configuration information of the gimbal drive device includes a device number, the configuration control includes a device number configuration control, and obtaining the configuration information of the gimbal drive device includes: displaying all device numbers to be assigned through the device number configuration control so that the user can select the device number to be assigned; and obtaining the device number selected by the user.

[0075] An important parameter for the configuration of the gimbal drive device is the device number of the gimbal drive device. For multiple gimbal drive devices to be assembled into a complete machine later, these gimbal drive devices need to be distinguishable in the dimension of the complete machine. For example, a roadside integrated device is deployed with four gimbal drive devices, and these four gimbal drive devices should have different device numbers.

[0076] Based on this, the configuration controls set in the embodiment of the present application may include a device number configuration control, which displays all device numbers to be assigned on the configuration interface through the device number configuration control, for example, through a drop-down box. The user can assign device numbers to the gimbal drive device based on all device numbers displayed on the configuration interface.

[0077] For example, the configuration interface currently displays all the device numbers to be assigned as 01, 02, 03, and 04. When the client connects to the first PTZ drive device, the user can choose to assign the number 01 to the first PTZ drive device. After the configuration is successful, the configuration interface can only display the remaining device numbers 02, 03, and 04 to be assigned, or the assigned number 01 can be set as unselectable. When the client connects to the second PTZ drive device, the user can choose to assign the number 02 to the second PTZ drive device, and so on, until the number assignment of the four PTZ drive devices is completed. These four PTZ drive devices will be assembled into a roadside integrated device later. When the fifth PTZ drive device is connected, the device numbers 01, 02, 03, and 04 to be assigned are displayed again, and this cycle is repeated until all PTZ drive devices are configured.

[0078] In some embodiments of the present application, generating the configuration instructions of the gimbal drive device according to the current serial port information of the client and the configuration information of the gimbal drive device and sending them to the gimbal drive device includes: monitoring the user's operation events on the device number configuration control; when monitoring the user's operation events on the device number configuration control, generating the configuration instructions of the gimbal drive device according to the current serial port information of the client and the configuration information of the gimbal drive device and sending them to the gimbal drive device.

[0079] The above-mentioned embodiment is a process of obtaining the configuration information of the configuration number. After obtaining the device number configured by the user, it is necessary to configure the device number configured by the user to the specific pan-tilt drive device. Therefore, the embodiment of the present application can further monitor the user's operation event on the device number configuration control. The device number configuration control can be, for example, a configuration button. If the user clicks the configuration button, a corresponding serial port configuration instruction is generated according to the device number configured by the user combined with the current serial port information, and the serial port configuration instruction is sent to the pan-tilt drive device, thereby realizing the configuration of the device number of the pan-tilt drive device. Since the device number is the unique identifier of the pan-tilt drive device in the whole machine, after configuration, multiple pan-tilt drive devices in the whole machine can be distinguished according to the device number, thereby providing support for the subsequent targeted control of the pan-tilt drive device.

[0080] In some embodiments of the present application, after obtaining the device number configured by the user, configuration information of other dimensions can be further obtained. These configuration information can be customized by the user in the configuration interface in the same way as the configuration number is obtained, or can be pre-set as basic configuration information without user configuration, such as the rotation speed of the pan-tilt drive device, configuration offline enablement and other parameters. Although these basic parameters of multiple pan-tilt drive devices may be the same, since the pan-tilt drive device provided by the manufacturer does not contain these parameters, they can also be configured to meet the needs of actual application scenarios. These parameters can be used together with the device number in the aforementioned embodiment to generate a unified configuration instruction and send it to the pan-tilt drive device, thereby realizing one-click configuration.

[0081] In some embodiments of the present application, generating the configuration instructions of the gimbal drive device according to the current serial port information of the client and the configuration information of the gimbal drive device and sending them to the gimbal drive device includes: respectively parsing the current serial port information of the client and the configuration information of the gimbal drive device to obtain the parsed current serial port information and the parsed configuration information; generating a verification value according to the parsed current serial port information and the parsed configuration information using a preset verification algorithm; splicing the verification value with the parsed current serial port information and the parsed configuration information; generating the configuration instructions of the gimbal drive device according to the splicing result and sending them to the gimbal drive device.

[0082] When generating configuration instructions, the embodiment of the present application can first parse the current serial port information of the client and the configuration information of the pan-tilt drive device, mainly performing numerical conversion on user-defined configuration information such as device number.

[0083] In order to ensure the security and correctness of the configuration, after obtaining the parsed configuration information, the embodiment of the present application can also use a preset verification algorithm to generate a verification value for verification. For example, a CRC verification method can be used to splice the parsed information and the verification value, and then generate a final configuration instruction based on the splicing result and send it to the gimbal drive device.

[0084] In some embodiments of the present application, determining the configuration result of the gimbal drive device according to the response result of the gimbal drive device to the configuration instruction includes: determining whether the gimbal drive device has data returned according to the response result of the gimbal drive device to the configuration instruction; if so, determining that the configuration result of the gimbal drive device is a successful configuration; otherwise, determining that the configuration result of the gimbal drive device is a failed configuration and reconfiguring is performed.

[0085] After the configuration instruction is sent to the gimbal driver device, in order to ensure the success of the configuration, you can first judge whether the configuration is successful based on the response result of the gimbal driver device to the configuration instruction. If the gimbal driver device responds to the configuration instruction, that is, data is returned, it can be considered that the configuration is successful. If the gimbal driver device does not respond to the configuration instruction, that is, no data is returned, it is considered that the configuration has failed and can be reconfigured.

[0086] In some embodiments of the present application, determining the configuration result of the gimbal drive device based on the response result of the gimbal drive device to the configuration instruction includes: when the gimbal drive device has data returned, monitoring the user's operation events on the verification control; when monitoring the user's operation events on the verification control, sending a configuration information acquisition instruction to the gimbal drive device; receiving the response result of the gimbal drive device to the configuration information acquisition instruction; and verifying whether the gimbal drive device is successfully configured based on the response result of the gimbal drive device to the configuration information acquisition instruction.

[0087] In order to further improve the reliability of the configuration results, the embodiment of the present application can further verify whether the configuration information of the PTZ drive device is correct after receiving the return data of the PTZ drive device in response to the configuration instruction. A simple and easy-to-implement verification method provided by the embodiment of the present application can be to display a verification control on the configuration interface. The main function of the verification control is to obtain the parameters currently configured in the PTZ drive device and compare them with the configuration information issued to determine whether the configuration is successful.

[0088] A simple way may be to use the device number information as the basis for verification. The corresponding verification controls may include a number reading button and a number reading result display box. The user's operation events on the number reading button are monitored. If the user's operation events on the number reading button are monitored, a number reading instruction is generated and sent to the gimbal drive device. The gimbal drive device returns corresponding information according to the instruction. The client parses the information returned by the gimbal drive device and displays it through the number reading result display box. The user can intuitively compare from the configuration interface whether the issued device number and the information returned by the gimbal drive device are consistent. Of course, the client can also automatically compare and display it to the user by popping up a "Configuration successful / Verification successful" prompt box.

[0089] In some embodiments of the present application, for the interface design based on the above Qt Designer and after converting the ui file into a py (pyphon) file, the interface file and the functional logic can be separated, and the functional file is used to inherit the main window class of the interface file, so that each update of the ui file will not destroy the functional code. To realize the client serial port scanning, configuration and verification functions, the connection between signals and slots must be carried out. Signals and slots are advanced communication mechanisms provided by PyQt. Signals are used to send signals, and slots are used to receive signals and respond. Communication between GUI interface objects is achieved by establishing connections between signals and slots. The three button objects of "Scan", "Configuration" and "Number Reading" in the GUI interface are respectively bound to signals and slots, where the slot function uses threads to implement the core functions, thereby realizing client function development. Next, the logical function implementation of serial port scanning, configuration and number reading is explained.

[0090] The development of the serial port scanning function is mainly implemented through the serial module in Python. The main function of the "scan" button slot function is to obtain all serial port information through the list_ports.comports() method. The serial port information appears in the form of an object. The serial port number in the serial port information needs to be parsed out and converted into an array, and then the array is assigned to the combox drop-down selection box as the drop-down option of the object, thereby realizing the development of the serial port scanning function.

[0091] The development of the PTZ configuration function uses the idea of ​​threads in PyQt. The main function of the "Configuration" button slot function is to start the configuration thread and listen to the results passed back by the thread and prompt it in the configuration interface. In the slot function, the configuration button is first disabled. The serial port number and device number in the configuration interface are obtained through the currentText() method as parameters to create a thread to start the thread object. The start() method is used to start the thread and bind the slot function of the result feedback signal. The result feedback slot function is used to accept the result in the configuration thread and enable the configuration button. The result is displayed in an information prompt box using the QMessageBox object. If there is an error, the specific error message is displayed.

[0092] The development of the verification function is similar to the concept of the configuration function. The read thread is triggered through the PyQt thread and slot function method. The read function in this thread is implemented by sending a read instruction through the serial port. After receiving the return from the serial port, the serial port data is parsed to obtain the device number, and then the device number is sent to the configuration interface for display through the result feedback function in the thread.

[0093] In order to facilitate the understanding of the various embodiments of the present application, Figure 3 As shown, a schematic diagram of the configuration process of a PTZ drive device in an embodiment of the present application is provided. After the client is started, the current serial port information of the client is scanned and displayed by monitoring the operation event of the "scan" button, and then the user-set device number and other custom configuration information of the PTZ drive device are obtained by monitoring the operation event of the configuration box on the configuration interface, and the operation event of the user clicking the "configure" button is monitored to generate a configuration instruction and send it to the PTZ drive device, thereby realizing one-click configuration.

[0094] Determine whether the configuration is successful based on the response result of the PTZ driver. If the PTZ driver does not return data, it is considered that the configuration has failed and can be reconfigured. If the PTZ driver returns data, it can be further verified whether the configuration is successful by monitoring the operation event of the "Read" button on the configuration interface. If the operation event of the "Read" button is monitored, a numbered read instruction is generated and sent to the PTZ driver. If the information returned by the PTZ driver is consistent with the configuration information sent, it is considered that the configuration is successful, otherwise, the configuration fails.

[0095] In summary, the PTZ drive device configuration method of the present application has achieved at least the following technical effects:

[0096] 1) It can realize one-click configuration of the PTZ drive equipment. All equipment parameters can be configured with one click, which improves the overall production efficiency of the roadside integrated equipment;

[0097] 2) Support configuration verification function. By realizing the reading function of configuration information such as number, it is convenient for factory workers to read the equipment number for viewing and verification, reducing the configuration error rate;

[0098] 3) The client can be packaged as desktop software, which is suitable for production line production. It is simple and easy to operate for production line workers.

[0099] The present application also provides a device 400 for configuring a pan / tilt drive device. Figure 4 As shown, a schematic diagram of the structure of a pan-tilt drive device configuration device in an embodiment of the present application is provided, the pan-tilt drive device is applied to a roadside integrated device, the pan-tilt drive device configuration device is applied to a client of a pan-tilt configuration system, the pan-tilt drive device configuration device 400 includes: an acquisition unit 410, a configuration unit 420 and a determination unit 430, wherein:

[0100] The acquisition unit 410 is used to acquire the current serial port information of the client and the configuration information of the PTZ drive device;

[0101] A configuration unit 420, configured to generate a configuration instruction of a pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and send the configuration instruction to the pan-tilt drive device;

[0102] The determination unit 430 is used to determine the configuration result of the pan / tilt drive device according to the response result of the pan / tilt drive device to the configuration instruction.

[0103] In some embodiments of the present application, the acquisition unit 410 is specifically used to: display the configuration interface of the gimbal drive device; obtain the current serial port information of the client and obtain the configuration information of the gimbal drive device through the configuration interface of the gimbal drive device; wherein the configuration interface of the gimbal drive device is provided with function controls, and the function controls include at least one of a serial port information scanning control, a configuration control and a verification control.

[0104] In some embodiments of the present application, the acquisition unit 410 is specifically used to: when the client is initialized and started, scan all serial port information of the client, and determine the current serial port information of the client based on the access status of all serial ports; when the client is running, monitor the user's operation events on the serial port information scanning control; when monitoring the user's operation events on the serial port information scanning control, redetermine the current serial port information of the client.

[0105] In some embodiments of the present application, the configuration information of the gimbal drive device includes a device number, the configuration control includes a device number configuration control, and the acquisition unit 410 is specifically used to: display all device numbers to be assigned through the device number configuration control so that the user can select the device number to be assigned; and obtain the device number selected by the user.

[0106] In some embodiments of the present application, the configuration unit 420 is specifically used to: monitor the user's operation events on the device number configuration control; when monitoring the user's operation events on the device number configuration control, generate the configuration instructions of the gimbal drive device according to the current serial port information of the client and the configuration information of the gimbal drive device and send them to the gimbal drive device.

[0107] In some embodiments of the present application, the configuration unit 420 is specifically used to: parse the current serial port information of the client and the configuration information of the gimbal drive device respectively to obtain the parsed current serial port information and the parsed configuration information; generate a verification value according to the parsed current serial port information and the parsed configuration information using a preset verification algorithm; splice the verification value with the parsed current serial port information and the parsed configuration information; generate the configuration instruction of the gimbal drive device according to the splicing result and send it to the gimbal drive device.

[0108] In some embodiments of the present application, the determination unit 430 is specifically used to: determine whether the gimbal drive device has data returned based on the response result of the gimbal drive device to the configuration instruction; if so, determine that the configuration result of the gimbal drive device is a successful configuration; otherwise, determine that the configuration result of the gimbal drive device is a failed configuration and perform reconfiguration.

[0109] In some embodiments of the present application, the determination unit 430 is specifically used to: when the gimbal drive device has data returned, monitor the user's operation events on the verification control; when the user's operation events on the verification control are monitored, send a configuration information acquisition instruction to the gimbal drive device; receive a response result of the gimbal drive device to the configuration information acquisition instruction; and verify whether the gimbal drive device is successfully configured based on the response result of the gimbal drive device to the configuration information acquisition instruction.

[0110] It can be understood that the above-mentioned gimbal drive device configuration apparatus can implement the various steps of the gimbal drive device configuration method provided in the aforementioned embodiment, and the relevant explanations on the gimbal drive device configuration method are applicable to the gimbal drive device configuration apparatus, which will not be repeated here.

[0111] An embodiment of the present application also provides a pan-tilt configuration system, wherein the pan-tilt configuration system includes a client, and the client is used to execute any of the aforementioned pan-tilt drive device configuration methods.

[0112] Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. Figure 5 At the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. The memory may include a memory, such as a high-speed random access memory (RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk storage. Of course, the electronic device may also include hardware required for other services.

[0113] The processor, network interface and memory can be interconnected through an internal bus, which can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0114] The memory is used to store the program. Specifically, the program may include a program code, and the program code includes a computer operation instruction. The memory may include a memory and a non-volatile memory, and provides instructions and data to the processor.

[0115] The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a PTZ drive device configuration device at the logical level. The processor executes the program stored in the memory and is specifically used to perform the following operations:

[0116] Get the current serial port information of the client and the configuration information of the PTZ driver device;

[0117] Generate a configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and send the configuration instruction to the pan-tilt drive device;

[0118] The configuration result of the pan / tilt drive device is determined according to the response result of the pan / tilt drive device to the configuration instruction.

[0119] The above application Figure 1 The method performed by the pan-tilt drive device configuration device disclosed in the illustrated embodiment can be applied to a processor or implemented by a processor. The processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or executed by a combination of hardware and software modules in a decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0120] The electronic device may also perform Figure 1 The method for executing the configuration device of the pan-tilt drive device is implemented in Figure 1 The functions of the illustrated embodiment will not be described in detail in the embodiments of the present application.

[0121] The present application also provides a computer-readable storage medium, which stores one or more programs, wherein the one or more programs include instructions, which, when executed by an electronic device including multiple application programs, enable the electronic device to execute Figure 1 The method executed by the pan / tilt drive device configuration device in the embodiment shown is specifically used to execute:

[0122] Get the current serial port information of the client and the configuration information of the PTZ driver device;

[0123] Generate a configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and send the configuration instruction to the pan-tilt drive device;

[0124] The configuration result of the pan / tilt drive device is determined according to the response result of the pan / tilt drive device to the configuration instruction.

[0125] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0126] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0127] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0129] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0130] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0131] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0132] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0133] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0134] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A method for configuring a pan / tilt drive device, in, The pan-tilt drive device is applied to a roadside integrated device, and the pan-tilt drive device configuration method is executed by a client of a pan-tilt configuration system, and the pan-tilt drive device configuration method includes: Get the current serial port information of the client and the configuration information of the PTZ driver device; Generate a configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and send the configuration instruction to the pan-tilt drive device; The configuration result of the pan / tilt drive device is determined according to the response result of the pan / tilt drive device to the configuration instruction.

2. The method for configuring a pan / tilt drive device according to claim 1, in, The method of obtaining the current serial port information of the client and the configuration information of the PTZ drive device includes: Display the configuration interface of the PTZ driver device; Obtaining the current serial port information of the client and the configuration information of the pan-tilt drive device through the configuration interface of the pan-tilt drive device; Among them, the configuration interface of the pan-tilt drive device is provided with function controls, and the function controls include at least one of a serial port information scanning control, a configuration control and a verification control.

3. The method for configuring a pan / tilt drive device as claimed in claim 2, in, The obtaining of the current serial port information of the client includes: When the client is initialized and started, scan all serial port information of the client and determine the current serial port information of the client according to the access status of all serial ports; When the client is running, monitor the user's operation events on the serial port information scanning control; When an operation event of the user on the serial port information scanning control is monitored, the current serial port information of the client is re-determined.

4. The method for configuring a pan / tilt drive device as claimed in claim 2, in, The configuration information of the pan-tilt drive device includes a device number, the configuration control includes a device number configuration control, and the obtaining of the configuration information of the pan-tilt drive device includes: Displaying all the device numbers to be allocated through the device number configuration control so that the user can select the device number to be allocated; Get the device number selected by the user.

5. The method for configuring a pan / tilt drive device as claimed in claim 4, in, The generating a configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and sending the configuration instruction to the pan-tilt drive device comprises: Monitoring the operation events of the user on the device number configuration control; When monitoring the operation event of the user on the device number configuration control, the configuration instruction of the pan-tilt drive device is generated according to the current serial port information of the client and the configuration information of the pan-tilt drive device and sent to the pan-tilt drive device.

6. The method for configuring a pan / tilt drive device as claimed in claim 1, in, The generating a configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and sending the configuration instruction to the pan-tilt drive device comprises: The current serial port information of the client and the configuration information of the PTZ drive device are respectively parsed to obtain the parsed current serial port information and the parsed configuration information; Generate a checksum value using a preset checksum algorithm based on the parsed current serial port information and the parsed configuration information; Concatenate the check value with the parsed current serial port information and the parsed configuration information; A configuration instruction of the pan / tilt drive device is generated according to the splicing result and sent to the pan / tilt drive device.

7. The method for configuring a pan / tilt drive device according to claim 1, in, Determining the configuration result of the pan / tilt drive device according to the response result of the pan / tilt drive device to the configuration instruction includes: Determine whether the pan / tilt drive device has data returned according to the response result of the pan / tilt drive device to the configuration instruction; If yes, then determining that the configuration result of the pan / tilt drive device is successful; Otherwise, it is determined that the configuration result of the pan / tilt drive device is a configuration failure and reconfiguration is performed.

8. The method for configuring a pan / tilt drive device as claimed in claim 6, in, Determining the configuration result of the pan / tilt drive device according to the response result of the pan / tilt drive device to the configuration instruction includes: When the PTZ driving device returns data, monitoring the user's operation events on the verification control; When monitoring an operation event of the user on the verification control, sending a configuration information acquisition instruction to the PTZ driving device; Receiving a response result of the PTZ driving device to the configuration information acquisition instruction; Verify whether the pan / tilt drive device is configured successfully according to the response result of the pan / tilt drive device to the configuration information acquisition instruction.

9. A device for configuring a pan / tilt drive device, in, The pan-tilt drive device is applied to the roadside integrated device, and the pan-tilt drive device configuration device is applied to the client of the pan-tilt configuration system, and the pan-tilt drive device configuration device includes: The acquisition unit is used to obtain the current serial port information of the client and the configuration information of the PTZ drive device; A configuration unit, configured to generate a configuration instruction of the pan-tilt drive device according to the current serial port information of the client and the configuration information of the pan-tilt drive device and send the configuration instruction to the pan-tilt drive device; A determination unit is used to determine the configuration result of the pan-tilt drive device according to the response result of the pan-tilt drive device to the configuration instruction.

10. A PTZ configuration system, in, The pan-tilt configuration system comprises a client, and the client is used to execute the pan-tilt drive device configuration method according to any one of claims 1 to 8.

11. An electronic device, include: processor; as well as A memory arranged to store computer executable instructions, wherein when the executable instructions are executed, the processor executes the pan-tilt drive device configuration method of any one of claims 1 to 8.

12. A carrier, wherein the carrier is a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and when the one or more programs are executed by an electronic device including multiple application programs, the electronic device executes any one of the gimbal drive device configuration methods of claims 1 to 8.