CN111654348B - Internet of things data transmission method and device, computer equipment and storage medium - Google Patents

Internet of things data transmission method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111654348B
CN111654348B CN202010485870.8A CN202010485870A CN111654348B CN 111654348 B CN111654348 B CN 111654348B CN 202010485870 A CN202010485870 A CN 202010485870A CN 111654348 B CN111654348 B CN 111654348B
Authority
CN
China
Prior art keywords
client
server
reporting
time
identifier
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.)
Active
Application number
CN202010485870.8A
Other languages
Chinese (zh)
Other versions
CN111654348A (en
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.)
Hangzhou Hetu Wulian Technology Co ltd
Original Assignee
Hangzhou Hetu Wulian Technology 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 Hangzhou Hetu Wulian Technology Co ltd filed Critical Hangzhou Hetu Wulian Technology Co ltd
Priority to CN202010485870.8A priority Critical patent/CN111654348B/en
Publication of CN111654348A publication Critical patent/CN111654348A/en
Application granted granted Critical
Publication of CN111654348B publication Critical patent/CN111654348B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0682Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • H04J3/0658Clock or time synchronisation among packet nodes
    • H04J3/0661Clock or time synchronisation among packet nodes using timestamps
    • H04J3/0664Clock or time synchronisation among packet nodes using timestamps unidirectional timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/44Star or tree networks

Abstract

The application relates to a data transmission method and device of the Internet of things, computer equipment and a storage medium. The method comprises the following steps: the server side broadcasts and sends a time synchronization signal to each client side in the star network topology structure; the client calculates delay time according to the time synchronization signal and the report serial number of the client; the reporting serial numbers of the clients are different; and the client sends data to the server according to the delay time. By adopting the method, channel collision can be avoided, and the transmission performance of the wireless network is improved.

Description

