Automatic test method and device for realizing communication between SupX600 calibrator and FAT software based on BLE
Through BLE technology, communication between the SupX600 calibrator and FAT software is realized in the field of industrial automation, which solves the problems of long and high cost of card tests, and realizes automated testing, reducing testing costs and improving efficiency.
Patent Information
- Application Number
- CN202411300604.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-18
- Publication Date
- 2025-01-10
AI Technical Summary
In the field of industrial automation, it is difficult for the existing technology to achieve efficient communication between the SupX600 calibrator and FAT software, resulting in long card test time and high cost.
BLE technology is used to establish a communication connection between the SupX600 calibrator and the FAT software, and transmit data in the BLE network through the Modbus protocol to realize automatic testing, including starting the device, establishing a BLE connection, sending and analyzing instructions, and judging the completion of the test.
It shortens the card test time, reduces the testing cost, solves the problem of not being able to automatically test AO/DO card tests in traditional methods and requires manual data input, and reduces labor costs.
Smart Images

Figure CN119299994A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of industrial automation control, and in particular relates to an automatic testing method and device for realizing communication between a SupX600 calibrator and FAT software based on BLE. Background Art
[0002] SupX600 calibrator: SupX600 calibrator is a portable device that communicates with intelligent pressure transmitters (capacitive intelligent pressure transmitters, CXT intelligent pressure transmitters) that follow the HART protocol. It comes with voltage measurement, current measurement, power distribution output functions, and setting functions for analog measurement.
[0003] FAT software: It is a software used in the automation field to carry out a series of testing activities on the control system of the Factory Acceptance Test (FAT) and the supporting equipment to ensure that they comply with technical specifications and contract requirements.
[0004] BLE: BLE is Bluetooth Low Energy (BLE for short), a personal area network technology designed and sold by the Bluetooth Technology Alliance. Compared with classic Bluetooth, Bluetooth Low Energy aims to significantly reduce power consumption and cost while maintaining the same communication range. In the field of industrial automation, data of Modbus protocol communication can be transmitted through the BLE wireless protocol. Among them, the Modbus communication protocol is a commonly used communication protocol in industrial control networks. It supports multiple communication methods such as serial and TCP / IP.
[0005] With the continuous development of industrial automation technology, new projects and renovation projects continue to emerge, the number and scale of projects increase, and the requirements for industrial control system suppliers or solution providers increase. How to ensure that large-scale projects meet high-quality factory testing requirements under the wave of cost reduction and efficiency improvement has become a problem that companies must face. Among them, how to achieve communication between the SupX600 calibrator and the FAT software to improve the inefficiency of the existing test hardware card link is an urgent problem for some industrial automation companies. Summary of the invention
[0006] The purpose of the present invention is to provide an automatic testing method and device for realizing communication between a SupX600 calibrator and FAT software based on BLE, so as to shorten the card testing time and reduce the testing cost.
[0007] To solve the above problems, the technical solution of the present invention is:
[0008] An automatic test method for realizing communication between a SupX600 calibrator and FAT software based on BLE, comprising:
[0009] Start the SupX600 calibrator and FAT software, open the Bluetooth configuration in the FAT software, scan the SupX600 calibrator and establish a BLE communication connection with it;
[0010] The FAT software determines whether all cards have been tested. If not, it automatically tests the cards and sends a command that complies with the Modbus protocol to the SupX600 calibrator.
[0011] The SupX600 calibrator determines whether it has received a command of the Modbus protocol. If so, it parses the Modbus data and outputs an electrical signal to the test card through the test lead. It then determines whether it has received a return command. If so, it parses the Modbus data in the return command, refreshes the card data on the FAT software interface, and determines whether the current card has been tested. If so, it further determines whether all cards have been tested. If so, the card test ends.
[0012] If the SupX600 calibrator does not receive the return command, it determines whether the preset time has been exceeded. If so, it determines whether the current card has been tested. If not, it sends a command that complies with the Modbus protocol to the SupX600 calibrator.
[0013] If the current card has not been tested, the card will continue to be tested automatically and a command that complies with the Modbus protocol will be sent to the SupX600 calibrator.
[0014] According to an embodiment of the present invention, the step of opening the Bluetooth configuration in the FAT software, scanning the SupX600 calibrator and establishing a BLE communication connection therewith further includes:
[0015] After establishing a connection through the Bluetooth driver, traverse and record all services of the SupX600 calibrator, and obtain the characteristics of each service and the operation attributes supported by the characteristics;
[0016] Perform the following operations on the subscription service with UUID 0xFFE0 and the write service with UUID 0xFFE5:
[0017] For the feature with UUID 0xFFE4 under the subscription service with UUID 0xFFE0, enable the subscription service to receive synchronization subscription information;
[0018] For the feature with UUID 0xFFE9 under the write service with UUID 0xFFE5, the write operation attribute of the feature is enabled, so that the FAT software can perform data write operations through the feature under the service.
[0019] According to an embodiment of the present invention, after the FAT software establishes a BLE communication connection with the SupX600 calibrator, the card to be tested is selected and the automatic test is started;
[0020] The FAT software generates command data that complies with the Modbus protocol based on the card type and test points, performs a write operation on the feature 0xFFE9 under the write service with UUID 0xFFE5, and sends the command data to the SupX600 calibrator;
[0021] The SupX600 calibrator analyzes the command data internally and outputs electrical signals to the test card through the test leads;
[0022] The FAT software reads the test card information through the OPC service, determines whether the card information has changed, and outputs the card information to the interface.
[0023] An automatic test device for realizing communication between SupX600 calibrator and FAT software based on BLE, comprising:
[0024] BLE connection module, used to establish the communication connection between SupX600 calibrator and FAT software;
[0025] The automatic test module is used to select the card to be tested and start the automatic test after the FAT software establishes a BLE communication connection with the SupX600 calibrator; it supports the FAT software to generate command data that complies with the Modbus protocol according to the card type and test point and send it to the SupX600 calibrator; it triggers the SupX600 calibrator to parse the command data internally and output electrical signals to the test card through the test leads; then the FAT software reads the test card information through the OPC service, determines whether the card information has changed, and outputs the card information to the interface.
[0026] According to an embodiment of the present invention, the BLE connection module is configured as follows:
[0027] After establishing a connection through the Bluetooth driver, traverse and record all services of the SupX600 calibrator, and obtain the characteristics of each service and the operation attributes supported by the characteristics;
[0028] Perform the following operations on the subscription service with UUID 0xFFE0 and the write service with UUID 0xFFE5:
[0029] For the feature with UUID 0xFFE4 under the subscription service with UUID 0xFFE0, enable the subscription service to receive synchronization subscription information;
[0030] For the feature with UUID 0xFFE9 under the write service with UUID 0xFFE5, the write operation attribute of the feature is enabled, so that the FAT software can perform data write operations through the feature under the service.
[0031] According to an embodiment of the present invention, the automatic testing module is further configured to:
[0032] Determine whether all cards have been tested. If not, automatically test the cards and send instructions that comply with the Modbus protocol to;
[0033] Determine whether the SupX600 calibrator has received the Modbus protocol command. If so, parse the Modbus data and output the electrical signal to the test card through the test lead. Then determine whether the return command has been received. If so, parse the Modbus data in the return command, refresh the card data on the FAT software interface, and determine whether the current card has been tested. If so, further determine whether all cards have been tested. If so, end the card test.
[0034] If the SupX600 calibrator does not receive the return command, it determines whether the preset time has been exceeded. If so, it determines whether the current card has been tested. If not, it sends a command that complies with the Modbus protocol to the SupX600 calibrator.
[0035] If the current card has not been tested, the card will continue to be tested automatically and a command that complies with the Modbus protocol will be sent to the SupX600 calibrator.
[0036] Due to the adoption of the above technical solution, the present invention has the following advantages and positive effects compared with the prior art:
[0037] In one embodiment of the present invention, an automatic test method for realizing communication between the SupX600 calibrator and the FAT software based on BLE is used to realize the communication between the SupX600 calibrator and the FAT software. In view of the problem that the traditional Modbus protocol is mainly used in serial communication or TCP / IP network in the field of industrial automation control, but is not convenient to be realized in the BLE network, the communication between the SupX600 calibrator and the FAT software is realized through BLE. Data that conforms to the Modbus communication protocol is transmitted between the SupX600 calibrator and the FAT software through the BLE wireless protocol, realizing the application of the Modbus protocol on the BLE physical layer. The SupX600 calibrator is searched and identified by broadcasting between BLE devices, and a BLE communication connection is established, which not only shortens the card test time, but also reduces the test cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1It is a flow chart of an automatic testing method for realizing communication between a SupX600 calibrator and FAT software based on BLE in one embodiment of the present invention;
[0039] Figure 2 This is a schematic diagram of the FAT software broadcasting and searching for a SupX600 calibrator to establish a connection in one embodiment of the present invention. DETAILED DESCRIPTION
[0040] The following is a further detailed description of an automatic test method and device for realizing communication between SupX600 calibrator and FAT software based on BLE proposed by the present invention in conjunction with the accompanying drawings and specific embodiments. The advantages and features of the present invention will become clearer according to the following description and claims.
[0041] In view of the problem that the existing Modbus protocol is mainly used in serial communication or TCP / IP network, but is not convenient to be implemented in BLE network, and it is impossible to perform automatic testing on AO and DO cards through FAT software, or to perform automatic factory testing on AI and DI cards, which requires repetitive and inefficient operation of manually entering data on the SupX600 calibrator, this embodiment provides an automatic testing method based on BLE to realize communication between the SupX600 calibrator and the FAT software.
[0042] For details, please refer to Figure 1 The automatic test method for realizing communication between SupX600 calibrator and FAT software based on BLE includes:
[0043] Start the SupX600 calibrator and FAT software, open the Bluetooth configuration in the FAT software, scan the SupX600 calibrator and establish a BLE communication connection with it;
[0044] The FAT software determines whether all cards have been tested. If not, it automatically tests the cards and sends a command that complies with the Modbus protocol to the SupX600 calibrator.
[0045] The SupX600 calibrator determines whether it has received a command of the Modbus protocol. If so, it parses the Modbus data and outputs an electrical signal to the test card through the test lead. It then determines whether it has received a return command. If so, it parses the Modbus data in the return command, refreshes the card data on the FAT software interface, and determines whether the current card has been tested. If so, it further determines whether all cards have been tested. If so, the card test ends.
[0046] If the SupX600 calibrator does not receive the return command, it determines whether the preset time has been exceeded. If so, it determines whether the current card has been tested. If not, it sends a command that complies with the Modbus protocol to the SupX600 calibrator.
[0047] If the current card has not been tested, the card will continue to be tested automatically and a command that complies with the Modbus protocol will be sent to the SupX600 calibrator.
[0048] This automatic testing method uses BLE wireless to replace RS485 bus to transmit Modbus protocol data between FAT software and SupX600 calibrator. It not only solves the problem that FAT software cannot be used to perform automatic factory testing on AO / DO cards in the existing solution, but also solves the problem of repeated and inefficient operation of manually inputting data on the calibrator device when performing automatic factory testing on AI / DI cards in the existing solution. It avoids the trouble of testers due to the long distance between the test site cabinet and the software console making it inconvenient to connect the wiring. It also solves the problem of labor cost that at least two people are needed to complete the factory testing of large quantities of cards. Overall, it shortens the card testing time and reduces the testing cost.
[0049] In actual application, first ensure that the computer device on which the FAT software is installed supports the low-power BLE driver, then open the Bluetooth configuration in the FAT software, scan the SupX600 calibrator and establish a BLE communication connection with it, and then open the following Figure 2 The Bluetooth connection configuration shown broadcasts a search for the unique ID of the SupX600 calibrator and establishes BLE communication with it. After establishing a connection through the Bluetooth driver, all services of the SupX600 calibrator are traversed and recorded, and the characteristics under each service and the operation attributes supported by the characteristics are obtained. Specifically, the following operations are performed on the subscription service with UUID 0xFFE0 and the write service with UUID 0xFFE5: For the characteristic with UUID 0xFFE4 under the subscription service with UUID 0xFFE0, enable the subscription service for receiving synchronous subscription information; for the characteristic with UUID 0xFFE9 under the write service with UUID 0xFFE5, enable the write operation attribute of the characteristic, so that the FAT software can write data through the characteristics under the service.
[0050] After the FAT software establishes a BLE communication connection with the SupX600 calibrator, select the card to be tested and start the automatic test. The FAT software generates command data that complies with the Modbus protocol based on the card type and test point, performs a write operation on the feature 0xFFE9 under the write service with UUID 0xFFE5, and sends the command data to the SupX600 calibrator. The SupX600 calibrator internally parses the command data and outputs electrical signals to the test card through the test pen. The FAT software reads the test card information through the OPC service, determines whether the card information has changed, and outputs the card information to the interface.
[0051] Based on the same concept, this embodiment also provides an automatic test device for realizing communication between the SupX600 calibrator and the FAT software based on BLE, including:
[0052] BLE connection module, used to establish the communication connection between SupX600 calibrator and FAT software;
[0053] The automatic test module is used to select the card to be tested and start the automatic test after the FAT software establishes a BLE communication connection with the SupX600 calibrator; it supports the FAT software to generate command data that complies with the Modbus protocol according to the card type and test point and send it to the SupX600 calibrator; it triggers the SupX600 calibrator to parse the command data internally and output electrical signals to the test card through the test leads; then the FAT software reads the test card information through the OPC service, determines whether the card information has changed, and outputs the card information to the interface.
[0054] Among them, the BLE connection module is configured as:
[0055] After establishing a connection through the Bluetooth driver, traverse and record all services of the SupX600 calibrator, and obtain the characteristics under each service, as well as the operation attributes supported by the characteristics; perform the following operations on the subscription service with UUID 0xFFE0 and the write service with UUID 0xFFE5: For the characteristic with UUID 0xFFE4 under the subscription service with UUID 0xFFE0, enable the subscription service to receive synchronization subscription information; for the characteristic with UUID 0xFFE9 under the write service with UUID 0xFFE5, enable the write operation attribute of the characteristic, so that the FAT software can write data through the characteristics under the service.
[0056] The automatic test module is further configured to: determine whether all cards have been tested, if not, automatically test the cards and send instructions that comply with the Modbus protocol to; determine whether the SupX600 calibrator has received instructions of the Modbus protocol, if so, parse the Modbus data, and output electrical signals to the test cards through the test leads; then determine whether a return instruction is received, if so, parse the Modbus data in the return instruction, refresh the card data on the FAT software interface, determine whether the current card has been tested, if so, further determine whether all cards have been tested, if so, end the card test; if the SupX600 calibrator has not received a return instruction, determine whether the preset time has been exceeded, if so, determine whether the current card has been tested; if not, send instructions that comply with the Modbus protocol to the SupX600 calibrator; if the current card has not been tested, continue to automatically test the card and send instructions that comply with the Modbus protocol to the SupX600 calibrator.
[0057] The device can realize the above-mentioned automatic testing method for realizing communication between the SupX600 calibrator and the FAT software based on BLE.
[0058] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments. Even if various changes are made to the present invention, if these changes fall within the scope of the claims of the present invention and their equivalents, they still fall within the protection scope of the present invention.
Claims
1. An automatic test method for realizing communication between SupX600 calibrator and FAT software based on BLE, characterized in that: include: Start the SupX600 calibrator and FAT software, open the Bluetooth configuration in the FAT software, scan the SupX600 calibrator and establish a BLE communication connection with it; The FAT software determines whether all cards have been tested. If not, it automatically tests the cards and sends a command that complies with the Modbus protocol to the SupX600 calibrator. The SupX600 calibrator determines whether it has received a command of the Modbus protocol. If so, it parses the Modbus data and outputs an electrical signal to the test card through the test lead. It then determines whether it has received a return command. If so, it parses the Modbus data in the return command, refreshes the card data on the FAT software interface, and determines whether the current card has been tested. If so, it further determines whether all cards have been tested. If so, the card test ends. If the SupX600 calibrator does not receive the return command, it determines whether the preset time has been exceeded. If so, it determines whether the current card has been tested. If not, it sends a command that complies with the Modbus protocol to the SupX600 calibrator. If the current card has not been tested, the card will continue to be tested automatically and a command that complies with the Modbus protocol will be sent to the SupX600 calibrator.
2. The automatic test method for realizing communication between SupX600 calibrator and FAT software based on BLE as claimed in claim 1, characterized in that: The steps of opening the Bluetooth configuration in the FAT software, scanning the SupX600 calibrator and establishing a BLE communication connection therewith further include: After establishing a connection through the Bluetooth driver, traverse and record all services of the SupX600 calibrator, and obtain the characteristics of each service and the operation attributes supported by the characteristics; Perform the following operations on the subscription service with UUID 0xFFE0 and the write service with UUID 0xFFE5: For the feature with UUID 0xFFE4 under the subscription service with UUID 0xFFE0, enable the subscription service to receive synchronization subscription information; For the feature with UUID 0xFFE9 under the write service with UUID 0xFFE5, the write operation attribute of the feature is enabled, so that the FAT software can perform data write operations through the feature under the service.
3. The automatic test method for realizing communication between SupX600 calibrator and FAT software based on BLE as claimed in claim 2, characterized in that: After the FAT software establishes a BLE communication connection with the SupX600 calibrator, select the card to be tested and start the automatic test; The FAT software generates command data that complies with the Modbus protocol based on the card type and test points, performs a write operation on the feature 0xFFE9 under the write service with UUID 0xFFE5, and sends the command data to the SupX600 calibrator; The SupX600 calibrator analyzes the command data internally and outputs electrical signals to the test card through the test leads; The FAT software reads the test card information through the OPC service, determines whether the card information has changed, and outputs the card information to the interface.
4. An automatic test device based on BLE to realize communication between SupX600 calibrator and FAT software, characterized in that: include: BLE connection module, used to establish the communication connection between SupX600 calibrator and FAT software; The automatic test module is used to select the card to be tested and start the automatic test after the FAT software establishes a BLE communication connection with the SupX600 calibrator; it supports the FAT software to generate command data that complies with the Modbus protocol according to the card type and test point and send it to the SupX600 calibrator; it triggers the SupX600 calibrator to parse the command data internally and output electrical signals to the test card through the test leads; then the FAT software reads the test card information through the OPC service, determines whether the card information has changed, and outputs the card information to the interface.
5. The automatic test device for realizing communication between SupX600 calibrator and FAT software based on BLE as claimed in claim 4, characterized in that: The BLE connection module is configured as follows: After establishing a connection through the Bluetooth driver, traverse and record all services of the SupX600 calibrator, and obtain the characteristics of each service and the operation attributes supported by the characteristics; Perform the following operations on the subscription service with UUID 0xFFE0 and the write service with UUID 0xFFE5: For the feature with UUID 0xFFE4 under the subscription service with UUID 0xFFE0, enable the subscription service to receive synchronization subscription information; For the feature with UUID 0xFFE9 under the write service with UUID 0xFFE5, enable the write operation attribute of the feature so that the FAT software can perform data write operations through the feature under the service.
6. The automatic test device for realizing communication between SupX600 calibrator and FAT software based on BLE as claimed in claim 4, characterized in that: The automatic testing module is further configured to: Determine whether all cards have been tested. If not, automatically test the cards and send instructions that comply with the Modbus protocol to; Determine whether the SupX600 calibrator has received the Modbus protocol command. If so, parse the Modbus data and output the electrical signal to the test card through the test lead. Then determine whether the return command has been received. If so, parse the Modbus data in the return command, refresh the card data on the FAT software interface, and determine whether the current card has been tested. If so, further determine whether all cards have been tested. If so, end the card test. If the SupX600 calibrator does not receive the return command, it determines whether the preset time has been exceeded. If so, it determines whether the current card has been tested. If not, it sends a command that complies with the Modbus protocol to the SupX600 calibrator. If the current card has not been tested, the card will continue to be tested automatically and a command that complies with the Modbus protocol will be sent to the SupX600 calibrator.