CN110995308A - Terminal data acquisition system and acquisition method thereof - Google Patents

Terminal data acquisition system and acquisition method thereof Download PDF

Info

Publication number
CN110995308A
CN110995308A CN201911154766.4A CN201911154766A CN110995308A CN 110995308 A CN110995308 A CN 110995308A CN 201911154766 A CN201911154766 A CN 201911154766A CN 110995308 A CN110995308 A CN 110995308A
Authority
CN
China
Prior art keywords
slave
host
data
server
central processing
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.)
Granted
Application number
CN201911154766.4A
Other languages
Chinese (zh)
Other versions
CN110995308B (en
Inventor
周旭阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NINGBO EST TECHNOLOGY CO LTD
Original Assignee
NINGBO EST TECHNOLOGY CO LTD
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by NINGBO EST TECHNOLOGY CO LTD filed Critical NINGBO EST TECHNOLOGY CO LTD
Priority to CN201911154766.4A priority Critical patent/CN110995308B/en
Publication of CN110995308A publication Critical patent/CN110995308A/en
Application granted granted Critical
Publication of CN110995308B publication Critical patent/CN110995308B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The invention discloses a terminal data acquisition system and an acquisition method thereof.A data acquisition unit is built by a host and a slave, terminal equipment carries out data communication with the slave through a second Ethernet interface or a second RS485 interface of the slave, the slave carries out communication with a first SI4463 chip of the host through a second SI4463 chip, data forwarding is not carried out by other operator equipment, the influence of environmental factors is small, the host carries out communication with a server through a first Ethernet interface or a first wifi transceiver, the operation cost is basically zero, the server, the host and the slave are connected by adopting a mature SI446 chip, an Ethernet interface and a wifi chip, the connection speed is high, and the real-time performance and the stability of data are ensured; the advantages are that the data receiving and transmitting are not affected by environmental factors, the use area is not limited, the operation cost is lower, and the real-time performance and the accuracy of data acquisition are higher.

Description

Terminal data acquisition system and acquisition method thereof
Technical Field
The invention relates to a terminal data acquisition system, in particular to a terminal data acquisition system and an acquisition method thereof.
Background
With the rapid development of intelligent technologies, people are more and more intelligent in managing various devices. At present, people can carry out real-time remote monitoring to terminal equipment through internet of things, greatly reduced terminal equipment's maintenance cost, improved the security and the stability of terminal equipment operation. Currently, the data acquisition of the terminal equipment is mainly realized through a terminal data acquisition system, so that the remote monitoring of the terminal equipment is realized.
The existing terminal data acquisition system for 433M frequency band generally includes a server and a baseband chip (2G module or 4G module) disposed at a terminal device, where each terminal device uploads data to the server through a base station of a network operator through the baseband chip disposed at the terminal device. However, the existing terminal data acquisition system for 433M frequency band has the following problems: firstly, signals of 2G and 4G base stations are weakened by metal plants of part of terminal customers, or the terminal customers are in mountainous areas and lack of building of the base stations, and data of target terminal equipment cannot be uploaded in real time, so that data receiving and transmitting are limited by environmental factors and use areas are limited; secondly, because the data is transmitted and received through the base station of the network operator, the network operator needs to pay a certain fee regularly to purchase the corresponding flow, and the cost is increased in the long-term use process; before the terminal data acquisition system is used, various functions need to be started through a series of AT instructions, the time for successful connection for one time is AT least more than 10 seconds, and the terminal data acquisition system is often started repeatedly when the signal is not good, so that the real-time performance and the accuracy of data acquisition are influenced.
Disclosure of Invention
One of the technical problems to be solved by the present invention is to provide a terminal data acquisition system, in which data transmission and reception are not affected by environmental factors, the use area is not limited, the operation cost is low, and the real-time performance and accuracy of data acquisition are high.
The technical scheme adopted by the invention for solving one of the technical problems is as follows: a terminal data acquisition system comprises a server and at least one data acquisition unit, wherein each data acquisition unit comprises a host and m slave machines, m is an integer larger than or equal to 1, the host comprises a first SI4463 chip, a first Wifi transceiver, a first central processing unit, a first RS485 interface, a first USB interface, a first Ethernet interface and a first power interface, the first SI4463 chip, the first Wifi transceiver, the first RS485 interface, the first USB interface, the first Ethernet interface and the first power interface are respectively connected with the first central processing unit, the first power interface is used for accessing a power supply to provide a working power supply for the host machine, the first USB interface is used for accessing USB equipment, and each slave machine comprises a second SI4463 chip, a first USB interface and a second USB interface, The second SI4463 chip, the second RS485 interface, the second Ethernet interface and the second power interface are respectively connected with the second central processor, the second power interface is used for accessing a power supply to provide a working power supply for the slave computers, and each slave computer can establish connection with the first SI4463 chip in the host computer through the second SI4463 chip arranged in the slave computer to realize data interaction; (ii) a Each slave machine is respectively arranged near a corresponding target terminal device which needs data acquisition, and can be connected with the corresponding target terminal device which needs data acquisition through a second Ethernet interface arranged in the slave machine, data interaction is realized through the Ethernet, and also can be connected with the corresponding target terminal device which needs data acquisition through a second RS485 interface arranged in the slave machine, and data interaction is realized through a 485 communication mode; in each data acquisition unit, the host can perform data interaction with the server in a wireless network communication mode through the first Wifi transceiving device, and also can perform data interaction with the server in an Ethernet communication mode through the first Ethernet interface; when the server is connected with the host in the data acquisition unit, the host in the data acquisition unit is connected with the slave, and the slave in the data acquisition unit is connected with the target terminal equipment, the server can periodically acquire the data of the target terminal equipment through the host and the slave connected with the server, so that the data acquisition of the terminal equipment is realized.
The host of each data acquisition unit further comprises a first LED indicator light group, the first LED indicator light group comprises four indicator lights, and when the host is in a power-on state, the four indicator lights in the first LED indicator light group perform corresponding indication under the control of the first central processing unit: when the first USB interface of the host is not inserted with USB equipment, if the first SI4463 chip receives data sent by a second SI4463 chip of a slave, the first central processing unit controls the first lamp of the four indicator lamps of the first LED indicator lamp set to be turned off, when the first SI4463 chip finishes sending the received data sent by the second SI4463 chip of the slave, the first central processing unit controls the first lamp of the four indicator lamps of the first LED indicator lamp set to be turned on, and when the first central processing unit is in the running process, the time can be regularly judged, and the state of the second lamp of the four indicator lamps of the first LED indicator lamp set is controlled to be changed once between on and off every 500 milliseconds; when the first Ethernet interface or the first wifi transceiver is transmitting data, the first central processing unit controls a third lamp of the four lamps of the first LED lamp set to be on, and when the first Ethernet interface or the first wifi transceiver is receiving data, the first central processing unit controls a third lamp of the four lamps of the first LED lamp set to be off; when the first SI4463 chip in the host does not perform data interaction with the second SI4463 chip of any slave, the central processing unit controls the fourth lamp in the four indicator lamps of the first LED indicator lamp set to be turned off, when the first SI4463 chip in the host performs data interaction with the second SI4463 chip of a certain slave, the central processing unit controls the fourth lamp in the four indicator lamps of the first LED indicator lamp set to be turned off for 2 seconds firstly, and then controls the fourth lamp in the four indicator lamps of the first LED indicator lamp set to flash once every time one slave is successfully connected with the host, wherein the flashing interval is 500 milliseconds; when a USB device is inserted into the first USB interface, the first central processor controls all four indicator lamps in the first LED indicator lamp set to be turned off, reads files in the USB device and stores the files, if the files which are read successfully are at least one of wifi configuration files and Ethernet configuration files, the first central processor controls a third indicator lamp in the four indicator lamps in the first LED indicator lamp set to be turned on, and if the files which are read are other files except the wifi configuration files and the Ethernet configuration files, the first central controller controls a fourth indicator lamp in the four indicator lamps in the first LED indicator lamp set to be turned on constantly; each slave machine further comprises a second LED indicator lamp set, the second LED indicator lamp set comprises four indicator lamps, and after the first power interface of the slave machine is communicated with an external power supply, the four indicator lamps in the second LED indicator lamp set perform corresponding indication under the control of the second central processing unit: when the second SI4463 chip receives data, the second central processing unit controls the first lamp in the second LED indicator lamp set to be turned off, and when the second SI4463 chip finishes sending the received data, the second central processing unit controls the first lamp in the second LED indicator lamp set to be turned on, and when the second central processing unit is in a running state, the time can be judged at regular time, and the state of the second lamp in the second LED indicator lamp set is controlled to change once between turning on and turning off every 500 milliseconds; when the second Ethernet interface sends data, the second central processing unit controls a third lamp in the second LED indicating lamp group to be turned on, and when the second Ethernet interface receives data, the second central processing unit controls the third lamp in the second LED indicating lamp group to be turned off; when the second RS485 interface sends data, the second central processing unit controls the fourth lamp in the second LED indicating lamp group to be turned on, and when the second RS485 interface receives data, the second central processing unit controls the fourth lamp in the second LED indicating lamp group to be turned off.
Compared with the prior art, the terminal data acquisition system has the advantages that: the data acquisition unit is set up through the host and the slave, the terminal equipment carries out data communication with the slave through a second Ethernet interface of the slave or a second RS485 interface of the slave, the slave carries out data interaction with a first SI4463 chip of the host through a second SI4463 chip, and the data interaction between the host and the slave or the data interaction between the slave and the terminal equipment does not depend on other network operator equipment for forwarding, so the data acquisition unit is less influenced by environmental factors and is basically not limited by base station signals of a use area, in addition, as router equipment is arranged in the environment of most terminal customers at present and is used for normal work, the host can communicate with the server through a first Ethernet interface or a first wifi transceiving device of the host, the operation cost is basically zero, and the connection process of the server, the host and the slave in the terminal data acquisition system of the invention, the terminal data equipment system disclosed by the invention has the advantages that other equipment does not need to be additionally driven, the connection speed is high, the hardware such as the used SI446 chip, the Ethernet interface and the wifi chip and the driving application are relatively mature and stable, and the real-time performance and the stability of data are greatly ensured.
The second technical problem to be solved by the present invention is to provide a method for acquiring a terminal data acquisition system, in which data transmission and reception are not affected by environmental factors, the use area is not limited, the operation cost is low, and the real-time performance and accuracy of data acquisition are high.
The second technical solution adopted by the present invention to solve the above technical problems is: an acquisition method of the terminal data acquisition system of claim 1, comprising the steps of:
step 1, respectively configuring a server, a host computer and a slave computer in each data acquisition unit, wherein the configuration mode of the server is as follows: a manager enters the server, inputs an account password with the authority of the manager, and stores the equipment number of the host and the equipment number of the slave in the terminal data acquisition system in a database of the server to form an effective equipment number form;
the configuration mode of the host is as follows: if all hosts needing to be configured communicate with the server through the wireless network, storing Wifi configuration files into the USB device, inserting the USB device into a first USB interface of the hosts needing to be configured, acquiring the Wifi configuration files in the USB device by a first central processing unit in the hosts, pulling out the USB device after the acquisition is completed, operating the Wifi configuration files by the first central processing unit to control the first Wifi transceiving device to be started, storing Ethernet configuration files into the USB device, inserting the USB device into the first USB interface of the hosts needing to be configured, acquiring the Ethernet configuration files in the USB device by the first central processing unit in the hosts, pulling out the USB device after the acquisition is completed, operating the Ethernet configuration files by the first central processing unit to control the first Ethernet interface to be started, if the host computer needing configuration communicates with the server through a wireless network and also communicates through the Ethernet, storing the Wifi configuration file and the Ethernet configuration file into the USB device, inserting the USB device into the first USB interface of the host computer, pulling out the USB device after the first central processing unit of the host computer successfully acquires the file in the USB device, operating the Wifi configuration file and the Ethernet configuration file by the first central processing unit at the moment, and controlling the first Wifi transceiver and the first Ethernet interface to be opened;
the configuration mode of the slave machine is as follows: placing an antenna on a second SI4463 chip of each slave machine which needs to be configured in each data acquisition unit in an open environment, and connecting the slave machine with corresponding target terminal equipment which needs to carry out data acquisition;
step 2, when the host in the data acquisition unit is started, the host is in an unregistered state, the host starts to search the server autonomously, when the host searches the server and establishes connection with the server, a first central processing unit of the host sends a registration packet marked with the equipment number of the host to the server, the server analyzes the registration packet after receiving the registration packet to obtain the equipment number marked by the registration packet, then searches the equipment number in a valid equipment number form of a database of the host, if the equipment number can be found, the server sends registration success information marked with the equipment number to the host, after receiving the registration success information, the host changes the state of the host into a registration success state in the first central processing unit, the host enters a data acquisition stage, if the equipment number cannot be found, the server sends registration failure information marked with the equipment number to the host, after the host receives the registration failure information, the first central processing unit sets the time interval to be 10 seconds, and sends the registration packet marked with the equipment number to the server again until the registration success information sent by the server is received or the connection between the host and the server is closed;
when a slave in the data acquisition unit is started, the slave is in an unregistered state, the slave searches a master in the data acquisition unit through a second SI4463 chip in the slave, when the master which is registered successfully is searched, the slave establishes connection with the master, the slave sends the equipment number of the slave to the master, a first central processing unit of the master establishes a data linked list of the slave according to the equipment number of the slave, the master sends the equipment number of the slave to the slave, a second central processing unit of the slave stores the equipment number of the master, the slave sends a registration packet marked with the equipment number of the slave to a server through the master, the server analyzes the received registration packet of the slave to obtain the equipment number of the slave, then searches the equipment number in a valid equipment number list of a database of the slave, if the equipment number can be found, the server sends registration information marked with the equipment number of the slave successfully to the slave through the master, after the slave receives the registration success information, the state of the slave is changed into a registration success state in a second central processing unit of the slave, at the moment, the slave enters a data acquisition stage, if the slave cannot be found, the server sends the registration failure information marked with the equipment number to the slave through the host, after the slave receives the registration failure information, the second central processing unit of the slave sets the time interval for 10 seconds, and the registration information marked with the equipment number is sent to the server again through the host until the registration success information sent by the server is received or the connection between the slave and the host is closed;
step 3, after the terminal device is connected with one slave in the data acquisition stage in the data acquisition unit, the terminal device sends the device number of the slave to the slave, a second central processing unit of the slave saves the device number of the terminal device, then the device number of the slave is added in the device number of the terminal device and then sent to a server through a registered host which is connected with the slave, the server obtains the device number of the slave and the device number of the terminal device, then a regular data request command which is marked with the device number of the slave and the device number of the terminal device is periodically generated and sent to the host, the host sends the regular data request command to the corresponding slave, the slave sends the regular data request command to the corresponding terminal device, and the terminal device analyzes the regular data request command after receiving each regular data request command, and then generating a regular request data packet marked with the equipment number according to the analysis content and sending the regular request data packet to the slave computer, marking the equipment number on the regular request data packet by the slave computer and sending the regular request data packet to the server through the host computer, analyzing the regular request data packet by the server and then storing the analyzed data of the terminal equipment in a database to realize the acquisition of the data of the terminal equipment.
The server can also require the terminal device to send data once, and the specific process is as follows: besides the server regularly collects the terminal equipment data, if other data of the terminal equipment needs to be collected additionally, the manager generates a single data request instruction marked with the slave equipment number and the terminal equipment number in the server and sends the single data request instruction to the master, the master sends the single data request instruction marked with the slave equipment number and the terminal equipment number to the corresponding slave, the slave machine sends the single data request instruction to the corresponding terminal equipment, the terminal equipment generates a single request data packet marked with the equipment number after analyzing the single data request instruction and sends the single request data packet to the slave machine, the slave machine marks the equipment number of the single request data packet and sends the single request data packet to the server through the host machine, and the server analyzes the single request data packet and then stores the analyzed data of the terminal equipment in the database to realize the single acquisition of the data of the terminal equipment.
Compared with the prior art, the acquisition method of the terminal data acquisition system has the advantages that the server, the host and the slave are configured, in the data acquisition process of the terminal equipment, the terminal equipment is in data communication with the slave through the second Ethernet interface of the slave or the second RS485 interface of the slave, the slave is in data interaction with the first SI4463 chip of the host through the second SI4463 chip, the data interaction between the host and the slave or the data interaction between the slave and the terminal equipment is not dependent on other network operator equipment for forwarding, is less influenced by environmental factors and is basically not limited by base station signals of a use area, in addition, as most of the current terminal clients have router equipment in the environment for normal work, the host can communicate with the server through the first Ethernet interface or the first wifi transceiving device, therefore, the operation cost is basically zero, the connection process of the server, the host and the slave in the terminal data acquisition system does not need to additionally drive other equipment, the connection speed is high, and the hardware and the driving application of the used SI446 chip, the Ethernet interface and the wifi chip are relatively mature and stable, so that the real-time performance and the stability of data are greatly ensured.
Drawings
FIG. 1 is a schematic diagram of the structure of a terminal data acquisition system of the present invention;
FIG. 2 is a schematic diagram of a host computer in the terminal data acquisition system according to the present invention;
fig. 3 is a schematic structural diagram of a slave in the terminal data acquisition system of the present invention.
Detailed Description
The invention discloses a terminal data acquisition system, which is described in further detail below with reference to the embodiments of the attached drawings.
Example (b): as shown in the figure, the terminal data acquisition system comprises a server, and at least one data acquisition unit, wherein each data acquisition unit comprises a host and m slaves, m is an integer greater than or equal to 1, the host comprises a first SI4463 chip, a first Wifi transceiver, a first central processing unit, a first RS485 interface, a first USB interface, a first Ethernet interface and a first power interface, the first SI4463 chip, the first Wifi transceiver, the first RS485 interface, the first USB interface, the first Ethernet interface and the first power interface are respectively connected with the first central processing unit, the first power interface is used for accessing a power supply to provide a working power supply for the host, the first USB interface is used for accessing USB equipment, each slave comprises a second SI4463 chip, a second central processing unit, a second RS485 interface, a second Ethernet interface and a second power interface, the second SI4463 chip, the second RS485 interface, the second Ethernet interface and the second power interface are respectively connected with the second central processing unit, the second power interface is used for accessing a power supply to provide a working power supply for the slave machines, and each slave machine can establish connection with the first SI4463 chip in the host machine through the second SI4463 chip arranged in the slave machine to realize data interaction; each slave machine is respectively arranged near the corresponding target terminal equipment which needs to be subjected to data acquisition, and can be connected with the corresponding target terminal equipment which needs to be subjected to data acquisition through a second Ethernet interface arranged in each slave machine, data interaction is realized through the Ethernet, and also can be connected with the corresponding target terminal equipment which needs to be subjected to data acquisition through a second RS485 interface arranged in each slave machine, and data interaction is realized through a 485 communication mode; in each data acquisition unit, the host can perform data interaction with the server in a wireless network communication mode through the first Wifi transceiver device and also can perform data interaction with the server in an Ethernet communication mode through the first Ethernet interface; (ii) a When the server is connected with the host in the data acquisition unit, the host in the data acquisition unit is connected with the slave, and the slave in the data acquisition unit is connected with the target terminal device, the server can periodically acquire the data of the target terminal device through the host and the slave connected with the server, so that the data acquisition of the terminal device is realized.
In this embodiment, the host of each data acquisition unit further includes a first LED indicator light set, where the first LED indicator light set includes four indicator lights, and when the host is in the power-on state, the four indicator lights in the first LED indicator light set perform corresponding indication under the control of the first central processing unit: when no USB equipment is inserted into a first USB interface of the host, if the first SI4463 chip receives data sent by the second SI4463 chip of the slave, the first central processing unit controls the first lamp of the four indicator lamps of the first LED indicator lamp set to be turned off, and when the first SI4463 chip finishes sending the received data sent by the second SI4463 chip of the slave, the first central processing unit controls the first lamp of the four indicator lamps of the first LED indicator lamp set to be turned on, and when the first central processing unit is in the running process, the time can be judged regularly, and the state of the second lamp of the four indicator lamps of the first LED indicator lamp set is controlled to change once between on and off every 500 milliseconds; when the first Ethernet interface or the first wifi transceiving device is transmitting data, the first central processing unit controls a third lamp of the four indicator lamps of the first LED indicator lamp set to be on, and when the first Ethernet interface or the first wifi transceiving device is receiving data, the first central processing unit controls the third lamp of the four indicator lamps of the first LED indicator lamp set to be off; when the first SI4463 chip in the host computer does not perform data interaction with the second SI4463 chip of any slave computer, the central processing unit controls the fourth lamp in the four indicator lamps of the first LED indicator lamp set to be turned off, when the first SI4463 chip in the host computer performs data interaction with the second SI4463 chip of a certain slave computer, the central processing unit controls the fourth lamp in the four indicator lamps of the first LED indicator lamp set to be turned off for 2 seconds, and then the fourth lamp in the four indicator lamps of the first LED indicator lamp set is controlled to flash once every slave computer which is successfully connected with the host computer, wherein the flashing interval is 500 milliseconds; when a USB device is inserted into a first USB interface, a first central processor controls all four indicator lamps in a first LED indicator lamp set to be turned off, reads files in the USB device and stores the files, if the files which are successfully read are at least one of wifi configuration files and Ethernet configuration files, the first central processor controls a third indicator lamp in the four indicator lamps in the first LED indicator lamp set to be turned on, and if the files which are successfully read are other files except the wifi configuration files and the Ethernet configuration files, a fourth indicator lamp in the four indicator lamps in the first LED indicator lamp set is controlled by the first central processor to be turned on constantly; each slave machine further comprises a second LED indicator lamp set, the second LED indicator lamp set comprises four indicator lamps, and when the first power interface of the slave machine is communicated with an external power supply, the four indicator lamps in the second LED indicator lamp set perform corresponding indication under the control of the second central processing unit: when the second SI4463 chip receives data, the second central processing unit controls the first lamp in the second LED indicating lamp group to be turned off, when the second SI4463 chip finishes sending the received data, the second central processing unit controls the first lamp in the second LED indicating lamp group to be turned on, and when the second central processing unit is in a running state, the time can be judged at regular time, and when 500 milliseconds pass, the state of the second lamp in the second LED indicating lamp group is controlled to change once between turning on and turning off; when the second Ethernet interface sends data, the second central processing unit controls a third lamp in the second LED indicating lamp group to be on, and when the second Ethernet interface receives data, the second central processing unit controls the third lamp in the second LED indicating lamp group to be off; when the second RS485 interface sends data, the second central processing unit controls the fourth lamp in the second LED indicating lamp group to be turned on, and when the second RS485 interface receives data, the second central processing unit controls the fourth lamp in the second LED indicating lamp group to be turned off.
The invention also discloses an acquisition method of the terminal data acquisition system, which is further described in detail in the embodiment of the attached drawings.
Example (b): an acquisition method of a terminal data acquisition system comprises the following steps:
step 1, respectively configuring a server, a host and a slave in each data acquisition unit, wherein the configuration mode of the server is as follows: a manager enters the server, inputs an account password with the authority of the manager, and stores the equipment number of the host and the equipment number of the slave in the terminal data acquisition system in a database of the server to form an effective equipment number form;
the configuration mode of the host computer is as follows: if all hosts needing to be configured communicate with the server through the wireless network, storing a Wifi configuration file into the USB device, inserting the USB device into a first USB interface of the hosts needing to be configured, acquiring the Wifi configuration file in the USB device by a first central processing unit in the hosts, pulling out the USB device after the acquisition is completed, operating the Wifi configuration file by the first central processing unit to control a first Wifi transceiver to be started, if all hosts needing to be configured communicate with the server through the Ethernet, storing an Ethernet configuration file into the USB device, inserting the USB device into the first USB interface of the hosts needing to be configured, acquiring the Ethernet configuration file in the USB device by the first central processing unit in the hosts, pulling out the USB device after the acquisition is completed, operating the Ethernet configuration file by the first central processing unit to control the first USB interface to be started, if the host computer needing configuration communicates with the server through a wireless network and also communicates through the Ethernet, storing the Wifi configuration file and the Ethernet configuration file into the USB device, inserting the USB device into a first USB interface of the host computer, and pulling out the USB device after a first central processing unit of the host computer successfully acquires the file in the USB device, wherein the first central processing unit operates the Wifi configuration file and the Ethernet configuration file at the moment and controls the first Wifi transceiving device and the first Ethernet interface to be opened;
the configuration mode of the slave machine is as follows: placing an antenna on a second SI4463 chip of a slave machine to be configured in each data acquisition unit in an open environment, and connecting the slave machine with corresponding target terminal equipment to be subjected to data acquisition;
step 2, when the host in the data acquisition unit is started, the host is in an unregistered state, the host starts to search the server autonomously, when the host searches the server and establishes connection with the server, a first central processing unit of the host sends a registration packet marked with the equipment number of the host to the server, the server analyzes the registration packet after receiving the registration packet to obtain the equipment number marked by the registration packet, then searches the equipment number in a valid equipment number form of a database of the host, if the equipment number can be found, the server sends registration success information marked with the equipment number to the host, after receiving the registration success information, the host changes the state of the host into a registration success state in the first central processing unit, the host enters a data acquisition stage, if the equipment number cannot be found, the server sends registration failure information marked with the equipment number to the host, after the host receives the registration failure information, the first central processing unit sets the time interval to be 10 seconds, and sends the registration packet marked with the equipment number to the server again until the registration success information sent by the server is received or the connection between the host and the server is closed;
when a slave in the data acquisition unit is started, the slave is in an unregistered state, the slave searches a master in the data acquisition unit through a second SI4463 chip in the slave, when the master which is registered successfully is searched, the slave establishes connection with the master, the slave sends the equipment number of the slave to the master, a first central processing unit of the master establishes a data linked list of the slave according to the equipment number of the slave, the master sends the equipment number of the slave to the slave, a second central processing unit of the slave stores the equipment number of the master, the slave sends a registration packet marked with the equipment number of the slave to a server through the master, the server analyzes the received registration packet of the slave to obtain the equipment number of the slave, then searches the equipment number in a valid equipment number list of a database of the slave, if the equipment number can be found, the server sends registration information marked with the equipment number of the slave successfully to the slave through the master, after the slave receives the registration success information, the state of the slave is changed into a registration success state in a second central processing unit of the slave, at the moment, the slave enters a data acquisition stage, if the slave cannot be found, the server sends the registration failure information marked with the equipment number to the slave through the host, after the slave receives the registration failure information, the second central processing unit of the slave sets the time interval for 10 seconds, and the registration information marked with the equipment number is sent to the server again through the host until the registration success information sent by the server is received or the connection between the slave and the host is closed;
step 3, after the terminal device is connected with one slave in the data acquisition stage in the data acquisition unit, the terminal device sends the device number of the slave to the slave, a second central processing unit of the slave saves the device number of the terminal device, then the device number of the slave is added in the device number of the terminal device and then sent to a server through a registered host which is connected with the slave, the server obtains the device number of the slave and the device number of the terminal device, then a regular data request command which is marked with the device number of the slave and the device number of the terminal device is periodically generated and sent to the host, the host sends the regular data request command to the corresponding slave, the slave sends the regular data request command to the corresponding terminal device, and the terminal device analyzes the regular data request command after receiving each regular data request command, and then generating a regular request data packet marked with the equipment number according to the analysis content and sending the regular request data packet to the slave computer, marking the equipment number on the regular request data packet by the slave computer and sending the regular request data packet to the server through the host computer, analyzing the regular request data packet by the server and then storing the analyzed data of the terminal equipment in a database to realize the acquisition of the data of the terminal equipment.
In this embodiment, the server can also request the terminal device to send data once, and the specific process is as follows: in addition to the server regularly acquiring the terminal equipment data, if other terminal equipment data needs to be additionally acquired, at the moment, a manager generates a single data request instruction marked with the slave equipment number and the terminal equipment number in the server and sends the single data request instruction marked with the slave equipment number and the terminal equipment number to the master, the master sends the single data request instruction marked with the slave equipment number and the terminal equipment number to the corresponding slave, the slave machine sends the single data request instruction to the corresponding terminal equipment, the terminal equipment generates a single request data packet marked with the equipment number after analyzing the single data request instruction and sends the single request data packet to the slave machine, the slave machine marks the equipment number of the single request data packet and sends the single request data packet to the server through the host machine, and the server analyzes the single request data packet and then stores the analyzed data of the terminal equipment in the database to realize the single acquisition of the data of the terminal equipment.

Claims (4)

1. A terminal data acquisition system comprises a server and is characterized by also comprising at least one data acquisition unit, wherein each data acquisition unit comprises a host and m slave machines respectively, m is an integer more than or equal to 1, the host comprises a first SI4463 chip, a first Wifi transceiver, a first central processing unit, a first RS485 interface, a first USB interface, a first Ethernet interface and a first power interface, the first SI4463 chip, the first Wifi transceiver, the first RS485 interface, the first USB interface, the first Ethernet interface and the first power interface are respectively connected with the first central processing unit, the first power interface is used for accessing a power supply to provide a working power supply for the host, and the first USB interface is used for accessing USB equipment, each slave machine comprises a second SI4463 chip, a second central processing unit, a second RS485 interface, a second Ethernet interface and a second power interface, the second SI4463 chip, the second RS485 interface, the second Ethernet interface and the second power interface are respectively connected with the second central processing unit, the second power interface is used for being connected with a power supply to provide a working power supply for the slave machine, and each slave machine can establish connection with a first SI4463 chip in the host machine through the second SI4463 chip arranged in the slave machine to realize data interaction; each slave machine is respectively arranged near a corresponding target terminal device which needs data acquisition, and can be connected with the corresponding target terminal device which needs data acquisition through a second Ethernet interface arranged in the slave machine, data interaction is realized through the Ethernet, and also can be connected with the corresponding target terminal device which needs data acquisition through a second RS485 interface arranged in the slave machine, and data interaction is realized through a 485 communication mode;
in each data acquisition unit, the host can perform data interaction with the server in a wireless network communication mode through the first Wifi transceiving device, and also can perform data interaction with the server in an Ethernet communication mode through the first Ethernet interface; (ii) a
When the server is connected with the host in the data acquisition unit, the host in the data acquisition unit is connected with the slave, and the slave in the data acquisition unit is connected with the target terminal equipment, the server can periodically acquire the data of the target terminal equipment through the host and the slave connected with the server, so that the data acquisition of the terminal equipment is realized.
2. A terminal data acquisition system as claimed in claim 1, wherein the host of each data acquisition unit further comprises a first LED indicator light set, the first LED indicator light set comprises four indicator lights, and when the host is in the power-on state, the four indicator lights in the first LED indicator light set perform corresponding indications under the control of the first central processing unit:
when the first USB interface of the host is not inserted with USB equipment, if the first SI4463 chip receives data sent by a second SI4463 chip of a slave, the first central processing unit controls the first lamp of the four indicator lamps of the first LED indicator lamp set to be turned off, when the first SI4463 chip finishes sending the received data sent by the second SI4463 chip of the slave, the first central processing unit controls the first lamp of the four indicator lamps of the first LED indicator lamp set to be turned on, and when the first central processing unit is in the running process, the time can be regularly judged, and the state of the second lamp of the four indicator lamps of the first LED indicator lamp set is controlled to be changed once between on and off every 500 milliseconds; when the first Ethernet interface or the first wifi transceiver is transmitting data, the first central processing unit controls a third lamp of the four lamps of the first LED lamp set to be on, and when the first Ethernet interface or the first wifi transceiver is receiving data, the first central processing unit controls a third lamp of the four lamps of the first LED lamp set to be off; when the first SI4463 chip in the host does not perform data interaction with the second SI4463 chip of any slave, the central processing unit controls the fourth lamp in the four indicator lamps of the first LED indicator lamp set to be turned off, when the first SI4463 chip in the host performs data interaction with the second SI4463 chip of a certain slave, the central processing unit controls the fourth lamp in the four indicator lamps of the first LED indicator lamp set to be turned off for 2 seconds firstly, and then controls the fourth lamp in the four indicator lamps of the first LED indicator lamp set to flash once every time one slave is successfully connected with the host, wherein the flashing interval is 500 milliseconds; when a USB device is inserted into the first USB interface, the first central processor controls all four indicator lamps in the first LED indicator lamp set to be turned off, reads files in the USB device and stores the files, if the files which are read successfully are at least one of wifi configuration files and Ethernet configuration files, the first central processor controls a third indicator lamp in the four indicator lamps in the first LED indicator lamp set to be turned on, and if the files which are read are other files except the wifi configuration files and the Ethernet configuration files, the first central controller controls a fourth indicator lamp in the four indicator lamps in the first LED indicator lamp set to be turned on constantly;
each slave machine further comprises a second LED indicator lamp set, the second LED indicator lamp set comprises four indicator lamps, and after the first power interface of the slave machine is communicated with an external power supply, the four indicator lamps in the second LED indicator lamp set perform corresponding indication under the control of the second central processing unit: when the second SI4463 chip receives data, the second central processing unit controls the first lamp in the second LED indicator lamp set to be turned off, and when the second SI4463 chip finishes sending the received data, the second central processing unit controls the first lamp in the second LED indicator lamp set to be turned on, and when the second central processing unit is in a running state, the time can be judged at regular time, and the state of the second lamp in the second LED indicator lamp set is controlled to change once between turning on and turning off every 500 milliseconds; when the second Ethernet interface sends data, the second central processing unit controls a third lamp in the second LED indicating lamp group to be turned on, and when the second Ethernet interface receives data, the second central processing unit controls the third lamp in the second LED indicating lamp group to be turned off; when the second RS485 interface sends data, the second central processing unit controls the fourth lamp in the second LED indicating lamp group to be turned on, and when the second RS485 interface receives data, the second central processing unit controls the fourth lamp in the second LED indicating lamp group to be turned off.
3. The acquisition method of the terminal data acquisition system according to claim 1, characterized by comprising the steps of:
step 1, respectively configuring a server, a host computer and a slave computer in each data acquisition unit, wherein the configuration mode of the server is as follows: a manager enters the server, inputs an account password with the authority of the manager, and stores the equipment number of the host and the equipment number of the slave in the terminal data acquisition system in a database of the server to form an effective equipment number form;
the configuration mode of the host is as follows: if all hosts needing to be configured communicate with the server through the wireless network, storing Wifi configuration files into the USB device, inserting the USB device into a first USB interface of the hosts needing to be configured, acquiring the Wifi configuration files in the USB device by a first central processing unit in the hosts, pulling out the USB device after the acquisition is completed, operating the Wifi configuration files by the first central processing unit to control the first Wifi transceiving device to be started, storing Ethernet configuration files into the USB device, inserting the USB device into the first USB interface of the hosts needing to be configured, acquiring the Ethernet configuration files in the USB device by the first central processing unit in the hosts, pulling out the USB device after the acquisition is completed, operating the Ethernet configuration files by the first central processing unit to control the first Ethernet interface to be started, if the host computer needing configuration communicates with the server through a wireless network and also communicates through the Ethernet, storing the Wifi configuration file and the Ethernet configuration file into the USB device, inserting the USB device into the first USB interface of the host computer, pulling out the USB device after the first central processing unit of the host computer successfully acquires the file in the USB device, operating the Wifi configuration file and the Ethernet configuration file by the first central processing unit at the moment, and controlling the first Wifi transceiver and the first Ethernet interface to be opened;
the configuration mode of the slave machine is as follows: placing an antenna on a second SI4463 chip of each slave machine which needs to be configured in each data acquisition unit in an open environment, and connecting the slave machine with corresponding target terminal equipment which needs to carry out data acquisition;
step 2, when the host in the data acquisition unit is started, the host is in an unregistered state, the host starts to search the server autonomously, when the host searches the server and establishes connection with the server, a first central processing unit of the host sends a registration packet marked with the equipment number of the host to the server, the server analyzes the registration packet after receiving the registration packet to obtain the equipment number marked by the registration packet, then searches the equipment number in a valid equipment number form of a database of the host, if the equipment number can be found, the server sends registration success information marked with the equipment number to the host, after receiving the registration success information, the host changes the state of the host into a registration success state in the first central processing unit, the host enters a data acquisition stage, if the equipment number cannot be found, the server sends registration failure information marked with the equipment number to the host, after the host receives the registration failure information, the first central processing unit sets the time interval to be 10 seconds, and sends the registration packet marked with the equipment number to the server again until the registration success information sent by the server is received or the connection between the host and the server is closed;
when a slave in the data acquisition unit is started, the slave is in an unregistered state, the slave searches a master in the data acquisition unit through a second SI4463 chip in the slave, when the master which is registered successfully is searched, the slave establishes connection with the master, the slave sends the equipment number of the slave to the master, a first central processing unit of the master establishes a data linked list of the slave according to the equipment number of the slave, the master sends the equipment number of the slave to the slave, a second central processing unit of the slave stores the equipment number of the master, the slave sends a registration packet marked with the equipment number of the slave to a server through the master, the server analyzes the received registration packet of the slave to obtain the equipment number of the slave, then searches the equipment number in a valid equipment number list of a database of the slave, if the equipment number can be found, the server sends registration information marked with the equipment number of the slave successfully to the slave through the master, after the slave receives the registration success information, the state of the slave is changed into a registration success state in a second central processing unit of the slave, at the moment, the slave enters a data acquisition stage, if the slave cannot be found, the server sends the registration failure information marked with the equipment number to the slave through the host, after the slave receives the registration failure information, the second central processing unit of the slave sets the time interval for 10 seconds, and the registration information marked with the equipment number is sent to the server again through the host until the registration success information sent by the server is received or the connection between the slave and the host is closed;
step 3, after the terminal device is connected with one slave in the data acquisition stage in the data acquisition unit, the terminal device sends the device number of the slave to the slave, a second central processing unit of the slave saves the device number of the terminal device, then the device number of the slave is added in the device number of the terminal device and then sent to a server through a registered host which is connected with the slave, the server obtains the device number of the slave and the device number of the terminal device, then a regular data request command which is marked with the device number of the slave and the device number of the terminal device is periodically generated and sent to the host, the host sends the regular data request command to the corresponding slave, the slave sends the regular data request command to the corresponding terminal device, and the terminal device analyzes the regular data request command after receiving each regular data request command, and then generating a regular request data packet marked with the equipment number according to the analysis content and sending the regular request data packet to the slave computer, marking the equipment number on the regular request data packet by the slave computer and sending the regular request data packet to the server through the host computer, analyzing the regular request data packet by the server and then storing the analyzed data of the terminal equipment in a database to realize the acquisition of the data of the terminal equipment.
4. The acquisition method of the terminal data acquisition system according to claim 1, wherein the server can also require the terminal device to send data once, and the specific process is as follows: besides the server regularly collects the terminal equipment data, if other data of the terminal equipment needs to be collected additionally, the manager generates a single data request instruction marked with the slave equipment number and the terminal equipment number in the server and sends the single data request instruction to the master, the master sends the single data request instruction marked with the slave equipment number and the terminal equipment number to the corresponding slave, the slave machine sends the single data request instruction to the corresponding terminal equipment, the terminal equipment generates a single request data packet marked with the equipment number after analyzing the single data request instruction and sends the single request data packet to the slave machine, the slave machine marks the equipment number of the single request data packet and sends the single request data packet to the server through the host machine, and the server analyzes the single request data packet and then stores the analyzed data of the terminal equipment in the database to realize the single acquisition of the data of the terminal equipment.
CN201911154766.4A 2019-11-22 2019-11-22 Terminal data acquisition system and acquisition method thereof Active CN110995308B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911154766.4A CN110995308B (en) 2019-11-22 2019-11-22 Terminal data acquisition system and acquisition method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911154766.4A CN110995308B (en) 2019-11-22 2019-11-22 Terminal data acquisition system and acquisition method thereof

Publications (2)

Publication Number Publication Date
CN110995308A true CN110995308A (en) 2020-04-10
CN110995308B CN110995308B (en) 2021-05-07

Family

ID=70085702

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911154766.4A Active CN110995308B (en) 2019-11-22 2019-11-22 Terminal data acquisition system and acquisition method thereof

Country Status (1)

Country Link
CN (1) CN110995308B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917758A (en) * 2020-07-27 2020-11-10 深圳微控科技有限公司 Method and device for accessing Internet of things platform, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341777A (en) * 2016-08-11 2017-01-18 深圳创维-Rgb电子有限公司 USB virtual device creation method, device and system
CN106787164A (en) * 2016-11-15 2017-05-31 国网山西省电力公司电力科学研究院 A kind of GIS buses cabin nacelle operating state monitoring system
CN107085080A (en) * 2017-05-17 2017-08-22 四川大学 A kind of mechanical exhaust emissions of vehicular non-rice habitats is wirelessly transferred measuring system and method
CN108957215A (en) * 2018-05-08 2018-12-07 国网河南省电力公司郑州供电公司 Family table checks and accepts anti-examination device and the investigation method of visiting one house after another
KR20190033767A (en) * 2017-09-22 2019-04-01 쓰리에이로직스(주) Multi-channel rf system including low power information and communication technology devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106341777A (en) * 2016-08-11 2017-01-18 深圳创维-Rgb电子有限公司 USB virtual device creation method, device and system
CN106787164A (en) * 2016-11-15 2017-05-31 国网山西省电力公司电力科学研究院 A kind of GIS buses cabin nacelle operating state monitoring system
CN107085080A (en) * 2017-05-17 2017-08-22 四川大学 A kind of mechanical exhaust emissions of vehicular non-rice habitats is wirelessly transferred measuring system and method
KR20190033767A (en) * 2017-09-22 2019-04-01 쓰리에이로직스(주) Multi-channel rf system including low power information and communication technology devices
CN108957215A (en) * 2018-05-08 2018-12-07 国网河南省电力公司郑州供电公司 Family table checks and accepts anti-examination device and the investigation method of visiting one house after another

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111917758A (en) * 2020-07-27 2020-11-10 深圳微控科技有限公司 Method and device for accessing Internet of things platform, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110995308B (en) 2021-05-07

Similar Documents

Publication Publication Date Title
CN107240247B (en) Ammeter data acquisition system based on NB-IoT
WO2017167244A1 (en) Apparatus and method for recognizing electricity meter in transformer area of electric power system
CN105976134B (en) Enterprise energy management information acquisition system and method based on ZigBee wireless networking technology
CN105046924A (en) Intelligent farmland irrigation control system based on Internet of Things and operation method of intelligent farmland irrigation control system
SI1922822T1 (en) Universal event/data recorder system
CN104575024B (en) Control system and control method of traffic signal controller
CN106355873B (en) Internet of things intelligent traffic gateway and system thereof
CN209823788U (en) Outdoor lighting control system based on Internet of things
CN110648437A (en) Entrance guard management system based on LoRa thing networking
CN110995308B (en) Terminal data acquisition system and acquisition method thereof
CN106292430A (en) Data acquisition unit
CN104133429A (en) Intelligent control gateway and control method
CN111417245A (en) Internet of things illumination management system
CN106154993A (en) A kind of device controller
CN105514721A (en) Intelligent socket based on intelligent terminal and using method thereof
CN109769328B (en) Method for inquiring state information of lamp and application of method in light control system
KR20190035121A (en) Apparatus for dissimilar type communication system based smart lighting control and method by using the same
CN204667162U (en) A kind of distributed vertical planting management console
CN112153623B (en) Asset detection method and system based on short-distance wireless communication
CN110427005A (en) A kind of spraying monitoring system and its monitoring method based on Android
CN107682175B (en) Remote management control method and system based on LPWAN technology
CN202991018U (en) Wireless sensor acquisition system for logging
CN102621947B (en) On-line monitoring automatic data acquisition and transmission control system
CN205299841U (en) Air conditioner centralized control system based on network
CN109286998B (en) LoRa module communication method compatible with network connection and direct connection

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
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220830

Address after: No. 66, Pufeng Road, Cicheng Town, Jiangbei District, Ningbo City, Zhejiang Province, 315000

Patentee after: NINGBO EST TECHNOLOGY Co.,Ltd.

Address before: No. 202, Lane 777, Qingfeng Road, Cicheng Town, Jiangbei District, Ningbo City, Zhejiang Province

Patentee before: NINGBO EST TECHNOLOGY Co.,Ltd.