CN110933133A - Internet of things method and device for gas station - Google Patents

Internet of things method and device for gas station Download PDF

Info

Publication number
CN110933133A
CN110933133A CN201911029342.5A CN201911029342A CN110933133A CN 110933133 A CN110933133 A CN 110933133A CN 201911029342 A CN201911029342 A CN 201911029342A CN 110933133 A CN110933133 A CN 110933133A
Authority
CN
China
Prior art keywords
data
serial port
mqtt
mode
tcp
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
Application number
CN201911029342.5A
Other languages
Chinese (zh)
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.)
Zhejiang Gongshang University
Original Assignee
Zhejiang Gongshang University
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 Zhejiang Gongshang University filed Critical Zhejiang Gongshang University
Priority to CN201911029342.5A priority Critical patent/CN110933133A/en
Publication of CN110933133A publication Critical patent/CN110933133A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B67OPENING, CLOSING OR CLEANING BOTTLES, JARS OR SIMILAR CONTAINERS; LIQUID HANDLING
    • B67DDISPENSING, DELIVERING OR TRANSFERRING LIQUIDS, NOT OTHERWISE PROVIDED FOR
    • B67D7/00Apparatus or devices for transferring liquids from bulk storage containers or reservoirs into vehicles or into portable containers, e.g. for retail sale purposes
    • B67D7/04Apparatus or devices for transferring liquids from bulk storage containers or reservoirs into vehicles or into portable containers, e.g. for retail sale purposes for transferring fuels, lubricants or mixed fuels and lubricants
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The invention discloses a filling station Internet of things device, which comprises: the system comprises a data center, a cloud server, embedded equipment and an oiling machine; serial port data of the oiling machine is communicated with embedded equipment, and the embedded equipment is communicated with a data center and a cloud server; the Internet of things method for the gas station comprises the following steps: s01: receiving serial port data; s02: sending out serial port data; s03: and correspondingly sending out the serial port data. According to the gas station Internet of things method and the gas station Internet of things device, original business requirements are guaranteed, corresponding work of various different working modes is adopted, the gas station Internet of things device can correspond to different application scenes, the phenomenon that data are lost and cannot be found back is avoided, data can be monitored in real time, daily management of the oiling machine is facilitated, a networking data transmission mode is utilized, expansibility of data forwarding of the oiling machine is effectively improved, strong compatibility is achieved, management difficulty of the oiling machine is reduced, and a large amount of manpower and material resources are saved.

Description

