CN110958175A - Gateway expansion port device and gateway expansion port method - Google Patents

Gateway expansion port device and gateway expansion port method Download PDF

Info

Publication number
CN110958175A
CN110958175A CN201911257005.1A CN201911257005A CN110958175A CN 110958175 A CN110958175 A CN 110958175A CN 201911257005 A CN201911257005 A CN 201911257005A CN 110958175 A CN110958175 A CN 110958175A
Authority
CN
China
Prior art keywords
data
gateway
port
serial port
expansion
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
CN201911257005.1A
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.)
Guangzhou Bonsoninfo System Co ltd
Original Assignee
Guangzhou Bonsoninfo System 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 Guangzhou Bonsoninfo System Co ltd filed Critical Guangzhou Bonsoninfo System Co ltd
Priority to CN201911257005.1A priority Critical patent/CN110958175A/en
Publication of CN110958175A publication Critical patent/CN110958175A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Fire Alarms (AREA)

Abstract

The invention discloses a gateway expansion port device and a gateway expansion port method, comprising the following steps: the integrated processor is respectively connected with the first expansion board, the second expansion board and the third expansion board, and the first expansion board comprises: the system comprises a serial port data collector, a signal data collector, a storage battery collector and a smoke sensor; the second expansion board includes: a serial port data acquisition unit; the third expansion board includes: a signal data acquisition device is based on a gateway expansion port device. On the basis of occupying one communication interface of the gateway, the invention can expand a plurality of functional ports of the gateway, increase the number of terminal devices which can be connected with the gateway, increase the gateway function, have the functions of detecting the voltage of the storage battery and sensing smoke, and have lower cost.

Description

