CN114205773A - 6LoWPAN gateway and application - Google Patents

6LoWPAN gateway and application Download PDF

Info

Publication number
CN114205773A
CN114205773A CN202210155340.6A CN202210155340A CN114205773A CN 114205773 A CN114205773 A CN 114205773A CN 202210155340 A CN202210155340 A CN 202210155340A CN 114205773 A CN114205773 A CN 114205773A
Authority
CN
China
Prior art keywords
module
main controller
data packet
ethernet
data frame
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
CN202210155340.6A
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.)
Chengdu Vocational College of Agricultural Science and Technology
Original Assignee
Chengdu Vocational College of Agricultural Science and Technology
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 Chengdu Vocational College of Agricultural Science and Technology filed Critical Chengdu Vocational College of Agricultural Science and Technology
Priority to CN202210155340.6A priority Critical patent/CN114205773A/en
Publication of CN114205773A publication Critical patent/CN114205773A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/38Services specially adapted for particular environments, situations or purposes for collecting sensor information
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y10/00Economic sectors
    • G16Y10/05Agriculture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q9/00Arrangements in telecontrol or telemetry systems for selectively calling a substation from a main station, in which substation desired apparatus is selected for applying a control signal thereto or for obtaining measured values therefrom
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Agronomy & Crop Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Computing Systems (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The invention discloses a 6LoWPAN gateway and application thereof, comprising a wireless transceiver module, a main controller module, an Ethernet module and a power module, wherein the wireless transceiver module, the main controller module and the Ethernet module are sequentially connected, and the power module is used for providing electric energy; the wireless transceiving module is used for receiving data frames from the sensor nodes or transmitting the data frames to the sensor nodes; the main controller module sends the data frame from the wireless transceiver module to the Ethernet module, or sends the data frame from the Ethernet module to the wireless transceiver module; the Ethernet module is used for converting the data frame from the main controller module and then transmitting the data frame to the user side by a UDP communication protocol, or converting the data packet from the user side and then transmitting the data packet to the main controller module. The 6LoWPAN gateway has the advantages of good stability, high communication efficiency and strong portability, and can be applied to an agricultural environment information sensing system.

Description

6LoWPAN gateway and application
Technical Field
The invention belongs to the technical field of gateways, and particularly relates to a 6LoWPAN gateway and application thereof.
Background
The intelligent agricultural wireless sensor network is a research hotspot at present, but the existing agricultural environment information sensing system has the problems of poor stability of a non-IP wireless sensor network, insufficient communication efficiency, difficult communication with an IP network and the like in practical application. Therefore, in consideration of integrating the WSN (wireless sensor network) and the IP internet to realize point-to-point communication between the WSN (wireless sensor network) and the IP network, a gateway capable of supporting both the IEEE802.15.4 protocol and the TCP/IP protocol is required.
Disclosure of Invention
The invention aims to provide a 6LoWPAN gateway supporting IEEE and TCP and IP protocols (hereinafter abbreviated as TCP/IP protocol) and application thereof.
The invention adopts the following technical scheme:
the 6LoWPAN gateway provided by the invention comprises a wireless transceiver module, a main controller module, an Ethernet module and a power module, wherein the wireless transceiver module, the main controller module and the Ethernet module are sequentially connected, the Ethernet module is also connected with an IP (Internet protocol) internet, and the power module is used for providing electric energy for the wireless transceiver module, the main controller module and the Ethernet module;
the wireless transceiving module is used for receiving the IEEE802.15.4 data frame from the sensor node or transmitting the IEEE802.15.4 data frame to the sensor node; the main controller module sends the IEEE802.15.4 data frame from the wireless transceiver module to the Ethernet module, or sends the IEEE802.15.4 data frame from the Ethernet module to the wireless transceiver module; the Ethernet module is used for converting the IEEE802.15.4 data frame from the main controller module into an IPv6 data packet and then transmitting the data packet to the user side by a UDP communication protocol, or converting the IPv6 data packet from the user side into an IEEE802.15.4 data frame and then transmitting the data frame to the main controller module.
In some embodiments, the wireless transceiver module includes a radio frequency transceiver module, a first main control module, and a first serial communication module, which are connected in sequence; the main controller module comprises a second serial port communication module, a second main control module and a serial peripheral interface which are connected in sequence; the first serial port communication module is connected with the second serial port communication module, and the serial peripheral interface is connected with the Ethernet module.
In some embodiments, the wireless transceiver module employs a CC2538 processor; and the main controller module adopts an STM32 controller; and the Ethernet module adopts a W6100 Ethernet module.
The application of the 6LoWPAN gateway provided by the invention is as follows: the 6LoWPAN gateway is applied to network communication between a wireless sensing network of a terminal and a superior user terminal.
The application specifically comprises:
monitoring the state of a 6LoWPAN gateway by a sensor monitoring node in the wireless sensor network, and monitoring an instruction of a user side by the 6LoWPAN gateway;
when the 6LoWPAN gateway receives an IPv6 data packet from a user side, the IPv6 data packet is converted into a data packet in an IEEE802.15.4 data frame format and is sent to the sensor monitoring node, and the sensor monitoring node analyzes the data packet;
when the analyzed data is a monitoring instruction, the sensor monitoring node acquires environment data, the environment data is compressed and then sent to the 6LoWPAN gateway in an IEEE802.15.4 data frame format, and the 6LoWPAN gateway converts the received environment data into an IPv6 data packet and uploads the data packet to a user side through a UDP communication protocol;
when the control instruction is analyzed, the sensor monitoring node controls the on-off state of the corresponding sensor according to the control instruction, after the control instruction is completed, the sensor monitoring node sends response information in an IEEE802.15.4 data frame format to the 6LoWPAN gateway, and the 6LoWPAN gateway converts the response information into an IPv6 data packet and uploads the data packet to the user side through a UDP communication protocol.
Compared with the prior art, the invention has the following advantages and beneficial effects:
the 6LoWPAN gateway can be applied to an agricultural environment information sensing system, and realizes point-to-point communication between a wireless sensing network and an IP (IPv 4/IPv 6) network; the user can access the 6LoWPAN network in a CoAP/HTTP mode, and further collect or control specific agricultural environment information. The 6LoWPAN gateway has the advantages of good stability, high communication efficiency and strong portability.
Drawings
Fig. 1 is a schematic structural diagram of a 6LoWPAN gateway in an embodiment;
FIG. 2 is a schematic diagram of the connection of a CC2538 processor to an STM32 controller in an embodiment;
FIG. 3 is a schematic diagram of the connection between an STM32 controller and a W6100 chip in an embodiment;
fig. 4 is an application flow of the 6LoWPAN gateway in the embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the invention, are intended for purposes of illustration only and are not intended to limit the scope of the invention.
To realize the integration of the wireless sensor network and the IP internet, the gateway needs to support both the IEEE802.15.4 protocol and the TCP/IP protocol, and then converts the two protocols into each other through the gateway. Referring to fig. 1, a block diagram of a 6LoWPAN gateway according to this embodiment is shown, where the 6LoWPAN gateway can support both IEEE802.15.4 protocol and TCP/IP protocol. The 6LoWPAN gateway mainly includes a wireless transceiver module 100, a main controller module 200, an ethernet module 300 and a power module 400; the wireless transceiver module 100 includes a radio frequency transceiver module, a first Main Control Unit (MCU), and a first serial communication module, which are connected in sequence. The main controller module 200 includes a second serial communication module, a second main control Module (MCU), and a Serial Peripheral Interface (SPI) connected in sequence. The first serial port communication module is connected to the second serial port communication module for data transmission, and the serial peripheral interface is connected to the ethernet module 300 for data transmission. The power module 400 is used to provide power to the wireless transceiver module 100, the main controller module 200, and the ethernet module 300. The ethernet module 300 is used for connection with an IP internet. In this embodiment, the wireless transceiver module 100 employs a CC2538 processor, the main controller module 200 employs an STM32 controller, the ethernet module 300 employs a W6100 chip, and the ethernet module 300 is connected to the IP internet through an RJ-45 interface. The wireless transceiver module 100 receives IEEE802.15.4 data frames from the sensor monitoring node through the radio frequency transceiver module, and sends the data frames to the main controller module 200, and the main controller module 200 drives the ethernet module 300 to be interconnected with the internet, so as to upload the data frames.
The following details each constituent module of the 6LoWPAN gateway.
(1) Wireless transceiver module
In this embodiment, the radio transceiver module employs a CC2538 processor, and fig. 2 is a schematic diagram illustrating a connection between the CC2538 processor and an STM32 controller (i.e., a main controller module). And TX, RX, GND and VCC pins of the CC2538 processor are respectively connected with RX, TX, GND and VCC pins of the STM32 controller, so that mutual communication between the wireless transceiver module and the main controller module is realized.
(2) Main controller module
The main controller module adopts an STM32 controller, specifically adopts an STM32F103VCT6 chip, and the chip is a microcontroller based on a Cortex-M3 kernel and is provided with rich peripheral devices such as a multi-channel ADC, a universal timer, an I2C bus interface, an SPI bus interface, a USART serial port, a CAN bus interface, a USB controller, a real-time clock RTC and the like. It contains 12 DMA channels for managing data transfers between memory and the device. For reliability reasons, STM32 is equipped with hardware such as a low voltage detector, two watchdog and a clock security management system to support applications with high reliability requirements.
(3) Ethernet module
The Ethernet module is used for communicating with the IP internet and is mainly responsible for packaging data frames from the sensor monitoring node into an IPv6 data packet and sending the data packet to the monitoring center through the IP internet. In this embodiment, the ethernet module employs a W6100 chip, the W6100 chip is a new generation all-hardware ethernet TCP/IP stack controller supporting IPv4/IPv6 dual cores, and the controller has SPI and system bus parallel host interfaces, and has 8 independent hardware SOCKETs, a 16KB high-speed data receiving cache and a 16KB high-speed data sending cache, and the W6100 supports protocols such as TCP, UDP, IPv6, IPv4, ICMPv6, ICMPv4, IGMP, ARP, and PPPoE, and supports a network Wakeup (WOL) function based on a UDP protocol, and at the same time, an 10/100M ethernet data link layer (MAC) and a physical layer (PHY) are integrated therein. The W6100 chip communicates with the STM32 controller through an SPI (serial peripheral interface). Fig. 3 shows a connection schematic diagram of the STM32 controller and the W6100 chip, and the STM32 controller is correspondingly connected to the pins of the RSTn, INTn, MOSI, MISO, SCLK, and CSn of the W6100 chip, respectively.
(4) Power supply module
The power supply module is used for providing appropriate electric energy for the 6LoWPAN gateway, and in the embodiment, an AME8815 voltage stabilizing chip is used for converting the 5V voltage input through the DC interface into a 3.2V voltage suitable for the gateway.
The 6LoWPAN gateway disclosed by the invention can be used for fragmenting and recombining the IPv6 data packet through the 6LoWPAN adaptation layer to complete the fusion of the IPv6 network layer and the IEEE802.15.4 physical layer. The data frame collected by the sensor monitoring node is uploaded to a 6LoWPAN network, the 6LoWPAN network sends the data frame to a 6LoWPAN gateway in the form of an IEEE802.15.4 data frame, and the 6LoWPAN gateway converts the IEEE802.15.4 data frame into an IPv6 data packet and transmits the data packet to a user in a UDP communication protocol. Similarly, when the user issues an instruction, the 6LoWPAN gateway receives the instruction, the instruction exists in the form of an IP data packet, is converted into an IEEE802.15.4 data frame through the 6LoWPAN gateway, and then sends the instruction in the form of the IEEE802.15.4 data frame to the sensor monitoring node.
The 6LoWPAN gateway is mainly composed of a wireless transceiver module, a main controller module and an Ethernet module. The wireless transceiver module is used as a coordinator of the wireless sensor network and is mainly responsible for initiating network establishment and transceiving IEEE802.15.4 data frames. The main controller module receives the data of the wireless transceiver module through a serial port and controls the Ethernet module through the SPI interface.
The main controller module has the following working procedures:
after power-on, the main controller module is initialized, namely, a clock system, a GPIO (input/output interface), a serial port, a timer and the like are initialized; the main controller module drives the Ethernet module to initialize, after the Ethernet module is initialized, information such as an IPv6 address, a mask code, a gateway, a Domain Name (DNS) and the like is automatically acquired through a Dynamic Host Configuration Protocol (DHCP), and TCP/UDP communication based on IP can be realized. In this embodiment, a UDP communication protocol is used, and UDP is a user datagram protocol oriented to a packet.
The 6LoWPAN gateway can be applied to an agricultural environment information sensing system and is used for fusing a wireless sensing network and an IP internet. The agricultural environment information sensing system using the 6LoWPAN gateway has the working process shown in FIG. 4, which is specifically as follows:
after a sensor monitoring node in the wireless sensor network is electrified and initialized, the state of the 6LoWPAN gateway is monitored, and the 6LoWPAN gateway monitors an instruction data packet of a user side. When the 6LoWPAN gateway sends a data packet in an IEEE802.15.4 data frame format, the sensor monitoring node analyzes the data packet. When the analyzed monitoring instruction is obtained, the sensor monitoring node collects environmental data, the environmental data are compressed and then sent to the wireless transceiver module in an IEEE802.15.4 data frame format, the wireless transceiver module sends the IEEE802.15.4 data frame format environmental data to the Ethernet module through the main controller module, and the Ethernet module converts the IEEE802.15.4 data frame format environmental data into an IPv6 data packet and uploads the IPv6 data packet to a user side through a UDP communication protocol. When the control instruction is analyzed, the sensor monitoring node controls the on-off state of the corresponding sensor according to the control instruction, after the control instruction is completed, the sensor monitoring node sends response information in an IEEE802.15.4 data frame format to the 6LoWPAN gateway, and the 6LoWPAN gateway converts the response information into an IPv6 data packet and uploads the data packet to the user side through a UDP communication protocol.
Examples
In the embodiment, under the IP internet environment, the connectivity of the 6LoWPAN gateway to the sensor monitoring node and the networked computer in the IPv 6-based agricultural environment information sensing system is tested. The test result shows that the sensor monitoring node and the networked computer can normally communicate by adopting the 6LoWPAN gateway, and the stability and the communication efficiency are both excellent. Users can also access the 6LoWPAN wireless sensor network through a networked computer in a CoAP/HTTP mode.
The above-described embodiment is only one of many embodiments, and those skilled in the art can make other variations or modifications on the basis of the above description, and such other variations or modifications may be made without departing from the spirit of the present invention.

Claims (5)

1. A6 LoWPAN gateway, characterized by:
the wireless power supply device comprises a wireless transceiver module, a main controller module, an Ethernet module and a power supply module, wherein the wireless transceiver module, the main controller module and the Ethernet module are sequentially connected, the Ethernet module is also connected with an IP internet, and the power supply module is used for supplying electric energy to the wireless transceiver module, the main controller module and the Ethernet module;
the wireless transceiving module is used for receiving the IEEE802.15.4 data frame from the sensor node or transmitting the IEEE802.15.4 data frame to the sensor node; the main controller module sends the IEEE802.15.4 data frame from the wireless transceiver module to the Ethernet module, or sends the IEEE802.15.4 data frame from the Ethernet module to the wireless transceiver module; the Ethernet module is used for converting the IEEE802.15.4 data frame from the main controller module into an IPv6 data packet and then transmitting the data packet to the user side by a UDP communication protocol, or converting the IPv6 data packet from the user side into an IEEE802.15.4 data frame and then transmitting the data frame to the main controller module.
2. The 6LoWPAN gateway of claim 1, wherein:
the wireless transceiver module comprises a radio frequency transceiver module, a first main control module and a first serial port communication module which are connected in sequence; the main controller module comprises a second serial port communication module, a second main control module and a serial peripheral interface which are connected in sequence; the first serial port communication module is connected with the second serial port communication module, and the serial peripheral interface is connected with the Ethernet module.
3. The 6LoWPAN gateway of claim 1, wherein:
the wireless transceiving module adopts a CC2538 processor; and the main controller module adopts an STM32 controller; and the Ethernet module adopts a W6100 Ethernet module.
4. Use of the 6LoWPAN gateway of any one of claims 1-3, characterized by:
the 6LoWPAN gateway is applied to network communication between a wireless sensing network of a terminal and a superior user terminal.
5. Use according to claim 4, characterized in that:
the 6LoWPAN gateway is applied to network communication between a wireless sensing network located at a terminal and a higher-level user end, and specifically comprises the following steps:
monitoring the state of a 6LoWPAN gateway by a sensor monitoring node in the wireless sensor network, and monitoring an instruction of a user side by the 6LoWPAN gateway;
when the 6LoWPAN gateway receives an IPv6 data packet from a user side, the IPv6 data packet is converted into a data packet in an IEEE802.15.4 data frame format and is sent to the sensor monitoring node, and the sensor monitoring node analyzes the data packet;
when the analyzed data is a monitoring instruction, the sensor monitoring node acquires environment data, the environment data is compressed and then sent to the 6LoWPAN gateway in an IEEE802.15.4 data frame format, and the 6LoWPAN gateway converts the received environment data into an IPv6 data packet and uploads the data packet to a user side through a UDP communication protocol;
when the control instruction is analyzed, the sensor monitoring node controls the on-off state of the corresponding sensor according to the control instruction, after the control instruction is completed, the sensor monitoring node sends response information in an IEEE802.15.4 data frame format to the 6LoWPAN gateway, and the 6LoWPAN gateway converts the response information into an IPv6 data packet and uploads the data packet to the user side through a UDP communication protocol.
CN202210155340.6A 2022-02-21 2022-02-21 6LoWPAN gateway and application Pending CN114205773A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210155340.6A CN114205773A (en) 2022-02-21 2022-02-21 6LoWPAN gateway and application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210155340.6A CN114205773A (en) 2022-02-21 2022-02-21 6LoWPAN gateway and application

Publications (1)

Publication Number Publication Date
CN114205773A true CN114205773A (en) 2022-03-18

Family

ID=80645732

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210155340.6A Pending CN114205773A (en) 2022-02-21 2022-02-21 6LoWPAN gateway and application

Country Status (1)

Country Link
CN (1) CN114205773A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731344A (en) * 2013-12-24 2014-04-16 武汉绿色网络信息服务有限责任公司 6LOWPAN Internet-of-things gateway based on linux application layer and achieving method
CN104331053A (en) * 2014-11-10 2015-02-04 重庆邮电大学 6LoWPAN smart home system and method for achieving same
CN110996285A (en) * 2019-11-15 2020-04-10 中南大学 College intelligent fire service system based on 6LoWPAN and design method
CN112910489A (en) * 2021-03-03 2021-06-04 大连科技学院 Ethernet circuit based on W6100 chip
CN215818645U (en) * 2021-08-19 2022-02-11 湖南新云网科技有限公司 Gateway equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731344A (en) * 2013-12-24 2014-04-16 武汉绿色网络信息服务有限责任公司 6LOWPAN Internet-of-things gateway based on linux application layer and achieving method
CN104331053A (en) * 2014-11-10 2015-02-04 重庆邮电大学 6LoWPAN smart home system and method for achieving same
CN110996285A (en) * 2019-11-15 2020-04-10 中南大学 College intelligent fire service system based on 6LoWPAN and design method
CN112910489A (en) * 2021-03-03 2021-06-04 大连科技学院 Ethernet circuit based on W6100 chip
CN215818645U (en) * 2021-08-19 2022-02-11 湖南新云网科技有限公司 Gateway equipment

Similar Documents

Publication Publication Date Title
Magno et al. WULoRa: An energy efficient IoT end-node for energy harvesting and heterogeneous communication
Chang Bluetooth: a viable solution for IoT?[Industry Perspectives]
CN104412629B (en) The method and electronic equipment connected at once after discovering device
CN102946447B (en) A kind of industrial equipment remote data transmission system and method
CN202929470U (en) Remote data transmission system of industrial equipment
CN102083243A (en) Wireless medical gateway equipment, wireless electronic health system and monitoring method
CN104519554A (en) Method for supporting parallel access of multiband 6LoWSNs (IPv6 over low power wireless sensor networks) to internet
WO2011116574A1 (en) Wireless route device
Cheng et al. Design of air quality monitoring system based on NB-IoT
US20230140769A1 (en) REMOTE RECONFIGURATION SYSTEM FOR INTERNET OF THINGS (IoT) INTELLIGENT SENSING TERMINAL
CN103906172A (en) Method for networking low-power-dissipation small wireless sensor networks based on oil field application
Peng et al. A low energy consumption WSN node
Ren et al. Can bus network design based on bluetooth technology
CN114205773A (en) 6LoWPAN gateway and application
Higuera et al. Understanding the IEEE 1451 standard in 6loWPAN sensor networks
Feng et al. A network management architecture for 6LoWPAN network
Lin et al. Design of Zigbee gateway in intelligent monitoring system for agriculture
Asenov et al. Power Optimization of LoRaWAN Wireless End Sensor Node
Shrestha et al. An optimized opc ua transport profile to bringing bluetooth low energy device into ip networks
Eliasson et al. A bluetooth-based sensor node for low-power ad hoc networks
CN204721367U (en) Width funtion based on ethernet ip v6 communication protocol is powered concentrator
Xinhua et al. A Self-Reconfigurable Sensor Network Constructon Reaseach in the Paradigm of Internet of Things
CN108449094B (en) Method for realizing ZigBee and Wifi interoperation based on GNU Radio
CN202135333U (en) Transparent type WSN/TD-SCDMA gateway based on IPv6
Wang et al. Low-power wireless sensor network protocol of mobile health based on IPv6

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

Application publication date: 20220318

RJ01 Rejection of invention patent application after publication