Internet of things method and device for gas station
Technical Field
The invention relates to the technical field of gasoline station oiling machine management, in particular to a gasoline station Internet of things method and a gasoline station Internet of things device.
Background
Petroleum is a strategic resource, is related to national civilization, and along with the rapid development of Chinese economy, a gas station is rapidly popularized in China, the outstanding problem of the traditional gasoline engine Internet of things mode is increasingly serious, while the equipment of the domestic gas station is old, the automation degree is low, and the improvement of the management level of the gas station is seriously influenced.
The mode of current filling station's oil machine thing allies oneself with uses traditional serial ports directly to link basically, use specific concentrator through the serial port line, only directly communicate the information center of filling station that current oil machine and it is located, the current loop serial ports mode is taken basically to the serial ports, the ground only has RVV current loop serial ports communication line, no reserve net twine, dig the ground again and lay the net twine and need spend not few costs, it is also more troublesome, original filling station information system ground network construction is earlier, equipment performance is low, circuit speed is low, time delay, and the data of tanker aircraft can's networking, in case local data center collapses, filling station's business also can receive the influence, each tanker aircraft factory can't use the same concentrator to forward data simultaneously, lead to its compatibility poor, and working mode is comparatively single, the user demand of different scenes can not be satisfied.
Disclosure of Invention
The invention aims to solve the defects of low expansibility, high management difficulty and poor compatibility in the prior art, and provides a gas station Internet of things method and a gas station Internet of things device.
In order to achieve the purpose, the invention adopts the following technical scheme: gas station thing allies oneself with device includes: the system comprises a data center, a cloud server, embedded equipment and an oiling machine;
the serial port data of the oiling machine is communicated with the embedded equipment;
the embedded equipment is communicated with the data center and the cloud server.
As a further description of the above technical solution:
the embedded device adopts stm32 series chips, and the stm32 series chips can be networked.
As a further description of the above technical solution:
the cloud server is in data communication with the cloud server through a tcp mode, an mqtt mode or a mixed mode of tcp and mqtt.
By using stm32 series of internet-connected embedded equipment, serial port data of the oiling machine are communicated with a data center in a tcp mode, an mqtt mode or a mixed mode of tcp and mqtt, and are communicated with an mqtt cloud server through the mqtt cloud server, and the data are uploaded to the cloud server, so that real-time monitoring and further processing of the serial port data are realized.
The Internet of things method for the gas station comprises the following steps:
s01: receiving serial port data, and connecting the serial port to the embedded equipment, so that the embedded equipment receives the serial port data from the oiling machine;
s02: sending out serial port data, and forwarding the serial port data on the oiling machine to a cloud server through a tcp mode, an mqtt mode or a mixed mode of tcp and mqtt;
s03: and the data center correspondingly sends the serial port data, receives the forwarded serial port data, monitors the serial port data in real time, and forwards the serial port data to the corresponding serial port on the oiling machine again.
As a further description of the above technical solution:
in step S01, the mode of receiving serial port data by the embedded device is an idle interruption mode, and after receiving the egress data, the embedded device will appear a high-level idle state of byte, that is, will trigger idle interruption, thereby ensuring the integrity of data.
As a further description of the above technical solution:
in step S02, the embedded device needs to start a network to support the running of a tcp mode, an mqtt mode or a mixed mode of tcp and mqtt;
in order to realize the forwarding of serial port data in a Tcp mode, a Tcp server needs to be run on embedded equipment, and data received by a serial port is sent to a specified port;
in order to realize the forwarding of serial port data in the mqtt mode, an mqtt client needs to be built on an embedded device and connected to an mqtt server to realize that data are transmitted to a cloud server, and other clients connected to the same mqtt server can take out real-time data from the server according to topics for other business expansion.
As a further description of the above technical solution:
when the embedded equipment starts a network, in order to reduce the occupation of an RAM of the embedded equipment, a small-sized open-source tcp/ip protocol stack Lwip is used;
meanwhile, in order to ensure the real-time performance of data and more reasonably use the system and CPU resources, FreeRtos is run in the embedded device, and a system with Lwip + FreeRtos as a bottom layer is formed.
As a further description of the above technical solution:
in step S03, the data center may run a tcp client or an mqtt client;
when the intelligent hub adopts a tcp mode or a mixed mode of tcp and mqtt, the data center monitors a specific port through tcp to receive and send data, and after receiving the data, the intelligent hub tcpserver forwards the data to a corresponding serial port through distinguishing port numbers of data sources;
when the intelligent concentrator adopts an mqtt mode, only the same mqtt server needs to be connected, data are subscribed from a specific topic and published to the topic subscribed by the intelligent concentrator, and the intelligent concentrator forwards the data to corresponding serial ports by distinguishing different topics, so that the one-to-one correspondence of the data is ensured.
Advantageous effects
The invention provides a method and a device for Internet of things of a gas station. The method has the following beneficial effects:
(1): the gas station Internet of things method and the device can guarantee the original service requirements, adopt corresponding work of various different working modes, can correspond to different application scenes, cannot cause the phenomenon that data is lost and cannot be retrieved, can monitor the data in real time, and are convenient for daily management of the oiling machine.
(2): the Internet of things method and the Internet of things device for the gas station utilize a data transmission mode capable of being networked, effectively improve the expansibility of data forwarding of the oiling machine, have strong compatibility, reduce the management difficulty of the oiling machine and save a large amount of manpower and material resources.
Drawings
FIG. 1 is a schematic overall structure diagram of a gas station Internet of things device according to the present invention;
FIG. 2 is a schematic flow chart of a method for receiving and judging whether serial port data is a complete package according to the gas station Internet of things method provided by the present invention;
FIG. 3 is a schematic flow chart of the mqtt mode of the present invention;
FIG. 4 is a schematic diagram of the tcp mode operation of the present invention;
FIG. 5 is a schematic diagram of the operation of the mqtt and tcp hybrid mode of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
As shown in fig. 1-5, the internet of things device of the gas station comprises: the system comprises a data center, a cloud server, embedded equipment and an oiling machine;
the serial port data of the oiling machine is communicated with the embedded equipment;
the embedded device is communicated with the data center and the cloud server.
The embedded device adopts stm32 series chips, and the stm32 series chips can be networked.
The cloud server is in data communication with the cloud server through a tcp mode, an mqtt mode or a mixed mode of tcp and mqtt.
The Internet of things method for the gas station comprises the following steps:
s01: receiving serial port data, and connecting the serial port to the embedded equipment, so that the embedded equipment receives the serial port data from the oiling machine;
s02: sending out serial port data, and forwarding the serial port data on the oiling machine to a cloud server through a tcp mode, an mqtt mode or a mixed mode of tcp and mqtt;
s03: and the data center correspondingly sends the serial port data, receives the forwarded serial port data, monitors the serial port data in real time, and forwards the serial port data to the corresponding serial port on the oiling machine again.
In step S01, the embedded device receives the serial port data in an idle interruption manner, and after receiving the export data, the embedded device will appear a high-level idle state of byte, that is, will trigger idle interruption, thereby ensuring the integrity of the data;
the whole complete data packet is sent out at one time under the normal condition of a serial port directly connected with the common oiling machine, the embedded device needs to monitor each data packet sent out by the oiling machine in real time, and after one complete data packet is received, the second data packet is forwarded, so that the serial port data in each data packet can be monitored.
In step S02, the embedded device needs to start a network to support the running of a tcp mode, an mqtt mode or a mixed mode of tcp and mqtt;
in order to realize the forwarding of serial port data in a Tcp mode, a Tcp server needs to be run on embedded equipment, and data received by a serial port is sent to a specified port;
in order to realize the forwarding of serial port data in the mqtt mode, an mqtt client needs to be built on an embedded device and connected to an mqtt server to realize that data are transmitted to a cloud server, and other clients connected to the same mqtt server can take out real-time data from the server according to topics for other business expansion.
When the embedded equipment starts a network, in order to reduce the occupation of an RAM of the embedded equipment, a small-sized open-source tcp/ip protocol stack Lwip is used;
meanwhile, in order to ensure the real-time performance of data and more reasonably use the system and CPU resources, FreeRtos is run in the embedded device, and a system with Lwip + FreeRtos as a bottom layer is formed.
In step S03, the data center may run a tcp client or an mqtt client;
when the intelligent hub adopts a tcp mode or a mixed mode of tcp and mqtt, the data center monitors a specific port through tcp to receive and send data, and after receiving the data, the intelligent hub tcpserver forwards the data to a corresponding serial port through distinguishing port numbers of data sources;
when the intelligent concentrator adopts an mqtt mode, only the same mqtt server needs to be connected, data are subscribed from a specific topic and published to the topic subscribed by the intelligent concentrator, and the intelligent concentrator forwards the data to corresponding serial ports by distinguishing different topics, so that the one-to-one correspondence of the data is ensured.
In a mixed mode of tcp and mqtt or an mqtt mode, data can be taken out from the cloud server, and the data can be stored in the data center according to different topics, so that the management capability of the data center is improved, once the serial port data are missing, the missing serial port data can be found at the first time and can be found back accurately at once, and meanwhile, the data can be sent to a monitoring interface, so that the serial port data of the oiling machine can be monitored in real time.
In the description herein, references to the description of "one embodiment," "an example," "a specific example" or the like are intended to mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (8)