Gateway expansion port device and gateway expansion port method
Technical Field
The present invention relates to the field of gateway expansion port technologies, and in particular, to a gateway expansion port device and a gateway expansion port method.
Background
In the existing dynamic environment monitoring industry and security monitoring industry, most terminal equipment data need to be processed and collected by a gateway and are sent to a management platform, and the management platform also sends commands to control the terminal equipment through the gateway. The common gateway equipment only has a single bus interface for receiving and sending data, has limited port number, limited connection number with terminal equipment and single function and can only work as a gateway.
Disclosure of Invention
In order to solve the problems, the invention adopts the following technical scheme: a gateway expansion port apparatus, comprising:
the system comprises an integrated processor, a first expansion board, a second expansion board and a third expansion board, wherein the integrated processor is respectively connected with the first expansion board, the second expansion board and the third expansion board;
the first expansion board includes:
a serial port data collector for collecting serial port data and collecting the collected serial port data to the integrated processor,
a signal data collector for collecting signal data and inputting the collected analog signal andor digital signal to the integrated processor,
the storage battery collector is used for collecting voltage data and transmitting the collected voltage data to the integrated processor,
the smoke sensor is used for collecting smoke data, converting the smoke data into a level signal and transmitting the level signal to the integrated processor;
the second expansion board includes: a serial port data acquisition unit;
the third expansion board includes: and a signal data acquisition unit.
The integrated processing module includes:
a data processing module: the system comprises a serial port data collector, a signal data collector, a storage battery collector and a smoke sensor, wherein the serial port data collector, the signal data collector, the storage battery collector and the smoke sensor are used for receiving data, processing the data into data packets, sending the data packets to a data cache module and generating a command sent by a gateway to a corresponding port;
a data caching module: a buffer for data packets;
a data transmission module: the gateway is used for uploading the data packet to the gateway and receiving an instruction issued by the gateway;
expansion board identification module: for identifying the identity of the expansion board.
The serial port data collector is a serial port data port consisting of RS485 and RS232 and is in serial port connection with the UART/USART of the integrated processor through an isolation circuit.
The signal data acquisition device is an AI acquisition end and a DI acquisition end.
The storage battery collector is a voltage collecting circuit built by the MCP3202, a resistor and an operational amplifier.
The gateway expansion port method comprises the following steps:
A1. registering equipment;
A2. it is queried whether the device registration was successful,
if yes, go to step A3,
if not, go to step A1;
A3. it is queried whether the firmware needs to be updated,
if yes, go to step A4-1,
if not, entering the step A4-2;
a4-1, firmware update, and go to step A1;
a4-2, the gateway issues a port configuration command;
A5. configuring each port according to the configuration command;
A6. collecting data of each port;
A7. judging whether the data type is serial port data or not,
if yes, go to step A8-1,
if not, entering the step A8-2;
a8-1, serial port data processing, and proceeding to step A9-1;
a8-2, AI and DI data processing, smoke feeling data processing and storage battery voltage data processing, and entering the step A9-2;
a9-1, transmitting data to a gateway in real time;
a9-2, sending data to the gateway regularly;
A10. the gateway issues command data;
A11. it is determined whether the data needs to be forwarded,
if yes, go to step A12,
if not, entering the step A4-2;
A12. the data is forwarded to the terminal device and proceeds to step a6.
One way, the step a1. device registration includes the steps of:
B1. sending a registration instruction;
B2. the gateway receives the registration instruction, asks whether to answer the registration,
if yes, go to step B3,
if not, go to step B1;
B3. sending heartbeat regularly;
b4 checks if the gateway answers the heartbeat,
if yes, go to step B5,
if not, go to step B3;
B5. detecting whether the heartbeat frequency is greater than a preset value,
if yes, go to step B3,
if not, go to step B1.
In one mode, the step A8-2.AI and DI data processing, smoke sensing data processing, battery voltage data processing, and proceeding to the AI and DI data processing in the step a9-2, includes the following steps:
c1, the DMA terminal collects ADC data and sends a message queue to the AI/DI task;
C2. it is determined whether a channel is configured,
if yes, go to step C3,
if not, no operation is performed;
C3. performing data conversion processing according to the channel type;
C4. time is sent up in a timing mode;
C5. and uploading the data to the gateway.
In one mode, the step A8-2.AI, DI data processing, smoke sensing data processing, battery voltage data processing, and proceeding to the smoke sensing data processing in the step a9-2, includes the following steps:
D1. the gateway sends a smoke feeling configuration instruction;
D2. judging a smoke sensation instruction;
D3. collecting smoke sensation data;
D4. the data is reported at a fixed time,
whether the time for sending the data is up is judged,
if so, the data is uploaded,
if not, not uploading;
D5. and sending the smoke sensation data to the gateway.
In one mode, the step A8-1 serial port data processing is performed, and the serial port data processing in the step a9-1 is performed, and the method includes the following steps:
E1. the gateway sends serial port configuration;
E2. initializing a serial port according to a configuration instruction;
E3. the serial port interrupts receiving data;
E4. the serial port 1, the serial port 2, the serial port 3 and the serial port 4 receive the packet data;
E5. it is verified whether the packet format is correct,
if so, go to step E6,
if not, no operation is performed;
E6. sending the serial port task to a serial port task through a message queue;
E7. a serial port task receives a data packet;
E8. the serial port task sends a data packet to the gateway;
E9. and (6) ending.
The invention has the beneficial effects that:
1. the device can expand a plurality of functional ports of the gateway on the basis of occupying one communication interface of the gateway, increase the number and types of terminal equipment which can be connected with the gateway, and increase the expandability function for the gateway.
2. The gateway function is added, and the functions of detecting the voltage of the storage battery and sensing smoke are achieved.
3. The functional port can be according to the scene demand, and personnel can set for port type and parameter through the platform and set for the change port hardware configuration through jumping the cap, have the flexibility.
4. The command issued by the identification processing gateway can be completed by the expansion board according to the command, a worker can remotely configure the expansion board through a platform and can also send data to enable the expansion board to be transmitted to the terminal device, and therefore remote operation is achieved.
Drawings
FIG. 1 is a block diagram of the system architecture of the present invention;
FIG. 2 is a block diagram of a hardware structure of a first expansion board according to the present invention;
FIG. 3 is a block diagram of a second expansion board according to the present invention;
FIG. 4 is a block diagram of a hardware configuration of a third expansion board according to the present invention;
FIG. 5 is a schematic diagram of a serial port level isolation circuit of the present invention;
FIG. 6 is a schematic diagram of 485 and 232 circuits of the present invention;
FIG. 7 is a schematic diagram of a serial port type jump cap configuration of the present invention;
FIG. 8 is a schematic diagram of an AI/DI input acquisition circuit of the present invention;
FIG. 9 is a schematic diagram of an AI/DI input type flip-cap configuration of the present invention;
FIG. 10 is a schematic diagram of a battery voltage acquisition circuit of the present invention;
FIG. 11 is a schematic diagram of a smoke sensing power control and smoke sensing acquisition input terminal circuit of the present invention;
FIG. 12 is a flow chart of a method of the present invention based on a gateway expansion port device;
FIG. 13 is a flowchart of a method for online and offline processing of a port expansion device according to the present invention;
FIG. 14 is a flow chart of a method of AI and DI data processing in accordance with the present invention;
FIG. 15 is a flow chart of a method of smoke sensation data processing in accordance with the present invention;
FIG. 16 is a flowchart of a serial data processing method of the present invention.
Detailed Description
As shown in fig. 1, a gateway expansion port apparatus includes:
the system comprises an integrated processor, a first expansion board, a second expansion board and a third expansion board, wherein the integrated processor is respectively connected with the first expansion board, the second expansion board and the third expansion board;
the first expansion board includes:
a serial port data collector for collecting serial port data and collecting the collected serial port data to the integrated processor,
a signal data collector for collecting signal data and inputting the collected analog signal andor digital signal to the integrated processor,
the storage battery collector is used for collecting voltage data and transmitting the collected voltage data to the integrated processor,
the smoke sensor is used for collecting smoke data, converting the smoke data into a level signal and transmitting the level signal to the integrated processor;
the second expansion board includes: a serial port data acquisition unit;
the third expansion board includes: and a signal data acquisition unit.
The integrated processing module comprises:
a data processing module: the system comprises a serial port data collector, a signal data collector, a storage battery collector and a smoke sensor, wherein the serial port data collector, the signal data collector, the storage battery collector and the smoke sensor are used for receiving data, processing the data into data packets, sending the data packets to a data cache module and generating a command sent by a gateway to a corresponding port;
a data caching module: a buffer for data packets;
a data transmission module: the gateway is used for uploading the data packet to the gateway and receiving an instruction issued by the gateway;
expansion board identification module: for identifying the identity of the expansion board.
As shown in fig. 2 to 4, in an embodiment of the present invention, the first expansion board, the second expansion board, and the third expansion board may access devices corresponding to functions, and the integrated processor uses resources including a UART/USART interface, an ADC, an SPI, and a GPIO. The integrated processor can identify the identity of the expansion board according to the level pin position set by the device, and can acquire the communication mode with the gateway according to identity identification, wherein the No. 1 expansion board is communicated with the gateway through a UART/USART serial port, and the No. 2 and No. 3 expansion boards are communicated with the gateway through an SPI. The first expansion board, the second expansion board and the third expansion board upload the processed and collected data to the data processing module of the integrated processor through the port communication and store the data in the data cache module, and the data transmission module uploads the data to the gateway, and the gateway can also issue instructions to the first expansion board, the second expansion board and the third expansion board through the data transmission module of the integrated processor and send the instructions to each terminal device.
In an embodiment of the present invention, the serial data collector is a serial data port composed of RS485 and RS232, and is serially connected to UART/USART of the integrated processor through an isolation circuit, the serial data collector has 4 paths, as shown in fig. 5 and 6, each path is mainly composed of TP8485 and SP3232 chips, and is serially connected to UART/USART of the integrated processor through an isolation circuit, as shown in fig. 7, a jump cap configuration is performed in the apparatus to select an RS485 or RS323 type for communication, and the integrated processor collects and uploads the obtained serial data to the gateway or downloads an instruction issued by the gateway to a corresponding terminal device.
In an embodiment of the present invention, the signal data collectors are AI and DI collection terminals, the signal data collectors have 8 paths, each path is mainly composed of a resistor and a voltage/current input resistor built by an operational amplifier as shown in fig. 8, as shown in fig. 9, when in use, a jump cap configuration selection can be performed according to an external requirement, and the jump cap configuration selection is configured as an AI (voltage type/current type)/DI input circuit, and the collected analog signal or digital signal is input to an ADC input port of the integrated processor after voltage division is stabilized, so that a data processing module of the integrated processor performs analysis processing and then uploads the processed signal to the gateway through the data transmission module.
In an embodiment of the present invention, as shown in fig. 10, the storage battery collector is a voltage collecting circuit constructed by the MCP3202, a resistor and an operational amplifier, and has 4 paths, the collected voltage enters the MCP3202 after passing through the voltage dividing circuit, the MCP3202 transmits the sampled data to the data processing module of the integrated processor through the SPI, and the integrated processor processes and collects the obtained storage battery voltage data and uploads the data to the gateway through the data transmission module.
In an embodiment of the present invention, the smoke sensing end has 1 path, and is mainly constructed by an electric induction furnace and a power supply control circuit as shown in fig. 11, the integrated processor can control the power supply of the smoke sensing device through the GPIO port and obtain the level state of the smoke sensing device so as to obtain the smoke sensing information, the data transmission module of the integrated processor can control the smoke sensing power supply according to the instruction issued by the gateway, and the smoke sensing information can be processed by the data processing module erected by the integrated processor and transmitted to the gateway through the data transmission module.
As shown in fig. 12, the method based on the gateway expansion port device includes the following steps:
A1. registering equipment;
A2. it is queried whether the device registration was successful,
if yes, go to step A3,
if not, go to step A1;
A3. it is queried whether the firmware needs to be updated,
if yes, go to step A4-1,
if not, entering the step A4-2;
a4-1, firmware update, and go to step A1;
a4-2, the gateway issues a port configuration command;
A5. configuring each port according to the configuration command;
A6. collecting data of each port;
A7. judging whether the data type is serial port data or not,
if yes, go to step A8-1,
if not, entering the step A8-2;
a8-1, serial port data processing, and proceeding to step A9-1;
a8-2, AI and DI data processing, smoke feeling data processing and storage battery voltage data processing, and entering the step A9-2;
a9-1, transmitting data to a gateway in real time;
a9-2, sending data to the gateway regularly;
A10. the gateway issues command data;
A11. it is determined whether the data needs to be forwarded,
if yes, go to step A12,
if not, entering the step A4-2;
A12. the data is forwarded to the terminal device and proceeds to step a6.
Step A1. the equipment registration is a method for online and offline processing of a port expansion device, and the method comprises the following steps:
B1. sending a registration instruction;
B2. the gateway receives the registration instruction, asks whether to answer the registration,
if yes, go to step B3,
if not, go to step B1;
B3. sending heartbeat regularly;
b4 checks if the gateway answers the heartbeat,
if yes, go to step B5,
if not, go to step B3;
B5. detecting whether the heartbeat frequency is greater than a preset value,
if yes, go to step B3,
if not, go to step B1.
Fig. 13 shows an on-line/off-line processing flow of the port expansion device, the preset value in step B5 may be set to 5 times, after the gateway expansion port device board is powered on, the device registration instruction is sent to the gateway registration device information, and after the gateway registration response is obtained, the gateway expansion port device board is in an on-line state, and can normally operate. During normal working, the gateway expansion port device board sends heartbeat instructions to the gateway periodically, so that the gateway can obtain the online condition of the gateway expansion port device board and answer the heartbeat instructions. If the gateway expansion port device board does not acquire heartbeat response for 5 times, the gateway expansion port device board judges that the gateway expansion port device board is in an off-line state, stops normal work, automatically resets software, and resends a registration instruction until the registration is successful. The expansion board can judge the communication condition between itself and the gateway in real time, if the communication is abnormal, namely the expansion board is off-line, the expansion board judges that the expansion board is off-line, software reset can be carried out immediately, the problem that the expansion board stops working due to software error can be repaired, and the repairability of the expansion board is ensured.
Step A8-2.AI and DI data processing, smoke sensing data processing, storage battery voltage data processing, and the AI and DI data processing in step 9-2 is a method for AI and DI data processing, comprising the following steps:
c1, the DMA terminal collects ADC data and sends a message queue to the AI/DI task;
C2. it is determined whether a channel is configured,
if yes, go to step C3,
if not, no operation is performed;
C3. performing data conversion processing according to the channel type;
C4. time is sent up in a timing mode;
C5. and uploading the data to the gateway.
The AI/DI data processing flow is as shown in fig. 14, before use, the acquisition channel type (AI/DI) needs to be set by jumping the cap, wherein the AI acquisition channel also needs to set the voltage-type and current-type AI acquisition channels by jumping the cap. After the gateway expansion port device board successfully registers in the gateway, the gateway can issue a channel configuration acquisition command, configure the channel type, and default the channel without configuration. Channel data acquisition is only performed after channel configuration. The channel acquisition is to acquire corresponding ADC data, the data is acquired through DMA interruption of the ADC and then transmitted to a special AI/DI task, the AI/DI task performs corresponding ADC numerical value processing according to the configuration of the channel to convert the data into required information data, and the required information data is converged into a data packet to be periodically and actively sent to a gateway. Rapidly acquiring configured AI/DI data to ensure data real-time performance; carrying out corresponding conversion on the acquired data according to a configuration instruction issued by the gateway; the collected data is processed by a software algorithm, so that the reading value influence caused by error data can be eliminated, and the AI/DI data correctness is ensured.
Step A8-2.AI and DI data processing, smoke sensing data processing, storage battery voltage data processing, and the smoke sensing data processing in step 9-2 is a smoke sensing data processing method, comprising the steps of:
D1. the gateway sends a smoke feeling configuration instruction;
D2. judging a smoke sensation instruction;
D3. collecting smoke sensation data;
D4. the data is reported at a fixed time,
whether the time for sending the data is up is judged,
if so, the data is uploaded,
if not, not uploading;
D5. and sending the smoke sensation data to the gateway.
The smoke sensing data processing flow is as shown in fig. 15, after the gateway expansion port device board is successfully registered in the gateway, the gateway may issue a working instruction of the smoke sensing module, and the smoke sensing module is not operated by default. The gateway expansion port device board can control the power supply of the smoke sensing module, the gateway can issue an instruction to enable the expansion board to control the opening and closing or resetting actions of the smoke sensing module, the expansion board MCU acquires data of the smoke sensing module through the DI, and the acquired data are regularly sent to the gateway. Smoke feeling data are collected rapidly, and real-time performance of the data is guaranteed; the smoke sensor data can be configured according to the smoke sensor type, and the smoke sensor data can be correctly analyzed.
Step A8-1. Serial port data processing, and the serial port data processing in step 9-1 is a method for processing serial port data, comprising the following steps:
E1. the gateway sends serial port configuration;
E2. initializing a serial port according to a configuration instruction;
E3. the serial port interrupts receiving data;
E4. the serial port 1, the serial port 2, the serial port 3 and the serial port 4 receive the packet data;
E5. it is verified whether the packet format is correct,
if so, go to step E6,
if not, no operation is performed;
E6. sending the serial port task to a serial port task through a message queue;
E7. a serial port task receives a data packet;
E8. the serial port task sends a data packet to the gateway;
E9. and (6) ending.
As shown in fig. 16, the serial port data processing flow is that before use, a serial port communication type (RS485/232) needs to be set through a jump cap, and after the gateway expansion port device board is successfully registered in the gateway, the gateway sends a serial port configuration command, the default configuration baud rate of the serial port is 9600, the data bit is 8, no check bit is present, and the stop bit is 1. The MCU receives and processes the data packet sent by the terminal equipment through serial port interruption, and after recognizing that the data packet with a complete correct format is received, the data packet is transmitted to a serial port task through a message queue, and the serial port task is specially responsible for transmitting the data packet received by each serial port to the gateway. 1. And serial port data and gateway data of the port are analyzed, and the correctness of transparent transmission is ensured. 2. When the serial port data volume of each port is large, the expansion board can buffer the serial port data or gateway issued data, and the buffered data is uploaded one by one when the communication interface between the expansion board and the gateway is idle, so that the integrity of the serial port data is ensured.
It will be apparent to those skilled in the art that various modifications may be made to the above embodiments without departing from the general spirit and concept of the invention. All falling within the scope of protection of the present invention. The protection scheme of the invention is subject to the appended claims.

Claims (10)

1. A gateway expansion port apparatus, comprising:
the system comprises an integrated processor, a first expansion board, a second expansion board and a third expansion board, wherein the integrated processor is respectively connected with the first expansion board, the second expansion board and the third expansion board;
the first expansion board includes:
a serial port data collector for collecting serial port data and collecting the collected serial port data to the integrated processor,
a signal data collector for collecting signal data and inputting the collected analog signal andor digital signal to the integrated processor,
the storage battery collector is used for collecting voltage data and transmitting the collected voltage data to the integrated processor,
the smoke sensor is used for collecting smoke data, converting the smoke data into a level signal and transmitting the level signal to the integrated processor;
the second expansion board includes: a serial port data acquisition unit;
the third expansion board includes: and a signal data acquisition unit.
2. The gateway expansion port device of claim 1, wherein said integrated processing module comprises:
a data processing module: the system comprises a serial port data collector, a signal data collector, a storage battery collector and a smoke sensor, wherein the serial port data collector, the signal data collector, the storage battery collector and the smoke sensor are used for receiving data, processing the data into data packets, sending the data packets to a data cache module and generating a command sent by a gateway to a corresponding port;
a data caching module: a buffer for data packets;
a data transmission module: the gateway is used for uploading the data packet to the gateway and receiving an instruction issued by the gateway;
expansion board identification module: for identifying the identity of the expansion board.
3. The gateway expansion port device of claim 1, wherein the serial data collector is a serial data port consisting of RS485 and RS232, and is in serial connection with UART/USART of the integrated processor through an isolation circuit.
4. The gateway expansion port device of claim 1, wherein said signal data collectors are AI and DI collection terminals.
5. The gateway expansion port device of claim 1, wherein said battery collector is a voltage collection circuit built by MCP3202 and a resistor and an operational amplifier.
6. The gateway expansion port method is characterized by comprising the following steps:
A1. registering equipment;
A2. it is queried whether the device registration was successful,
if yes, go to step A3,
if not, go to step A1;
A3. it is queried whether the firmware needs to be updated,
if yes, go to step A4-1,
if not, entering the step A4-2;
a4-1, firmware update, and go to step A1;
a4-2, the gateway issues a port configuration command;
A5. configuring each port according to the configuration command;
A6. collecting data of each port;
A7. judging whether the data type is serial port data or not,
if yes, go to step A8-1,
if not, entering the step A8-2;
a8-1, serial port data processing, and proceeding to step A9-1;
a8-2, AI and DI data processing, smoke feeling data processing and storage battery voltage data processing, and entering the step A9-2;
a9-1, transmitting data to a gateway in real time;
a9-2, sending data to the gateway regularly;
A10. the gateway issues command data;
A11. it is determined whether the data needs to be forwarded,
if yes, go to step A12,
if not, entering the step A4-2;
A12. the data is forwarded to the terminal device and proceeds to step a6.
7. The gateway expansion port method of claim 6, wherein said step a1. device registration, comprises the steps of:
B1. sending a registration instruction;
B2. the gateway receives the registration instruction, asks whether to answer the registration,
if yes, go to step B3,
if not, go to step B1;
B3. sending heartbeat regularly;
b4 checks if the gateway answers the heartbeat,
if yes, go to step B5,
if not, go to step B3;
B5. detecting whether the heartbeat frequency is greater than a preset value,
if yes, go to step B3,
if not, go to step B1.
8. The gateway expansion port method of claim 6, wherein said step A8-2.AI, DI data processing, smoke sensing data processing, battery voltage data processing, and proceeding to AI, DI data processing in step a9-2, comprises the steps of:
c1, the DMA terminal collects ADC data and sends a message queue to the AI/DI task;
C2. it is determined whether a channel is configured,
if yes, go to step C3,
if not, no operation is performed;
C3. performing data conversion processing according to the channel type;
C4. time is sent up in a timing mode;
C5. and uploading the data to the gateway.
9. The gateway extension port method of claim 6, wherein said steps A8-2.AI, DI data processing, smoke sense data processing, battery voltage data processing, and proceeding to smoke sense data processing in step a9-2, comprise the steps of:
D1. the gateway sends a smoke feeling configuration instruction;
D2. judging a smoke sensation instruction;
D3. collecting smoke sensation data;
D4. the data is reported at a fixed time,
whether the time for sending the data is up is judged,
if so, the data is uploaded,
if not, not uploading;
D5. and sending the smoke sensation data to the gateway.
10. The gateway expansion port method of claim 6, wherein said step A8-1. serial port data processing, and proceeding to the serial port data processing in step a9-1, comprises the steps of:
E1. the gateway sends serial port configuration;
E2. initializing a serial port according to a configuration instruction;
E3. the serial port interrupts receiving data;
E4. the serial port 1, the serial port 2, the serial port 3 and the serial port 4 receive the packet data;
E5. it is verified whether the packet format is correct,
if so, go to step E6,
if not, no operation is performed;
E6. sending the serial port task to a serial port task through a message queue;
E7. a serial port task receives a data packet;
E8. the serial port task sends a data packet to the gateway;
E9. and (6) ending.
CN201911257005.1A 2019-12-10 2019-12-10 Gateway expansion port device and gateway expansion port method Pending CN110958175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911257005.1A CN110958175A (en) 2019-12-10 2019-12-10 Gateway expansion port device and gateway expansion port method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911257005.1A CN110958175A (en) 2019-12-10 2019-12-10 Gateway expansion port device and gateway expansion port method

Publications (1)

Publication Number Publication Date
CN110958175A true CN110958175A (en) 2020-04-03

Family

ID=69980601

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911257005.1A Pending CN110958175A (en) 2019-12-10 2019-12-10 Gateway expansion port device and gateway expansion port method

Country Status (1)

Country Link
CN (1) CN110958175A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113432640A (en) * 2021-05-26 2021-09-24 深圳奇迹智慧网络有限公司 Gateway, moving ring monitoring method and moving ring monitoring device applied to gateway

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113432640A (en) * 2021-05-26 2021-09-24 深圳奇迹智慧网络有限公司 Gateway, moving ring monitoring method and moving ring monitoring device applied to gateway

Similar Documents

Publication Publication Date Title
CN104950760A (en) Power supply management integrated marine monitoring general data collector
CN104036706A (en) Fault detection method, device and system
CN201750226U (en) Remote detecting system of substation
CN105573176A (en) Robot rapid connection method and robot
CN110932887A (en) BMC debugging method, system and device
CN112202741B (en) Gateway device based on small signal analysis automatic identification communication bus and protocol
CN105633903A (en) Electric device, electric system and terminal device having fault monitoring function
CN110958295A (en) Testing method and system based on vehicle-mounted ATP equipment
CN101873349B (en) The multinode real-time power consumption monitoring system in the environment of wireless sensor network
CN114124071A (en) Open circuit detection method, circuit, device, electronic equipment and storage medium
CN110958175A (en) Gateway expansion port device and gateway expansion port method
CN211457147U (en) Gateway expansion port device
CN112666878B (en) IO contact simulation device of interlocking system
CN102355378A (en) Carrier channel testing system
CN202720285U (en) Detection system of electric power terminal
CN105445533A (en) 1553B test signal monitoring module and 1553B test signal monitoring method for automatic missile test
KR100988286B1 (en) Remote service apparatus and method capable of telediagnosis and telerecovery
CN202870525U (en) Networked data acquisition apparatus applied to changing environment
KR102130520B1 (en) Method And Apparatus for Relaying Measuring Information
CN105527882A (en) Data monitoring and collecting system of electronic equipment
CN203950006U (en) A kind of aircraft wire fault automatic detector based on microprocessor
CN111402690A (en) Electronic module construction system based on electronic building blocks
CN112462664A (en) Instrument interface data monitoring system
CN117834750B (en) Device, method, system, equipment, medium and server for acquiring protocol data
CN110718052B (en) Wireless acquisition device and data acquisition method

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