Method for solving inter-channel crosstalk of loRa multi-channel gateway

By using orthogonal concurrent synchronization technology and signaling channel collaborative communication between LoRa multi-channel gateways, the crosstalk problem between multi-channel gateways is solved, improving data query speed and online rate, and adapting to the simultaneous working needs in diverse scenarios.

CN115884404BActive Publication Date: 2026-02-13SHAANXI FENGHUO ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211574998.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-08
Publication Date
2026-02-13
Estimated Expiration
2042-12-08

AI Technical Summary

Technical Problem

Crosstalk exists between LoRa multi-channel gateways, causing slow data response from receiving terminals and easy data loss, thus affecting communication efficiency.

Method used

Employing multi-channel orthogonal concurrent synchronization technology, the system exchanges device status and channel resources through frame time slot management of the main control MCU and status control of the wireless module, combined with cooperative communication of the signaling channel, thereby avoiding channel conflicts.

Benefits of technology

It effectively reduces interference between multiple channels, improves data query speed and online rate, and adapts to the needs of simultaneous work in diverse scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115884404B_ABST
    Figure CN115884404B_ABST
Patent Text Reader

Abstract

The application provides a method for solving inter-channel crosstalk of a loRa multi-channel gateway, comprising the following steps: after a master MCU enters a query state, a frame time slot sending process is started, the master MCU sends a "sending query frame" instruction to all wireless modules, the wireless modules send "query commands" after receiving the "sending query frame" instruction, and send a "sending query frame completion" to the master MCU after sending the "query commands", and set the modules to a sleep state; after the master MCU receives all "sending query frame completion" frames of the wireless modules, a "start radio frequency receiving" instruction is sent to the wireless modules. The method for solving inter-channel crosstalk of the loRa multi-channel gateway provided by the application uses multi-channel orthogonal concurrent synchronization technology to orthogonally configure bandwidth and spread spectrum parameters, and introduces a synchronous transmission operation of the gateway multi-channel in the query state, so that the influence of the gateway transmission channel on the receiving channel is overcome.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of LoRa wireless communication, and particularly relates to a method for solving inter-channel crosstalk of a LoRa multi-channel gateway. BACKGROUND

[0002] LoRa is a subset of LORAWAN, and belongs to a modulation technology of a physical layer, adopts a linear modulation spread spectrum mode, can significantly improve receiving sensitivity, and realizes a communication distance farther than other modulation technologies. LoRa wireless communication technology, as one of main technologies in LPWAN, is giving the Internet of Things a transformation.

[0003] LoRa is a long-range radio, and is a low-power local area network wireless standard, mainly dedicated to solving the problems of high power consumption and short transmission coverage distance. It is a wireless network standard widely used in the access layer network transmission of the Internet of Things, and the biggest feature is that the transmission distance is farther than other wireless modes under the same power consumption condition, and the unification of low power consumption and long distance is realized. It is 3-5 times larger than the traditional wireless radio frequency communication distance under the same power consumption. The spread spectrum modulation technology maximizes the sensitivity, and compared with the traditional FSK technology, the LoRa sensitivity is 8-12 dBm better than the FSK under the same communication rate. Due to the low power consumption, long distance, high sensitivity, scalability, multiple network nodes, strong anti-interference and many other advantages, the LoRa technology has become a hotspot in the field of communication research and has attracted widespread attention.

[0004] After a large number of experimental tests, it is found that inter-channel crosstalk will be formed in the multi-channel gateway, which is an inherent problem of the chip itself. The main performance of the crosstalk is that when multiple channels are queried at the same time, the receiving terminal returns data very slowly, and data loss is easy to occur. In the test process, the channel of the receiving terminal is adjusted to the same channel, and the receiving terminal of this channel still cannot well report the data, and data loss still exists. At this time, the antennas of other channels of the multi-channel gateway are removed, so that the transmission signal is small, and the remaining channels can well query the returned data.

[0005] The condition is because when a channel on the gateway is in a receiving state, if other channels transmit, there will be considerable radio frequency energy leakage to the receiving channel. Due to the large interference of adjacent channels, in addition, the interval channels will also interfere with each other, and finally lead to mutual interference when communicating between multiple channels. Due to the mutual interference, the online rate is reduced and the query speed is reduced.

[0006] Therefore, it is necessary to provide a method for solving inter-channel crosstalk of a LoRa multi-channel gateway to solve the above technical problems. SUMMARY

[0007] The application provides a method for solving the crosstalk between channels of a LoRa multi-channel gateway.

[0008] To solve the above technical problems, the application provides a method for solving the crosstalk between channels of a LoRa multi-channel gateway, which comprises the following steps:

[0009] S1, after the main control MCU enters the query state, the frame time slot sending process is started, the main control MCU sends a "sending query frame" instruction to all wireless modules, the wireless modules send "query commands" after receiving the instruction, and then send a "sending query frame completion" message to the main control MCU and set the modules to a sleep state; after the main control MCU receives all "sending query frame completion" messages from the wireless modules, the main control MCU sends a "start radio frequency receiving" instruction to the wireless modules;

[0010] S2, after the wireless modules receive the "start radio frequency receiving" instruction, the wireless modules are driven to enter the receiving state and start the CAD process; if the wireless modules do not receive valid data or detect no collision in the time slot, the wireless modules send a "handheld reading device time slot end" message, and the result parameter in the message is "CAD timeout"; if the wireless modules receive CAD but do not detect a complete data packet or the radio frequency receiving is incorrect, the wireless modules send a "handheld reading device time slot end" message, and the result parameter in the message is "collision"; if the wireless modules receive correct data regardless of the data format, the wireless modules send a "handheld reading device time slot end" message, and the result parameter in the message is "correct reception"; after the wireless modules send the "handheld reading device time slot end" message, the wireless modules switch the radio frequency to a sleep state;

[0011] S3, after the main control MCU receives all "handheld reading device time slot end" messages from the wireless modules, the main control MCU sends a "sending ACK+intermediate query" instruction;

[0012] S4, after the wireless modules receive the "sending ACK+intermediate query" instruction, the wireless modules send an ACK+intermediate query or an intermediate query according to the result of the last time slot; if the wireless modules send an ACK in the last time slot, the wireless modules send a "sending ACK+intermediate query completion" message to the main control MCU after the air interface is sent, and switch the radio frequency to a sleep state; if the wireless modules send an ACK in the last time slot of the frame, the "sending ACK+intermediate query completion" message contains the state statistics of the frame, i.e., the number of competition time slots, idle time slots and correct reception time slots;

[0013] S5, after the master MCU collects all the wireless module "send ACK + intermediate query complete" message, if it is not the last time slot of the frame, send "start radio frequency receiving" instruction to the wireless module, repeat S3, if it is the last time slot of the frame, the master MCU statistics all wireless module state, judge whether the time slot is empty, if it is empty, whether it meets the end condition, if it meets the end condition, the query process is over, send "master stop query" command to all wireless modules, after receiving "master stop query", the wireless module sends stop query command, after sending, send "master stop query complete" message to the master MCU, set the wireless radio frequency to sleep state, after the master MCU collects all the wireless module "master stop query complete" message, the current query business is over, the master MCU reports "query end notification" to the upper computer;

[0014] S6, if the frame is the last time slot, but does not meet the end condition, the master MCU calculates the time slot number of the next frame according to the maximum principle, starts a new frame, sends "send query frame" instruction to all wireless modules, and repeats S1.

[0015] Preferably, before the handheld reading device wakes up the receiving terminal in S2 and S3, it will listen to the f12 channel, broadcast its own device ID, frequency and device running state, and the gateway will reply with gateway ID, channel usage information and device running state after receiving the broadcast frame of the handheld reading device. The handheld reading device and the gateway periodically interact with the device state to update the surrounding device list and state information.

[0016] Preferably, the handheld reading device broadcasts MAC command on channel f1 in S2 and S3, which includes gateway state information and multi-channel concurrent access indication. After receiving, the receiving terminal can select to switch to the gateway signaling channel f11 according to the gateway device state.

[0017] Preferably, the receiving terminal obtains the available channel resources and configuration information of the gateway on the gateway f11 channel in S2 and S3, and enters the business channel to realize multi-channel business parallel access. After completing the business access, the receiving terminal enters sleep.

[0018] Preferably, the gateway in S2 and S3 includes a gateway main body, and the surface of the gateway main body is provided with a mounting assembly, and the mounting assembly includes a U-shaped mounting rack, and the two sides of the surface of the U-shaped mounting rack are provided with fixing members.

[0019] Preferably, a sliding groove is formed in the surface of the U-shaped mounting rack, a sliding block is slidably connected in the sliding groove, and a rotating seat is connected to the surface of the sliding block.

[0020] Preferably, one side of the rotating seat is provided with a positioning assembly, the positioning assembly comprises a connecting rod, the surface of the connecting rod is sleeved with a moving sleeve, and the bottom of the moving sleeve is connected with a positioning ring.

[0021] Preferably, the surface of the moving sleeve is provided with a limiting bolt, and the surface of the connecting rod is sequentially provided with limiting holes matched with the limiting bolt from left to right.

[0022] Preferably, the surface of the U-shaped mounting frame is provided with a movable assembly, the movable assembly comprises a rectangular plate, the surface of the rectangular plate is provided with a moving groove, the inside of the moving groove is slidably connected with a moving block, and one side of the moving block is rotatably connected with a connecting plate through a rotating shaft.

[0023] Preferably, the lower portion of the rectangular plate is provided with a fixing assembly, the fixing assembly comprises a connecting plate, the bottom of the connecting plate is provided with a fixing seat, the end portion of the connecting plate is connected with a connecting block, and the inside of the connecting block is provided with a clamping piece.

[0024] Compared with the related art, the method for solving inter-channel crosstalk of a loRa multi-channel gateway provided by the application has the following beneficial effects:

[0025] The method for solving inter-channel crosstalk of a loRa multi-channel gateway provided by the application introduces a synchronous transmission operation of the gateway multi-channel in a query state, overcomes the influence of the gateway transmission channel on the receiving channel, and enables the handheld reading device and the gateway to communicate through a reserved signaling channel, exchange the existing state of the device and the use of channel resources, avoid channel conflicts, adapt to the scenario of simultaneous operation of the receiving terminal, the handheld reading device and the gateway, and better meet the needs of diversified scenarios. BRIEF DESCRIPTION OF DRAWINGS

[0026] Figure 1 The structure diagram of the first embodiment of the method for solving inter-channel crosstalk of a loRa multi-channel gateway provided by the application;

[0027] Figure 2 The CAD detection flowchart;

[0028] Figure 3 The downlink broadcast query service flowchart;

[0029] Figure 4 The uplink random upload broadcast service flowchart;

[0030] Figure 5 The gateway and handheld reading device cooperation diagram;

[0031] Figure 6 The query service flowchart;

[0032] Figure 7 A gateway hardware framework diagram is provided;

[0033] Figure 8 A structural schematic diagram of a second embodiment of a method for solving inter-channel crosstalk of a loRa multi-channel gateway provided by the application is shown in the figure;

[0034] Figure 9 A Figure 8 A part A enlarged schematic diagram is shown in the figure;

[0035] Figure 10 A Figure 8 A part B enlarged schematic diagram is shown in the figure;

[0036] Figure 11 A Figure 8 A part C enlarged schematic diagram is shown in the figure.

[0037] In the figure, 1 is a gateway main body, 2 is a mounting assembly, 21 is a U-shaped mounting frame, 22 is a sliding groove, 23 is a sliding block, 24 is a rotating seat, 25 is a fixing piece, 3 is a positioning assembly, 31 is a connecting rod, 32 is a moving sleeve, 33 is a positioning ring, 34 is a limiting pin, 4 is a movable assembly, 41 is a rectangular plate, 42 is a moving groove, 43 is a moving block, 44 is a rectangular plate, 5 is a fixed assembly, 51 is a connecting plate, 52 is a fixed seat, 53 is a connecting block, and 54 is a clamping piece. DETAILED DESCRIPTION

[0038] The application will be further described below in combination with the drawings and embodiments.

[0039] First embodiment

[0040] Please refer to Figure 1 , Figure 2 , Figure 3 , Figure 4 , Figure 5 , Figure 6 and Figure 7 , wherein, Figure 1 A structural schematic diagram of a first embodiment of a method for solving inter-channel crosstalk of a loRa multi-channel gateway provided by the application is shown in the figure; Figure 2 A CAD detection flowchart is shown in the figure; Figure 3 A downlink broadcast query service flowchart is shown in the figure; Figure 4 An uplink random upload broadcast service flowchart is shown in the figure; Figure 5 A gateway and handheld reading device cooperation diagram is shown in the figure; Figure 6 A query service flowchart is shown in the figure; Figure 7 A gateway hardware framework diagram is shown in the figure. A method for solving inter-channel crosstalk of a loRa multi-channel gateway includes the following steps:

[0041] S1, the main control MCU enters into the query state, starts the frame time slot sending process, the main control MCU sends "sending query frame" instruction to all wireless modules, the wireless module receives it and sends "query command" through air interface, after sending "query command", sends "sending query frame complete" to the main control MCU, and sets the module to sleep state, the main control MCU waits for all wireless module "sending query frame complete" frames to be received, then sends "starting radio frequency receiving" instruction to the wireless module;

[0042] S2, after the wireless module receives "starting radio frequency receiving" instruction, drives the wireless module to enter into the receiving state and starts CAD process, if the wireless module receives CAD but does not detect complete data packet or radio frequency receiving error, it sends "handheld reading device time slot end" message, the result parameter in the message is collision, if the wireless module receives correct data, regardless of data format, it sends "handheld reading device time slot end" message, the result parameter in the message is correct receiving, after sending "handheld reading device time slot end" message, the wireless module switches the wireless radio frequency to sleep state;

[0043] S3, after the main control MCU receives all wireless module "handheld reading device time slot end" messages, it sends "sending ACK+intermediate query" instruction;

[0044] S4, after the wireless module receives "sending ACK+intermediate query" instruction, according to the result of the last time slot just ended, it sends ACK+intermediate query or intermediate query through air interface, if it is the last time slot to send ACK, after air interface sending is completed, it sends "sending ACK+intermediate query complete" message to the main control MCU and switches the radio frequency to sleep state, if it is the last time slot of the frame, "sending ACK+intermediate query complete" message contains the state statistics of the frame, i.e. the number of competition time slot, idle time slot and correct receiving time slot;

[0045] S5, after the master MCU collects all the "send ACK + intermediate query completion" messages of the wireless modules, if it is not the last time slot of the frame, it sends a "start radio frequency reception" instruction to the wireless modules, repeats S3, if it is the last time slot of the frame, the master MCU counts the states of all the wireless modules, judges whether the time slots are all empty, if they are all empty, whether the end condition is met, if the end condition is met, the query process ends, the master MCU sends a "master stop query" command to all the wireless modules, after the wireless modules receive the "master stop query", the air interface sends a stop query command, after the sending is completed, the master MCU sends a "master stop query completion" message to the master MCU, sets the wireless radio frequency to the Sleep state, after the master MCU collects all the "master stop query completion" messages of the wireless modules, the current query service ends, and the master MCU reports a "query end notification" to the upper computer.

[0046] S6, if the frame is the last time slot but does not meet the end condition, the master MCU calculates the number of time slots of the next frame according to the maximum principle, starts a new frame, sends a "send query frame" instruction to all the wireless modules, and repeats S1.

[0047] Before the handheld reading device wakes up the receiving terminal in S2 and S3, it will listen to the f12 channel, broadcast its own device ID, frequency and device running state, after the gateway receives the broadcast frame of the handheld reading device, it replies with the gateway ID, channel usage information and device running state, the handheld reading device and the gateway periodically interact with the device state to update the peripheral device list and state information.

[0048] The handheld reading device broadcasts a MAC command on the f1 channel in S2 and S3, which includes gateway state information and multi-channel concurrent access indication, after the receiving terminal receives it, it can select to switch to the gateway signaling channel f11 according to the gateway device state.

[0049] The receiving terminal obtains the gateway available channel resources and configuration information on the gateway f11 channel in S2 and S3, and enters the business channel to realize multi-channel business parallel access, and the receiving terminal enters sleep after completing the business access.

[0050] In the CAD mode, the SX1278 chip can quickly scan the working frequency band to detect the frame preamble, so as to determine whether the channel is occupied, and the CAD detection mode can make the SX1278 work in a low-power mode, which can be used for terminal wake-up and collision detection before terminal sending.

[0051] By increasing the near-CAD detection to a combination of preamble detection, preamble synchronization detection and frame header detection, when the chip starts CAD detection, first read the chip CAD detection state, if the chip detects CAD, enter the receiving state, otherwise continue to detect the CAD state.

[0052] After the chip enters the receiving state, the receiving chip modem and the receiving process state are received, the preamble is started to be detected, when the preamble is detected to end, the valid frame header is started to be judged, at this time, if the valid frame header is detected, the preamble detection is continued, if the CAD frame header is detected, the CAD detection is valid.

[0053] The method can effectively reduce the misjudgment caused by multi-channel interference, and will not affect the reception of the valid terminal signal.

[0054] Handheld reading device and gateway cooperation

[0055] The handheld reading device and the gateway communicate through the reserved signaling channel, exchange device existence state and use channel resource situation, when the handheld reading device and the gateway need to work at the same time on the spot, the two devices need to first perceive the surrounding device state, and interact the used channel resource, to avoid channel conflict.

[0056] Before the handheld reading device wakes up the receiving terminal, it will listen to the f12 channel, broadcast its own device ID, frequency and device running state, after the gateway receives the broadcast frame of the handheld reading device, it replies the gateway ID, channel use information and device running state, the handheld reading device and the gateway regularly interact the device state to update the surrounding device list and state information.

[0057] The handheld reading device broadcasts the MAC command on the channel f1, which includes the gateway state information and multi-channel concurrent access indication, after the receiving terminal receives it, according to the gateway device state, it can select to switch to the gateway signaling channel f11, the receiving terminal obtains the gateway available channel resource and configuration information on the gateway f11 channel, and enters the business channel to realize multi-channel business parallel access.

[0058] CAD wake-up

[0059] The SX1278 chip provides a channel detection function, that is, automatic radio frequency signal detection (CAD mode), in the CAD mode, the SX1278 chip can quickly scan the working frequency band to detect the frame preamble, so as to determine whether the channel is occupied, the CAD detection can complete the preamble capture in 1-2 symbols, the CAD detection time under different spreading factors SF is as shown in Figure 1 The CAD detection mode can make the SX1278 work in a low-power mode, which can be used for terminal wake-up and conflict detection before terminal sending.

[0060] Please refer to Figure 2It is known that the signals of each channel are orthogonal by changing the channel spreading factor. After the signals are orthogonal, although the complete data packets cannot be received between multiple channels, mutual interference still exists during the CAD process in the query process. When a channel sends a signal, other channels may detect CAD, resulting in the CAD result being unable to determine whether it is caused by the gateway wireless module interference or the useful data packet sent by the real terminal. This is related to the CAD detection mechanism and sensitivity of the LoRa chip. The SX1278 chip used by the system cannot adjust the sensitivity of CAD. Therefore, after a large number of tests and research analyses, a new CAD detection mode is proposed to compensate for the inaccuracy of CAD detection. The main idea is to combine the near-CAD detection with the preamble detection, preamble synchronization detection, and frame header detection.

[0061] After separate testing, the new CAD detection method can effectively reduce the misjudgment caused by multi-channel interference without affecting the reception of effective terminal signals.

[0062] Now the code of the multi-channel long-distance wireless module has updated and integrated the new CAD detection method. Combined with the orthogonal spreading factor allocation mechanism of 9, 10, and 11, 10 channels can work simultaneously.

[0063] Please refer to Figure 3 and Figure 4 It is known that the uplink and downlink data interaction is divided into downlink and uplink according to who initiates the business. The downlink is initiated by the handheld reading device or the gateway, and the uplink is initiated by the receiving terminal. During downlink business, in addition to sending business messages, the MAC software also needs to be responsible for the wake-up of receiving terminals within the communication range. The uplink business is relatively simple, as the receiving terminal software actively wakes itself up and sends corresponding business data. When waking up, the downlink uses the method of sending a long preamble and the receiving terminal periodically detects CAD. The length of the sent preamble must be greater than the period of the receiving terminal CAD. After waking up, the business data is responded to. When responding, the time slot method is used. If the downlink business is point-to-point transmission, the receiving terminal with the correct destination address receives this message and directly uploads the business data after IFS. The handheld reading device or the gateway confirms the business data.

[0064] If it is a broadcast business, it is considered that all receiving terminals need to report business data. After receiving the downlink query command, all receiving terminals perform random time slot avoidance and then compete to upload data. The handheld reading device or the gateway confirms the business data (by sending ACK).

[0065] The handheld reading device or the gateway may send the same query instruction multiple times to solve the problem of incorrect data reporting by receiving terminals with competition conflicts in one query. Whether the reception is successful can be confirmed by the ACK frame.

[0066] In order to distinguish the two different services, a SessionID is used to distinguish each service. The receiving terminal is marked after receiving the correct response of the current SessionID, and does not respond to the subsequent broadcast service of this SessionID.

[0067] In order to improve efficiency, the ACK function and the command query function are combined and designed. When the handheld reading device or the gateway confirms the uplink service data, the query command is sent again, the next competition window is opened, and the current process is repeated until the handheld reading device or the gateway considers that the data collection is complete.

[0068] After receiving the application layer program service query instruction, the handheld reading device or the gateway records the receiving terminal that correctly responds to the service data when sending the activation and query instruction. The activation query is sent at most twice, and then the short preamble is sent instead of the long preamble activation signal, thereby saving time and energy. The receiving terminal automatically extends its activation time after receiving the message of the handheld reading device or the gateway each time.

[0069] After the first broadcast service data reporting is completed, the handheld reading device or the gateway has collected almost all the receiving terminal nodes within the communication range. The subsequent broadcast service can be replaced by on-demand polling instead of real broadcast, which can reduce the competition of the receiving terminal data reporting and improve the data reporting rate, but the ACK is still needed to ensure the reliability of the uplink message.

[0070] Please refer to Figure 6 When the handheld reading device or the gateway needs to query the terminals within the communication range, the query process is initiated, including search and rescue query, geographic location query and other services.

[0071] In order to distinguish the two different services, a SessionID is used to distinguish each service. The receiving terminal is marked after receiving the correct response of the current SessionID, and does not respond to the subsequent broadcast service of this SessionID.

[0072] In the query response service, in order to improve efficiency, the ACK function and the query request command are combined and designed. When the handheld reading device or the gateway confirms the query response data sent by the terminal, the query command is sent again, the next time slot is opened, and the query command sent in between is called intermediate query command, which contains the time slot number of the next time slot. The terminal checks whether the time slot number selected by itself and the sequence number in the intermediate query frame are the same after receiving it. If they are the same, the terminal sends data in this time slot, otherwise, the terminal continues to wait for the corresponding time slot.

[0073] In order to reduce the conflict, the terminal sets 1-2 contention sub-slots in front of its own time slot when it arrives, the contention sub-slot width is the time length of the preamble sent by the terminal, if 0 sub-slot is selected, it is sent immediately, if 1 or the following sub-slot is selected, CAD listening is performed before its own sub-slot arrives, once the CAD is listened, it means that the time slot is occupied by someone, then it turns to receiving and gives up sending, and waits for the next frame period to send again.

[0074] When the selected contention sub-slot arrives, if no CAD is detected in front, the sending of the response frame is performed, and the ACK is waited, after the ACK is received, the service is recorded as the replied state, the subsequent query instruction of the service is no longer responded, if the waiting for the ACK is timed out, it is possible that the contention occurs in the time slot or there is interference when the ACK is transmitted, at this time, the next query period is waited to try to send again, that is, the automatic retransmission of the responded service data is not needed.

[0075] When the current frame period ends, the handheld reading device or the gateway MAC software re-calculates the time slot number of the next frame period according to all time slot conditions, re-sends the query command to start the next frame period, and repeats the frame period query process until the handheld reading device or the gateway considers that the data collection is completed, the next frame time slot number TSnum is determined by the following formula:

[0076] TSnum=[TScx2.39] 取整

[0077] Wherein TSc is the total contention time slot number in the previous frame.

[0078] The query end is determined by the handheld reading device or the gateway, generally, it is determined at the end of the frame, if all time slots in the previous frame are in the idle state, it can be determined that the data collection is completed.

[0079] The receiving terminal wireless module, the handheld reading device wireless module and the gateway wireless module use the same MAC protocol framework in the long-distance wireless network, the main functions of the MAC layer include frame assembly and frame analysis, frame data security, wireless transceiver control, channel access control, multi-channel management, link parameter control and the like.

[0080] The MAC layer protocol runs in the convergence gateway, the handheld reading device and the receiving terminal, wherein the MAC function of the convergence gateway is the most comprehensive, and it needs to support 8 or more RF channels to be used in parallel, and needs a better hardware platform, the handheld reading device and the receiving terminal will be simplified in combination of functions, volume, cost and power consumption.

[0081] The MAC layer protocol running in the convergence gateway at least needs a processor, a plurality of RF modules, an Ethernet interface and the like, and a reference block diagram of a hardware platform is shown in the following figure, and the hardware bearing platform of the handheld reading device is similar to the convergence gateway, but the RF modules are correspondingly reduced, and the processor and the interface are correspondingly reduced.

[0082] The multi-channel long-distance wireless module is embedded into the gateway device when working, is a key component for data collection and forwarding, has 10 independent wireless transmission channels, each channel has an independent LoRa communication chip and processor, can realize the reception and transmission of respective wireless data, finally completes functions such as multi-channel simultaneous communication, query, inventory and data reporting, improves the overall communication capacity of the system, and improves the online rate of the terminal.

[0083] Compared with the related art, the method for solving the inter-channel crosstalk of the loRa multi-channel gateway provided by the application has the following beneficial effects:

[0084] The application provides a method for solving the inter-channel crosstalk of the loRa multi-channel gateway, a multi-channel orthogonal concurrent synchronization technology is used for orthogonally configuring bandwidth and spreading parameters, and a synchronous transmission operation of the gateway multi-channel in a query state is introduced, the influence of the gateway transmission channel on the reception channel is overcome, a handheld reading device and a gateway are used for cooperative communication through a reserved signaling channel, the device existence state and the use channel resource condition are exchanged, channel conflict is avoided, the scenario of simultaneous work of a receiving terminal, the handheld reading device and the gateway can be adapted, and the diversified scenario demand can be better met.

[0085] Second embodiment

[0086] Please refer to Figure 8 , Figure 9 , Figure 10 and Figure 11 , based on the method for solving the inter-channel crosstalk of the loRa multi-channel gateway provided in the first embodiment of the application, another method for solving the inter-channel crosstalk of the loRa multi-channel gateway is provided in the second embodiment of the application. The second embodiment is only a preferred mode of the first embodiment, and the implementation of the second embodiment does not affect the separate implementation of the first embodiment.

[0087] Specifically, the method for solving the inter-channel crosstalk of the loRa multi-channel gateway provided in the second embodiment of the application is different from the method for solving the inter-channel crosstalk of the loRa multi-channel gateway, the gateway in the S2 and the S3 includes a gateway main body 1, a mounting assembly 2 is arranged on the surface of the gateway main body 1, the mounting assembly 2 includes a U-shaped mounting frame 21, and fixing members 25 are arranged on the two sides of the surface of the U-shaped mounting frame 21.

[0088] The U-shaped mounting frame 21 is sleeved on the surface of the gateway body 1 at the center position, and the fixing part 25 comprises a threaded rod, and a circular fixing block is rotatably connected to one end of the threaded rod 21 through a rotating shaft.

[0089] The surface of the U-shaped mounting frame 21 is provided with a sliding groove 22, the sliding groove 22 is slidably connected with a sliding block 23, and the surface of the sliding block 23 is connected with a rotating seat 24.

[0090] The use of the sliding groove 22 and the sliding block 23 facilitates the left and right position adjustment of the positioning assembly 3, a bolt is arranged on the surface of the sliding block 23, a plurality of threaded holes matched with the bolt are sequentially arranged on the inner wall of the sliding groove 22 from left to right, and the use of the rotating seat 24 facilitates the up and down angle adjustment of the positioning assembly 3, so that the connection line is prevented from being blocked during installation.

[0091] The rotating seat 24 is provided with the positioning assembly 3 on one side, the positioning assembly 3 comprises a connecting rod 31, the surface of the connecting rod 31 is sleeved with a moving sleeve 32, and the bottom of the moving sleeve 32 is connected with a positioning ring 33.

[0092] One end of the connecting rod 31 is connected to one side of the rotating seat 24, and the use of the moving sleeve 32 can adjust the position of the positioning ring 33.

[0093] The surface of the moving sleeve 32 is provided with a limiting bolt 34, and the surface of the connecting rod 31 is sequentially provided with limiting holes matched with the limiting bolt 34 from left to right.

[0094] The surface of the U-shaped mounting frame 21 is provided with a movable assembly 4, the movable assembly 4 comprises a rectangular plate 41, the surface of the rectangular plate 41 is provided with a moving groove 42, the moving groove 42 is slidably connected with a moving block 43, and one side of the moving block 43 is rotatably connected with a connecting plate 44 through a rotating shaft.

[0095] The lower portion of the rectangular plate 44 is provided with a fixing assembly 5, the fixing assembly 5 comprises a connecting plate 51, the bottom of the connecting plate 51 is provided with a fixing seat 52, the end portion of the connecting plate 51 is connected with a connecting block 53, and the inner portion of the connecting block 53 is provided with a clamping part 54.

[0096] The working principle of the method for solving the inter-channel crosstalk of the loRa multi-channel gateway provided by the application is as follows:

[0097] In use, the U-shaped mounting bracket 21 is sleeved on the center of the surface of the gateway body 1, when the U-shaped mounting bracket 21 is sleeved on the surface of the gateway body 1, the U-shaped mounting bracket 21 is fixed with the gateway body 1 through the fixing piece 25, when the U-shaped mounting bracket 21 is fixed, the positioning ring 33 is moved by pulling the connecting rod 31, when the connecting rod 31 moves, the sliding block 23 moves in the sliding groove 22 by rotating the rotating seat 24, when the positioning ring 33 moves to the appropriate position, the bolt is used to pass through the surface of the sliding block 23 and is screwed with the threaded hole in the inner wall of the sliding groove 22.

[0098] When the left and right positions of the positioning ring 33 are adjusted, the moving sleeve 32 is moved on the surface of the connecting rod 31 by pushing the positioning ring 33, when the position of the positioning ring 33 is adjusted, the limiting bolt 34 is used to pass through the surface of the moving sleeve 32 and is fixedly connected with the connecting rod 31.

[0099] When the gateway body 1 is installed, the moving block 43 moves in the moving slot 42 by pulling the rectangular plate 44, when the rectangular plate 44 moves, the fixing assembly 5 moves, when the fixing assembly 5 moves to the appropriate position, the fixing seat 52 and the clamping piece 54 are used to be fixed between the object.

[0100] Compared with the related art, the method for solving the inter-channel crosstalk of the loRa multi-channel gateway has the following beneficial effects:

[0101] The method for solving the inter-channel crosstalk of the loRa multi-channel gateway is provided, the mounting assembly 2 is arranged on the surface of the gateway body 1, the positioning assembly 3 is used to fix the connector of the gateway body 1, the movable assembly 4 and the fixing assembly 5 are arranged at the bottom of the U-shaped mounting bracket 21, the gateway body 1 is installed on the surface of the object, and the gateway body 1 is prevented from being knocked and falling.

[0102] The above is only an embodiment of the present application, and does not limit the patent range of the present application, and any equivalent structure or equivalent process transformation obtained by using the content of the specification and the drawings, or direct or indirect application in other related technical fields, is also included in the patent protection range of the present application.

Claims

1. A method for solving inter-channel crosstalk of a loRa multi-channel gateway, characterized in that, Comprising the following steps: S1, after the main control MCU enters the query state, the frame time slot sending process is started, the main control MCU sends "sending query frame" instruction to all wireless modules, after receiving, the wireless module sends "query command" on the air interface, after sending "query command", it sends "sending query frame complete" to the main control MCU, and sets the module to sleep state, after the main control MCU receives all "sending query frame complete" frames of the wireless modules, it sends "start radio frequency receiving" instruction to the wireless module; S2, after the wireless module receives "start radio frequency receiving" instruction, it drives the wireless module to enter the receiving state and start CAD process, if the wireless module receives CAD but does not detect complete data packet or radio frequency receiving error, it sends "handheld reading device time slot end" message, and the result parameter in the message is collision, if the wireless module receives correct data regardless of data format, it sends "handheld reading device time slot end" message, and the result parameter in the message is correct receiving, after sending "handheld reading device time slot end" message, the wireless module switches the wireless radio frequency to sleep state; S3, after the main control MCU receives all "handheld reading device time slot end" messages of the wireless modules, it sends "sending ACK+intermediate query" instruction; S4, after the wireless module receives "sending ACK+intermediate query" instruction, it sends ACK+intermediate query or intermediate query on the air interface according to the result of the last time slot, if it is the last time slot to send ACK, after sending on the air interface, it sends "sending ACK+intermediate query complete" message to the main control MCU, and switches the radio frequency to sleep state, if it is the last time slot of the frame, the "sending ACK+intermediate query complete" message contains the state statistics of the frame, i.e. the number of competition time slots, idle time slots and correct receiving time slots; S5, after the main control MCU receives all "sending ACK+intermediate query complete" messages of the wireless modules, if it is not the last time slot of the frame, it sends "start radio frequency receiving" instruction to the wireless module, and repeats S3, if it is the last time slot of the frame, the main control MCU counts the states of all wireless modules, judges whether the time slots are all empty, and judges whether the ending condition is met, if the ending condition is met, the query process ends, the main control MCU sends "main control stop query" command to all wireless modules, after receiving "main control stop query", the wireless module sends stop query command on the air interface, after sending, it sends "main control stop query complete" message to the main control MCU, and sets the wireless radio frequency to sleep state, after the main control MCU receives all "main control stop query complete" messages of the wireless modules, the current query service ends, and the main control MCU reports "query end notification" to the upper computer. S6, if the frame is the last time slot, but not meet the end condition, master MCU according to the principle of maximum calculation of the next frame time slot, open a new frame, send "send query frame" instruction to all wireless module, repeat S1; First read chip CAD detection state, if the chip detects CAD, enter the receiving state, otherwise continue to detect the CAD state; After the chip enters the receiving state, the chip modem is received and the process state is received, the preamble is detected, when the preamble is detected, the valid frame header is judged, if the valid frame header is detected, the preamble detection is continued, if the CAD frame header is detected, the CAD detection is valid.

2. The method of claim 1, wherein, Before the handheld reading device in S2 and S3 wakes up the receiving terminal, it will listen to the f12 channel, broadcast its own device ID, frequency and device running state. After the gateway receives the broadcast frame of the handheld reading device, it replies with the gateway ID, channel usage information and device running state. The handheld reading device and the gateway regularly exchange device states to update the surrounding device list and state information.

3. The method of claim 1, wherein, In S2 and S3, the handheld reading device broadcasts MAC commands on channel f1, which includes gateway state information and multi-channel concurrent access indication. After receiving, the receiving terminal can select to switch to the gateway signaling channel f11 according to the gateway device state.

4. The method of claim 3, wherein, In S2 and S3, the receiving terminal obtains the available channel resources and configuration information of the gateway on the gateway f11 channel, and enters the business channel to realize multi-channel business parallel access. After completing the business access, the receiving terminal enters sleep.

5. The method of claim 3, wherein, The gateway in S2 and S3 includes a gateway main body, and a mounting assembly is arranged on the surface of the gateway main body.

6. The method of claim 5, wherein, The surface of the U-shaped mounting frame is provided with a sliding groove, and the sliding groove is internally connected with a sliding block.

7. The method of claim 6, wherein, The side of the rotating seat is provided with a positioning assembly, and the positioning assembly includes a connecting rod.

8. The method of claim 7, wherein, The surface of the moving sleeve is provided with a limiting bolt, and the surface of the connecting rod is sequentially provided with limiting holes matched with the limiting bolt from left to right.

9. The method of claim 6, wherein, The surface of the U-shaped mounting frame is provided with a movable assembly, and the movable assembly includes a rectangular plate.

10. The method of claim 9, wherein, The lower part of the connecting plate is provided with a fixing seat, and the end of the connecting plate is connected with a connecting block. The inside of the connecting block is provided with a clamping piece.

Citation Information

Patent Citations

  • Method and device for communication between terminal and base station and network access of terminal

    CN109842919A

  • Data acquisition method and device based on LORA low-power-consumption wireless communication technology

    CN112351475A