CN209167855U - Grouping converter and system based on LoRa Yu Modbus technology - Google Patents
Grouping converter and system based on LoRa Yu Modbus technology Download PDFInfo
- Publication number
- CN209167855U CN209167855U CN201821534178.4U CN201821534178U CN209167855U CN 209167855 U CN209167855 U CN 209167855U CN 201821534178 U CN201821534178 U CN 201821534178U CN 209167855 U CN209167855 U CN 209167855U
- Authority
- CN
- China
- Prior art keywords
- module
- chip
- pin
- lora
- stm32f070f
- 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.)
- Expired - Fee Related
Links
Abstract
The utility model relates to grouping converter technical fields, more particularly to a kind of grouping converter and system based on LoRa Yu Modbus technology, grouping converter provided by the present application, including MCU processing module, LoRa radio-frequency module, RS232 communication module, RS485 communication module, communicate switching module, PHM packet handling module and packet configuration switch module, by packet configuration switch module, the group number that the grouping converter is responsible for forward signal is set, it can be realized the screening set to forwarding information, the grouping converter further reduces the power consumption of slave devices, keep the slave devices working time longer, and it is easy to operate and at low cost using packet configuration switch module setting forwarding group number.
Description
Technical field
The utility model relates to grouping converter technical fields, and in particular to one kind is based on LoRa and Modbus technology
Grouping converter and system.
Background technique
Existing Internet of Things network communication technology includes wired network communication and wireless communication, and wire communication generallys use
The technologies such as serial ports, RS485 bus, Ethernet, and generally use Wi-Fi, Zigbee, honeycomb 2G/3G/4G, LoRa
Etc. technologies.
In most of application scenarios, the environment of real-time collection site, the operation conditions of equipment and control smart machine are needed,
This just needs to dispose a large amount of slave devices, such as sensor device, industrial control equipment, and this kind of slave devices are most at present
Using the Modbus protocol communication technology based on RS232 or RS485 bus, how various with enormous amount, total class host equipment is
Slave devices communication be a more distinct issues.Especially under certain applications scene, due to objective condition slave devices
Cannot be with host equipment wired connection, and can only use wirelessly influences beautiful, cabling and is stranded with main-machine communication, such as cabling
It is difficult, cabling expense is big etc..Simultaneously because can not be routed, these slave devices generally use battery to power, for being supplied using battery
The slave devices of electricity, receive and parsing is not the Modbus message with self communication, can all consume the electricity of slave devices, thus
Cause slave devices stand-by time to shorten, the period for replacing battery shortens, and the manpower maintenance cost of consuming is got higher, how to reduce from
The power consumption of machine equipment, the problem of making longer slave devices working time and urgent need to resolve.
Utility model content
In view of this, the application provides a kind of grouping converter and system based on LoRa Yu Modbus technology, it can
It solves the problems, such as or at least partly solves above-mentioned.
In order to solve the above technical problems, technical solution provided by the utility model is one kind based on LoRa and Modbus skill
The grouping converter of art, including it is MCU processing module, LoRa radio-frequency module, RS232 communication module, RS485 communication module, logical
Believe switching module, PHM packet handling module and packet configuration switch module, wherein the PHM packet handling module respectively with the LoRa
Radio-frequency module, the packet configuration switch module and MCU processing module electrical connection, the MCU processing module also passes through logical
Letter switching module is electrically connected with the RS232 communication module and the RS485 module respectively.
Preferably, the RS232 communication module is connect with the MCU processing module by serial ports, the RS232 communication
Module uses UT3232G chip, and the communication switching module uses two toggle switch, and the MCU processing module uses
12nd pin of STM32F070F chip, the UT3232G chip passes through two toggle switch and the STM32F070F chip
The electrical connection of the 9th pin, the 11st pin of the UT3232G chip passes through two toggle switch and the STM32F070F chip
The 8th pin electrical connection.
Preferably, the RS485 communication module is connect with the MCU processing module by serial ports, the RS485 communication
Module uses MAX3485E chip, and the communication switching module uses two toggle switch, and the MCU processing module uses
4th pin of STM32F070F chip, the MAX3485E chip passes through two toggle switch and the STM32F070F chip
The electrical connection of the 8th pin, the 1st pin of the MAX3485E chip passes through two toggle switch and the STM32F070F chip
The 9th pin electrical connection.
Preferably, the LoRa radio-frequency module is connect by SPI interface with the PHM packet handling module, and the LoRa is penetrated
Frequency module uses SX1278 chip, and the PHM packet handling module uses STM32F070F chip, the NSS of the SX1278 chip
Pin is electrically connected with the PA4 pin of the STM32F070F chip, the SCK pin of the SX1278 chip with it is described
The PA5 pin of STM32F070F chip is electrically connected, the MISO pin of the SX1278 chip and the STM32F070F chip
The electrical connection of PA6 pin, the MOSI pin of the SX1278 chip are electrically connected with the PA7 pin of the STM32F070F chip, institute
The RESET pin for stating SX1278 chip is electrically connected with the PB1 pin of the STM32F070F chip.
Preferably, the packet configuration switch module is connect with the PHM packet handling module by I/O interface, the grouping
It configures switch module and uses six toggle switch, A0, A1, A2, A3, A4 and A5 pin of six toggle switch are right respectively
PA0, PA1, PA2, PA3, PF0 and PF1 pin of the STM32F070F chip should be electrically connected.
Preferably, the PHM packet handling module is connect by serial ports with the MCU processing module, the PHM packet handling module
The 17th pin be electrically connected with the 18th pin of the MCU processing module, the 18th pin of the PHM packet handling module with it is described
17th pin of MCU processing module is electrically connected.
The utility model also provides a kind of packet forwarding system based on LoRa Yu Modbus technology, including host equipment,
It is main forwarding device, N number of from forwarding device and with N number of from the corresponding N group slave devices of forwarding device, the host equipment with it is described
Main forwarding device wire communication, the main forwarding device and it is described it is N number of from forwarding device wirelessly communicate, it is described each to be set from forwarding
Standby one group of corresponding slave devices wire communication, wherein the main forwarding device and described N number of be all made of from forwarding device
The above-mentioned grouping converter based on LoRa Yu Modbus technology, the packet configuration switch module setting of the main forwarding device
It is the 0th group, the packet configuration switch module of N number of forwarding device is set as non-zero group and is different groups, and N is greater than 0.
Compared with prior art, detailed description are as follows for its advantages by the application: grouping converter provided by the present application,
At MCU processing module, LoRa radio-frequency module, RS232 communication module, RS485 communication module, communication switching module, grouping
Module and packet configuration switch module are managed, which is arranged by packet configuration switch module and is responsible for forward signal
Group number can be realized the screening set to forwarding information, which further reduces the power consumption of slave devices, make
The slave devices working time is longer, and easy to operate and at low cost using packet configuration switch module setting forwarding group number.
Detailed description of the invention
Fig. 1 is the structural block diagram for the grouping converter that the utility model embodiment 1 provides;
Fig. 2 is the RS232 communication module circuitry figure for the grouping converter that the utility model embodiment 1 provides;
Fig. 3 is the RS485 communication module circuitry figure for the grouping converter that the utility model embodiment 1 provides;
Fig. 4 is the LoRa radio frequency module circuit figure for the grouping converter that the utility model embodiment 1 provides;
Fig. 5 is the packet configuration switch module and packet transaction for the grouping converter that the utility model embodiment 1 provides
The I/O interface of module connects circuit diagram;
Fig. 6 is the MCU processing module circuit diagram for the grouping converter that the utility model embodiment 1 provides;
Fig. 7 is the structural block diagram for the packet forwarding system that the utility model embodiment 2 provides.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution of the utility model, with reference to the accompanying drawing and have
The utility model is described in further detail for body embodiment.
As shown in Figure 1, the utility model provides a kind of grouping converter based on LoRa Yu Modbus technology, including
MCU processing module, LoRa radio-frequency module, RS232 communication module, RS485 module, communication switching module, PHM packet handling module and
Packet configuration switch module, wherein PHM packet handling module is respectively and at LoRa radio-frequency module, packet configuration switch module and MCU
Manage module electrical connection, MCU processing module also pass through communication switching module respectively with RS232 communication module and RS485 communication module
Electrical connection.
It should be noted that further include power module in the grouping converter based on LoRa and Modbus technology, electricity
Source module respectively with MCU processing module, RS232 communication module, RS485 communication module, PHM packet handling module and LoRa radio frequency mould
Block electrical connection, power module are responsible for modules power supply.
As shown in Fig. 2, in the grouping converter based on LoRa and Modbus technology, at RS232 communication module and MCU
It manages module to connect by serial ports, RS232 communication module uses UT3232G chip, and communication switching module uses two toggle switch
S2, MCU processing module use STM32F070F chip, the 12nd pin of UT3232G chip by two toggle switch S2 with
To transmit UART2RXX signal, the 11st pin of UT3232G chip passes through two for the 9th pin electrical connection of STM32F070F chip
Toggle switch S2 is electrically connected with the 8th pin of STM32F070F chip to transmit UART2RXX signal.As two toggle switch S2
When switch all pushes right end, RS232 communication module is connected to MCU processing module.
As shown in figure 3, in the grouping converter based on LoRa and Modbus technology, at RS485 communication module and MCU
It manages module to connect by serial ports, RS485 communication module uses MAX3485E chip, and communication switching module uses two toggle switch
S2, MCU processing module use STM32F070F chip, the 4th pin of MAX3485E chip by two toggle switch S2 with
8th pin of STM32F070F chip is electrically connected to transmit TX2 signal, the 1st pin and STM32F070F of MAX3485E chip
9th pin of chip is electrically connected to transmit RX2 signal.When two toggle switch S2 switches all push left end, RS485 communicates mould
Block is connected to MCU processing module.
As shown in Figure 4 and Figure 5, in the grouping converter based on LoRa and Modbus technology, LoRa radio-frequency module is logical
It crosses SPI interface to connect with PHM packet handling module, LoRa radio-frequency module uses SX1278 chip, and PHM packet handling module uses
STM32F070F chip, the NSS pin of SX1278 chip are electrically connected with the PA4 pin of STM32F070F chip, SX1278 chip
SCK pin be electrically connected with the PA5 pin of STM32F070F chip, the MISO pin of SX1278 chip and STM32F070F chip
The electrical connection of PA6 pin, the MOSI pin of SX1278 chip is electrically connected with the PA7 pin of STM32F070F chip, SX1278 core
The RESET pin of piece is electrically connected with the PB1 pin of STM32F070F chip.
As shown in figure 5, in the grouping converter based on LoRa and Modbus technology, packet configuration switch module with point
Group processing module is connected by I/O interface, and packet configuration switch module uses six toggle switch S1, six toggle switch S1's
A0, A1, A2, A3, A4 and A5 pin respectively correspond PA0, PA1, PA2, PA3, PF0 and PF1 of electrical connection STM32F070F chip
Pin.
As shown in fig. 6, PHM packet handling module passes through serial ports in the grouping converter based on LoRa and Modbus technology
It is connect with MCU processing module, PHM packet handling module is by being all made of STM32F070F chip, packet transaction with MCU processing module
18th pin of module is electrically connected to transmit TX1 signal with the 17th pin of MCU processing module, and the 17th of PHM packet handling module is drawn
Foot is electrically connected with the 18th pin of MCU processing module to transmit RX1 signal.
To sum up, the utility model provides a kind of grouping converter based on LoRa Yu Modbus technology, passes through grouping
Forwarding device is divided into main forwarding device with configuration switch and from forwarding device, main forwarding device forwards all messages, sets from forwarding
Standby only forwarding belongs to the Modbus agreement of this group, the Modbus agreement for being not belonging to this group is abandoned, to make corresponding slave devices
It does not need to receive and parse the Modbus agreement for being not belonging to itself, reduces power consumption, promote stand-by time, increase battery altering week
Phase reduces manpower maintenance cost.
As shown in fig. 7, the utility model also provides a kind of packet forwarding system based on LoRa Yu Modbus technology, including
It is host equipment, main forwarding device, N number of from forwarding device and with N number of from the corresponding N group slave devices of forwarding device, host equipment
With main forwarding device wire communication, main forwarding device is wirelessly communicated with N number of from forwarding device, each corresponding from forwarding device
One group of slave devices wire communication, wherein main forwarding device and N from forwarding device be all made of it is above-mentioned based on LoRa with
The grouping converter of Modbus technology, the packet configuration switch module of main forwarding device are set as the 0th group, N number of forwarding
The packet configuration switch module of equipment is set as non-0th group and is different groups.
Specifically, Fig. 7 be host equipment based on LoRa and Modbus technology and slave devices by main forwarding device, from
Forwarding device carries out constructing communication network frame.Host equipment will pass through RS232 or RS485 interface comprising the message of Modbus agreement
It is sent to main forwarding device, main forwarding device issues Modbus protocol massages from forwarding device by LoRa proprietary protocol
1 ..., from forwarding device N and from forwarding device N+1, from forwarding device 1 ..., again will from forwarding device N and from forwarding device N+1
Modbus protocol massages by RS232 or RS485 interface be sent to slave devices 1, slave devices 2 ..., slave devices N ...,
Slave devices N+K.
Wherein, six toggle switch S1 include 6 toggle switch that can be dialled as 0 or 1, can support 64 altogether in this way
Grouping.Main forwarding device occupancy group 0, it is full 0 that the toggle switch of packet configuration switch module, which is dialled,.It can be according to need from forwarding device
It is set as different group numbers.
When the MCU processing module of main forwarding device receives host equipment transmission by RS232 or RS485 communication module
After Modbus protocol massages, Modbus protocol massages are sent to PHM packet handling module by serial ports.PHM packet handling module will
Modbus protocol massages are converted in the LoRa proprietary protocol for carrying group mark and are sent to by LoRa radio-frequency module from forwarding
Equipment.From the PHM packet handling module of forwarding device according to from the message that LoRa radio-frequency module receives in LoRa proprietary protocol
Group mark judged, only forwarded by serial ports with from forwarding device packet configuration switch module configuration group is identical or group mark
For 0 Modbus protocol massages to MCU processing module, abandon other groups of message.MCU processing module will be from PHM packet handling module
The Modbus protocol massages received are sent to slave devices by RS232 or RS485 communication module.
When the MCU processing module from forwarding device receives slave devices transmission by RS232 or RS485 communication module
After Modbus protocol massages, Modbus protocol massages are sent to PHM packet handling module by serial ports.PHM packet handling module will
Modbus protocol massages are converted to the LoRa proprietary protocol for carrying group mark and are sent to main forwarding by LoRa radio-frequency module and set
It is standby.The LoRa proprietary protocol received from LoRa radio-frequency module is converted to Modbus association by the PHM packet handling module of main forwarding device
Message is discussed, MCU processing module is being sent by serial ports by Modbus protocol massages.MCU processing module will receive again
Modbus protocol massages are forwarded to host equipment.If other in range for wireless communication receive the message from forwarding device, other
From the PHM packet handling module of forwarding device according to from the group mark in the message that LoRa radio-frequency module receives in LoRa proprietary protocol
Will judged, only forwards that identical as from forwarding device packet configuration switch module configuration group or group mark is 0 by serial ports
Modbus protocol massages to MCU processing module, abandon other groups of message.MCU processing module will be received from PHM packet handling module
To Modbus protocol massages slave devices are sent to by RS232 or RS485 communication module.
Above are merely preferred embodiments of the utility model, it is noted that above-mentioned preferred embodiment should not regard
For limitations of the present invention, the protection scope of the utility model should be defined by the scope defined by the claims..For
For those skilled in the art, without departing from the spirit and scope of the utility model, it can also make several
Improvements and modifications, these improvements and modifications also should be regarded as the protection scope of the utility model.
Claims (7)
1. a kind of grouping converter based on LoRa Yu Modbus technology, which is characterized in that including MCU processing module, LoRa
Radio-frequency module, RS232 communication module, RS485 communication module, communication switching module, PHM packet handling module and packet configuration switch
Module, wherein the PHM packet handling module respectively with the LoRa radio-frequency module, the packet configuration switch module and described
MCU processing module electrical connection, the MCU processing module also pass through communication switching module respectively with the RS232 communication module and
The RS485 module electrical connection.
2. the grouping converter according to claim 1 based on LoRa Yu Modbus technology, which is characterized in that described
RS232 communication module is connect with the MCU processing module by serial ports, and the RS232 communication module uses UT3232G chip,
The communication switching module uses two toggle switch, and the MCU processing module uses STM32F070F chip, described
12nd pin of UT3232G chip is electrically connected by two toggle switch with the 9th pin of the STM32F070F chip, described
11st pin of UT3232G chip is electrically connected by two toggle switch with the 8th pin of the STM32F070F chip.
3. the grouping converter according to claim 1 based on LoRa Yu Modbus technology, which is characterized in that described
RS485 communication module is connect with the MCU processing module by serial ports, and the RS485 communication module uses MAX3485E chip,
The communication switching module uses two toggle switch, and the MCU processing module uses STM32F070F chip, described
4th pin of MAX3485E chip is electrically connected by two toggle switch with the 8th pin of the STM32F070F chip, described
1st pin of MAX3485E chip is electrically connected by two toggle switch with the 9th pin of the STM32F070F chip.
4. the grouping converter according to any one of claim 1-3 based on LoRa Yu Modbus technology, feature
It is, the LoRa radio-frequency module is connect by SPI interface with the PHM packet handling module, and the LoRa radio-frequency module uses
SX1278 chip, the PHM packet handling module use STM32F070F chip, the NSS pin of the SX1278 chip with it is described
The PA4 pin of STM32F070F chip is electrically connected, the SCK pin of the SX1278 chip and the STM32F070F chip
The electrical connection of PA5 pin, the MISO pin of the SX1278 chip are electrically connected with the PA6 pin of the STM32F070F chip, institute
The MOSI pin for stating SX1278 chip is electrically connected with the PA7 pin of the STM32F070F chip, the SX1278 chip
RESET pin is electrically connected with the PB1 pin of the STM32F070F chip.
5. the grouping converter according to claim 4 based on LoRa Yu Modbus technology, which is characterized in that described point
Group configuration switch module is connect with the PHM packet handling module by I/O interface, and the packet configuration switch module is dialled using six
Code switch, A0, A1, A2, A3, A4 and A5 pin of six toggle switch respectively correspond the electrical connection STM32F070F core
PA0, PA1, PA2, PA3, PF0 and PF1 pin of piece.
6. the grouping converter according to claim 5 based on LoRa Yu Modbus technology, which is characterized in that described point
Group processing module is connect by serial ports with the MCU processing module, at the 17th pin and the MCU of the PHM packet handling module
Manage the 18th pin electrical connection of module, the 18th pin of the PHM packet handling module and the 17th pin of the MCU processing module
Electrical connection.
7. a kind of packet forwarding system based on LoRa Yu Modbus technology, which is characterized in that set including host equipment, main forwarding
It is standby, N number of from forwarding device and with N number of from the corresponding N group slave devices of forwarding device, the host equipment is set with the main forwarding
Standby wire communication, the main forwarding device and it is described it is N number of wirelessly communicated from forwarding device, it is described each right with it from forwarding device
The one group of slave devices wire communication answered, wherein the main forwarding device and described N number of be all made of claim from forwarding device
Grouping converter described in any one of 1-6 based on LoRa Yu Modbus technology, the packet configuration of the main forwarding device
Switch module is set as the 0th group, and the packet configuration switch module of N number of forwarding device is set as non-zero group and is different groups, N
Greater than 0.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821534178.4U CN209167855U (en) | 2018-09-19 | 2018-09-19 | Grouping converter and system based on LoRa Yu Modbus technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201821534178.4U CN209167855U (en) | 2018-09-19 | 2018-09-19 | Grouping converter and system based on LoRa Yu Modbus technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN209167855U true CN209167855U (en) | 2019-07-26 |
Family
ID=67331642
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201821534178.4U Expired - Fee Related CN209167855U (en) | 2018-09-19 | 2018-09-19 | Grouping converter and system based on LoRa Yu Modbus technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN209167855U (en) |
-
2018
- 2018-09-19 CN CN201821534178.4U patent/CN209167855U/en not_active Expired - Fee Related
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201839319U (en) | Plc remote diagnosis control system | |
CN107426830A (en) | Two-channel wireless public network communication module for power information acquisition system | |
CN209167855U (en) | Grouping converter and system based on LoRa Yu Modbus technology | |
CN212909546U (en) | Universal digital sensor Internet of things module and bridge automatic monitoring system | |
CN109085416A (en) | A kind of digitized voltage sensor module | |
CN207764793U (en) | A kind of multifunctional internet of things intelligent terminal | |
CN207218672U (en) | A kind of UART communications extension NB IOT new device | |
CN102903221B (en) | Distribution transformer terminal wireless data transmission system for communication signal blind areas | |
CN206461804U (en) | A kind of intelligent road-lamp | |
CN209118477U (en) | A kind of low power consumption data transmitting device based on NB-IoT | |
CN209709759U (en) | Power supply monitoring system | |
CN209345198U (en) | A kind of infant industry things-internet gateway | |
CN207182033U (en) | A kind of building remote control switch circuit | |
CN209044853U (en) | A kind of burnt gas valve remote control terminal based on GSM technology | |
CN202677156U (en) | Electric-equipment intelligent management and control system using wireless communication | |
CN203193904U (en) | Short message alarm device | |
CN202218070U (en) | High-voltage switch controller having multiple communication method | |
CN201681384U (en) | Single-PCB multi-system framework | |
CN202600934U (en) | Smart acquisition terminal with multiple communication modes | |
CN206788609U (en) | A kind of power supply comprehensive control management system | |
CN209417925U (en) | A kind of intelligent data converter | |
CN215494607U (en) | Built-in wireless communication module possesses multiple interface moving ring monitoring unit | |
CN209731285U (en) | A kind of switch system based on LORA | |
CN209746625U (en) | ETC lane exception handling handheld terminal | |
CN203838860U (en) | Urban emergency alarm system based on electronic labels of streetlamp |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190726 Termination date: 20210919 |
|
CF01 | Termination of patent right due to non-payment of annual fee |