1. Gas station thing allies oneself with device, its characterized in that includes: the system comprises a data center, a cloud server, embedded equipment and an oiling machine;
the serial port data of the oiling machine is communicated with the embedded equipment;
the embedded equipment is communicated with the data center and the cloud server.
2. A gasoline station internet of things device as claimed in claim 1, wherein the embedded device employs stm32 series chip, and stm32 series chip can be networked.
3. A gas station internet of things device as claimed in claim 1, wherein the cloud server is in data communication with the cloud server via a tcp mode, an mqtt mode or a hybrid mode of tcp and mqtt.
4. The Internet of things method for the gas station is characterized by comprising the following steps:
s01: receiving serial port data, and connecting the serial port to the embedded equipment, so that the embedded equipment receives the serial port data from the oiling machine;
s02: sending out serial port data, and forwarding the serial port data on the oiling machine to a cloud server through a tcp mode, an mqtt mode or a mixed mode of tcp and mqtt;
s03: and the data center correspondingly sends the serial port data, receives the forwarded serial port data, monitors the serial port data in real time, and forwards the serial port data to the corresponding serial port on the oiling machine again.
5. The gasoline station internet of things method of claim 4, wherein in step S01, the embedded device receives the serial port data in an idle interrupt mode, and after receiving the export data, the embedded device will have a high-level idle state of byte, that is, will trigger an idle interrupt, thereby ensuring the integrity of the data.
6. The gas station thing link method of claim 4, wherein in step S02, the embedded device needs to start the network to support tcp mode, mqtt mode or mixed mode operation of tcp and mqtt;
in order to realize the forwarding of serial port data in a Tcp mode, a Tcp server needs to be run on embedded equipment, and data received by a serial port is sent to a specified port;
in order to realize the forwarding of serial port data in the mqtt mode, an mqtt client needs to be built on an embedded device and connected to an mqtt server to realize that data are transmitted to a cloud server, and other clients connected to the same mqtt server can take out real-time data from the server according to topics for other business expansion.
7. The gas station thing networking method of claim 6, wherein when the embedded device starts the network, in order to reduce the occupation of the RAM of the embedded device, a small open-source tcp/ip protocol stack Lwip is used;
meanwhile, in order to ensure the real-time performance of serial port data and more reasonably use the system and CPU resources, FreeRtos is run in the embedded device to form a system taking Lwip + FreeRtos as a bottom layer.
8. The gas station thing networking method of claim 4, wherein in step S03, the data center can run tcp client or mqtt client;
when the intelligent hub adopts a tcp mode or a mixed mode of tcp and mqtt, the data center monitors a specific port through tcp to receive and send data, and after receiving the data, the intelligent hub tcpserver forwards the data to a corresponding serial port through distinguishing port numbers of data sources;
when the intelligent concentrator adopts an mqtt mode, only the same mqtt server needs to be connected, data are subscribed from a specific topic and published to the topic subscribed by the intelligent concentrator, and the intelligent concentrator forwards the data to corresponding serial ports by distinguishing different topics, so that the one-to-one correspondence of the data is ensured.
CN201911029342.5A 2019-10-28 2019-10-28 Internet of things method and device for gas station Pending CN110933133A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911029342.5A CN110933133A (en) 2019-10-28 2019-10-28 Internet of things method and device for gas station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911029342.5A CN110933133A (en) 2019-10-28 2019-10-28 Internet of things method and device for gas station