Internet of things data transmission method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for transmitting data of an internet of things, a computer device, and a storage medium.
Background
The 802.11 family of protocols, the MAC layer, defines two basic modes of operation: DCF (Distributed Coordination Function) and PCF (Point Coordination Function), the most practical applications at present are DCF mode. The core mechanism of the DCF mode is CSMA/CA (Carrier Sense Multiple Access with connectivity Avoidance) mechanism. In the CSMA/CA mechanism, backoff exists, that is, a random Backoff procedure, when there are multiple STAs (stations, also called WiFi terminals) competing for a channel, the STAs monitor that the channel is busy, need to wait for a period of time, then monitor the channel again, and send data when it is monitored that the channel is idle. If there are more STAs in the same channel and all STAs need to transmit data, more channel collisions may occur, resulting in a decrease in wireless network transmission performance.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a method and an apparatus for transmitting data of an internet of things, a computer device, and a storage medium, which are capable of improving transmission performance of a wireless network.
A data transmission method of the Internet of things, the method comprising:
the server side broadcasts and sends a time synchronization signal to each client side in the star network topology structure;
the client calculates delay time according to the time synchronization signal and the report serial number of the client; the reporting serial numbers of the clients are different;
and the client sends data to the server according to the delay time.
In one embodiment, the time synchronization signal comprises a reporting time interval; the client calculates the delay time according to the time synchronization signal and the report sequence number of the client, and the method comprises the following steps: and the client calculates the product of the reporting time interval and the reporting sequence number of the client to obtain the delay time.
In one embodiment, before the server sends the time synchronization signal to each client in the star network topology, the method includes: the server side broadcasts and sends a sequence number distribution signal to each client side in the star network topology structure; the client judges whether a reporting sequence number is distributed or not according to the sequence number distribution signal; if the client does not distribute the reporting sequence number, the client sends a client identifier to the server; and the server allocates a reporting sequence number for the client according to the client identifier.
In one embodiment, the allocating, by the server, the report sequence number to the client according to the client identifier includes: the server allocates a reporting sequence number data packet to the client according to the client identifier and sends the reporting sequence number data packet to the client; and the client receives the reported serial number data packet and sends serial number distribution success information to the server.
In one embodiment, the sequence number assignment signal includes a server identifier, a broadcast period, a reply time interval, a maximum delay time, and a random delay maximum time; if the client does not distribute the reporting sequence number, the client sending the client identifier to the server comprises the following steps: if the client does not distribute the reporting serial number, judging whether the reporting serial number corresponding to the server identifier exists according to the server identifier; if the report serial number corresponding to the server-side identifier does not exist, generating a random number according to the maximum random delay time as the maximum number; when the random number is not larger than the maximum delay time, obtaining a reply delay time by taking a modulus with a reply time interval according to the random number; and according to the reply delay time, the client sends the client identification to the server.
In one embodiment, the sending, by the client, the client identifier to the server according to the reply delay time includes: and according to the reply delay time, the client sends the client mark, the broadcast period and the client version to the server.
In one embodiment, the reporting sequence number packet includes a server identifier, a reporting sequence number, a client identifier, and a distribution cycle; the client receives the reported sequence number data packet and sends the successful sequence number distribution information to the server, and the method comprises the following steps: the client receives the reported serial number data packet and judges whether the reported serial number data packet is consistent with the client identifier of the local computer or not according to the client identifier; and if the client identification judges whether the client identification is consistent with the client identification of the local machine, acquiring the report sequence number, and sending the information of successful sequence number distribution to the server.
An internet of things data transmission device, the device comprising:
the time synchronization signal broadcasting module is used for broadcasting and sending time synchronization signals to each client in the star network topology structure by the server;
the delay time calculation module is used for calculating delay time by the client according to the time synchronization signal and the report sequence number of the client; the reporting serial numbers of the clients are different;
and the data sending module is used for sending data to the server by the client according to the delay time.
A computer device comprising a memory storing a computer program and a processor implementing the following steps when the computer program is executed:
the server side broadcasts and sends a time synchronization signal to each client side in the star network topology structure;
the client calculates delay time according to the time synchronization signal and the report serial number of the client; the reporting serial numbers of the clients are different;
and the client sends data to the server according to the delay time.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
the server side broadcasts and sends a time synchronization signal to each client side in the star network topology structure;
the client calculates delay time according to the time synchronization signal and the report serial number of the client; the reporting serial numbers of the clients are different;
and the client sends data to the server according to the delay time.
According to the data transmission method and device of the Internet of things, the computer equipment and the storage medium, the server side broadcasts the time synchronization signal to each client side, the client sides calculate respective delay time according to the time synchronization signal and the reporting sequence number, and send data according to the delay time, so that channel collision caused by the fact that a plurality of client sides send data to a channel at the same time can be avoided, and further the transmission performance of a wireless network is improved.
Drawings
Fig. 1 is an application environment diagram of a data transmission method of the internet of things in one embodiment;
fig. 2 is a schematic flow chart of a data transmission method of the internet of things in one embodiment;
fig. 3 is a block diagram of an embodiment of a data transmission device of the internet of things;
FIG. 4 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data transmission method of the internet of things can be applied to the application environment shown in fig. 1. The plurality of clients 104 communicate with the server 102 through a network, and the plurality of clients 104 and the server 102 are connected to form a star network topology. The server 102 broadcasts and sends a time synchronization signal to each client 104 in the star network topology; the client 104 calculates the delay time according to the time synchronization signal and the reporting sequence number of the client 104; the reporting serial numbers of the clients 104 are different; the client 104 sends data to the server 102 according to the delay time. The client 104 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 102 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In an embodiment, as shown in fig. 2, a data transmission method of the internet of things is provided, which is described by taking the application of the method to the client in fig. 1 as an example, and includes the following steps:
s110, the server broadcasts and sends time synchronization signals to each client in the star network topology structure.
The star network topology structure belongs to a centralized control type network structure, the whole network is subjected to centralized traffic control management by a central node, and communication among all nodes passes through the central node. The time synchronization signal sent by broadcasting can reach each client in the star network topology. The time synchronization signal is issued once every preset time and used for informing time synchronization nodes of each client side in the star network topology structure to send data, and the client side can determine the time for sending the data according to the time synchronization signal.
Wherein, the server and the client both adopt 802.11 series protocols to transmit signals or data. Here the client is a WiFi terminal.
Optionally, the time synchronization signal includes a server identifier, a reporting period, a reporting time interval, and a maximum reporting delay time, where the server identifier is unique to the server, the reporting period is the number of times that the server broadcasts the time synchronization signal, the maximum reporting delay time is the maximum delayed time, and the client does not send data when determining that the delay time exceeds the maximum reporting delay time.
S120, the client calculates the delay time according to the time synchronization signal and the report serial number of the client; and the reporting serial numbers of the clients are different.
Because the reporting serial numbers of the clients are different, the delay time calculated according to the time synchronization signal is different, and the reporting serial numbers can be pre-distributed. The time synchronization signal comprises a reporting time interval for calculating the delay time, and the delay time can be obtained by multiplying the reporting time interval by a reporting sequence number; for example, if the reporting time interval is 1 second and the reporting sequence number of the current client is 2, the delay time is: 1 (sec) × 2=2 (sec).
S130, the client sends data to the server according to the delay time.
And after obtaining the delay time, the client waits for the delay time according to the current time and sends data to the server.
According to the data transmission method of the Internet of things, the server broadcasts the time synchronization signals to the clients, the clients calculate respective delay time according to the time synchronization signals and the reporting sequence number, and send data according to the delay time, so that channel collision caused by the fact that a plurality of clients send data to channels at the same time can be avoided, and further the transmission performance of a wireless network is improved.
In one embodiment, the time synchronization signal comprises a reporting time interval; the client calculates the delay time according to the time synchronization signal and the report sequence number of the client, and the method comprises the following steps: and the client calculates the product of the reporting time interval and the reporting sequence number of the client to obtain the delay time. In this embodiment, because the reporting sequence numbers of the clients are different and the reporting time intervals are the same, the delay times obtained by the clients are different, and channel collision caused by data transmission by the clients can be avoided.
In one embodiment, before step S110, the method includes: the server broadcasts and sends a sequence number distribution signal to each client in the star network topology structure; the client judges whether a reporting serial number is distributed or not according to the serial number distribution signal; if the client does not distribute the reporting serial number, the client sends a client identifier to the server; and the server allocates a reporting sequence number for the client according to the client identifier.
Wherein the sequence number allocation signal includes a server identifier, a broadcast period, a reply time interval, a maximum delay time, and a random delay maximum time. The server side identification is the only identification of the server side; the broadcast period is the number of times of the serial number distribution signal broadcast by the server and is used for debugging the communication between the server and the client, namely, when a problem occurs in the communication between the client and the server, the number of times of the broadcast time synchronization signal is found out and problem check is carried out according to the found number of times, and the server can check whether the data returned by the client is the data fed back by the same broadcast period or not according to the broadcast period; the reply time interval is used for calculating the time of the client feedback; the maximum delay time is used for judging whether to feed back by the client; the maximum random delay time is data with one unit of time, and is used for the client to calculate a random number to judge whether to perform feedback.
Specifically, when the client receives the serial number distribution signal, the client queries whether a report serial number exists locally, if the report serial number does not exist, the client sends the client identifier to the server to apply for the report serial number, and the server distributes the report serial number according to the client identifier and then sends the report serial number to the client. The reporting sequence number may be a sequence number, for example, the arabic number 1, 2, 3 … … server may allocate the reporting sequence number to the client according to the allocated reporting sequence number, for example, the reporting sequence number 10 is allocated, and then the reporting sequence number 11 is allocated to the next client.
In one embodiment, the allocating, by the server, the report sequence number to the client according to the client identifier includes: the server allocates a reporting sequence number data packet to the client according to the client identifier and sends the reporting sequence number data packet to the client; and the client receives the reported serial number data packet and sends serial number distribution success information to the server.
The reported data packet comprises a server identifier, a client identifier, a reported serial number and a serial number distribution cycle, wherein the serial number distribution cycle is the number of times of serial number distribution of the server. The successful sequence number distribution information comprises client identification, a reported sequence number, a sequence number distribution period and a client version. The server can judge whether the sequence number is successfully distributed according to the client identifier, the reported sequence number and the sequence number distribution period.
In one embodiment, the sequence number assignment signal includes a server identifier, a broadcast period, a reply time interval, a maximum delay time, and a random delay maximum time. If the client does not allocate the reporting sequence number, the client sending the client identifier to the server comprises the following steps: if the client does not distribute the reporting serial number, judging whether the reporting serial number corresponding to the server identifier exists according to the server identifier; if the report serial number corresponding to the server-side identifier does not exist, generating a random number according to the maximum random delay time as the maximum number; when the random number is not larger than the maximum delay time, obtaining a reply delay time by taking a modulus with a reply time interval according to the random number; and according to the reply delay time, the client sends the client identification to the server.
For example, the random delay maximum time a is the maximum number, a random number B is generated, and if the random number B is greater than the maximum delay time C, the client does not feed back information. If the random number B is not greater than the maximum delay time C, the random number B is modulo the reply time interval D to obtain a reply delay time E. And the client waits for the reply delay time E and sends a client identifier to the server.
In one embodiment, the sending, by the client, the client identifier to the server according to the reply delay time includes: and according to the reply delay time, the client sends the client mark, the broadcast period and the client version to the server.
In one embodiment, the reporting sequence number packet includes a server identifier, a reporting sequence number, a client identifier, and a distribution cycle. The client receives the reported sequence number data packet and sends the successful sequence number distribution information to the server, and the method comprises the following steps: the client receives the reported serial number data packet and judges whether the reported serial number data packet is consistent with the client identifier of the local computer or not according to the client identifier; and if the client identification judges whether the client identification is consistent with the client identification of the local machine, acquiring the reported sequence number, and sending the information of successful sequence number distribution to the server. In this embodiment, whether the allocated reporting sequence number belongs to the client is determined by the client identifier, so that the reporting sequence number can be quickly obtained.
It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least a portion of the other steps or stages.
In one embodiment, as shown in fig. 3, there is provided an internet of things data transmission device, including: a time synchronization signal broadcasting module 210, a delay time calculating module 220 and a data transmitting module 230, wherein:
and a time synchronization signal broadcasting module 210, configured to be a time synchronization signal broadcasting module, configured to send a time synchronization signal to each client in the star network topology by broadcasting through the server.
A delay time calculating module 220, configured to calculate a delay time by the client according to the time synchronization signal and the report sequence number of the client; the reporting sequence numbers of the clients are different.
A data sending module 230, configured to send data to the server by the client according to the delay time.
In one embodiment, the time synchronization signal comprises a reporting time interval. The delay time calculating module 220 is further configured to calculate a product of the reporting time interval and the reporting sequence number of the client by the client, so as to obtain the delay time.
In one embodiment, the data transmission device for the internet of things further includes: a serial number distribution signal sending module, configured to send a serial number distribution signal to each client in the star network topology by broadcasting through the server; the judging module is used for judging whether the reporting serial number is distributed or not by the client according to the serial number distribution signal; a client identifier sending module, configured to send a client identifier to the server if the client does not allocate a reporting sequence number; and the report sequence number distribution module is used for distributing report sequence numbers for the client by the server according to the client identification.
In one embodiment, the reporting sequence number allocating module includes: a reporting serial number data packet sending unit, configured to allocate, by the server, a reporting serial number data packet to the client according to the client identifier, and send the reporting serial number data packet to the client; and the serial number successful distribution information sending unit is used for receiving the reported serial number data packet by the client and sending the serial number successful distribution information to the server.
In one embodiment, the sequence number assignment signal includes a server identification, a broadcast period, a reply time interval, a maximum delay time, and a random delay maximum time. The client identification sending module comprises: an identifier determining unit, configured to determine, according to the server identifier, whether a reporting sequence corresponding to the server identifier exists or not if the client does not allocate a reporting sequence; a random number generating unit, configured to generate a random number according to the maximum random delay time as a maximum number if there is no report sequence number corresponding to the server identifier; a reply delay time calculation unit for obtaining a reply delay time by taking a modulus at a reply time interval according to the random number when the random number is not greater than the maximum delay time; and the client identifier sending unit is used for sending the client identifier to the server by the client according to the reply delay time.
In one embodiment, the client identifier sending unit is further configured to send, by the client, the client flag, the broadcast period, and the client version to the server according to the reply delay time.
In one embodiment, the reporting sequence number packet includes a server identifier, a reporting sequence number, a client identifier, and a distribution cycle. The sequence number allocation success information transmitting unit includes: a reported data packet receiving subunit, configured to receive the reported serial number data packet by the client, and determine whether the reported serial number data packet is consistent with a client identifier of the local computer according to the client identifier; and the distribution success information sending subunit is used for acquiring the report sequence number and sending the sequence number distribution success information to the server side if the client side identifier judges whether the client side identifier is consistent with the client side identifier of the local computer.
For specific limitations of the data transmission device of the internet of things, reference may be made to the above limitations on the data transmission method of the internet of things, and details are not described here again. All modules in the data transmission device of the internet of things can be completely or partially realized through software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure thereof may be as shown in fig. 4. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the reporting sequence number data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an internet of things data method.
It will be appreciated by those skilled in the art that the configuration shown in fig. 4 is a block diagram of only a portion of the configuration associated with the present application, and is not intended to limit the computing device to which the present application may be applied, and that a particular computing device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
the server side broadcasts and sends a time synchronization signal to each client side in the star network topology structure;
the client calculates delay time according to the time synchronization signal and the report serial number of the client; the reporting serial numbers of the clients are different;
and the client sends data to the server according to the delay time.
In one embodiment, the processor when executing the computer program further performs the steps of: the server broadcasts and sends a sequence number distribution signal to each client in the star network topology structure; the client judges whether a reporting serial number is distributed or not according to the serial number distribution signal; if the client does not distribute the reporting serial number, the client sends a client identifier to the server; and the server allocates a reporting sequence number for the client according to the client identifier.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
the server side broadcasts and sends a time synchronization signal to each client side in the star network topology structure;
the client calculates delay time according to the time synchronization signal and the report serial number of the client; the reporting serial numbers of the clients are different;
and the client sends data to the server according to the delay time.
In one embodiment, the computer program when executed by the processor further performs the steps of: the server broadcasts and sends a sequence number distribution signal to each client in the star network topology structure; the client judges whether a reporting serial number is distributed or not according to the serial number distribution signal; if the client does not distribute the reporting sequence number, the client sends a client identifier to the server; and the server allocates a reporting sequence number for the client according to the client identifier.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by hardware instructions of a computer program, which may be stored in a non-volatile computer-readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not to be understood as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent application shall be subject to the appended claims.

Claims (10)

1. A data transmission method of the Internet of things is characterized by comprising the following steps:
the server side broadcasts and sends a time synchronization signal to each client side in the star network topology structure; the time synchronization signal is issued once every preset time and is used for informing time synchronization nodes of each client side in the star network topology structure to send data;
the client calculates delay time according to the time synchronization signal and the report serial number of the client; the reporting serial numbers of the clients are different;
the client sends data to the server according to the delay time;
the time synchronization signal comprises a server identifier, a reporting period, a reporting time interval and a reporting maximum delay time, the server identifier is a unique identifier of the server, the reporting period is the number of times that the server broadcasts the time synchronization signal, the reporting maximum delay time is the maximum time of delay, and the client does not send data when judging that the delay time exceeds the reporting maximum delay time.
2. The method of claim 1, wherein the time synchronization signal comprises a reporting time interval;
the client calculates the delay time according to the time synchronization signal and the reporting sequence number of the client, and the method comprises the following steps:
and the client calculates the product of the reporting time interval and the reporting sequence number of the client to obtain the delay time.
3. The method of claim 1, before the server sends the time synchronization signal to each client in the star network topology, comprising:
the server broadcasts and sends a sequence number distribution signal to each client in the star network topology structure;
the client judges whether a reporting serial number is distributed or not according to the serial number distribution signal;
if the client does not distribute the reporting serial number, the client sends a client identifier to the server;
and the server allocates a reporting sequence number for the client according to the client identifier.
4. The method of claim 3, wherein the step of the server allocating the reporting sequence number to the client according to the client identifier comprises:
the server distributes a reporting sequence number data packet to the client according to the client identifier and sends the reporting sequence number data packet to the client;
and the client receives the reported serial number data packet and sends serial number distribution success information to the server.
5. The method of claim 3, wherein the sequence number assignment signal comprises a server identity, a broadcast period, a reply time interval, a maximum delay time, and a random delay maximum time;
if the client does not distribute the reporting sequence number, the client sending the client identifier to the server comprises the following steps:
if the client does not distribute the reporting serial number, judging whether the reporting serial number corresponding to the server identifier exists according to the server identifier;
if the report serial number corresponding to the server-side identifier does not exist, generating a random number according to the maximum random delay time as the maximum number;
when the random number is not larger than the maximum delay time, obtaining a reply delay time by taking a modulus with a reply time interval according to the random number;
and according to the reply delay time, the client sends the client identification to the server.
6. The method according to claim 5, wherein said sending, by the client, the client identifier to the server according to the reply delay time comprises:
and according to the reply delay time, the client sends the client identifier, the broadcast period and the client version to the server.
7. The method of claim 4, wherein the reporting sequence number packet comprises a server identifier, a reporting sequence number, a client identifier, and an allocation period;
the client receives the reported sequence number data packet and sends the successful sequence number distribution information to the server, and the method comprises the following steps:
the client receives the reporting serial number data packet and judges whether the reporting serial number data packet is consistent with the client identifier of the local computer or not according to the client identifier;
and if the client identification judges whether the client identification is consistent with the client identification of the local machine, acquiring the reported sequence number, and sending the information of successful sequence number distribution to the server.
8. An internet of things data transmission device, the device comprising:
the time synchronization signal broadcasting module is used for broadcasting and sending time synchronization signals to each client in the star network topology structure by the server; the time synchronization signal is issued once every preset time and is used for informing each client in the star network topology of the time synchronization node for sending data;
the time delay calculation module is used for calculating time delay by the client according to the time synchronization signal and the report serial number of the client; the reporting serial numbers of the clients are different;
the data sending module is used for sending data to the server side by the client side according to the delay time;
the time synchronization signal comprises a server identifier, a reporting period, a reporting time interval and a reporting maximum delay time, the server identifier is a unique identifier of the server, the reporting period is the number of times that the server broadcasts the time synchronization signal, the reporting maximum delay time is the maximum time of delay, and the client does not send data when judging that the delay time exceeds the reporting maximum delay time.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 7.
CN202010485870.8A 2020-06-01 2020-06-01 Internet of things data transmission method and device, computer equipment and storage medium Active CN111654348B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010485870.8A CN111654348B (en) 2020-06-01 2020-06-01 Internet of things data transmission method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010485870.8A CN111654348B (en) 2020-06-01 2020-06-01 Internet of things data transmission method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111654348A CN111654348A (en) 2020-09-11
CN111654348B true CN111654348B (en) 2022-10-18

Family

ID=72350983

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010485870.8A Active CN111654348B (en) 2020-06-01 2020-06-01 Internet of things data transmission method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111654348B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887222A (en) * 2021-01-08 2021-06-01 珠海格力电器股份有限公司 Data reporting method and device, storage medium and electronic equipment
CN113015259B (en) * 2021-02-23 2023-03-07 江苏未来智慧信息科技有限公司 Tool cabinet background management system and method
CN113872729B (en) 2021-09-24 2022-03-25 上海物骐微电子有限公司 Audio data communication method and wireless audio system
CN114827281B (en) * 2022-03-10 2023-09-29 北京百度网讯科技有限公司 Method, system and device for sending and receiving network request
CN114928816B (en) * 2022-04-24 2023-06-23 深圳数马电子技术有限公司 Device connection method, system, terminal device, detection apparatus, and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465764A (en) * 2017-09-20 2017-12-12 诚迈科技(南京)股份有限公司 Internet of Things network communication system, gateway device and method based on stelliform connection topology configuration
CN109587815A (en) * 2018-11-16 2019-04-05 国网江苏省电力有限公司盐城供电分公司 A kind of LPWAN radio multi-user access network structure and its control method
CN110278617A (en) * 2019-06-21 2019-09-24 浙江理工大学 A kind of LoRaWAN channel confliction bypassing method based on time division multiple acess

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465764A (en) * 2017-09-20 2017-12-12 诚迈科技(南京)股份有限公司 Internet of Things network communication system, gateway device and method based on stelliform connection topology configuration
CN109587815A (en) * 2018-11-16 2019-04-05 国网江苏省电力有限公司盐城供电分公司 A kind of LPWAN radio multi-user access network structure and its control method
CN110278617A (en) * 2019-06-21 2019-09-24 浙江理工大学 A kind of LoRaWAN channel confliction bypassing method based on time division multiple acess

Also Published As

Publication number Publication date
CN111654348A (en) 2020-09-11

Similar Documents

Publication Publication Date Title
CN111654348B (en) Internet of things data transmission method and device, computer equipment and storage medium
Madueno et al. Reliable and efficient access for alarm-initiated and regular M2M traffic in IEEE 802.11 ah systems
CN109792287B (en) Method and device for transmitting response message
CN108024367B (en) Method, device, equipment and storage medium for dynamically allocating time slot
US8098645B2 (en) Random access slot selection in a communications system
US9107226B2 (en) Method and system for handling congestion in a communications system
JP5185367B2 (en) Wireless communication method, wireless communication system, base station, and terminal station
JP2019522428A (en) Cyber security management system, method and apparatus
CN110336848B (en) Scheduling method, scheduling system and scheduling equipment for access request
CN102056312A (en) Resource management method and device for M2M communication
Bui et al. Design and performance analysis of a novel distributed queue access protocol for cellular-based massive M2M communications
CN106304199A (en) Channel negotiation method, website and system
CN108391325B (en) Method, device and terminal for managing wireless connection
CN102651900A (en) Service access method, device and system
CN107371118B (en) Communication method and device
CN106576375B (en) Data transmission method and terminal
CN116170882A (en) Ad hoc network realization method of air-ground connection and interference system and related equipment thereof
US20190098534A1 (en) Data transmission method, device, and system
US20230095005A1 (en) Resource allocation for clients of multiple co-hosted vaps
CN113141390B (en) Netconf channel management method and device
CN105451346A (en) Uplink data transmission method and device
CN111107661B (en) Random access resource acquisition method and device
JP6603389B2 (en) Resource measuring method, data transmitting apparatus, and program
CN108391326B (en) Method, device and terminal for managing wireless connection
CN112968921A (en) Data updating method, device and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant