A data acquisition method and device for intelligent sensing terminal communication self-adaptation

Through the adaptive data collection method of intelligent sensing terminal communication, the problem of tedious installation and debugging is solved, work efficiency and personalized application capabilities are improved, and adaptive configuration of baud rate and address is realized to meet the needs of various application scenarios.

CN114095895BActive Publication Date: 2024-08-27YUNNAN POWER GRID CO LTD ELECTRIC POWER RES INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111395805.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-23
Publication Date
2024-08-27
Estimated Expiration
2041-11-23

AI Technical Summary

Technical Problem

The installation and debugging of intelligent sensing terminals during the data collection process is cumbersome, resulting in low on-site work efficiency and affecting the personalized application of IoT technology in different application scenarios.

Method used

Adopt the adaptive data collection method of intelligent sensing terminal communication, load the configuration file through initialization, determine and establish the physical connection, obtain the concentrator information, determine the baud rate and address, perform data comparison and modification operations, and use wildcard addresses and waveforms. Bit rate adaptive technology.

Benefits of technology

It improves the work efficiency of intelligent sensing terminals, saves time and labor costs, and meets the personalized needs of different application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114095895B
    Figure CN114095895B
Patent Text Reader

Abstract

The present application discloses a data collection method and device for adaptive communication of intelligent sensing terminals, including: the intelligent sensing terminal initializes the default loading configuration file to determine the data content to be read; after establishing a physical connection, the intelligent sensing terminal obtains the archive information in the concentrator and registers the electric meter with the data center; according to the determined data content, the data corresponding to the data content in the registered electric meter is obtained; the concentrator reads the message according to the data sent by the intelligent sensing terminal and feeds back the reply message; according to the message fed back by the concentrator, the address and RS845‑II baud rate of the downstream concentrator are determined, the real data concentrator address is used to read the archive information, the data in the registered electric meter is compared, and the operation of changing the data is started. The present application improves the working efficiency of the on-site intelligent sensing terminal by using wildcard address and baud rate adaptive technology, saves time and labor costs, and meets the personalized needs of different application scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of Internet of Things, and in particular to a method and device for adaptive data collection of intelligent sensing terminal communication. Background Art

[0002] The network architecture of the Internet of Things consists of the perception layer, network layer, and application layer. With the penetration of the Internet of Things concept and related technical products in various fields, such as industry, agriculture, transportation, security, environmental protection, etc., the Internet of Things technology has become a key technology for the development of various fields. Among them, the perception layer is the bottom technology of the Internet of Things. Real-time data collection and transmission are crucial for decision makers of the Internet of Things application scenarios.

[0003] Intelligent sensing terminals are a commonly used technical means in the perception layer. They are based on the design concept of "hardware platformization and software APPization" and aim to obtain data collected by on-site concentrators to achieve control over users and different application scenarios, supporting rapid deployment and convenient expansion of services.

[0004] However, in actual applications, due to the inconsistent requirements for the serial port baud rate of the concentrator in different urban areas (2400 / 4800 / 9600 baud rates may exist), and the addresses of the concentrators being read are different, the installation of the APP sequence configuration requires the address of the concentrator to be hung and the confirmation of the RS485 window communication baud rate, which greatly increases the workload of engineering personnel in installation and debugging, and seriously affects the personalized application of IoT technology in different application scenarios. Summary of the invention

[0005] The present application proposes a method and device for data collection with adaptive communication of intelligent sensing terminals, so as to solve the problems of cumbersome installation and debugging process and low on-site work efficiency when the intelligent sensing terminals perform data collection in the prior art.

[0006] In a first aspect, the present application provides a data collection method for communication self-adaptation of an intelligent sensing terminal, which is applied to a data collection information interaction model constructed by an intelligent sensing terminal and a concentrator through a physical channel, including:

[0007] The intelligent sensing terminal initializes the default loading configuration file to determine the data content to be read;

[0008] Determine whether the intelligent sensing terminal has established a physical connection with the concentrator;

[0009] If yes, the intelligent sensing terminal obtains the profile information in the concentrator and registers the meter with the data center;

[0010] The intelligent sensing terminal obtains data corresponding to the data content in the registered electric meter according to the determined data content;

[0011] The concentrator reads the message according to the data sent by the intelligent sensing terminal and feeds back the reply message;