Publications (1)

Publication Number Publication Date
CN110933133A true CN110933133A (en) 2020-03-27

Family

ID=69849666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911029342.5A Pending CN110933133A (en) 2019-10-28 2019-10-28 Internet of things method and device for gas station

Country Status (1)

Country Link
CN (1) CN110933133A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200195A (en) * 2013-03-29 2013-07-10 核工业理化工程研究院 Transformation device and transformation method for transferring multiple serial protocols to Ethernet communication
CN104113454A (en) * 2014-06-27 2014-10-22 山东厚德测控技术有限公司 Gasoline station intelligent controller and communication system based on the same
CN104345717A (en) * 2014-10-17 2015-02-11 武汉华大优能信息有限公司 Intelligent remote data acquisition system based on Internet of Things
CN204190758U (en) * 2014-10-23 2015-03-04 武汉华大优能信息有限公司 A kind of embedded data acquisition and transmission intelligent terminal being applied to Internet of Things
US20150381737A1 (en) * 2014-06-30 2015-12-31 Davra Networks Limited Gateway device and a gateway system for an internet-of-things environment
CN107819674A (en) * 2017-09-11 2018-03-20 张增平 A kind of built-in industrial things-internet gateway acquisition system and its mode of operation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200195A (en) * 2013-03-29 2013-07-10 核工业理化工程研究院 Transformation device and transformation method for transferring multiple serial protocols to Ethernet communication
CN104113454A (en) * 2014-06-27 2014-10-22 山东厚德测控技术有限公司 Gasoline station intelligent controller and communication system based on the same
US20150381737A1 (en) * 2014-06-30 2015-12-31 Davra Networks Limited Gateway device and a gateway system for an internet-of-things environment
CN104345717A (en) * 2014-10-17 2015-02-11 武汉华大优能信息有限公司 Intelligent remote data acquisition system based on Internet of Things
CN204190758U (en) * 2014-10-23 2015-03-04 武汉华大优能信息有限公司 A kind of embedded data acquisition and transmission intelligent terminal being applied to Internet of Things
CN107819674A (en) * 2017-09-11 2018-03-20 张增平 A kind of built-in industrial things-internet gateway acquisition system and its mode of operation

Similar Documents

Publication Publication Date Title
CN106850455B (en) Wireless multilink bandwidth aggregation system
Kulkarni et al. Implementation of a prototype active network
CN110995514B (en) Multi-dimensional end-to-end network slice generation device and method
CN106340176A (en) Intelligent electricity meter information sharing method, intelligent electricity meter and acquisition router
CN107196820B (en) Switch performance test method, device and system
CN202043130U (en) Remote control system for power station
CN110933133A (en) Internet of things method and device for gas station
CN112311448B (en) Satellite network acceleration system based on virtual machine
CN102594665A (en) Business data transmission method and device
CN110971519A (en) Port interconnection management method and device
CN108650286A (en) A kind of implementation method of the server system based on Socket and WebSocket mixed modes
CN210274135U (en) Remote connection system
CN102438007B (en) Virtual bus module organization method of radar terminal
CN105847294A (en) High-frequency electrostatic dust removal power supply system communication protocol converter based on W5500 and communication method
CN101827026A (en) Method for managing transmission of IEC61850 high layer protocol message
CN107222299A (en) A kind of data transmission method, system and electronic equipment
Huang et al. Application of MQTT in power distribution Internet of Things
CN203482219U (en) Message receiving and sending platform of intelligent equipment IEC61850 statute consistency detection
CN100384177C (en) A method of Ethernet transmission in a plurality of E1 channels
US11876644B2 (en) High-efficiency transmission ethernet device
CN115348207B (en) UDP-based master-slave NAT equipment flow table synchronization method and system
CN217216573U (en) Multi-mode group communication system
CN115695585B (en) Method for carrying Ethernet UDP communication by TTP/C bus
Yang et al. On Design of Hydropower System Aided by Internet of Things Architecture with OPC-UA and MQTT
Cao et al. Design and implementation of power communication terminal based on link aggregation technology

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: 20200327