CN117997675A - Network access communication method, gateway equipment and peripheral equipment - Google Patents

Network access communication method, gateway equipment and peripheral equipment Download PDF

Info

Publication number
CN117997675A
CN117997675A CN202410175756.3A CN202410175756A CN117997675A CN 117997675 A CN117997675 A CN 117997675A CN 202410175756 A CN202410175756 A CN 202410175756A CN 117997675 A CN117997675 A CN 117997675A
Authority
CN
China
Prior art keywords
gateway
equipment
peripheral
scrambling code
gateway device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410175756.3A
Other languages
Chinese (zh)
Inventor
杨中奇
蔡杰
郭政勰
邓开艺
陈双超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fengjia Technology Shanghai Co ltd
Original Assignee
Fengjia Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fengjia Technology Shanghai Co ltd filed Critical Fengjia Technology Shanghai Co ltd
Priority to CN202410175756.3A priority Critical patent/CN117997675A/en
Publication of CN117997675A publication Critical patent/CN117997675A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application relates to the field of communication and discloses a network access communication method, gateway equipment and peripheral equipment. The network access communication method is applied to gateway equipment and comprises the following steps: 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 section formed by presetting bytes at a plurality of positions in a first scrambling code as a first check code; the first check code, the address of the gateway device and the total time of the current time group are sent to the peripheral device, the peripheral device determines a second check code according to the address of the gateway device, the total time of the current time group and the network key of the peripheral device, and when the second check code is identical to the first check code, the network access operation of the peripheral device to the gateway device is completed. The application has simple and easy use for network configuration of network access, can change different network modes by setting different network keys, has simple and flexible network mode change, does not need other hardware facilities, and has stronger applicability.

Description

Network access communication method, gateway equipment and peripheral equipment
Technical Field
The embodiment of the application relates to the field of communication, in particular to a network access communication method, gateway equipment and peripheral equipment.
Background
With the development of communication network technology, more and more communication devices are added into a communication network, and control between devices, data transmission and reception and the like are performed through the communication network, for example, one gateway device can perform communication interaction with a plurality of peripheral devices.
In the prior art, network access communication of the equipment can be realized by adopting a root key, a private line and other modes, but the root key in the prior art needs the equipment to support USIM (Universal Subscriber Identity Module, global user identification card) and the private line, so that the application range of the private line is smaller, the prior art has larger limitation and poorer applicability.
Disclosure of Invention
The embodiment of the application aims to provide a network access communication method, gateway equipment and peripheral equipment so as to improve the applicability of the network access communication of the equipment.
To solve the above technical problem, an embodiment of the present application provides a network access communication method, which is applied to a gateway device, where 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 section 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 the peripheral device, so that the peripheral device determines a second check code according to the address of the gateway device, the total time of the current time group and the network key of the peripheral device, and when the second check code is the same as the first check code, completing the network access operation of the peripheral device to the gateway device.
The embodiment of the application also provides a network access communication method, wherein the gateway equipment is a logistics terminal equipment, the peripheral equipment is arranged on logistics articles, and the peripheral equipment on each logistics article is in communication connection with the logistics terminal equipment.
The embodiment of the application also provides a network access communication method, which determines a first scrambling code according to the address of the gateway equipment, the total time of the current time group and the network key of the gateway equipment, and comprises the following steps:
determining a plaintext according to the address of the gateway equipment and the total time of the current time group;
and inputting the plaintext and the network key of the gateway equipment to a preset encryption engine to obtain the first scrambling code.
The embodiment of the application also provides a network access communication method, which further comprises the following steps of after 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:
Scrambling the current original PDU field of the gateway equipment according to the first scrambling code to obtain a scrambled PDU field; wherein the current original PDU field is communication basic data of the peripheral equipment and the gateway equipment;
The gateway device also transmitting the scrambled PDU field to the peripheral device; the peripheral device determines a second scrambling code according to the network key of the peripheral device, the address of the gateway device in the source packet, the total time of the current time group, and determines the current original PDU field according to the second scrambling code and the scrambling PDU field.
The embodiment of the application also provides a network access communication method, which further comprises the following steps:
determining a first signal synchronization word according to the first scrambling code;
and sending the first signal synchronization word to the peripheral equipment, so that the peripheral equipment performs data interaction with the gateway equipment when the first signal synchronization word is the same as the second signal synchronization word calculated by the peripheral equipment.
The embodiment of the application also provides a network access communication method, which determines a first signal synchronization word according to the first scrambling code, and comprises the following steps:
selecting a first byte section with a preset length from the low order of the first scrambling code;
According to a preset validity condition, carrying out validity check on the first byte section with the preset length;
and if the validity check is not passed, re-selecting a second byte section with a preset length different from the first byte section with the preset length from the first scrambling code until the second byte section with the preset length passes the validity check, and taking the second byte section with the preset length as the first signal synchronization word.
The embodiment of the application also provides a network access communication method which is applied to the peripheral equipment, wherein the peripheral equipment is used for communicating with the gateway equipment, and the method comprises the following steps:
Receiving a first check code sent by the gateway equipment, an address of the gateway equipment and the total time of the current time group;
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 section formed by bytes at a plurality of preset positions in the second scrambling code as a second check code;
And if the second check code is the same as the first check code, finishing the network access operation of the peripheral equipment to the gateway equipment.
The embodiment of the application also provides a network access communication method, which further comprises the following steps:
receiving a disturbing PDU field sent by the gateway equipment;
According to the second scrambling code, scrambling the scrambled PDU field to obtain a current original PDU field; the current original PDU field is communication basic data of the peripheral equipment and the gateway equipment;
receiving a first signal synchronization word sent by the gateway equipment;
Determining a second signal synchronization word according to the second scrambling code;
and if the second signal synchronous word is the same as the first signal synchronous word, the peripheral equipment performs data interaction with the gateway equipment.
The embodiment of the application also provides gateway equipment, which comprises: at least one first processor; and
A first memory communicatively coupled to the at least one first processor; wherein,
The first memory stores instructions executable by the at least one first processor to enable the at least one first processor to perform any of the above-described methods of network access communications as applied to gateway devices.
The embodiment of the application also provides peripheral equipment, which comprises: at least one second processor; and
A first memory communicatively coupled to the at least one second processor; wherein,
The second memory stores instructions executable by the at least one second processor to enable the at least one second processor to perform any of the above-described methods of network access communication applied to peripheral devices.
In the embodiment of the application, the gateway equipment and the peripheral equipment are configured to access the network through the network key, the network key of the peripheral equipment and the network key of the gateway equipment are the same, the network configuration is simple and easy to use, meanwhile, all the gateway equipment and all the peripheral equipment can realize the large-scale network in the mixed mode by using the same network key, and different network keys can be configured for different gateway equipment to realize the large-scale network in the independent mode, namely, the application can change different network modes by setting different network keys, and the network mode is simpler and more flexible to change without other hardware facilities, thereby the applicability of the network access communication method is stronger.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings.
Fig. 1 is a flowchart of a first network access communication method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a hybrid mode large network provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a large network in stand alone mode provided by an embodiment of the present application;
fig. 4 is a flowchart of a second network access communication method according to an embodiment of the present application;
fig. 5 is a flowchart of a third network access communication method according to an embodiment of the present application;
fig. 6 is a flowchart of a fourth network access communication method according to an embodiment of the present application;
fig. 7 is a flowchart of a fifth network access communication method according to an embodiment of the present application;
Fig. 8 is a flowchart of a sixth network access communication method according to an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a gateway device according to an embodiment of the present application;
Fig. 10 is a schematic structural diagram of a peripheral device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be understood by those of ordinary skill in the art that in various embodiments of the present application, numerous specific details are set forth in order to provide a thorough understanding of the present application. The claimed application may be practiced without these specific details and with various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present application, and the embodiments can be mutually combined and referred to without contradiction.
The embodiment of the application relates to a network access communication method which is applied to gateway equipment, wherein the gateway equipment is used for communicating with peripheral equipment, as shown in fig. 1, and specifically comprises the following steps of.
Step 101, 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.
Wherein the address of the gateway device is used to identify the uniquely corresponding gateway device, the address of the gateway device may be denoted InitID.
The total number of times for the current time group may be represented as NextEvtCnt, where the communication between the gateway device and the peripheral device is divided into a plurality of time groups, each time group being followed by one more time for the current time group. Wherein each peripheral device has a fixed time group.
The network key of the gateway device is preset, and may be preset in the gateway device for the user, and the network key of the gateway device may be denoted by netkey. In an example implementation, the lower 8 bytes of the network key of the gateway device are pre-stored network keys, and the upper 8 bytes are all 0.
In an example implementation, the first scrambling code may be 16 bytes in length.
Step 102, selecting a byte segment formed by bytes at a plurality of preset positions in the first scrambling code as a first check code.
In an exemplary implementation, the length of the first check code is 4 bytes, and a byte segment formed by the lower 4 bytes of the first scrambling code may be selected as the first check code, which may, of course, be other preset multiple positions, which is not particularly limited in the embodiment of the present application. The first check code may be denoted NetMic as 1.
Step 103, the first check code, the address of the gateway device and the total time of the current time group are sent to the peripheral device.
In the embodiment of the present application, a gateway device sends a source packet to a peripheral device, where the source packet includes a first check code, an address of the gateway device, and a total time of a current time group, and after the peripheral device receives the source packet, a second check code is determined according to a 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, and a method for determining the second check code is the same as a method for determining the first check code by the gateway device, which is not described herein in detail.
The network key of the peripheral device is preset, and may be preset in the peripheral device for the user, and the network key of the peripheral device may be denoted by netkey.
After the peripheral device determines the second check code, the second check code is compared with the first check code in the information source packet, and if the second check code is the same as the first check code, the peripheral device can access the network.
In the embodiment of the application, the gateway equipment and the peripheral equipment are configured to access the network through the network key, and when the network key of the peripheral equipment is the same as the network key of the gateway equipment, the first check code and the second check code are the same, so that the network access operation of the peripheral equipment for the gateway equipment is finished, and the network configuration of the network access is simple and easy to use.
As shown in fig. 2, all gateway devices and all peripheral devices can implement a mixed-mode large network in which a plurality of gateway devices and a plurality of peripheral devices exist by using the same network key; as shown in fig. 3, configuring different network keys for different gateway devices may implement a large network in an independent mode in which one gateway device and a plurality of peripheral devices are present. The embodiment of the application can change different network modes by setting different network keys, and the network mode is simpler and more flexible to change, only the network keys are needed to be configured, and other hardware facilities are not needed to be used, so that the applicability of the network access communication method is stronger.
In the embodiment of the application, gateway equipment determines a first scrambling code according to the address of the gateway equipment, the total time of the current time group and the network key of the gateway equipment; selecting a byte section formed by presetting bytes at a plurality of positions in a first scrambling code as a first check code; the first check code, the address of the gateway equipment and the total time of the current time group are sent to the peripheral equipment, so that the peripheral equipment determines a second check code according to the address of the gateway equipment, the total time of the current time group and the network key of the peripheral equipment, and when the second check code is identical to the first check code, the network access operation of the peripheral equipment for the gateway equipment is completed, the network access network configuration is simple and easy to use, the network exchange mode is simple and flexible, and the applicability of the network access communication method is strong.
On the basis of the network access communication method shown in fig. 1, the embodiment of the application also provides a network access communication method, and in the application scene of the logistics station, the gateway equipment is logistics terminal equipment, can be a logistics terminal held in the hand of an express delivery person, and the peripheral equipment is correspondingly arranged on logistics articles, and is in communication connection with the logistics terminal equipment. Of course, in other application scenarios, the gateway device and the peripheral device may also be other devices, which are not particularly limited in the embodiment of the present application.
On the basis of the network access communication method shown in fig. 1, the embodiment of the present application further provides a network access communication method, as shown in fig. 4, in step 101, a first scrambling code is determined according to an address of a gateway device, a total time of a current time group, and a network key of the gateway device, which specifically includes the following steps.
Step 401, determining plaintext according to the address of the gateway device and the total time of the current time group.
In an example implementation, the low order 0-3 bytes of the plaintext are the preset universal sync word 0x6deb98e8, the low order 4-7 bytes are the total number of times of the current time group, the 8-13 bytes are the address of the gateway device, and the remaining 14-216 bytes are all 0.
Step 402, inputting the plaintext and the network key of the gateway device to a preset encryption engine to obtain a first scrambling code.
The preset encryption engine can be an aes-128 encryption engine. The inputs of the aes-128 encryption engine are a key with the length of 16 bytes and a plaintext with the length of 16 bytes, and the generated output is a ciphertext with the length of 16 bytes, which belongs to hardware encryption. Of course, the first scrambling code may also be obtained by encrypting by other encryption engines, which is not particularly limited in the embodiment of the present application.
In the embodiment of the application, the plaintext is determined according to the address of the gateway equipment and the total time of the current time group, the plaintext and the network key of the gateway equipment are input into the preset encryption engine to obtain the first scrambling code, and the first check code can be further determined through the determined first scrambling code.
On the basis of the network access communication method shown in fig. 1, the embodiment of the present application further provides a network access communication method, and step 101, 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, further includes the following steps.
And scrambling the current original PDU (Protocol Data Unit ) field of the gateway device according to the first scrambling code to obtain a scrambled PDU field.
In an example implementation, the first scrambling code may be bitwise exclusive-ored with a current original PDU field of the gateway device, calculated as a scrambled PDU field.
The current original PDU field is the communication basic data of the peripheral device and the gateway device, namely, the normal communication between the peripheral device and the gateway device can be carried out after the communication basic data exists in the peripheral device.
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, and simultaneously sends the disturbing PDU field to the peripheral device, namely the source packet sent by the gateway device to the peripheral device comprises the first check code, the address of the gateway device and the total time of the current time group and also comprises the disturbing PDU field.
When the peripheral equipment determines the second check code and judges that the second check code is the same as the first check code, after the network access operation of the peripheral equipment for the gateway equipment is completed, the peripheral equipment continues to determine a second scrambling code according to the network key of the peripheral equipment, the address of the gateway equipment in the information source packet and the total time of the current time group in the information source packet, and determines the current original PDU field according to the second scrambling code and the scrambling PDU field. The method for determining the second scrambling code is the same as the method for determining the first scrambling code by the gateway equipment, and the plaintext is determined first, and then the second scrambling code is obtained according to the plaintext and the network key of the peripheral equipment. The method for determining the current original PDU field is the same as the method for obtaining the scrambled PDU field by the gateway equipment, and the second scrambling code and the scrambled PDU field are subjected to bit exclusive OR calculation to obtain the current original PDU field.
After the peripheral device calculates the current original PDU field, the current original PDU field is stored, so that normal communication interaction can be carried out between the gateway device and the peripheral device.
In the embodiment of the application, after the network access operation is performed, the current original PDU field is determined according to the disturbing PDU field in the information source packet and stored, so that the peripheral equipment can perform normal communication with the gateway equipment after the network access.
On the basis of the network access communication method of the above embodiment, the embodiment of the present application further provides a network access communication method, as shown in fig. 5, where the method further includes the following steps.
Step 501, determining a first signal synchronization word according to a first scrambling code.
After performing network access operation and storing the current original PDU field, the gateway device can perform data interaction with the peripheral device, and at this time, the gateway device sends a synchronization data packet to the peripheral device, where the synchronization data packet includes request data and a first signal synchronization word. The first signal synchronous word is intercepted from the first scrambling code.
Step 502, a first signal syncword is sent to a peripheral device.
After receiving the synchronous data packet, the peripheral equipment compares the first signal synchronous word in the synchronous data packet with the second signal synchronous word obtained by the peripheral equipment through calculation, if the first signal synchronous word is the same as the second signal synchronous word, the peripheral equipment performs data interaction with the gateway equipment, namely, the peripheral equipment determines response data according to the request data in the synchronous data packet and sends a response packet carrying the response data to the gateway equipment, and after receiving the response packet, the gateway equipment sends a response confirmation packet to the peripheral equipment.
In the embodiment of the application, the method for obtaining the second signal synchronization word by the peripheral device is the same as the method for obtaining the first signal synchronization word by the gateway device.
In the embodiment of the application, after network access operation and current original PDU field storage are performed by the peripheral equipment, normal communication data interaction between the peripheral equipment and the gateway equipment is performed according to the first signal synchronization word and the request data.
On the basis of the network access communication method of the embodiment shown in fig. 5, the embodiment of the present application further provides a network access communication method, as shown in fig. 6, in the step 501, a first signal synchronization word is determined according to a first scrambling code, and the method further includes the following steps.
In step 601, a first byte section of a predetermined length is selected from the low order bits of the first scrambling code.
In an example implementation, starting from the low order bits of the scrambling code, 4 bytes may be taken as the first byte section.
Step 602, according to a preset validity condition, validity checking is performed on a first byte section with a preset length.
Wherein, the preset validity condition is: without at least 6 consecutive 0's or 1's, each byte value cannot be equal, no more than 24 value flips, and at least 2 value flips for the upper 6 bits.
If the validity check is not passed, step 603, reselecting a second byte section of a preset length different from the first byte section of the preset length from the first scrambling code until the second byte section of the preset length passes the validity check, and taking the second byte section of the preset length as the first signal synchronization word.
If the first byte section does not meet the preset validity condition, the validity check is not passed, 4 bytes from the lower 2 bits of the scrambling code are selected as second byte sections, the validity check is continued, and if the validity check of the second byte sections is passed, the second byte sections of the 4 bytes are used as first signal synchronous words. If neither the first byte section nor each second byte section selected from the first scrambling code passes the validity check, a common syncword is used, which may be, for example: 0x6deb98e8.
The application embodiment realizes the determination of the first signal synchronization word according to the first scrambling code by checking the validity of the byte section in the first scrambling code.
On the basis of the network access communication method of the above embodiment, the 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 for communicating with a gateway device, as shown in fig. 7, and specifically includes the following steps.
Step 701, receiving a first check code sent by a gateway device, an address of the gateway device, and a total time of a current time group.
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.
Step 702, determining a second scrambling code according to the network key of the peripheral device, the address of the gateway device, and the total number of times of the current time group.
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 to a preset encryption engine to obtain the second scrambling code.
In step 703, a byte segment formed by bytes at a plurality of predetermined positions in the second scrambling code is selected as the second check code.
In an exemplary implementation, the length of the second check code is 4 bytes, and a byte segment formed by the lower 4 bytes of the second scrambling code may be selected as the second check code, which may, of course, be other preset multiple positions, which is not particularly limited in the embodiment of the present application. The second check code may be denoted NetMic2.
Step 704, if the second check code is the same as the first check code, completing the network access operation of the peripheral device for the gateway device.
If the second check code is the same as the first check code, the peripheral device may be networked.
In the embodiment of the application, the network access is configured by configuring the network key at the peripheral equipment side, and when the network key of the peripheral equipment is the same as the network key of the gateway equipment, the first check code and the second check code are the same, so that the network access operation of the peripheral equipment for the gateway equipment is completed.
On the basis of the network access communication method of the embodiment shown in fig. 7, the embodiment of the application also provides a network access communication method which is applied to peripheral equipment, as shown in fig. 8, and specifically comprises the following steps.
Step 801, a scrambled PDU field sent by a gateway device is received.
The source packet sent by the gateway device not only contains the first check code, the address of the gateway device, the total time of the current time group, but also contains the calculated disturbing PDU field.
Step 802, according to the second scrambling code, the scrambled PDU field is scrambled to obtain the current original PDU field.
In an example implementation, the second scrambling code may be bitwise exclusive-ored with the scrambled PDU field, computed to obtain the current original PDU field, and stored. The current raw PDU field is the communication base data of the peripheral device and the gateway device.
Step 803, a first signal synchronization word sent by the gateway device is received.
After the network access is completed, the peripheral equipment and the gateway equipment perform normal communication, and specifically, the gateway equipment sends a synchronous data packet to the peripheral equipment, wherein the synchronous data packet comprises a first signal synchronous word and request data.
Step 804, determining a second signal synchronization word according to the second scrambling code.
Specifically, a third byte section with a preset length is selected from the low order of the second scrambling code, validity check is performed on the third byte section with the preset length according to preset validity conditions, if the validity check is not passed, a fourth byte section with a preset length different from the third byte section with the preset length is reselected from the second scrambling code until the fourth byte section with the preset length passes the validity check, and the fourth byte section with the preset length is used as a second signal synchronization word.
In step 805, if the second signal synchronization word is the same as the first signal synchronization word, the peripheral device performs data interaction with the gateway device.
If the second signal synchronous word is the same as the first signal synchronous word, the peripheral equipment determines response data according to the request data in the synchronous data packet, and sends a response packet carrying the response data to the gateway equipment.
In the embodiment of the application, normal communication data interaction with the gateway equipment is completed after the peripheral equipment completes network access operation through the peripheral equipment side.
The above steps of the methods are divided, for clarity of description, and may be combined into one step or split into multiple steps when implemented, so long as they include the same logic relationship, and they are all within the protection scope of this patent; it is within the scope of this patent to add insignificant modifications to the algorithm or flow or introduce insignificant designs, but not to alter the core design of its algorithm and flow.
The embodiment of the application relates to gateway equipment, as shown in fig. 9, comprising: at least one first processor 901; and a first memory 902 communicatively coupled to the at least one first processor 901; the first memory 902 stores instructions executable by the at least one first processor 901, where the instructions are executed by the at least one first processor 901, so that the at least one first processor 901 can execute the network access communication method applied to the gateway device in the foregoing embodiments.
An embodiment of the present application relates to a peripheral device, as shown in fig. 10, including: at least one second processor 1001; and a second memory 1002 communicatively coupled to the at least one second processor 901; the second memory 1002 stores instructions executable by the at least one second processor 1001, where 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 embodiments.
Where the memory and the processor are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors and the memory together. The bus may also connect various other circuits together, as is well known in the art, and thus, will not be further described herein.
Embodiments of the present application relate to a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments of the application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the application and that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims (10)

1. A method of network access communication, for use with a gateway device, the gateway device configured to communicate with a peripheral device, the method comprising:
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 section 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 the peripheral device, so that the peripheral device determines a second check code according to the address of the gateway device, the total time of the current time group and the network key of the peripheral device, and when the second check code is the same as the first check code, completing the network access operation of the peripheral device to the gateway device.
2. The network access communication method according to claim 1, wherein the gateway device is a logistics terminal device, the peripheral devices are disposed on logistics articles, and the peripheral device on each logistics article is in communication connection with the logistics terminal device.
3. The method of claim 1, wherein the determining the first scrambling code based on the address of the gateway device, the total number of times of the current time group, and the network key of the gateway device comprises:
determining a plaintext according to the address of the gateway equipment and the total time of the current time group;
and inputting the plaintext and the network key of the gateway equipment to a preset encryption engine to obtain the first scrambling code.
4. The method of claim 1, wherein after determining the first scrambling code according to the address of the gateway device, the total number of times of the current time group, and the network key of the gateway device, further comprising:
Scrambling the current original PDU field of the gateway equipment according to the first scrambling code to obtain a scrambled PDU field; wherein the current original PDU field is communication basic data of the peripheral equipment and the gateway equipment;
The gateway device also transmitting the scrambled PDU field to the peripheral device; the peripheral device determines a second scrambling code according to the network key of the peripheral device, the address of the gateway device in the source packet, the total time of the current time group, and determines the current original PDU field according to the second scrambling code and the scrambling PDU field.
5. The method of network entry communication according to claim 4, wherein the method further comprises:
determining a first signal synchronization word according to the first scrambling code;
and sending the first signal synchronization word to the peripheral equipment, so that the peripheral equipment performs data interaction with the gateway equipment when the first signal synchronization word is the same as the second signal synchronization word calculated by the peripheral equipment.
6. The method of claim 5, wherein said determining a first signal synchronization word based on said first scrambling code comprises:
selecting a first byte section with a preset length from the low order of the first scrambling code;
According to a preset validity condition, carrying out validity check on the first byte section with the preset length;
and if the validity check is not passed, re-selecting a second byte section with a preset length different from the first byte section with the preset length from the first scrambling code until the second byte section with the preset length passes the validity check, and taking the second byte section with the preset length as the first signal synchronization word.
7. A method of network access communication, for use with a peripheral device, the peripheral device configured to communicate with a gateway device, the method comprising:
Receiving a first check code sent by the gateway equipment, an address of the gateway equipment and the total time of the current time group;
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 section formed by bytes at a plurality of preset positions in the second scrambling code as a second check code;
And if the second check code is the same as the first check code, finishing the network access operation of the peripheral equipment to the gateway equipment.
8. The method of network entry communication according to claim 7, wherein the method further comprises:
receiving a disturbing PDU field sent by the gateway equipment;
According to the second scrambling code, scrambling the scrambled PDU field to obtain a current original PDU field; the current original PDU field is communication basic data of the peripheral equipment and the gateway equipment;
receiving a first signal synchronization word sent by the gateway equipment;
Determining a second signal synchronization word according to the second scrambling code;
and if the second signal synchronous word is the same as the first signal synchronous word, the peripheral equipment performs data interaction with the gateway equipment.
9. A gateway device, comprising:
at least one first processor; and
A first memory communicatively coupled to the at least one first processor; wherein,
The first memory stores instructions executable by the at least one first processor to enable the at least one first processor to perform the network access communication method according to any one of claims 1 to 6.
10. A peripheral device, comprising:
At least one second processor; and
A first memory communicatively coupled to the at least one second processor; wherein,
The second memory stores instructions executable by the at least one second processor to enable the at least one second processor to perform the network access communication method according to any one of claims 7 to 8.
CN202410175756.3A 2024-02-07 2024-02-07 Network access communication method, gateway equipment and peripheral equipment Pending CN117997675A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410175756.3A CN117997675A (en) 2024-02-07 2024-02-07 Network access communication method, gateway equipment and peripheral equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410175756.3A CN117997675A (en) 2024-02-07 2024-02-07 Network access communication method, gateway equipment and peripheral equipment