[0012] The intelligent sensing terminal determines the address and RS845-II baud rate of the downstream concentrator based on the message fed back by the concentrator, uses the real data concentrator address to read the archive information, and compares the data in the registered meter. If the comparison results are inconsistent, the data change operation is initiated.

[0013] In some embodiments, the step of determining whether the intelligent sensing terminal has established a physical connection with the concentrator includes:

[0014] The intelligent sensing terminal sends the time message of the reading concentrator through the RS485-II port at three baud rates of 2400 / 4800 / 9600;

[0015] If a message returning the current time at any baud rate fed back by the concentrator is received, it is determined that a physical connection has been established.

[0016] In some embodiments, when sending the time message of the reading concentrator, it is sent three times for each baud rate.

[0017] In some embodiments, the concentrator reads the message according to the data sent by the intelligent sensing terminal, and the step of feeding back the reply message includes:

[0018] Get the sending frame size of the reply message;

[0019] If the sending frame size is larger than the preset threshold, the reply message is divided into several framed messages, and the sending frame size of each framed message is smaller than the preset threshold;

[0020] Feedback the framed messages to the intelligent sensing terminal in sequence;

[0021] If the intelligent sensing terminal receives a frame message containing a subsequent frame mark, it continues to read other frame messages; if it receives a frame message containing a last frame mark, the reading is completed.

[0022] In some embodiments, the operation of changing data includes:

[0023] Add or delete the file information corresponding to the current device in the data center.

[0024] In some embodiments, the data acquisition information interaction model includes an application layer, a data link layer, and a physical layer.

[0025] In some embodiments, the physical layer is configured to perform RS485 communication, the data link layer uses DLT698.45 / GDB376.1 protocol frames to communicate with the concentrator, and the application layer parses the reply message frames and stores the data in the data center according to the data center storage format.

[0026] In a second aspect, the present application further provides a device corresponding to the method described in the first aspect, including:

[0027] Intelligent sensing terminal module, concentrator module, physical channel module; the intelligent sensing terminal module and the concentrator module are connected by a physical channel established by the physical channel module, and the physical channel consists of an application layer, a data link layer, and a physical layer; wherein,

[0028] The intelligent sensing terminal module is configured to initialize the default loading configuration file and determine the data content to be read; determine whether the intelligent sensing terminal module has established a physical connection with the concentrator module; if so, the intelligent sensing terminal module obtains the archive information in the concentrator module and registers the electric meter with the data center; the intelligent sensing terminal module obtains the data corresponding to the data content in the registered electric meter according to the determined data content; determine the address of the downstream concentrator and the RS845-II baud rate according to the message fed back by the concentrator module, read the archive information using the real data concentrator address, and compare the data in the registered electric meter. If the comparison results are inconsistent, the operation of changing the data is initiated;

[0029] The concentrator module is configured to read the message according to the data sent by the intelligent sensing terminal module and feed back the reply message;

[0030] The physical channel module is configured to establish a physical channel after the intelligent sensing terminal module and the concentrator module have successfully handshaked.

[0031] In some embodiments, the intelligent sensing terminal module is further configured to:

[0032] Send the time message of the reading concentrator through the RS485-II port at three baud rates of 2400 / 4800 / 9600;

[0033] If a message returning the current time at any baud rate fed back by the concentrator module is received, it is determined that a physical connection has been established.

[0034] In some embodiments, the concentrator module is further configured to:

[0035] Get the sending frame size of the reply message;

[0036] If the sending frame size is larger than the preset threshold, the reply message is divided into several framed messages, and the sending frame size of each framed message is smaller than the preset threshold;

[0037] Feedback the framed messages to the intelligent sensing terminal module in sequence;

[0038] If the intelligent sensing terminal module receives a frame message containing a subsequent frame mark, it continues to read other frame messages; if it receives a frame message containing a last frame mark, the reading is completed.

[0039] This application uses wildcard address and baud rate adaptive technology to improve the working efficiency of on-site intelligent sensing terminals and save time and labor costs. Use configuration files to configure the data to be collected to meet the personalized needs of different application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0041] Figure 1 A schematic diagram of a model for applying the method provided in this application;

[0042] Figure 2 A flowchart of the method provided for this application. DETAILED DESCRIPTION

[0043] See also Figure 1 , which is a schematic diagram of a model for applying the method provided in this application;

[0044] Depend on Figure 1 It can be seen that the method of the present application is applied to a data acquisition information interaction model constructed by an intelligent sensing terminal 1 and a concentrator 2 through a physical channel 3, wherein the data acquisition information interaction model is composed of an application layer 4, a data link layer 5 and a physical layer 6; data transmission between the intelligent sensing terminal and the concentrator needs to pass through the application layer 4, the data link layer 5 and the physical layer 6; for example, the intelligent sensing terminal can actively send a data call request (obtain data) to the concentrator. When a physical connection is established, the concentrator can analyze the data content to be read according to the call request and the information interaction model, and transmit (feedback) the acquisition data to the intelligent sensing terminal.

[0045] In this embodiment, the intelligent sensing terminal represents the end where the user is located, and the specific form of expression can be that the user completes it by operating the data collection APP.

[0046] See also Figure 2 , which is a flow chart of the method provided in this application, comprising Figure 2 It can be seen that the method provided by this application includes:

[0047] S100: the intelligent sensing terminal initializes a default loading configuration file and determines the data content to be read;

[0048] In this embodiment, there is no restriction on the loaded configuration file, and it should be considered as starting the data acquisition operation to be executed. The initialization is to avoid confusion caused by historical data. For each data acquisition, there is a separate operation process that is not affected by each other. The content of the data to be read is determined, which can be relevant data in any field, such as industrial, transportation and other data, and the data can be stored in a database or network.

[0049] S200: Determine whether the intelligent sensing terminal has established a physical connection with the concentrator;

[0050] To complete the data interaction between the intelligent sensing terminal and the concentrator, a physical connection must be established between the two. Therefore, the judgment operation needs to be performed first. Specifically, the intelligent sensing terminal (data collection APP) can send the reading concentrator time message at three baud rates of 2400 / 4800 / 9600 through the RS485-II port according to the wildcard address frame. If the connection is normal, the concentrator will return the current time at the baud rate of the successful handshake. Therefore, it can be judged by monitoring whether the concentrator has fed back a message with the current time.

[0051] Furthermore, in order to prevent the failure to receive feedback in special circumstances, resulting in misjudgment, in some embodiments, the above steps can be set as follows: when sending the time message of the reading concentrator, it is sent three times for each baud rate, so that the system has a certain fault tolerance rate.

[0052] If a message returning the current time at any baud rate fed back by the concentrator is received, it means that the handshake is successful and it can be determined that a physical connection has been established.

[0053] After the physical connection is established, step S300 can be continued: the intelligent sensing terminal obtains the archive information in the concentrator and registers the electric meter with the data center; at this time, the data in the registered electric meter can correspond to the archive information of the concentrator currently establishing the physical connection, and can be used to search for the corresponding data content.

[0054] S400: the intelligent sensing terminal obtains data corresponding to the data content in the registered electric meter according to the determined data content;

[0055] The correspondence between the data content stored in the meter and the archive information, however, the archive information or data obtained at this time is not available, so the following steps are required to determine whether the acquired data needs to be changed.

[0056] S500: The concentrator reads the message according to the data sent by the intelligent sensing terminal and feeds back a reply message;

[0057] Furthermore, when the size of the message fed back by the concentrator is large, the transmission efficiency may be affected. Therefore, in some feasible embodiments, the above step S500 may be decomposed into the following steps:

[0058] When feedback is received, first obtain the sending frame size of the reply message;

[0059] If the sending frame size is larger than the preset threshold, the reply message is divided into several framed messages, and the sending frame size of each framed message is smaller than the preset threshold. The number of framed messages divided here can be determined according to actual needs. For example, if the original message is 10 (frame units) and the preset threshold is 8 (frame units), it can be divided into two framed messages of 5 (frame units), or it can be divided into one framed message of 7 (frame units) and one framed message of 3 (frame units).

[0060] The framed messages are fed back to the intelligent sensing terminal in sequence. Since they are divided into multiple messages, in order to ensure that data is not lost during transmission, a flag is added to the message to indicate whether the transmission is completed. For example, a subsequent frame flag is added to the first transmitted framed message, and a last frame flag is added to the last transmitted framed message.

[0061] If the intelligent sensing terminal receives a frame message containing a subsequent frame mark, it continues to read other frame messages; if it receives a frame message containing a last frame mark, the reading is completed.

[0062] S600: The intelligent sensing terminal determines the address and RS845-II baud rate of the downstream concentrator based on the message fed back by the concentrator, uses the real data concentrator address to read the archive information, and compares the data (archive information) in the registered meter. If the comparison results are inconsistent, the data change operation is initiated.

[0063] The operation of changing data specifically includes: adding or deleting file information corresponding to the current device in the data center, and saving the changed information in the cache.

[0064] At the same time, the changed data should be changed at the data center and the terminal location at the same time to keep the information consistent.

[0065] It can be seen from the above technical scheme that the present application provides a data collection method for adaptive communication of intelligent sensing terminals, which is applied to a data collection information interaction model constructed by intelligent sensing terminals and concentrators through physical channels, including: the intelligent sensing terminal initializes the default loading configuration file to determine the data content to be read; determines whether the intelligent sensing terminal has established a physical connection with the concentrator; if so, the intelligent sensing terminal obtains the file information in the concentrator and registers the electric meter to the data center; the intelligent sensing terminal obtains the data corresponding to the data content in the registered electric meter according to the determined data content; the concentrator reads the message according to the data sent by the intelligent sensing terminal and feeds back a reply message; the intelligent sensing terminal determines the address and RS845-II baud rate of the downstream concentrator according to the message fed back by the concentrator, uses the real data concentrator address to read the file information, and compares the data in the registered electric meter. If the comparison result is inconsistent, the operation of changing the data is initiated.

[0066] This application uses wildcard address and baud rate adaptive technology to improve the working efficiency of on-site intelligent sensing terminals and save time and labor costs. Use configuration files to configure the data to be collected to meet the personalized needs of different application scenarios.

[0067] Corresponding to the above method, the present application also provides a device for applying the above method, including:

[0068] Intelligent sensing terminal module, concentrator module, physical channel module; the intelligent sensing terminal module and the concentrator module are connected by a physical channel established by the physical channel module, and the physical channel consists of an application layer, a data link layer, and a physical layer; wherein,

[0069] The intelligent sensing terminal module is configured to initialize the default loading configuration file and determine the data content to be read; determine whether the intelligent sensing terminal module has established a physical connection with the concentrator module; if so, the intelligent sensing terminal module obtains the archive information in the concentrator module and registers the electric meter with the data center; the intelligent sensing terminal module obtains the data corresponding to the data content in the registered electric meter according to the determined data content; determine the address of the downstream concentrator and the RS845-II baud rate according to the message fed back by the concentrator module, read the archive information using the real data concentrator address, and compare the data in the registered electric meter. If the comparison results are inconsistent, the operation of changing the data is initiated;

[0070] The concentrator module is configured to read the message according to the data sent by the intelligent sensing terminal module and feed back the reply message;

[0071] The physical channel module is configured to establish a physical channel after the intelligent sensing terminal module and the concentrator module have successfully handshaked.

[0072] Furthermore, the intelligent sensing terminal module is also configured as follows:

[0073] Send the time message of the reading concentrator through the RS485-II port at three baud rates of 2400 / 4800 / 9600;

[0074] If a message returning the current time at any baud rate fed back by the concentrator module is received, it is determined that a physical connection has been established.

[0075] Furthermore, the concentrator module is also configured as follows:

[0076] Get the sending frame size of the reply message;

[0077] If the sending frame size is larger than the preset threshold, the reply message is divided into several framed messages, and the sending frame size of each framed message is smaller than the preset threshold;

[0078] Feedback the framed messages to the intelligent sensing terminal module in sequence;

[0079] If the intelligent sensing terminal module receives a frame message containing a subsequent frame mark, it continues to read other frame messages; if it receives a frame message containing a last frame mark, the reading is completed.

[0080] The functional effects of each structure of the device provided in the present application in practical applications can be found in the description of the above method and will not be repeated here.

[0081] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed by the present invention. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0082] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A data collection method for intelligent sensing terminal communication adaptation, applied to a data collection information interaction model constructed by intelligent sensing terminal and concentrator through physical channel, It is characterized in that The method comprises: The intelligent sensing terminal initializes the default loading configuration file to determine the data content to be read; Determine whether the intelligent sensing terminal has established a physical connection with the concentrator; including: the intelligent sensing terminal sends a time message to the concentrator through the RS485-II port at three baud rates of 2400 / 4800 / 9600, and if a message returning the current time at any baud rate fed back by the concentrator is received, it is determined that a physical connection has been established; If yes, the intelligent sensing terminal obtains the profile information in the concentrator and registers the meter with the data center; The intelligent sensing terminal obtains data corresponding to the data content in the registered electric meter according to the determined data content; the data in the registered electric meter corresponds to the archive information of the current physical connection concentrator, and is used to search for the corresponding data content; The concentrator reads the message according to the data sent by the intelligent sensing terminal and feeds back the reply message; including: obtaining the sending frame size of the reply message; if the sending frame size is greater than a preset threshold, the reply message is divided into several framed messages, and the sending frame size of each framed message is less than the preset threshold; the framed messages are fed back to the intelligent sensing terminal in turn; if the intelligent sensing terminal receives a framed message containing a subsequent frame mark, it continues to read other framed messages; if the framed message containing the last frame mark is received, the reading is completed; The intelligent sensing terminal determines the address and RS485-II baud rate of the downstream concentrator based on the reply message fed back by the concentrator, uses the real data concentrator address to read the file information, and compares it with the data in the registered meter. If the comparison results are inconsistent, the operation of changing the file information corresponding to the current device in the data center is initiated.

2. According to claim 1, a data acquisition method for intelligent sensing terminal communication adaptation, It is characterized in that When sending the time message of the reading concentrator, it is sent three times for each baud rate.

3. According to claim 1, a data acquisition method for intelligent sensing terminal communication adaptation, It is characterized in that The operation of changing data includes: Add or delete the file information corresponding to the current device in the data center.

4. According to claim 1, a method for data collection for intelligent sensing terminal communication adaptation, It is characterized in that The data acquisition information interaction model includes an application layer, a data link layer and a physical layer.

5. According to claim 4, a data acquisition method for intelligent sensing terminal communication adaptation, It is characterized in that The physical layer is configured to perform RS485 communication, the data link layer uses DLT698.45 / GDB376.1 protocol frames to communicate with the concentrator, and the application layer parses the reply message frames and stores the parsed message frame data in the data center according to the data center storage format.

6. A data acquisition device with adaptive communication of intelligent sensing terminal, It is characterized in that The device comprises: Intelligent sensing terminal module, concentrator module, physical channel module; the intelligent sensing terminal module and the concentrator module are connected by a physical channel established by the physical channel module, and the physical channel consists of an application layer, a data link layer, and a physical layer; wherein, The intelligent sensing terminal module is configured to initialize the default loading configuration file and determine the data content to be read; determine whether the intelligent sensing terminal module has established a physical connection with the concentrator module; if so, the intelligent sensing terminal module obtains the archive information in the concentrator module and registers the meter with the data center; the intelligent sensing terminal module obtains the data corresponding to the data content in the registered meter according to the determined data content, and the data in the registered meter corresponds to the archive information of the currently established physical connection concentrator, and the corresponding data content is used to find the corresponding data content; determine the address and RS485-II baud rate of the downstream concentrator according to the reply message fed back by the concentrator module, use the real data concentrator address to read the archive information, and compare the data in the registered meter. If the comparison results are inconsistent, start the operation of changing the archive information corresponding to the current device in the data center; The concentrator module is configured to read the message according to the data sent by the intelligent sensing terminal module and feed back the reply message; The physical channel module is configured to establish a physical channel after the intelligent sensing terminal module and the concentrator module have successfully shaken hands; The intelligent sensing terminal module is also configured as follows: Send the time message of the reading concentrator through the RS485-II port at three baud rates of 2400 / 4800 / 9600; If a message returning the current time at any baud rate fed back by the concentrator module is received, it is determined that a physical connection has been established; The concentrator module is further configured to: Get the sending frame size of the reply message; If the sending frame size is larger than the preset threshold, the reply message is divided into several framed messages, and the sending frame size of each framed message is smaller than the preset threshold; Feedback the framed messages to the intelligent sensing terminal module in sequence; If the intelligent sensing terminal module receives a frame message containing a subsequent frame mark, it continues to read other frame messages; if it receives a frame message containing a last frame mark, the reading is completed.