Network access communication methods, gateway device and peripheral device

The scrambling code and verification code are determined by the address, total time and network key between the gateway device and the peripheral device, which solves the problem of insufficient applicability of equipment network access communication in the prior art, and realizes a simple and flexible network access method with simple network configuration.

WO2025167194A1PCT designated stage Publication Date: 2025-08-14PHYPLUS INC
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/126787
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-02-07
Filing Date
2024-10-23
Publication Date
2025-08-14

AI Technical Summary

Technical Problem

In the prior art, the device network communication method relies on the root key and dedicated line, resulting in poor applicability, especially insufficient applicability to devices that do not support USIM.

Method used

The first scramble code is determined by the gateway device based on its address, the total number of time in the current time group, and the network key, and its byte segments are sent to the peripheral device as verification codes. The peripheral device determines the second verification code based on the same information to complete the network access operation. The setting of the network key allows flexible switching of mixed or independent modes.

Benefits of technology

It realizes the simplicity and flexibility of device network communication, and can switch between different network modes without the need for additional hardware facilities, making it more applicable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024126787_14082025_PF_FP_ABST
    Figure CN2024126787_14082025_PF_FP_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the field of communications. Disclosed are network access communication methods, a gateway device and a peripheral device. A network access communication method is applied to a gateway device, and comprises: determining a first scrambling code on the basis of an address of a gateway device, the total time of a current time group and a network key of the gateway device; selecting a byte segment, which is formed by bytes at a plurality of preset positions in the first scrambling code, as a first check code; and sending the first check code, the address of the gateway device and the total time of the current time group to a peripheral device, so that the peripheral device determines a second check code on the basis of the address of the gateway device, the total time of the current time group and a network key of the peripheral device, and when the second check code is the same as the first check code, a network access operation of the peripheral device for the gateway device is completed. In the present application, a network configuration for network access is simple and easy to use, different network modes can be switched between by setting different network keys, switching between the network modes is simple and flexible, without requiring the use of other hardware facilities, and the applicability is relatively high.
Need to check novelty before this filing date? Find Prior Art

Description

Network access communication method, gateway device, and peripheral device

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application is based on the Chinese patent application with application number "202410175756.3" and application date of February 7, 2024, and claims the priority of the above-mentioned Chinese patent application. The entire content of the above-mentioned Chinese patent application is hereby incorporated into this application by introduction. Technical Field

[0003] The embodiments of the present application relate to the field of communications, and in particular to a network access communication method, a gateway device, and a peripheral device. Background Art

[0004] With the development of communication network technology, more and more communication devices are being added to the communication network, and control between devices, data transmission and reception, etc. are carried out through the communication network. For example, a gateway device can communicate and interact with multiple peripheral devices.

[0005] In the existing technology, root keys and dedicated lines can be used to achieve device network communication. However, the root keys in the existing methods require the device to support the USIM (Universal Subscriber Identity Module), and the application scope of the dedicated line is relatively small, which makes the existing technology have significant limitations and poor applicability.

[0006] Summary of the Invention

[0007] The purpose of the embodiments of the present application is to provide a network access communication method, a gateway device, and a peripheral device to improve the applicability of device network access communication.

[0008] To solve the above technical problems, an embodiment of the present application provides a network access communication method, which is applied to a gateway device, the gateway device being used to communicate with peripheral devices, and the method includes:

[0009] Determining a first scrambling code according to the address of the gateway device, the total time of the current time group, and the network key of the gateway device;

[0010] selecting a byte segment formed by bytes at a plurality of preset positions in the first scrambling code as a first check code;

[0011] The first verification code, the address of the gateway device, and the total time of the current time group are sent to the peripheral device, so that the peripheral device determines the second verification code based on the address of the gateway device, the total time of the current time group, and the network key of the peripheral device, and completes the network access operation of the peripheral device for the gateway device when the second verification code is the same as the first verification code.

[0012] An embodiment of the present application also provides a network access communication method, wherein the gateway device is a logistics terminal device, the peripheral device is set on the logistics item, and the peripheral device on each of the logistics items is communicatively connected to the logistics terminal device.

[0013] An embodiment of the present application further provides a network access communication method, wherein determining a first scrambling code according to an address of the gateway device, a total time of a current time group, and a network key of the gateway device includes:

[0014] Determine the plain text according to the address of the gateway device and the total time of the current time group;

[0015] The plain text and the network key of the gateway device are input into a preset encryption engine to obtain the first scrambling code.

[0016] An embodiment of the present application further provides a network access communication method, which, after determining the first scrambling code based on the address of the gateway device, the total time of the current time group, and the network key of the gateway device, further includes:

[0017] Scrambling the current original PDU field of the gateway device according to the first scrambling code to obtain a scrambled PDU field; wherein the current original PDU field is basic communication data between the peripheral device and the gateway device;

[0018] The gateway device also sends the scrambled PDU field to the peripheral device; the peripheral device determines a second scrambling code based on the network key of the peripheral device, the address of the gateway device in the source packet, and the total time of the current time group, and determines the current original PDU field based on the second scrambling code and the scrambled PDU field.

[0019] An embodiment of the present application further provides a network access communication method, the method further comprising:

[0020] determining a first signal synchronization word according to the first scrambling code;

[0021] The first signal synchronization word is sent to the peripheral device, so that when the first signal synchronization word is the same as the second signal synchronization word calculated by the peripheral device, the peripheral device and the gateway device perform data exchange.

[0022] An embodiment of the present application further provides a network access communication method, wherein determining a first signal synchronization word according to the first scrambling code includes:

[0023] Selecting a first byte segment of a preset length starting from the lower bit of the first scrambling code;

[0024] Performing a validity check on the first byte segment of the preset length according to a preset validity condition;

[0025] If the validity check fails, a second byte segment of a preset length that is different from the first byte segment of the preset length is reselected from the first scrambling code until the second byte segment of the preset length passes the validity check, and the second byte segment of the preset length is used as the first signal synchronization word.

[0026] An embodiment of the present application further provides a network access communication method, which is applied to a peripheral device, the peripheral device being used to communicate with a gateway device, the method comprising:

[0027] Receiving a first verification code, an address of the gateway device, and a total time of the current time group sent by the gateway device;

[0028] determining a second scrambling code according to the network key of the peripheral device, the address of the gateway device, and the total time of the current time group;

[0029] selecting a byte segment formed by bytes at a plurality of preset positions in the second scrambling code as a second check code;

[0030] If the second verification code is the same as the first verification code, the network access operation of the peripheral device to the gateway device is completed.

[0031] An embodiment of the present application further provides a network access communication method, the method further comprising:

[0032] Receiving a scrambled PDU field sent by the gateway device;

[0033] Scrambling the scrambled PDU field according to the second scrambling code to obtain a current original PDU field; the current original PDU field is basic communication data between the peripheral device and the gateway device;

[0034] Receiving a first signal synchronization word sent by the gateway device;

[0035] determining a second signal synchronization word according to the second scrambling code;

[0036] If the second signal synchronization word is the same as the first signal synchronization word, the peripheral device and the gateway device perform data exchange.

[0037] An embodiment of the present application further provides a gateway device, comprising: at least one first processor; and

[0038] a first memory communicatively connected to the at least one first processor; wherein,

[0039] The first memory stores instructions that can be executed by the at least one first processor, and the instructions are executed by the at least one first processor so that the at least one first processor can execute any of the above-mentioned network access communication methods applied to the gateway device.

[0040] An embodiment of the present application further provides a peripheral device, comprising: at least one second processor; and

[0041] a first memory communicatively connected to the at least one second processor; wherein,

[0042] The second memory stores instructions that can be executed by the at least one second processor, and the instructions are executed by the at least one second processor so that the at least one second processor can execute any of the above-mentioned network access communication methods applied to peripheral devices.

[0043] In the embodiment of the present application, the gateway device and the peripheral device are configured to access the network through the network key. Only when the network key of the peripheral device and the network key of the gateway device are the same can the peripheral device complete the network access operation for the gateway device. The network configuration is simple and easy to use. At the same time, all gateway devices and all peripheral devices can realize a large-scale network in a mixed mode by using the same network key. Configuring different network keys for different gateway devices can realize a large-scale network in an independent mode. That is, the present application can change different network modes by setting different network keys. Changing the network mode is relatively simple and flexible, and does not require the help of other hardware facilities. Therefore, the network access communication method of the present application has strong applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] One or more embodiments are exemplarily described by the figures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments.

[0045] FIG1 is a flow chart of a first network access communication method provided by an embodiment of the present application;

[0046] FIG2 is a schematic diagram of a large-scale network in a hybrid mode provided by an embodiment of the present application;

[0047] FIG3 is a schematic diagram of a large-scale network in an independent mode provided by an embodiment of the present application;

[0048] FIG4 is a flow chart of a second network access communication method provided in an embodiment of the present application;

[0049] FIG5 is a flowchart of a third network access communication method provided in an embodiment of the present application;

[0050] FIG6 is a flowchart of a fourth network access communication method provided in an embodiment of the present application;

[0051] FIG7 is a flowchart of a fifth network access communication method provided in an embodiment of the present application;

[0052] FIG8 is a flowchart of a sixth network access communication method provided in an embodiment of the present application;

[0053] FIG9 is a schematic diagram of the structure of a gateway device provided in an embodiment of the present application;

[0054] FIG10 is a schematic structural diagram of a peripheral device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, each embodiment of the present application will be described in detail below with reference to the accompanying drawings. However, it will be understood by those skilled in the art that in each embodiment of the present application, many technical details are proposed to enable the reader to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solutions claimed in the present application can be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of the present application. The various embodiments can be combined and referenced with each other under the premise of no contradiction.

[0056] An embodiment of the present application relates to a network access communication method, which is applied to a gateway device, and the gateway device is used to communicate with peripheral devices. As shown in Figure 1, it specifically includes the following steps.

[0057] Step 101: Determine a first scrambling code according to the address of the gateway device, the total time of the current time group, and the network key of the gateway device.

[0058] The address of the gateway device is used to identify a uniquely corresponding gateway device, and the address of the gateway device can be expressed as InitID.

[0059] The total time of the current time group can be expressed as NextEvtCnt, where the communication between the gateway device and the peripheral device is divided into multiple time groups. After each time group, the total time of the current time group is increased by 1. Each peripheral device has a fixed time group.

[0060] The network key of the gateway device is pre-set and can be pre-set in the gateway device for the user. The network key of the gateway device can be represented as netkey1. In an example implementation, the lower 8 bytes of the network key of the gateway device are the pre-stored network key, and the upper 8 bytes are all 0s.

[0061] In an example implementation, the length of the first scrambling code may be 16 bytes.

[0062] Step 102: Select a byte segment formed by bytes at a plurality of preset positions in the first scrambling code as a first check code.

[0063] In one exemplary implementation, the length of the first check code is 4 bytes. The byte segment formed by the lower 4 bytes of the first scrambling code can be selected as the first check code. Of course, multiple other preset positions can also be used, which is not specifically limited in the embodiment of the present application. The first check code can be represented as NetMic1.

[0064] Step 103: Send the first verification code, the address of the gateway device, and the total time of the current time group to the peripheral device.

[0065] In an embodiment of the present application, the gateway device sends a source packet to the peripheral device, and the source packet includes a first verification code, the address of the gateway device, and the total time of the current time group. After the peripheral device receives the source packet, it determines the second verification code based on the network key of the peripheral device, the address of the gateway device in the source packet, and the total time of the current time group in the source packet. The method for determining the second verification code is the same as the method for the gateway device to determine the first verification code, and will not be elaborated here.

[0066] The network key of the peripheral device is pre-set, and the network key of the peripheral device can be pre-set in the peripheral device for the user. The network key of the peripheral device can be expressed as netkey2.

[0067] After the peripheral device determines the second verification code, it compares the second verification code with the first verification code in the source packet. If the second verification code is the same as the first verification code, the peripheral device can access the network.

[0068] In an embodiment of the present application, the gateway device and the peripheral device are configured to access the network through the network key. Only when the network key of the peripheral device and the network key of the gateway device are the same can the first verification code and the second verification code be guaranteed to be the same, thereby completing the network access operation of the peripheral device for the gateway device. The network configuration for access is simple and easy to use.

[0069] As shown in Figure 2, all gateway devices and all peripheral devices can realize a large-scale network in a mixed mode by using the same network key, in which multiple gateway devices and multiple peripheral devices exist; as shown in Figure 3, configuring different network keys for different gateway devices can realize a large-scale network in an independent mode, in which one gateway device and multiple peripheral devices exist. That is, the embodiment of the present application can change different network modes by setting different network keys, and changing the network mode is relatively simple and flexible. It only needs to configure the network key and does not require the use of other hardware facilities. Therefore, the network access communication method of the present application is highly applicable.

[0070] In an embodiment of the present application, the gateway device determines a first scrambling code based on the address of the gateway device, the total time of the current time group, and the network key of the gateway device; selects a byte segment formed by bytes at multiple preset positions in the first scrambling code as a first check code; sends the first check code, the address of the gateway device, and the total time of the current time group to the peripheral device, so that the peripheral device determines a second check code based on the address of the gateway device, the total time of the current time group, and the network key of the peripheral device, and completes the network access operation of the peripheral device for the gateway device when the second check code is the same as the first check code. The network configuration for access is simple and easy to use, and changing the network mode is relatively simple and flexible. The applicability of this network access communication method is strong.

[0071] Based on the network access communication method shown in FIG1 above, the present embodiment further provides a network access communication method. In the application scenario of a logistics station, the gateway device is a logistics terminal device, which can be a handheld logistics terminal in the hands of a courier. Correspondingly, the peripheral devices are installed on the logistics items, and the peripheral devices on each logistics item are communicatively connected to the logistics terminal device. Of course, in other application scenarios, the gateway device and peripheral devices can also be other devices, and are not specifically limited in the present embodiment.

[0072] Based on the network access communication method shown in Figure 1 above, an embodiment of the present application also provides a network access communication method, as shown in Figure 4. The above step 101 determines the first scrambling code based on the address of the gateway device, the total time of the current time group, and the network key of the gateway device, which specifically includes the following steps.

[0073] Step 401: Determine the plain text according to the address of the gateway device and the total time of the current time group.

[0074] In an example implementation, the low-order 0-3 bytes of the plaintext are the preset universal synchronization word 0x6deb98e8, the low-order 4-7 bytes are the total time of the current time group, the 8-13 bytes are the address of the gateway device, and the remaining 14-216 bytes are all 0s.

[0075] Step 402: Input the plain text and the network key of the gateway device into a preset encryption engine to obtain a first scrambling code.

[0076] The preset encryption engine can be an AES-128 encryption engine. The AES-128 encryption engine takes as input a 16-byte key and 16-byte plaintext, and generates a 16-byte ciphertext output, representing hardware encryption. Of course, the first scrambling code can also be obtained by encryption using other encryption engines, which is not specifically limited in the present embodiment.

[0077] In an embodiment of the present application, the plaintext is determined based on the address of the gateway device and the total time of the current time group, and the plaintext and the network key of the gateway device are input into a preset encryption engine to obtain a first scrambling code, and then the first check code can be further determined by the determined first scrambling code.

[0078] Based on the network access communication method shown in Figure 1 above, an embodiment of the present application also provides a network access communication method. The above step 101, after determining the first scrambling code based on the address of the gateway device, the total time of the current time group, and the network key of the gateway device, also includes the following steps.

[0079] The current original PDU (Protocol Data Unit) field of the gateway device is scrambled according to the first scrambling code to obtain a scrambled PDU field.

[0080] In an example implementation, the first scrambling code may be subjected to a bitwise exclusive OR calculation with a current original PDU field of the gateway device to obtain a scrambled PDU field.

[0081] The current original PDU field is the basic communication data between the peripheral device and the gateway device. That is, normal communication between the peripheral device and the gateway device can only be carried out after the basic communication data exists in the peripheral device.

[0082] When the gateway device sends the first check code, the address of the gateway device, and the total time of the current time group to the peripheral device, the gateway device also sends the scrambled PDU field to the peripheral device. That is, the source packet sent by the gateway device to the peripheral device includes the first check code, the address of the gateway device, the total time of the current time group, and the scrambled PDU field.

[0083] When the peripheral device determines the second check code and determines that the second check code is the same as the first check code, after completing the peripheral device's network access operation for the gateway device, it continues to determine the second scrambling code based on the peripheral device's network key, the address of the gateway device in the source packet, and the total time of the current time group in the source packet, and determines the current original PDU field based on the second scrambling code and the scrambled PDU field. Among them, the method for determining the second scrambling code is the same as the way the gateway device determines the first scrambling code. First, determine the plaintext, and then obtain the second scrambling code based on the plaintext and the network key of the peripheral device. The method for determining the current original PDU field is the same as the method for the gateway device to obtain the scrambled PDU field. The second scrambling code and the scrambled PDU field are bitwise XORed to obtain the current original PDU field.

[0084] After the peripheral device calculates and obtains the current original PDU field, it stores the current original PDU field, so that normal communication interaction can be performed between the gateway device and the peripheral device.

[0085] In an embodiment of the present application, after the network access operation is performed, the current original PDU field is determined based on the disturbed PDU field in the source packet and stored, so that the peripheral device can communicate normally with the gateway device after accessing the network.

[0086] On the basis of the network access communication method of the above embodiment, an embodiment of the present application further provides a network access communication method, as shown in FIG5 , which further includes the following steps.

[0087] Step 501: Determine a first signal synchronization word according to a first scrambling code.

[0088] After the peripheral device completes the network access operation and stores the current original PDU field, the gateway device can exchange data with the peripheral device. At this time, the gateway device sends a synchronization data packet to the peripheral device, which contains the request data and the first signal synchronization word. The first signal synchronization word is intercepted from the first scrambling code.

[0089] Step 502: Send a first signal synchronization word to a peripheral device.

[0090] After the peripheral device receives the synchronization data packet, it compares the first signal synchronization word in the synchronization data packet with the second signal synchronization word calculated by the peripheral device. If the first signal synchronization word and the second signal synchronization word are the same, the peripheral device interacts with the gateway device, that is, the peripheral device determines the response data based on the request data in the synchronization data packet, and sends a response packet carrying the response data to the gateway device. After receiving the response packet, the gateway device sends a response confirmation packet to the peripheral device.

[0091] In the embodiment of the present application, the method in which the peripheral device obtains the second signal synchronization word is the same as the method in which the gateway device obtains the first signal synchronization word.

[0092] In an embodiment of the present application, after the peripheral device performs the network access operation and stores the current original PDU field, the peripheral device and the gateway device perform normal communication data interaction based on the first signal synchronization word and the request data.

[0093] Based on the network access communication method of the embodiment shown in Figure 5 above, the embodiment of the present application also provides a network access communication method, as shown in Figure 6, the above step 501 determines the first signal synchronization word according to the first scrambling code, and also includes the following steps.

[0094] Step 601: Select a first byte segment of a preset length starting from the lower order bits of a first scrambling code.

[0095] In an exemplary implementation, starting from the low order bit of the scrambling code, 4 bytes may be taken as the first byte segment.

[0096] Step 602: Perform a validity check on the first byte segment of the preset length according to a preset validity condition.

[0097] The preset validity conditions are: there are not at least 6 consecutive 0s or 1s, each byte value cannot be equal, there are no more than 24 value flips, and the upper 6 bits have at least 2 value flips.

[0098] Step 603: If the validity check fails, reselect a second byte segment of a preset length that is different from the first byte segment of a preset length from the first scrambling code until the second byte segment of the preset length passes the validity check, and use the second byte segment of the preset length as the first signal synchronization word.

[0099] If the first byte segment does not meet the preset validity conditions and fails the validity check, the four bytes starting from the lower two bits of the scrambling code are selected as the second byte segment, and the validity check is continued. If the validity check of the second byte segment passes, the four-byte second byte segment is used as the first signal synchronization word. If the first byte segment and each second byte segment selected from the first scrambling code fail the validity check, a universal synchronization word is used. For example, the universal synchronization word may be: 0x6deb98e8.

[0100] The embodiment of the application determines the first signal synchronization word according to the first scrambling code by performing a validity check on the byte segments in the first scrambling code.

[0101] On the basis of the network access communication method in the above embodiment, an embodiment of the present application further provides a network access communication method, which is applied to a peripheral device, and the peripheral device is used to communicate with a gateway device, as shown in FIG7 , and specifically includes the following steps.

[0102] Step 701: Receive a first verification code, an address of the gateway device, and the total time of the current time group sent by a gateway device.

[0103] Specifically, the peripheral device receives a source packet sent by the gateway device, where the source packet includes a first check code, an address of the gateway device, and a total time of the current time group.

[0104] Step 702: Determine a second scrambling code according to the network key of the peripheral device, the address of the gateway device, and the total time of the current time group.

[0105] Specifically, the peripheral device determines the plaintext according to the address of the gateway device in the source packet and the total time of the current time group, and inputs the plaintext and the network key of the peripheral device into a preset encryption engine to obtain a second scrambling code.

[0106] Step 703: Select a byte segment formed by bytes at a plurality of preset positions in the second scrambling code as a second check code.

[0107] In one exemplary implementation, the second check code is 4 bytes long. A byte segment formed by the lower 4 bytes of the second scrambling code may be selected as the second check code. Alternatively, multiple other positions may be preset, which is not specifically limited in the embodiments of this application. The second check code may be represented as NetMic2.

[0108] Step 704: If the second verification code is the same as the first verification code, the network access operation of the peripheral device to the gateway device is completed.

[0109] If the second verification code is the same as the first verification code, the peripheral device can access the network.

[0110] In an embodiment of the present application, network access is configured by configuring a network key on the peripheral device side. When the network key of the peripheral device is the same as the network key of the gateway device, the first verification code and the second verification code are the same, thereby completing the network access operation of the peripheral device for the gateway device.

[0111] On the basis of the network access communication method of the embodiment shown in FIG7 , the embodiment of the present application further provides a network access communication method applied to a peripheral device, as shown in FIG8 , specifically including the following steps.

[0112] Step 801: Receive a scrambled PDU field sent by a gateway device.

[0113] The source packet sent by the gateway device includes not only the first check code, the address of the gateway device, and the total time of the current time group, but also the calculated interference PDU field.

[0114] Step 802: Scramble the scrambled PDU field according to the second scrambling code to obtain the current original PDU field.

[0115] In an exemplary implementation, the second scrambling code and the scrambled PDU field may be bitwise XORed to obtain a current original PDU field, which is then stored. The current original PDU field is basic communication data between the peripheral device and the gateway device.

[0116] Step 803: Receive a first signal synchronization word sent by a gateway device.

[0117] After the network access is completed, the peripheral device and the gateway device communicate normally. Specifically, the gateway device sends a synchronization data packet to the peripheral device, where the synchronization data packet includes a first signal synchronization word and request data.

[0118] Step 804: Determine a second signal synchronization word according to the second scrambling code.

[0119] Specifically, a third byte segment of a preset length is selected starting from the low bit of the second scrambling code, and a validity check is performed on the third byte segment of the preset length according to a preset validity condition. If the validity check fails, a fourth byte segment of a preset length that is different from the third byte segment of the preset length is reselected from the second scrambling code until the fourth byte segment of the preset length passes the validity check, and the fourth byte segment of the preset length is used as the second signal synchronization word.

[0120] Step 805: If the second signal synchronization word is the same as the first signal synchronization word, the peripheral device and the gateway device perform data exchange.

[0121] If the second signal synchronization word is the same as the first signal synchronization word, the peripheral device determines the response data according to the request data in the synchronization data packet, and sends a response packet carrying the response data to the gateway device.

[0122] In the embodiment of the present application, normal communication data interaction with the gateway device is completed by the peripheral device side after the peripheral device completes the network access operation.

[0123] The steps of the various methods above are divided only for the purpose of clear description. During implementation, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are all within the scope of protection of this patent.

[0124] An embodiment of the present application relates to a gateway device, as shown in Figure 9, including: at least one first processor 901; and a first memory 902 communicatively connected to the at least one first processor 901; wherein the first memory 902 stores instructions that can be executed by the at least one first processor 901, and the instructions are executed by the at least one first processor 901 to enable the at least one first processor 901 to execute the network access communication method applied to the gateway device in the above-mentioned embodiments.

[0125] An embodiment of the present application relates to a peripheral device, as shown in Figure 10, including: at least one second processor 1001; and a second memory 1002 communicatively connected to the at least one second processor 901; wherein the second memory 1002 stores instructions that can be executed by the at least one second processor 1001, and the instructions are executed by the at least one second processor 1001 so that the at least one second processor 1001 can execute the network access communication method applied to the peripheral device in the above-mentioned embodiments.

[0126] The memory and processor are connected using a bus. The bus may include any number of interconnected buses and bridges, connecting various circuits of one or more processors and memories. The bus may also connect various other circuits, which are well known in the art and are not further described herein.

[0127] The embodiments of the present application relate to a computer-readable storage medium storing a computer program, which implements the above-mentioned method embodiments when executed by a processor.

[0128] That is, those skilled in the art will understand that all or part of the steps in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a program, which is stored in a storage medium and includes a number of instructions for causing a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: a USB flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc., various media that can store program code.

[0129] Those skilled in the art will appreciate that the above embodiments are specific embodiments for implementing the present application, and that in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present application.

Claims

1. A network access communication method, characterized in that: Applied on a gateway device, the gateway device is used to communicate with a peripheral device, and the method includes: Determining a first scrambling code according to the address of the gateway device, the total time of the current time group, and the network key of the gateway device; selecting a byte segment formed by bytes at a plurality of preset positions in the first scrambling code as a first check code; The first verification code, the address of the gateway device, and the total time of the current time group are sent to the peripheral device, so that the peripheral device determines the second verification code based on the address of the gateway device, the total time of the current time group, and the network key of the peripheral device, and completes the network access operation of the peripheral device for the gateway device when the second verification code is the same as the first verification code.

2. The network access communication method according to claim 1, characterized in that: The gateway device is a logistics terminal device, the peripheral devices are set on the logistics items, and the peripheral devices on each of the logistics items are communicatively connected with the logistics terminal device.

3. The network access communication method according to claim 1, wherein: The determining the first scrambling code according to the address of the gateway device, the total time of the current time group, and the network key of the gateway device includes: Determine the plain text according to the address of the gateway device and the total time of the current time group; The plain text and the network key of the gateway device are input into a preset encryption engine to obtain the first scrambling code.

4. The network access communication method according to claim 1, wherein: After determining the first scrambling code according to the address of the gateway device, the total time of the current time group, and the network key of the gateway device, the method further includes: Scrambling the current original PDU field of the gateway device according to the first scrambling code to obtain a scrambled PDU field; wherein the current original PDU field is basic communication data between the peripheral device and the gateway device; The gateway device also sends the scrambled PDU field to the peripheral device; the peripheral device determines a second scrambling code based on the network key of the peripheral device, the address of the gateway device in the source packet, and the total time of the current time group, and determines the current original PDU field based on the second scrambling code and the scrambled PDU field.

5. The network access communication method according to claim 4, characterized in that: The method further comprises: determining a first signal synchronization word according to the first scrambling code; The first signal synchronization word is sent to the peripheral device, so that when the first signal synchronization word is the same as the second signal synchronization word calculated by the peripheral device, the peripheral device and the gateway device perform data exchange.

6. The network access communication method according to claim 5, characterized in that: The determining, according to the first scrambling code, a first signal synchronization word includes: Selecting a first byte segment of a preset length starting from the lower bit of the first scrambling code; Performing a validity check on the first byte segment of the preset length according to a preset validity condition; If the validity check fails, a second byte segment of a preset length that is different from the first byte segment of the preset length is reselected from the first scrambling code until the second byte segment of the preset length passes the validity check, and the second byte segment of the preset length is used as the first signal synchronization word.

7. A network access communication method, characterized in that: Applied on a peripheral device, the peripheral device is used to communicate with a gateway device, and the method includes: Receiving a first verification code, an address of the gateway device, and a total time of the current time group sent by the gateway device; determining a second scrambling code according to the network key of the peripheral device, the address of the gateway device, and the total time of the current time group; selecting a byte segment formed by bytes at a plurality of preset positions in the second scrambling code as a second check code; If the second verification code is the same as the first verification code, the network access operation of the peripheral device to the gateway device is completed.

8. The network access communication method according to claim 7, characterized in that: The method further comprises: Receiving a scrambled PDU field sent by the gateway device; Scrambling the scrambled PDU field according to the second scrambling code to obtain a current original PDU field; the current original PDU field is basic communication data between the peripheral device and the gateway device; Receiving a first signal synchronization word sent by the gateway device; determining a second signal synchronization word according to the second scrambling code; If the second signal synchronization word is the same as the first signal synchronization word, the peripheral device and the gateway device perform data exchange.

9. A gateway device, characterized in that: include: at least one first processor; as well as, a first memory communicatively connected to the at least one first processor; wherein, The first memory stores instructions that can be executed by the at least one first processor, and the instructions are executed by the at least one first processor to enable the at least one first processor to execute the network access communication method according to any one of claims 1 to 6.

10. A peripheral device, characterized in that: include: at least one second processor; as well as, a first memory communicatively connected to the at least one second processor; wherein, The second memory stores instructions that can be executed by the at least one second processor, and the instructions are executed by the at least one second processor to enable the at least one second processor to execute the network access communication method according to any one of claims 7 to 8.

Citation Information

Patent Citations

  • Zigbee-based network access method and related device

    CN112533203A

  • Short-distance wireless multi-device data synchronization method

    CN116489172A

  • Network access communication method, gateway equipment and peripheral equipment

    CN117997675A

  • Network access authentication method based on non-3GPP network, and related device and system

    WO2018170617A1