Publications (1)

Publication Number Publication Date
CN117997675A true CN117997675A (en) 2024-05-07

Family

ID=90902120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410175756.3A Pending CN117997675A (en) 2024-02-07 2024-02-07 Network access communication method, gateway equipment and peripheral equipment

Country Status (1)

Country Link
CN (1) CN117997675A (en)

Similar Documents

Publication Publication Date Title
US5596641A (en) Authentication method for mobile communications
US7403794B2 (en) Client terminal having a temporary connection establishing unit
US7649992B2 (en) Apparatuses for encoding, decoding, and authenticating data in cipher block chaining messaging authentication code
US5642401A (en) System and method of authenticating a service request in a mobile communication system
US5216715A (en) Key distribution in public communication networks taking account of security gradations
CN110139271A (en) A kind of method, system and device that smart home device batch configuration networks
CN111277610B (en) Gateway control system, method, intelligent device and intelligent device server
RU2683853C1 (en) Method for improving gprs key, sgsn device, user device, hlr / hss and gprs system
JP2000269959A (en) Authentication method by updated key
KR20130111960A (en) Secure node admission in a communication network
JP2000514625A (en) Synchronization and security method of short enhanced message exchange and short enhanced message exchange in cellular wireless communication system
JPH07115413A (en) Mobile communication terminal authentication system
JPH10502507A (en) Method and apparatus for key translation to discriminate between different networks
EP1610489B1 (en) Method for negotiating weakened keys in encryption systems
US20170223754A1 (en) Method for Establishing Connection by Terminal, Apparatus, and System
CN107707562B (en) Method and device for encrypting and decrypting algorithm of asymmetric dynamic token
CN101287277A (en) Method and system for providing service to customer's terminal in wireless personal area network
CN105119900A (en) Information secure transmission method, network access method and corresponding terminals
JP2002232962A (en) Mobile communication authentication interworking system
JP3116757B2 (en) Mobile communication authentication method
CN117997675A (en) Network access communication method, gateway equipment and peripheral equipment
CN111404659A (en) Privacy protection communication method, server and communication system based on chaotic system
CN114827998B (en) Satellite terminal network access authentication device based on encryption chip
CN105763516B (en) The method and apparatus that terminal sends data to net external equipment out of WLAN
CN101742502A (en) Method, system and device for realizing WAPI authentication

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination