CN110708379A - Data acquisition method, concentrator, data acquisition system and readable storage medium - Google Patents
Data acquisition method, concentrator, data acquisition system and readable storage medium Download PDFInfo
- Publication number
- CN110708379A CN110708379A CN201910952002.3A CN201910952002A CN110708379A CN 110708379 A CN110708379 A CN 110708379A CN 201910952002 A CN201910952002 A CN 201910952002A CN 110708379 A CN110708379 A CN 110708379A
- Authority
- CN
- China
- Prior art keywords
- concentrator
- application program
- master station
- data
- current application
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C19/00—Electric signal transmission systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/34—Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application provides a data acquisition method, a concentrator, a data acquisition system and a readable storage medium, and relates to the technical field of data acquisition. The method comprises the following steps: acquiring a current application program from master station equipment in communication connection with the concentrator, wherein the current application program is used for driving the concentrator to acquire specified data; and running the current application program to acquire the specified data through the current application program. In the scheme, when the concentrator runs, the application program is acquired from the master station device, so that the concentrator can directly acquire the updated application program from the master station device, and the problem of low efficiency of updating the application program by the concentrator is solved.
Description
Technical Field
The invention relates to the technical field of data acquisition, in particular to a data acquisition method, a concentrator, a data acquisition system and a readable storage medium.
Background
In the field of meter reading of the concentrator, the concentrator can collect data of meter boxes (such as electric meters, electronic water meters, electronic gas meters and the like) by operating application programs stored by the concentrator, so that the centralized meter reading is realized. At present, when the application program of the concentrator needs to be updated (for example, the application program has a bug or the function of the application program needs to be updated), a manager needs to manually update the application program of the concentrator one by one, and the efficiency of updating the application program of the concentrator is low due to the large number and discrete positions of the concentrators.
Disclosure of Invention
The application provides a data acquisition method, a concentrator, a data acquisition system and a readable storage medium, which can solve the problem of low efficiency of updating an application program by the concentrator.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides a data acquisition method, which is applied to a concentrator, and the method includes: acquiring a current application program from master station equipment in communication connection with the concentrator, wherein the current application program is used for driving the concentrator to acquire specified data; and running the current application program to acquire the specified data through the current application program.
In the above embodiment, when the concentrator runs, the application program is acquired from the master station device, which is helpful for the concentrator to directly acquire the updated application program from the master station device, and thus the problem of low efficiency of updating the application program by the concentrator is solved.
With reference to the first aspect, in some optional embodiments, acquiring the current application from a master device communicatively connected to the concentrator includes: when the concentrator is powered on, identifying a designated virtual network port of a first communication module connected with the concentrator; establishing the communication connection with the master station equipment through the specified virtual network port in a client mode; and acquiring the current application program from the master station device.
In the above-described embodiment, by establishing the communication connection to acquire the application program from the master station device, when the concentrator application program needs to be upgraded, the application program of the concentrator can be updated by replacing the application program in the master station device, thereby facilitating the operation procedure of updating the concentrator program.
With reference to the first aspect, in some optional embodiments, the method further comprises: and sending the designated data acquired in the preset time to the master station equipment every other preset time, or sending the designated data to the master station equipment when the total data capacity of the acquired designated data is greater than or equal to a designated threshold value.
In the above embodiment, when the preset time length or the condition of the specified threshold is met, the collected data can be automatically transmitted, which is helpful for reducing the frequency of transmitting data.
With reference to the first aspect, in some optional embodiments, before acquiring the current application from the master device communicatively connected to the concentrator, the method further includes: initializing the concentrator to delete the application program pre-stored by the concentrator.
In the above embodiment, through the initialization operation, the existing application program of the concentrator may be deleted, and then the existing application program may be replaced with the current application program, which facilitates the completion of the update of the application program.
With reference to the first aspect, in some optional embodiments, the current application is an application with a latest version in the master device, and the application is used to drive the concentrator to collect the specific data.
In the above embodiment, the obtained current application program is the application program of the latest version, so that the concentrator can collect data recorded by the meter box terminal by using the application program of the latest version in time.
In a second aspect, an embodiment of the present application further provides a concentrator, where the concentrator includes a first communication module and a second communication module; the first communication module is used for acquiring a current application program from master station equipment in communication connection with the concentrator, and the current application program is used for driving the concentrator to acquire specified data; and when the current application program is operated, the current application program is used for driving the second communication module to acquire the specified data.
With reference to the second aspect, in some optional embodiments, the first communication module is further configured to: and sending the designated data acquired in the preset time to the master station equipment every other preset time, or sending the designated data to the master station equipment when the total data capacity of the acquired designated data is greater than or equal to a designated threshold value.
With reference to the second aspect, in some optional embodiments, the processor of the concentrator is connected to the first communication module through a USB port, and/or the processor is connected to the second communication module through a physical network port.
In a third aspect, an embodiment of the present application further provides a data acquisition system, which includes a master station device and the concentrator, where the concentrator is in communication connection with the master station device.
In a fourth aspect, the present application further provides a computer-readable storage medium, in which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute the above method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly described below. It is appreciated that the following drawings depict only certain embodiments of the application and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 is a schematic diagram of a connection between a data acquisition system and a meter box terminal according to an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a concentrator according to an embodiment of the present application.
Fig. 3 is a schematic flow chart of a data acquisition method according to an embodiment of the present application.
Fig. 4 is a second flowchart of a data acquisition method according to an embodiment of the present application.
Icon: 10-a data acquisition system; 20-a concentrator; 21-a first communication module; 22-a second communication module; 23-a processing module; 24-physical network port; 25-USB port; 30-a master station device; 40-meter box terminal.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. It should be noted that the terms "first," "second," and the like are used merely to distinguish one description from another, and are not intended to indicate or imply relative importance.
Referring to fig. 1, an embodiment of the present application provides a data acquisition system 10, which can be used to execute or implement the data acquisition method described below, and can update an application program in a concentrator 20. The data acquisition system 10 may include a master station device 30 and at least one concentrator 20. At least one concentrator 20 establishes a communication connection with a master station device 30 over a network for data interaction. The number of the concentrators 20 communicatively connected to the master station device 30 may be one or more, and is not particularly limited herein. The network may be, but is not limited to, a wired network or a wireless network.
In this embodiment, the concentrator 20 may establish a communication connection with one or more meter box terminals 40 for collecting data recorded by the meter box terminals 40 from the meter box terminals 40. The meter box terminal 40 may be, but is not limited to, an electric energy meter for collecting power consumption, an electronic water meter for collecting water consumption, and an electronic gas meter for collecting gas consumption.
Understandably, the meter box terminal 40 may be one of the constituent devices in the data acquisition system 10 (other constituent devices in the data acquisition system 10 may be the concentrator 20 and the master station device 30), or may be a device independent from the data acquisition system 10 and not belonging to the data acquisition system 10.
The master device 30 may be, but is not limited to, a Personal Computer (PC), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a server, and the like.
Referring to fig. 2, the present embodiment further provides a concentrator 20. The concentrator 20 may include a first communication module 21, a second communication module 22, and a processing module 23, wherein the elements of the first communication module 21, the second communication module 22, and the processing module 23 are directly or indirectly electrically connected to each other to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The processing module 23 may be an integrated circuit chip having signal processing capabilities. The processing module 23 may be a general-purpose processor. For example, the Processor may be a microprocessor, a Central Processing Unit (CPU), a Network Processor (NP), or the like; the method, the steps and the logic block diagram disclosed in the embodiments of the present Application can also be implemented or executed by a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
For example, the processing module 23 may be a SAM9X25 chip having a two-way USB port 25 and a two-way ethernet port (physical network port 24) that can be connected to the first communication module 21 and the second communication module 22.
The first communication module 21 may be, but is not limited to, a 4G communication module, a 5G communication module, etc. for establishing a communication connection between the concentrator 20 and the master station device 30 through the wireless network for data interaction. The second Communication module 22 may be an HPLC (High-speed power line Communication) module for establishing a Communication connection between the concentrator 20 and the meter box terminal 40 through a network and transmitting and receiving data through the network.
The concentrator 20 may also comprise a memory module connected to the processing module 23. Understandably, the memory module may be integrated in the processing module 23 such that the processing module 23 has a function of storing data. Alternatively, the memory module is a separate device from the processing module 23.
The memory module may be, but is not limited to, a random access memory, a read only memory, a programmable read only memory, an erasable programmable read only memory, an electrically erasable programmable read only memory, a Flash (Flash) memory, and the like. In this embodiment, the memory module may be used to store data collected from the meter box terminal 40. For example, the meter box terminal 40 is an electric energy meter, and the storage module may store the electricity consumption recorded by the electric energy meter acquired by the concentrator 20 from the electric energy meter. Of course, the storage module may also be used to store a program, which the processing module 23 executes after receiving the execution instruction.
In this embodiment, the storage module of the concentrator 20 may store a curing program. The first communication module 21 may be connected to the processing module 23 via a USB port 25. For example, the 4G communication module may be connected to the microprocessor through the USB port 25, and by solidifying the program, the concentrator 20 may establish a communication connection with the master station device 30 through the 4G communication module. When the connection is successful, the concentrator 20 may obtain an application program from a fixed path of the master device 30 through an NFS (Network File System) communication protocol, and then run the application program.
Since the processing module 23 and the first communication module 21 are in signal connection through the USB port 25, compared with a connection mode of a physical serial port, the processing module 23 and the first communication module 21 are connected through the USB port 25 (i.e., a USB high-speed data channel is established), which can increase the maximum bandwidth for data transmission between the processing module 23 and the first communication module 21, thereby facilitating to increase the network speed for data transmission between the concentrator 20 and the master station device 30. The concentrator 20 can quickly download the application program when acquiring the application program from the master station device 30.
The second communication module 22 (for example, an HPLC module) may be connected to the processing module 23 through a physical network port 24, when the second communication module 22 operates, the concentrator 20 operates in a server mode, the second communication module 22 operates in a client mode, and the second communication module 22 may actively establish Socket connection with the concentrator 20, and communicate using a TCP/IP (transmission control Protocol/Internet Protocol) Protocol.
When the concentrator 20 is powered up, the first communication module (e.g., 4G communication module) block begins to operate. While the first communication module 21 is running, the concentrator 20 may automatically recognize a virtual network port (such as a CDC _ ECM virtual network port) under the USB port 25, and then the concentrator 20 establishes a socket connection with the master device 30 in the client mode, and performs communication using the TCP/IP protocol.
Because the second communication module 22 is connected to the processing module 23 through the physical network port 24, compared with a physical serial port, the connection mode of the physical network port 24 can increase the maximum bandwidth for transmitting data between the processing module 23 and the second communication module 22, thereby facilitating to improve the network speed for transmitting data between the concentrator 20 and the meter box terminal 40.
Understandably, the communication rate of the application layer of the HPLC module can reach 3Mbit/s, and the communication rate of the 4G communication module can reach 13 Mbps. The applicant finds that the existing physical serial port communication rate is only 115200bps ≈ 112.5Kbit/s, so that the connection mode of the physical serial port can become a bottleneck for increasing the rate of the concentrator 20, and the overall communication rate of the concentrator 20, the master station device 30 and the meter box terminal 40 is limited. In the present application, by using the physical network port 24 and the USB port 25, the overall communication rate between the concentrator 20 and the master station device 30 and the meter box terminal 40 can be improved.
It is to be understood that the configuration shown in fig. 2 is merely a schematic illustration of one configuration of the concentrator 20, and that the concentrator 20 may include more or fewer components than those shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
Referring to fig. 3, an embodiment of the present application also discloses a data obtaining method, where the data obtaining method can be applied to the concentrator 20, and each step of the method can be executed or implemented by the concentrator 20. In this embodiment, the data acquiring method may include the steps of:
step S120, acquiring a current application program from the master station device 30 communicatively connected to the concentrator 20, where the current application program is used to drive the concentrator 20 to collect specified data;
step S130, running the current application program to obtain the specified data through the current application program.
In the above embodiment, when the concentrator 20 operates, the application is acquired from the master station device 30, which helps the concentrator 20 to acquire the updated application directly from the master station device 30, and thus improves the problem of inefficient application update of the concentrator 20.
The steps of the method shown in fig. 3 will be explained in detail below:
step S120, acquiring a current application program from the master station device 30 communicatively connected to the concentrator 20, where the current application program is used to drive the concentrator 20 to collect specified data.
In the present embodiment, the application program of the concentrator 20 stored in the master station device 30 may be an application program of which version is the latest. Of course, other versions of the application of the concentrator 20 may be stored in the master station device 30. If the latest version of the application program of the concentrator 20 is not stored in the master station device 30, the latest version of the application program may be recorded in the master station device 30 by a manager, so that the master station device 30 updates the application program of each concentrator 20.
When the concentrator 20 obtains an application from the master device 30, the master device 30 may compare the version of the application currently stored by the master device 30 based on the version of the application last used by the concentrator 20. If the version of the application program last used (which may be referred to as the first version) is ranked lower than the version of the application program currently stored by the master device 30 (the second version), it indicates that the first version is older than the second version. At this time, the master station device 30 may transmit the second version of the application to the concentrator 20 to update the application of the concentrator 20.
If the first version is the same as the second version, the master station device 30 may continue to send the application program of the second version to the concentrator 20, so that the concentrator 20 acquires the application program, so that the concentrator 20 collects the specified data recorded by the meter box terminal 40 through the acquired application program. The designated data can be set according to actual conditions, for example, the designated data includes but is not limited to data such as power consumption of an electric energy meter, water consumption of an electronic water meter, and gas consumption of an electronic gas meter.
Understandably, the current application acquired by the concentrator 20 is usually the latest version of the application in the master station device 30 for driving the concentrator 20 to collect the specified data, so that the concentrator 20 can collect the data recorded by the meter box terminal 40 by using the latest version of the application in time. The new version of the application is usually a program that repairs part of the bugs in the old version of the application, or a program that updates new functions. Therefore, based on this, it is possible to improve the problem that data collection is at a security risk due to a bug of an old version of an application program, or to increase the function of the concentrator 20. The added function may be determined according to the added function of the updated application, and the function may be set according to the actual situation (for example, changing the time length for the concentrator 20 to upload data to the primary station device 30), which is not particularly limited herein.
In this embodiment, step S120 may include: identifying a designated virtual port of a first communication module 21 connected to the concentrator 20 when the concentrator 20 is powered on; establishing the communication connection with the master station device 30 through the designated virtual network port in a client mode; the current application is acquired from the master device 30.
For example, the first communication module 21 is a 4G communication module (of course, the first communication module 21 may also be another high-speed communication module for remote communication, such as a 5G communication module), and the processing module 23 may identify a designated virtual network port connected to the 4G communication module (the virtual network port may be set according to actual conditions, such as a CDC _ ECM virtual network port, which is not limited herein); then, the concentrator 20 establishes Socket connection with the master station device 30 through the specified virtual network port in the client mode. After the connection is established, the concentrator 20 may obtain the latest version of the application program of the concentrator 20 from the fixed path of the master station device 30 through the 4G communication module and by using the NFS communication protocol, and the obtained application program is the current application program of the concentrator 20.
Based on this, when the application program of the concentrator 20 needs to be upgraded, the program can be updated by replacing the application program in the master station device 30, thereby facilitating the operation procedure of program update of the concentrator 20. In addition, since the 4G communication module is connected to the processing module 23 through the USB port 25, it is helpful to increase the maximum network speed of the communication between the concentrator 20 and the master station device 30, thereby improving the efficiency of program update and shortening the transmission time of the application program.
Step S130, running the current application program to obtain the specified data through the current application program.
In this embodiment, the current application may be created according to actual situations, for example, the current application may be set by a developer according to the data requirement of the terminal 40 of the collection meter box. After the concentrator 20 acquires the current application program, the data recorded by one or more meter box terminals 40 connected to the concentrator 20 can be acquired by matching with the existing firmware program of the concentrator 20, so that centralized meter reading of the data is realized.
As an optional implementation, the method may further include: and sending the specified data acquired within the preset duration to the master station device 30 every other preset duration.
In the present embodiment, the preset time period (which may be referred to as a first preset time period) may be set according to actual situations, and may be 1 hour, 24 hours, a week, a month, and the like, where the preset time period is not specifically limited. After collecting the data, the concentrator 20 may transmit the collected data to the master station device 30 every preset time period (for example, a time period of 1 hour, 24 hours, a week, a month, and the like). After sending the data to the master device 30, the concentrator 20 may delete the data in the buffer to make storage space for the buffer, so as to buffer new data collected from the meter box terminal 40.
As an optional implementation, the method may further include: the concentrator 20 may collect data from the meter box terminal 40 at intervals of a duration (the duration may be referred to as a second preset duration, and may be set according to actual conditions, for example, the duration may be 24 hours, a month, and the like), and after collecting the data, the concentrator 20 may directly send the collected data to the terminal device. Based on this, the concentrator 20 does not need to provide a storage module with a large storage capacity. Understandably, the hardware cost of a memory module with a larger capacity (e.g., greater than 64MB) is generally higher than that of a memory module with a smaller capacity (e.g., less than 64MB), which helps to reduce the hardware manufacturing cost of the concentrator 20.
As an optional implementation, the method may further include: when the total data capacity of the acquired specified data is greater than or equal to a specified threshold, the specified data is transmitted to the master device 30.
In the present embodiment, the specified threshold may be continuously set according to actual conditions, and may be, for example, 100KB, 1M, or the like. When the total data capacity of the specified data collected by the concentrator 20 from the meter box terminal 40 is greater than or equal to the specified threshold, the concentrator 20 can transmit all the specified data collected up to the present time to the master station device 30.
After transmitting data to the master station device 30, the concentrator 20 may delete the transmitted data in the local area, and then record the capacity of the new data collected from the meter box terminal 40, and when the total data capacity of the collected new data is greater than or equal to a specified threshold, may transmit all the collected data to the master station device 30 again, and cyclically collect and transmit the data in such a manner that the concentrator 20 can continuously (or for a long time) collect data from the meter box terminal 40 and transmit the collected data to the master station device 30.
As an optional implementation, the method may further include: within a preset time length, judging whether the total data capacity of the specified data collected from the meter box terminal 40 is greater than or equal to a specified threshold value; when the total data capacity is greater than or equal to a specified threshold value, specified data that has been acquired until now is transmitted to the master device 30. At this time, the concentrator 20 may count again, then continue to detect the newly acquired data (designated data), and if the total data capacity of the newly acquired data in the preset time period is greater than or equal to the designated threshold, send the newly acquired data to the master station device 30; if the total data capacity of the acquired data is smaller than the specified threshold value within the re-timed preset duration, the acquired specified data is sent to the master station device 30 when the duration is the re-timed preset duration, and then re-timing is performed.
Of course, when the total data capacity is greater than or equal to the specified threshold, after the currently acquired specified data is transmitted to the master station device 30, the concentrator 20 may also continue to count time after the time of transmitting the data (i.e., does not count time again at this time), and then continue to detect newly acquired data (excluding the data that has been transmitted); if the total data capacity of the collected new data is greater than or equal to the specified threshold value within the preset time length, the newly collected data is continuously sent to the master station device 30. When the duration is the preset duration, the specified data acquired from the time (the first time) of the last data sent to the master station device 30 before the preset duration to the time (the second time) of the preset duration, and the period (the first time to the second time) of the preset duration, is sent to the master station device 30.
Referring to fig. 4, before step S120, the method may further include the step of initializing the concentrator 20. For example, the method may further include step S110 before step S120. Step S110 is to initialize the concentrator 20 to delete the application program pre-stored in the concentrator 20.
In this embodiment, the concentrator 20 may initialize the storage module through a firmware program when being powered on. Understandably, for the storage area in the storage module of the concentrator 20 for storing the application program, during initialization, whether the storage area stores the application program or not, during initialization, the storage area may be subjected to data formatting by the firmware program to clear the storage area. Of course, if there is no application in the storage area, then initialization operations may not be needed; alternatively, at initialization, no more formatting (or flushing) operations need to be performed on the memory region.
Referring to fig. 2 again, in the concentrator 20 provided in the embodiment of the present application, the first communication module 21 is configured to obtain a current application from a master station device 30 communicatively connected to the concentrator 20, where the current application is configured to drive the concentrator 20 to collect specified data.
When the current application is running, the current application is used for driving the second communication module 22 to obtain the specified data.
The first communication module 21 may also be configured to: sending the specified data acquired within the preset duration to the master station device 30 every other preset duration; alternatively, when the total data capacity of the acquired specified data is greater than or equal to a specified threshold, the specified data is transmitted to the master device 30.
Optionally, the second communication module 22, under the control of the processing module 23, may further be configured to: identifying a designated virtual port of a first communication module 21 connected to the concentrator 20 when the concentrator 20 is powered on; establishing the communication connection with the master station device 30 through the designated virtual network port in a client mode; the current application is acquired from the master device 30.
Optionally, the processing module 23 may be further configured to: the concentrator 20 is initialized to delete the application programs pre-stored by the concentrator 20.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working process of the concentrator 20 described above may refer to the corresponding process of each step in the foregoing method, and will not be described in detail herein.
The embodiment of the application also provides a computer readable storage medium. The readable storage medium has stored therein a computer program that, when run on a computer, causes the computer to execute the data acquisition method as described in the above embodiments.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by hardware, or by software plus a necessary general hardware platform, and based on such understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments of the present application.
In summary, the present application provides a data acquisition method, a concentrator, a data acquisition system, and a readable storage medium. The method comprises the following steps: acquiring a current application program from master station equipment in communication connection with the concentrator, wherein the current application program is used for driving the concentrator to acquire specified data; and running the current application program to acquire the specified data through the current application program. In the scheme, when the concentrator runs, the application program is acquired from the master station device, so that the concentrator can directly acquire the updated application program from the master station device, and the problem of low efficiency of updating the application program by the concentrator is solved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus, system, and method may be implemented in other ways. The apparatus, system, and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims (10)
1. A data acquisition method, applied to a concentrator, the method comprising:
acquiring a current application program from master station equipment in communication connection with the concentrator, wherein the current application program is used for driving the concentrator to acquire specified data;
and running the current application program to acquire the specified data through the current application program.
2. The method of claim 1, wherein obtaining the current application from a master device communicatively coupled to the concentrator comprises:
when the concentrator is powered on, identifying a designated virtual network port of a first communication module connected with the concentrator;
establishing the communication connection with the master station equipment through the specified virtual network port in a client mode;
and acquiring the current application program from the master station device.
3. The method of claim 1, further comprising:
sending the specified data acquired within the preset duration to the master station equipment at intervals of preset duration, or
And when the total data capacity of the acquired specified data is greater than or equal to a specified threshold, transmitting the specified data to the master station device.
4. The method of claim 1, wherein prior to obtaining the current application from a master device communicatively coupled to the concentrator, the method further comprises:
initializing the concentrator to delete the application program pre-stored by the concentrator.
5. The method according to any of claims 1-4, wherein the current application is the most recent version of the application in the master device that drives the concentrator to collect the specified data.
6. A concentrator, comprising a first communication module and a second communication module;
the first communication module is used for acquiring a current application program from master station equipment in communication connection with the concentrator, and the current application program is used for driving the concentrator to acquire specified data;
and when the current application program is operated, the current application program is used for driving the second communication module to acquire the specified data.
7. The concentrator of claim 6, wherein the first communication module is further configured to:
sending the specified data acquired within the preset duration to the master station equipment at intervals of preset duration, or
And when the total data capacity of the acquired specified data is greater than or equal to a specified threshold, transmitting the specified data to the master station device.
8. Concentrator according to claim 6 or 7, characterized in that the processor of the concentrator is connected to the first communication module via a USB port and/or the processor is connected to the second communication module via a physical network port.
9. A data acquisition system comprising a master station device and a concentrator as claimed in any one of claims 6 to 8, the concentrator being communicatively coupled to the master station device.
10. A computer-readable storage medium, in which a computer program is stored which, when run on a computer, causes the computer to carry out the method according to any one of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910952002.3A CN110708379A (en) | 2019-10-09 | 2019-10-09 | Data acquisition method, concentrator, data acquisition system and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910952002.3A CN110708379A (en) | 2019-10-09 | 2019-10-09 | Data acquisition method, concentrator, data acquisition system and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110708379A true CN110708379A (en) | 2020-01-17 |
Family
ID=69198285
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910952002.3A Pending CN110708379A (en) | 2019-10-09 | 2019-10-09 | Data acquisition method, concentrator, data acquisition system and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110708379A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113965821A (en) * | 2021-09-10 | 2022-01-21 | 江苏方天电力技术有限公司 | Digital district multi-source heterogeneous communication routing system and method |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102194309A (en) * | 2010-07-30 | 2011-09-21 | 北京航空航天大学 | Low-voltage power line broadband carrier concentrator |
CN102376153A (en) * | 2011-11-15 | 2012-03-14 | 深圳市科陆电子科技股份有限公司 | Method for remotely updating carrier sheet and acquirer in concentrated meter reading system |
CN102790805A (en) * | 2012-08-09 | 2012-11-21 | 宁夏隆基宁光仪表有限公司 | Power consumer electricity consumption information acquisition system based on cloud service |
US20130241746A1 (en) * | 2011-08-15 | 2013-09-19 | Digimarc Corporation | A/b/c phase determination and synchrophasor measurement using common electric smart meters and wireless communications |
CN103413426A (en) * | 2013-08-19 | 2013-11-27 | 孙蕾 | Multi-analog-acquisition intelligent power concentrator |
CN105139623A (en) * | 2015-09-29 | 2015-12-09 | 光一科技股份有限公司 | File compression remote upgrading method for collector multistage transmission based on broadband carrier waves |
CN108039041A (en) * | 2018-01-30 | 2018-05-15 | 北京博望华科科技有限公司 | A kind of high speed 4G concentrators communication module, power information acquisition system and method |
CN108320483A (en) * | 2018-02-09 | 2018-07-24 | 上海均易信息科技有限公司 | concentrator remote communication module and concentrator |
CN108345460A (en) * | 2017-12-28 | 2018-07-31 | 三维通信股份有限公司 | A kind of method that more equipment synchronize burning Linux firmwares and application program |
-
2019
- 2019-10-09 CN CN201910952002.3A patent/CN110708379A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102194309A (en) * | 2010-07-30 | 2011-09-21 | 北京航空航天大学 | Low-voltage power line broadband carrier concentrator |
US20130241746A1 (en) * | 2011-08-15 | 2013-09-19 | Digimarc Corporation | A/b/c phase determination and synchrophasor measurement using common electric smart meters and wireless communications |
CN102376153A (en) * | 2011-11-15 | 2012-03-14 | 深圳市科陆电子科技股份有限公司 | Method for remotely updating carrier sheet and acquirer in concentrated meter reading system |
CN102790805A (en) * | 2012-08-09 | 2012-11-21 | 宁夏隆基宁光仪表有限公司 | Power consumer electricity consumption information acquisition system based on cloud service |
CN103413426A (en) * | 2013-08-19 | 2013-11-27 | 孙蕾 | Multi-analog-acquisition intelligent power concentrator |
CN105139623A (en) * | 2015-09-29 | 2015-12-09 | 光一科技股份有限公司 | File compression remote upgrading method for collector multistage transmission based on broadband carrier waves |
CN108345460A (en) * | 2017-12-28 | 2018-07-31 | 三维通信股份有限公司 | A kind of method that more equipment synchronize burning Linux firmwares and application program |
CN108039041A (en) * | 2018-01-30 | 2018-05-15 | 北京博望华科科技有限公司 | A kind of high speed 4G concentrators communication module, power information acquisition system and method |
CN108320483A (en) * | 2018-02-09 | 2018-07-24 | 上海均易信息科技有限公司 | concentrator remote communication module and concentrator |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113965821A (en) * | 2021-09-10 | 2022-01-21 | 江苏方天电力技术有限公司 | Digital district multi-source heterogeneous communication routing system and method |
CN113965821B (en) * | 2021-09-10 | 2024-01-26 | 江苏方天电力技术有限公司 | Digital district multi-source heterogeneous communication routing system and method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109688207B (en) | Log transmission method and device and server | |
KR101745456B1 (en) | Ecu for transmitting large data in hil test environment, system including the same and method thereof | |
WO2018076755A1 (en) | Method and apparatus for issuing upgrade package | |
CN103106163B (en) | Based on fpga chip online upgrading structure and the method for Frame XON/XOFF | |
CN104007996A (en) | Reliable firmware upgrading realizing method for distributed control system | |
CN105357048A (en) | Method and system for data synchronization of network equipment | |
US10797986B2 (en) | Link discovery method and apparatus | |
CN110928561B (en) | Vehicle controller software version management method and device, vehicle and storage medium | |
CN104298194A (en) | Method for compressing acquisition and transmission data in elevator remote monitoring system | |
KR101428778B1 (en) | Apparatus and method for upgrading firmware of automatic meter reading terminal on the remote | |
CN105260202A (en) | Client file updating method and system | |
CN103825764A (en) | Data collecting instrument monitoring system based on cloud calculation and method for enhancing communication stability of data collecting instrument monitoring system based on cloud calculation | |
CN110708379A (en) | Data acquisition method, concentrator, data acquisition system and readable storage medium | |
CN105607606A (en) | Data acquisition device and data acquisition method based on double-mainboard framework | |
CN111198698B (en) | EtherCAT-based multi-device firmware program parallel downloading method and system | |
CN114500605A (en) | Industrial Internet of things data transmission method based on 5G and intelligent gateway | |
CN114265601A (en) | Method, apparatus and program product for managing artificial intelligence applications | |
CN105278992A (en) | Firmware updating method and apparatus | |
CN117692989A (en) | Wireless sensor network cluster routing method and device combining static and dynamic identifiers | |
CN104701982A (en) | Method for automatically updating distribution line monitor terminal | |
CN114726892B (en) | Edge data collection method based on artificial intelligence big data | |
CN108011750B (en) | Firmware upgrading method for communication module in centralized meter reading system | |
CN107171915B (en) | Communication protocol changing method and device | |
CN109783911B (en) | Method and system for automatically updating layout and wiring based on FPGA | |
CN102355456B (en) | Management method and device for restart counter |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200117 |