CN113301512B - Data communication method, device, system, electronic equipment and storage medium - Google Patents

Data communication method, device, system, electronic equipment and storage medium Download PDF

Info

Publication number
CN113301512B
CN113301512B CN202110846125.6A CN202110846125A CN113301512B CN 113301512 B CN113301512 B CN 113301512B CN 202110846125 A CN202110846125 A CN 202110846125A CN 113301512 B CN113301512 B CN 113301512B
Authority
CN
China
Prior art keywords
node
channel
frame data
information
service frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110846125.6A
Other languages
Chinese (zh)
Other versions
CN113301512A (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.)
Guangzhou Huiruisitong Technology Co Ltd
Original Assignee
Guangzhou Huiruisitong 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 Guangzhou Huiruisitong Technology Co Ltd filed Critical Guangzhou Huiruisitong Technology Co Ltd
Priority to CN202110846125.6A priority Critical patent/CN113301512B/en
Publication of CN113301512A publication Critical patent/CN113301512A/en
Application granted granted Critical
Publication of CN113301512B publication Critical patent/CN113301512B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/10Push-to-Talk [PTT] or Push-On-Call services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data communication method, a device, a system, an electronic device and a storage medium. The method comprises the following steps: selecting three channels, sequentially scanning the channels in sequence, staying on a certain channel to be regarded as a first channel, and receiving service frame data sent by a previous node through the first channel; judging whether the current receiving node needs to be forwarded or not based on the service frame data; if the forwarding is needed, determining a second channel used by the current receiving node for forwarding according to the channel information, wherein the first channel and the second channel are different communication channels; and forwarding the service frame data received by the current receiving node to the next node by using the second channel. The scheme of the embodiment of the disclosure can be used in a narrow-band wireless network, does not need infrastructure, can forward voice and data information through an ad hoc network, overcomes the distance limitation of a narrow-band communication terminal, and can realize real-time communication among nodes.

Description

Data communication method, device, system, electronic equipment and storage medium
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a data communication method, apparatus, system, electronic device, and storage medium.
Background
The intercom is a common communication device, and because the point-to-point communication distance of the intercom is limited, the intercom cannot communicate with each other when the communication distance is exceeded. In a network topology structure formed by communication devices of related narrowband wireless technologies, a communication device beyond a communication distance performs service forwarding through other receiving nodes (i.e., other communication devices) in the network topology structure, thereby realizing long-distance communication and extending the communication distance.
Disclosure of Invention
The inventor finds that in a network topology structure formed by related communication devices, the communication devices beyond the communication distance cannot realize efficient and flexible forwarding, and therefore, how to realize efficient service forwarding in a narrow-band network topology structure is a difficult point.
In order to solve the related technical problems, embodiments of the present disclosure provide a data communication method, apparatus, system, electronic device, and storage medium.
The technical scheme of the embodiment of the disclosure is realized as follows:
the disclosed embodiment provides a data communication method, which is applied to a communication device at a receiving side, takes a communication channel between a current receiving node and a previous node as a first channel, and takes a communication channel between the current receiving node and a next node as a second channel, and the method comprises the following steps:
receiving service frame data sent by a previous node based on a first channel; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
judging whether the current receiving node needs to be forwarded or not based on the service frame data; if the forwarding is needed, determining a second channel used by the current receiving node for forwarding according to the channel information, wherein the first channel and the second channel are different communication channels;
and forwarding the service frame data received by the current receiving node to the next node by using the second channel.
In the above scheme, the header frame of the service frame data includes 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence.
In the above scheme, the number of the at least one 8-bit intermediate node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit intermediate node information is used for carrying four intermediate node address information through which a service is forwarded, and the four 2-bit channel information is used for carrying a frequency point code adopted when the service frame data is sent by the node.
In the foregoing solution, before receiving, based on the first channel, service frame data sent by the previous node, the method further includes:
scanning a plurality of channels in a circulating manner, and detecting whether effective service frame data exist in the plurality of channels in sequence; wherein the plurality of channels is at least three channels;
and if detecting that one of the channels has valid service frame data, staying in the channel, and acquiring the service frame data sent by the previous node from the first channel by taking the channel as the first channel.
In the foregoing solution, when three pieces of channel information are used when forwarding service frame data, the determining, according to the channel information, a second channel used by a current receiving node for forwarding includes:
and acquiring channel information used when the node sends the service frame data from the service frame data, and determining one channel from the two channels except the first channel according to the sequence of the channels used by the node as a second channel used by the current receiving node for forwarding.
In the above solution, the current receiving node has a dual phase-locked loop function, and takes the received service frame data sent by the previous node as the first service frame data, and takes the service frame data sent to the next node as the second service frame data, including:
when first service frame data sent by a previous node is received by using the first channel, acquiring source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data from the first service frame data;
and when the second channel is used for forwarding the second service frame data to the next node, the first service frame data is filled according to the second channel, and the second service frame data forwarded to the next node is obtained.
In the above solution, obtaining source address information, destination address information, intermediate node information, and channel information used when a node sends service frame data from the first service frame data includes:
acquiring a source address ID from source address information of a first service frame data header frame;
acquiring a destination address ID from destination address information of a first service frame data header frame;
acquiring an intermediate node ID from intermediate node information of a first service frame data head frame to acquire an intermediate node forwarding path;
and acquiring the code of the frequency point used when the node sends the service frame data from the channel information of the first service frame data header frame so as to acquire the sequence of the channel used by the node.
In the foregoing solution, performing a filling process on the first service frame data according to the second channel to obtain second service frame data forwarded to a next node includes:
sequentially filling the address information of the current receiving node into the intermediate node information of the first service frame data head frame;
and sequentially filling the second channel information into the channel information of the first service frame data head frame to obtain second service frame data forwarded to a next node.
In the above scheme, the method further comprises:
and judging whether the current receiving node is the final receiving node or not based on the service frame data, and if so, not forwarding the service frame data to other nodes.
The embodiment of the present disclosure further provides a communication device, where a communication channel between the device and a previous node is a first channel, and a communication channel between the device and a next node is a second channel, the device including:
a receiving unit, configured to receive service frame data sent by an upper node based on a first channel; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
a determining unit, configured to determine whether a current receiving node needs to be forwarded based on the service frame data; if the forwarding is needed, determining a second channel used by the current receiving node for forwarding according to the channel information, wherein the first channel and the second channel are different communication channels;
and the sending unit is used for forwarding the service frame data received by the current receiving node to the next node by using the second channel.
In the above scheme, the header frame of the service frame data includes 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence.
In the above scheme, the number of the at least one 8-bit intermediate node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit intermediate node information is used for carrying four intermediate node address information through which a service is forwarded, and the four 2-bit channel information is used for carrying a frequency point code adopted when the service frame data is sent by the node.
In the above scheme, the apparatus further includes a scanning unit, wherein:
the scanning unit is used for circularly scanning a plurality of channels and sequentially detecting whether effective service frame data exists in the plurality of channels; wherein the plurality of channels is at least three channels; and if detecting that one of the channels has valid service frame data, staying in the channel, and acquiring the service frame data sent by the previous node from the first channel by taking the channel as the first channel.
In the foregoing solution, when three pieces of channel information are used when forwarding service frame data, the determining, according to the channel information, a second channel used by a current receiving node for forwarding includes:
and acquiring channel information used when the node sends the service frame data from the service frame data, and determining one channel from the two channels except the first channel according to the sequence of the channels used by the node as a second channel used by the current receiving node for forwarding.
The embodiment of the present disclosure further provides another data communication method, which is applied to a communication device on a trigger side, and the method includes:
generating service frame data according to the triggering condition parameters; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
determining a communication channel between the trigger node and the next receiving node, wherein the communication channel between the trigger node and the next receiving node is taken as a first channel;
and sending the service frame data to a next receiving node by using the first channel.
In the above scheme, the header frame of the service frame data includes 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence.
In the above scheme, the number of the at least one 8-bit intermediate node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit intermediate node information is used for carrying four intermediate node address information through which a service is forwarded, and the four 2-bit channel information is used for carrying a frequency point code adopted when the service frame data is sent by the node.
In the above solution, determining a communication channel between the trigger node and the next receiving node includes:
scanning a plurality of channels in a circulating manner, and detecting whether the plurality of channels are in an idle state or not in sequence;
if one of the channels is detected to be in an idle state, locking the channel as a first channel; wherein the plurality of channels is at least three channels.
In the foregoing solution, generating service frame data based on the trigger condition parameter and the next receiving node includes:
acquiring the address ID and the destination node ID of the trigger node based on the trigger condition parameters;
respectively filling the trigger node address ID and the destination node ID into source address information and destination address information of a head frame of service frame data;
and generating service frame data of the trigger node.
The embodiment of the present disclosure further provides another communication apparatus, where a communication channel between the apparatus and a next node is a first channel, the apparatus includes:
the generating unit is used for generating service frame data according to the triggering condition parameters; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
the determining unit is used for determining a communication channel between the trigger node and the next receiving node, and the communication channel between the trigger node and the next receiving node is taken as a first channel;
and the sending unit is used for sending the service frame data to a next receiving node by using the first channel.
In the above scheme, the header frame of the service frame data includes 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence.
In the above scheme, the number of the at least one 8-bit intermediate node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit intermediate node information is used for carrying four intermediate node address information through which a service is forwarded, and the four 2-bit channel information is used for carrying a frequency point code adopted when the service frame data is sent by the node.
In the above scheme, the apparatus further includes a scanning unit, wherein:
the scanning unit is used for circularly scanning a plurality of channels and sequentially detecting whether the plurality of channels are in an idle state; if one of the channels is detected to be in an idle state, locking the channel as a first channel; wherein the plurality of channels is at least three channels.
The embodiment of the present disclosure further provides a narrowband ad hoc network system, including a trigger side communication device and at least one receiving side communication device, wherein:
the receiving-side communication apparatus executes the steps of the first data communication method as described above;
the trigger-side communication device executes the steps of the second data communication method as described above.
An embodiment of the present disclosure further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor; wherein,
the processor is adapted to perform the steps of any of the methods described above when running the computer program.
The embodiment of the disclosure also provides a storage medium, in which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the methods are implemented.
The data communication method, the device, the system, the electronic device and the storage medium provided by the embodiment of the disclosure receive service frame data sent by a previous node based on a first channel; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data; judging whether the current receiving node needs to be forwarded or not based on the service frame data; if the forwarding is needed, determining a second channel used by the current receiving node for forwarding according to the channel information, wherein the first channel and the second channel are different communication channels; and forwarding the service frame data received by the current receiving node to the next node by using the second channel. The scheme of the embodiment of the invention can determine the communication channel for realizing the forwarding of the service frame data point to point between the intermediate nodes in the narrow-band wireless network, reasonably distribute the communication channel resources, realize the real-time forwarding processing of the service frame data and be more efficient.
Drawings
Fig. 1 is a schematic flow chart of a first data communication method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a network topology connection of a usage scenario of a narrowband ad hoc network according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a data forwarding process of a narrowband ad hoc network according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a processing process of receiving service frame data by a node of a narrowband ad hoc network according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a data transmission process of a narrowband ad hoc network according to an embodiment of the present disclosure;
fig. 6 is a flowchart illustrating a second data communication method according to an embodiment of the disclosure;
fig. 7 is a schematic structural diagram of a first communication device according to an embodiment of the disclosure;
fig. 8 is a schematic structural diagram of a second communication device according to an embodiment of the disclosure;
FIG. 9 is a schematic structural diagram of an intercom according to an embodiment of the present disclosure;
fig. 10 is an internal structural view of a computer device according to an embodiment of the present disclosure.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
The narrowband communication protocol in the embodiment of the present disclosure may be based on any one or a combination of multiple Digital Mobile Radio (DMR) protocol, Police Digital Trunking (PDT) protocol, terrestrial Trunked Radio System (transeuropean Trunked Radio System, Tetra) protocol, or other related narrowband communication protocols, such as dpmr (Digital Private Mobile Radio) protocol.
The communication device in the embodiment of the present disclosure may be a handheld interphone, a handheld terminal device, a relay station, or the like. The service frame data in the embodiments of the present disclosure may be voice or data information, etc.
The method and the communication device of the embodiment of the disclosure can be applied to a narrowband networking network. Optionally, the method is applied to a narrowband wireless ad hoc network, and the narrowband wireless ad hoc network formed by a plurality of handheld terminals in a manner of sending heartbeat tokens in a direct mode can realize service functions of ad hoc network establishment, multi-hop forwarding and the like of the plurality of handheld terminals without participation of a base station and relay station equipment. The multi-hop forwarding means that two nodes beyond the communication distance forward the service through other receiving nodes in the ad hoc network topology structure.
The disclosed embodiment provides a first data communication method, which is applied to a communication device on a receiving side, and takes a communication channel through which a current receiving node can receive a previous node by scanning and staying as a first channel, and takes a communication channel between the current receiving node and a next node as a second channel, as shown in fig. 1, the method includes:
step 101: receiving service frame data sent by a previous node based on a first channel; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
step 102: judging whether the current receiving node needs to be forwarded or not based on the service frame data; if the forwarding is needed, determining a second channel used by the current receiving node for forwarding according to the channel information, wherein the first channel and the second channel are different communication channels;
step 103: and forwarding the service frame data received by the current receiving node to the next node by using the second channel.
Specifically, the method of the embodiment of the present disclosure may be applied to a narrowband communication device, where multiple nodes are connected and communicated to form a network topology structure, and two nodes exceeding a communication distance perform service forwarding through other receiving nodes (i.e., intermediate nodes) in the network topology structure, that is, cross-station multi-hop real-time forwarding of service data, thereby implementing long-distance communication and extending a communication distance. The method of the embodiment of the invention can determine the communication channel for realizing the forwarding of the service frame data point to point between the intermediate nodes in the narrow-band wireless network, reasonably distribute the communication channel resources, realize the real-time forwarding processing of the service frame data and be more efficient.
Alternatively, the following embodiments of the present disclosure are described with respect to a narrowband ad hoc network to which the method of the embodiments of the present disclosure can be applied.
As shown in fig. 2, fig. 2 is a schematic diagram illustrating network topology connection of a plurality of nodes in a narrowband wireless ad hoc network in a usage scenario at a certain time. The A/C/D/E/F/G/H/I nodes respectively represent relative positions of a plurality of nodes in a use scene at a certain moment.
Here, it should be noted that the relative position of the a/C/D/E/F/G/H/I node may be constantly changing, and constantly changing with the movement of the user. At the moment, the A/C/D/E/F/G/H/I node successfully constructs an ad hoc network topology structure by sending a heartbeat token, namely ad hoc networking is successful. Optionally, when an interphone based on the DMR protocol and/or the PDT protocol is used, the service frame data is transmitted/received using the time slot 1, and the heartbeat token and the forwarding request are transmitted/received using the time slot 2. The heartbeat token of the embodiment of the disclosure contains token type information, source address information, destination address information and hop count information, wherein the hop count information is the forwarding times of sending an interphone to a specified interphone, the heartbeat token can be a reverse channel burst frame structure in a DMR protocol, the reverse channel burst frame structure comprises a reverse channel synchronization word with 48 bits and an embedded signaling domain with 48 bits, and the heartbeat token is constructed by redefining an RC domain and an EMB domain of the reverse channel burst frame structure. And the receiving interphone is different from other service types, so that the receiving interphone can identify the heartbeat token, and the establishment, the access, the maintenance and the like of the narrow-band wireless ad hoc network are realized. After each interphone receives the heartbeat tokens of other interphones in the communication distance in a period, source address information in the heartbeat tokens of the other interphones and hop count information to a specified interphone are updated to a local routing table, IDs of the other interphones in the communication distance range and the hop count information correspondingly reaching the specified interphone can be obtained from the local routing table, and the hop count information of the other interphones, namely the hop count information from the local interphone to the specified interphone can be obtained. Each interphone sends a heartbeat token, a local routing table is checked to detect whether the interphone can reach a designated interphone, if not, whether other interphones can reach the designated interphone is obtained through the local routing table, the interphone with the least hop count and the strongest signal is selected as an optimal forwarding node, the hop count of the interphone is added with 1 to serve as hop count information from the interphone to the designated node, the hop count information is coded to the heartbeat token of the interphone and sent, and therefore the construction of an ad hoc network is achieved, namely the process of dynamically updating the routing table of the interphone is actually an ad hoc networking process. Table 1 is an example of an alternative data type for a heartbeat token.
Figure 771816DEST_PATH_IMAGE001
The heartbeat token is not limited to the use of the reverse channel burst frame structure, but may also use other data frame formats defined in the DMR/PDT standard, and a new data type may be added on the basis of the existing data frame format for distinguishing the heartbeat token. The embodiment of the present disclosure may also not be limited to the data frame format in the DMR/PDT standard, but may also be a data frame format applied to a narrowband communication environment or a new data frame format.
In addition, referring to fig. 3, before transmitting or forwarding service frame data, each node takes the above-mentioned narrowband wireless ad hoc network structure as an example, and needs to go through the following processes:
in the heartbeat token sending stage, the A/C/D/E/F/G/H/I nodes establish an ad hoc network by sequentially sending heartbeat tokens, and the local routing tables of all the nodes are dynamically updated. At this time, the forwarding relation of each node is established, and the forwarding relation can be made clearer by using the forwarding request information. The forwarding request information includes token type information, source address information, and destination address information, and a frame structure of the forwarding request information may be the same as that of the heartbeat token, as shown in table 1, 0001 is defined as a normal forwarding request in the token type, and 0000 is defined as the heartbeat token. In the ad hoc network state, in the stage of establishing a forwarding relationship, if the node I needs to send service frame data to the node a, the node I may first send a forwarding request message through the time slot 2, and handshake is performed with a plurality of intermediate nodes in the ad hoc network by using the forwarding request message, so as to establish a forwarding path from the node I to the node a. In the process of establishing a forwarding path by handshaking the forwarding request information and the intermediate node in the stage of establishing the forwarding relationship, the collision in a communication channel can be reduced as much as possible, and the call completing rate is improved to the maximum extent. After the forwarding path is established, the I node forwards the service frame data to the A node through the H-G-F-E node.
Further, the receiving node in the embodiments of the present disclosure has a dual phase-locked loop function, that is, a single node can receive data and transmit data simultaneously. Typically, a phase locked loop can only lock to a communication frequency at which data is either transmitted or received; if a phase-locked loop is used for forwarding, the received service data needs to be completely stored for forwarding, and the delay is very large, which is not beneficial to real-time forwarding of voice or data. Therefore, the receiving node in the embodiment of the present disclosure may lock two communication frequencies by using a dual phase-locked loop function, where one is locked in the first channel to receive the service frame data sent by the previous node as the first service frame data, and the other is locked in the second channel to forward the service frame data to the next node as the second service frame data, and the transmission and the reception are performed simultaneously, and the delay is very small and negligible. That is, one communication frequency (namely, the first channel) can receive data, and the other communication frequency (namely, the second channel) can transmit data, so that the real-time forwarding function of voice or data information and the like is realized, the time delay is short, the response is rapid, and the forwarding is more efficient.
Further, taking the received service frame data sent by the previous node as the first service frame data, and taking the service frame data sent to the next node as the second service frame data, includes:
when first service frame data sent by a previous node is received by using a first channel, source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data are obtained from the first service frame data. In the concrete implementation: acquiring a source address ID from source address information of a first service frame data header frame; acquiring a destination address ID from destination address information of a first service frame data header frame; acquiring an intermediate node ID from intermediate node information of a first service frame data head frame to acquire an intermediate node forwarding path; and acquiring the code of the frequency point used when the node sends the service frame data from the channel information of the first service frame data header frame so as to acquire the sequence of the channel used by the node.
And when the second channel is used for forwarding the second service frame data to the next node, the first service frame data is filled according to the second channel, and the second service frame data forwarded to the next node is obtained. In the concrete implementation: sequentially filling the address information of the current receiving node into the intermediate node information of the first service frame data head frame; and sequentially filling the second channel information into the channel information of the first service frame data head frame to obtain second service frame data forwarded to a next node.
Further, the header frame of the service frame data in the embodiment of the present disclosure includes 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence. Optionally, the number of the at least one 8-bit intermediate node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit intermediate node information is used to carry four intermediate node address information through which a service is forwarded, and the four 2-bit channel information is used to carry a frequency point code number adopted when the service frame data is sent by the node.
Generally, the service frame data includes a header, a data portion and an end, where the header of the service frame data is transmitted first, the data portion of the service frame data is transmitted next, and the end of the service frame data is transmitted last, which represents the termination of data transmission. The implementation of speech frames is described in detail below with reference to table 2.
The original speech header frame includes PF, R, FLCO (full connection control opcode), FID (feature ID combination), and DATA (including explicit information of features such as source and destination addresses), the original FID is 8 bits long, and the source and destination addresses are 24 bits each. However, in the original voice header frame, since the node cannot acquire the forwarding path during signal transmission and cannot acquire the communication frequency adopted when the previous node receives data, the node cannot be well applied to the transmission of the service frame data between nodes in the narrow-band network topology structure, and the current receiving node cannot reasonably allocate the communication frequency to forward the service frame data, thereby realizing efficient service forwarding.
In the specific implementation, the original 24-bit Source address and the original 24-bit Destination address in the voice header frame are redefined as an 8-bit Source address (Destination), an 8-bit Destination address (Source) and 4 8-bit intermediate node addresses (Jump one/Jump two/Jump three/Jump four); wherein, 8bit source address is used for recording source address information, 8bit destination address is used for recording destination address information, and each 8bit intermediate node address is used for recording an intermediate node information. Redefining the original 8-bit characteristic ID combination of the voice header frame into four 2-bit frequency point codes (JUMP frequency); each 2-bit frequency point code is used for recording channel information, namely communication frequency information, used when one node sends service frame data, and the communication frequency is represented by a binary character code in the embodiment of the disclosure. In the embodiment of the present disclosure, by redefining the voice header frame, recording the forwarding path of the intermediate node and the channel sequence used by the node, the communication channel (i.e., the communication frequency) used when the node sends the service frame data is known. In the process of forwarding the voice frame, the current receiving node can determine the channel used by the current receiving node according to the sequence of the channel used by the node recorded in the voice frame, so that the conflict between the current receiving node and the channels used by other nodes can be avoided when the current receiving node forwards the voice frame, the method is well suitable for a narrow-band ad hoc network, and the high-efficiency forwarding is realized.
Figure 892219DEST_PATH_IMAGE002
It should be noted that the above voice frame defining manner in the embodiment of the present disclosure is based on a voice frame structure of a DMR protocol, and may also be based on a voice frame structure of other narrowband communication protocols, such as a DPMR protocol, a PDT protocol, a Tetra protocol, and the like. The information unit of the head frame of the voice frame is redefined, so that the head frame of the voice frame comprises source address information, destination address information, intermediate node information and channel information used when the node sends service frame data, and the purpose of recording the forwarding path of the intermediate node and the sequence of the channels used by the node is achieved. The current receiving node can determine the channel used by the current receiving node for forwarding according to the channel sequence used by the node. Meanwhile, the current receiving node can obtain the intermediate node forwarding path according to the intermediate node information, so that the occurrence of a self-loop condition is avoided, and the call completing rate is improved to the maximum extent. The service frame data in the embodiment of the present disclosure may be voice or data information, etc., and the specific implementation manner of the data information is similar to the design idea of the voice frame, and the recording of the intermediate node forwarding path and the channel order used by the node is achieved by redefining the header frame of the data frame so that the header frame of the data frame includes the source address information, the destination address information, the intermediate node information, and the channel information used by the node when sending the service frame data. For example, in the GPS short message, the information units of the intermediate node and the channel information may be added by redefining the byte lengths of the source address and the destination address in the CSBK block or the DATA _ HEADER to record the information of the intermediate node and the channel information used when the node transmits the service frame DATA, which is not described in detail herein.
To further implement the method of the embodiment of the present disclosure, before receiving, based on the first channel, service frame data sent by the previous node, the method further includes:
scanning a plurality of channels in a circulating manner, and sequentially detecting whether effective service frame data exist in the plurality of channels; wherein the plurality of channels is at least three channels; and if detecting that one of the channels has valid service frame data, staying in the channel, taking the channel as the first channel, and acquiring the service frame data sent by the previous node from the first channel.
In specific implementation, in order to save communication channel resources, the scheme of the embodiment of the present disclosure is implemented by using the least communication channel resources, a plurality of channels may be set as three communication channels, that is, three channel information are used when forwarding service frame data, and communication frequencies of the three communication channels are within a narrow-band communication operating frequency range, which is not limited. For example, the communication frequencies of the three communication channels may be set to 400.025MHz, 403.025MHz, and 410.025MHz, and the numbers of the frequency points defining the frequencies are 00, 01, and 10, respectively.
Three communication channels are adopted to carry out data communication between nodes, and the aim of forwarding voice and data by adopting the least channel resources can be achieved. And the node has the forwarding request to forward and does not have the forwarding request to forward and only receive. The collision of the channels is reduced to the maximum extent, and the load of the channels is balanced. The requirements of outdoor activities, field operations, emergency rescue and the like on communication are met.
The following describes a process of receiving service frame data by the current receiving node by taking the above three communication channels as an example.
Currently the receiving node initiates a scan, switching back and forth between three communication channels (e.g., 400.025MHz, 403.025MHz, 410.025 MHz), thereby locking one of the channels by scanning in turn. Specifically, the current receiving node may sequentially switch among three communication channels according to a sequence, and when the RSSI signal strength value of the channel is detected after switching to one communication channel, if the RSSI signal strength value is higher than a threshold value, it is verified that valid service frame data exists in the channel. Optionally, taking a voice frame as an example, since a general voice frame includes a header frame, a voice superframe part and a trailer, the voice superframe part is usually 6 frames, and the total duration is 360 ms, it is at least 360 ms for the type of voice frame, and it is ensured that the stay time is longer than the duration of the voice superframe and at least a synchronization frame can be received to achieve the reception of the voice superframe. Taking the data frame as an example, a general data frame also includes a header frame, a data portion and a trailer, the data portion is usually 60 ms, so that it is guaranteed that the data frame stays for at least 60 ms for this type of data frame to achieve the receiving of the data frame. To satisfy both of the above conditions, the residence time may be set to 360 msec. If the RSSI signal strength value of the channel is detected to be higher than the threshold value after switching to a communication channel, staying in the channel, taking the channel as the first channel, and staying in the channel for 360 milliseconds to receive voice frame data. And if the scanning of the plurality of channels does not detect valid service frame data, switching the channels again and circularly scanning. Here, the time interval for switching the current receiving node is not limited, and may be a time-consuming duration for switching a channel, or may be a self-defined receiving time interval.
Further, in this embodiment of the present disclosure, if three pieces of channel information are used when forwarding service frame data, the determining, according to the channel information, a second channel used by the current receiving node for forwarding includes:
and acquiring channel information used when the node sends the service frame data from the service frame data, and determining one channel from the two channels except the first channel according to the sequence of the channels used by the node as a second channel used by the current receiving node for forwarding.
It should be noted that the channel sequence used by the node refers to a frequency point code sequence used when the node sends the service frame data, and the communication channel for the current receiving node to forward the service frame data to the next node is selected according to the frequency point code sequence used when the node sends the service frame data. For example, the above three communication channels, i.e., 400.025MHz, 403.025MHz, and 410.025MHz, are described as corresponding to the bin codes 00, 01, and 10, respectively. With reference to fig. 5, for the first node initiating a call, the present invention selects one frequency (e.g., 400.025 MHz) of three channels to transmit, fills the used frequency point code number 00 to the first channel information field to transmit, and forwards the information after the information is received by other receiving nodes until the information is the final receiving node; if the service frame data received by the current receiving node has no intermediate node information, the current receiving node is proved to be the first forwarding node in the forwarding path, one communication channel except the last node used channel can be selected from the three communication channels to be used as the second channel of the current receiving node, and the used frequency point code number 01 is filled in the information field of the second channel; if the service frame data received by the current receiving node contains intermediate node information, the current receiving node is proved to be a second forwarding node in the forwarding path, the rest one of the three communication channels can be used as a second channel of the current receiving node, and the used frequency point code number 10 is filled into a third channel information field; if the service frame data received by the current receiving node contains two pieces of intermediate node information, the current receiving node is proved to be the third forwarding node in the forwarding path, the channel used in the first sequence is selected as the second channel, the frequency point code number 00 is filled in the information field of the first channel, and the information field of the second channel and the information field of the third channel can be removed at the same time, namely the use of the channel can be recycled; if the service frame data received by the current receiving node contains three pieces of intermediate node information, the current receiving node is proved to be a fourth forwarding node in the forwarding path, a communication channel except the channel used by the previous node is selected as a second channel of the current receiving node again, and the used frequency point code is filled in a second channel information field; and by analogy, selecting a corresponding channel from the three communication channels as a second channel according to the channel sequence used by the node, and filling the frequency point code number into the corresponding channel information field.
Further, in a disclosed embodiment the method further comprises: and judging whether the current receiving node is the final receiving node or not based on the service frame data, and if so, not forwarding the service frame data to other nodes. More channels, such as four communication channels, can also be used according to the use case.
In addition, with reference to fig. 4 and fig. 5, the embodiment of the present disclosure will be described in detail with respect to a transmission process of a signal in the narrowband ad hoc network structure shown in fig. 2.
In practical use, the calling type has two cases of single calling and group calling (i.e. according to the type of sending voice and data, the group calling can be received by all nodes in the coverage area, i.e. A/C/D/E/F/G/H/I nodes; the single calling can be received only by the appointed node). In the following, the embodiments of the present disclosure will be described by taking group call as an example.
First, the A/C/D/E/F/G/H/I nodes all initiate scanning, switching back and forth between the three channels. If the RSSI value detected in a certain channel is higher than the threshold value, the channel is locked, and voice/data are received.
As shown in FIG. 5, between the A/C/D/E/F/G/H/I nodes, when the I node needs to send a signal to the A node. The I node triggers a forwarding request, a request (forwarded req) is sent to the H node in a time slot 2, after the H node receives the request (forwarded req) sent by the I node in the time slot 2, if the H node is in a Busy state, a Busy tone (NACK _ Busy) is fed back, if the H node is in an idle state or is idle, an ACK is fed back for handshaking, and H-G, G-F. After receiving the feedback ACK, the I node starts to send a head frame (LC) of the voice frame to the H and H-G-F-E nodes to forward in sequence, and fills the passing node ID and the used channel information into the head frame byte of the corresponding voice frame in the forwarding process. In addition, after each node receives the voice frame, it will judge whether it is a group call, if it is, it will make out the voice (i.e. let the user know), if it needs to forward, it will match the forwarding mark of the source address (i.e. configure the head frame of the voice frame), start the transmitting process to forward, if it does not need to forward, it will end. If the single call of the node is judged, the sound is played, if the single call of the node needs to be forwarded, the forwarding mark of the source address is matched, the transmitting flow is started to be forwarded, and if the single call of the node does not need to be forwarded, the forwarding is finished.
In the embodiment of the disclosure, each interphone can support a double phase-locked loop, that is, a single interphone can transmit and receive simultaneously, and the time delay is short. In addition, in the embodiment of the present disclosure, each node starts scanning, switches among three communication channels (that is, the frequency 400.025MHz, the frequency 403.025MHz, and the frequency 410.025MHz, and the corresponding frequency point codes are 00, 01, and 10, respectively), and can detect signals in the three communication channels. In addition, as shown in table 2, according to the JUMP frequency field in the voice frame header, the embodiments of the present disclosure can know the frequency point codes used by the first nodes, so as to select a communication channel used when the node forwards to the next node, thereby avoiding channel collision, and according to the Logical Link ID (LLID) field in the voice frame header, can know the forwarding path information, thereby avoiding the occurrence of a self-loop situation, and improving the call completing rate to the maximum extent. In addition, the embodiment of the disclosure can meet the requirement of efficient forwarding of the multi-hop signal in the narrowband ad hoc network only by using three frequency points (00, 01, 10 codes).
The data communication method provided by the embodiment of the disclosure receives service frame data sent by a previous node based on a first channel; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data; judging whether the current receiving node needs to be forwarded or not based on the service frame data; if the forwarding is needed, determining a second channel used by the current receiving node for forwarding according to the channel information, wherein the first channel and the second channel are different communication channels; and forwarding the service frame data received by the current receiving node to the next node by using the second channel. The scheme of the embodiment of the invention can determine the communication channel for realizing the forwarding of the service frame data point to point between the intermediate nodes in the narrow-band wireless network, reasonably distribute the communication channel resources, realize the real-time forwarding processing of the service frame data and be more efficient.
The embodiment of the present disclosure further provides a second data communication method, which is applied to a communication device on a trigger side, and as shown in fig. 6, the method includes:
step 601: generating service frame data according to the triggering condition parameters; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
step 602: determining a communication channel between the trigger node and the next receiving node, wherein the communication channel between the trigger node and the next receiving node is taken as a first channel;
step 603: and sending the service frame data to a next receiving node by using the first channel.
It should be noted that the embodiments of the present disclosure can be applied to a communication device on a trigger side. The communication device at the triggering side can be applied to a narrow-band wireless network, a plurality of nodes are connected and communicated to form a network topology structure, and two nodes beyond the communication distance forward services through other receiving nodes (namely intermediate nodes) in the network topology structure, so that long-distance communication is realized, and the communication distance is expanded. The method of the embodiment of the invention can determine the communication channel for realizing the forwarding of the service frame data point to point between the intermediate nodes in the narrow-band wireless network, reasonably distribute the communication channel resources, realize the real-time forwarding processing of the service frame data and be more efficient. Optionally, the method according to the embodiment of the present disclosure is applied to the trigger node, and the service frame data is not forwarded through the intermediate node, so that the intermediate node information in the service frame data sent by the node may be a null value.
Further, the trigger node in the embodiment of the present disclosure also has a dual phase-locked loop function, that is, a single node can receive data and transmit data simultaneously. Further, the header frame of the service frame data in the embodiment of the present disclosure includes 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence. Optionally, the number of the at least one 8-bit intermediate node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit intermediate node information is used to carry four intermediate node address information through which a service is forwarded, and the four 2-bit channel information is used to carry a frequency point code number adopted when the service frame data is sent by the node.
Generally, the service frame data includes a header, a data portion and an end, where the header of the service frame data is transmitted first, the data portion of the service frame data is transmitted next, and the end of the service frame data is transmitted last, which represents the termination of data transmission. With reference to table 2, the implementation manner of the service frame data in the embodiment of the present disclosure is the same as that of the first data communication method, and is not described in detail again.
Further, in an embodiment, determining a communication channel between the trigger node and the next receiving node includes:
scanning a plurality of channels in a circulating manner, and detecting whether the plurality of channels are in an idle state or not in sequence;
if one of the channels is detected to be in an idle state, locking the channel as a first channel; wherein the plurality of channels is at least three channels.
In specific implementation, in order to save communication channel resources, the scheme of the embodiment of the present disclosure is implemented by using the least communication channel resources, a plurality of channels may be set as three communication channels, that is, three channel information are used when forwarding service frame data, and communication frequencies of the three communication channels are within a narrow-band communication operating frequency range, which is not limited. For example, the communication frequencies of the three communication channels may be set to 400.025MHz, 403.025MHz, and 410.025MHz, and the numbers of the frequency points defining the frequencies are 00, 01, and 10, respectively. The trigger node can adopt a mode of sequentially detecting the channels, namely sequentially detecting the states of the channels according to the sequence of the channel 1, the channel 2 and the channel 3, if the states of the channels are free, the channels are used for sending voice, and if the channels are busy, the next channel is switched to send voice. The method can also be understood as sequential order searching, and switching is carried out when the detected channel is busy, and switching is carried out to the next channel; detecting that the channel is free, then transmitting on the channel.
Further, in an embodiment, generating traffic frame data based on the trigger condition parameter and the next receiving node includes:
acquiring the address ID and the destination node ID of the trigger node based on the trigger condition parameters;
respectively filling the trigger node address ID and the destination node ID into source address information and destination address information of a head frame of service frame data;
and generating service frame data of the trigger node.
The data communication method provided by the embodiment of the disclosure generates service frame data according to the triggering condition parameters; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data; determining a communication channel between the trigger node and the next receiving node, wherein the communication channel between the trigger node and the next receiving node is taken as a first channel; and sending the service frame data to a next receiving node by using the first channel. The scheme of the embodiment of the invention can reasonably distribute communication channel resources in a narrow-band wireless network, realizes real-time processing of service frame data and is more efficient.
In order to implement the method of the present disclosure, a first communication apparatus is further provided in the present disclosure, where a communication channel between the apparatus and a previous node is a first channel, and a communication channel between the apparatus and a next node is a second channel, as shown in fig. 7, a communication apparatus 700 includes: a receiving unit 701, a determining unit 702, and a transmitting unit 703; wherein,
a receiving unit 701, configured to receive service frame data sent by a previous node based on a first channel; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
a determining unit 702, configured to determine whether a current receiving node needs to be forwarded based on the service frame data; if the forwarding is needed, determining a second channel used by the current receiving node for forwarding according to the channel information, wherein the first channel and the second channel are different communication channels;
a sending unit 703, configured to forward, by using the second channel, the service frame data received by the current receiving node to the next node.
In an embodiment, the apparatus further comprises a scanning unit, wherein:
the scanning unit is used for circularly scanning a plurality of channels and sequentially detecting whether effective service frame data exists in the plurality of channels; wherein the plurality of channels is at least three channels; and if detecting that one of the channels has valid service frame data, staying in the channel, and acquiring the service frame data sent by the previous node from the first channel by taking the channel as the first channel.
In practical applications, the determining unit 702 may be implemented by a processor in the first communication device, and the receiving unit 701 and the transmitting unit 703 may be implemented by a radio frequency transceiver in the first communication device.
It should be noted that: the above-mentioned apparatus provided in the above-mentioned embodiment is only exemplified by the division of the above-mentioned program units when performing operations, and in practical applications, the above-mentioned processing allocation may be completed by different program units according to needs, that is, the internal structure of the terminal is divided into different program units to complete all or part of the above-mentioned processing. In addition, the first communication device provided in the above embodiments and the first data communication method embodiment belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
In order to implement the method of the present disclosure, an embodiment of the present disclosure further provides a second communication device, where a communication channel between the present device and a next node is a first channel, and as shown in fig. 8, a communication device 800 includes: a generation unit 801, a determination unit 802, and a transmission unit 803; wherein,
a generating unit 801, configured to generate service frame data according to the trigger condition parameter; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
a determining unit 802, configured to determine a communication channel between the current trigger node and a next receiving node, where the communication channel between the current trigger node and the next receiving node is a first channel;
a sending unit 803, configured to send the service frame data to a next receiving node by using the first channel.
In an embodiment, the apparatus further comprises a scanning unit, wherein:
the scanning unit is used for circularly scanning a plurality of channels and sequentially detecting whether the plurality of channels are in an idle state; if one of the channels is detected to be in an idle state, locking the channel as a first channel; wherein the plurality of channels is at least three channels.
In practical applications, the generating unit 801 and the determining unit 802 may be implemented by a processor in the second communication device, and the transmitting unit 803 may be implemented by a radio frequency transceiver unit in the second communication device.
It should be noted that: the above-mentioned apparatus provided in the above-mentioned embodiment is only exemplified by the division of the above-mentioned program units when performing operations, and in practical applications, the above-mentioned processing allocation may be completed by different program units according to needs, that is, the internal structure of the terminal is divided into different program units to complete all or part of the above-mentioned processing. In addition, the second communication device provided in the above embodiments and the second data communication method embodiment belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
The first communication device and the second communication device in the embodiments of the present disclosure may be a handheld interphone, a handheld terminal device, a relay station, or the like. The first communication device and the second communication device may be implemented in the same communication device, as shown in fig. 9, the handheld interphone may include the first communication device and the second communication device, and the steps of implementing the first data communication method and the second data communication method are described above, and details of implementation processes thereof are shown in the method embodiment and are not described herein again.
In order to implement the method of the embodiment of the present disclosure, a narrowband ad hoc network system includes a trigger side communication device and at least one receiving side communication device, wherein: the receiving-side communication apparatus executes the steps of the first data communication method as described above; the trigger-side communication device executes the steps of the second data communication method as described above. The specific implementation process is described in detail in the method embodiment, and is not described herein again.
Based on the hardware implementation of the program unit, in order to implement the method of the embodiments of the present disclosure, the embodiments of the present disclosure also provide an electronic device (computer device). Specifically, in one embodiment, the computer device may be a terminal, and its internal structure diagram may be as shown in fig. 10. The computer apparatus includes a processor a01, a network interface a02, a display screen a04, an input device a05, and a memory (not shown in the figure) connected through a system bus. Wherein processor a01 of the computer device is used to provide computing and control capabilities. The memory of the computer device comprises an internal memory a03 and a non-volatile storage medium a 06. The nonvolatile storage medium a06 stores an operating system B01 and a computer program B02. The internal memory a03 provides an environment for the operation of the operating system B01 and the computer program B02 in the nonvolatile storage medium a 06. The network interface a02 of the computer device is used for communication with an external terminal through a network connection. The computer program is executed by the processor a01 to implement the method of any of the above embodiments. The display screen a04 of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device a05 of the computer device may be a touch layer covered on the display screen, a button, a trackball or a touch pad arranged on a casing of the computer device, or an external keyboard, a touch pad or a mouse.
Those skilled in the art will appreciate that the architecture shown in fig. 10 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The device provided by the embodiment of the present disclosure includes a processor, a memory, and a program stored in the memory and capable of running on the processor, and when the processor executes the program, the method of any one of the above embodiments is implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. Information may be computer readable instructions, data structures, units of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include transitory computer readable media (transmyedia) such as modulated data signals and carrier waves.
It will be appreciated that the memory of embodiments of the disclosure may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memories described in the embodiments of the present disclosure are intended to comprise, without being limited to, these and any other suitable types of memory.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (26)

1. A data communication method, which is applied to a narrowband communication apparatus on a receiving side, and uses a communication channel between a current receiving node and a previous node as a first channel, and uses a communication channel between the current receiving node and a next node as a second channel, the method comprising:
receiving service frame data sent by a previous node based on a first channel; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
judging whether the current receiving node needs to be forwarded or not based on the service frame data; if the forwarding is needed, determining a second channel used by the current receiving node for forwarding according to the channel information, wherein the first channel and the second channel are different communication frequencies;
and forwarding the service frame data received by the current receiving node to the next node by using the second channel.
2. The method of claim 1, wherein the header frame of the traffic frame data includes 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence.
3. The method according to claim 2, wherein the number of the at least one 8-bit intermediate node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit intermediate node information is used to carry four intermediate node address information through which a service is forwarded, and the four 2-bit channel information is used to carry a frequency point code number adopted when the service frame data is sent by the node.
4. The method of claim 1, wherein before receiving the traffic frame data transmitted from the previous node based on the first channel, the method further comprises:
scanning a plurality of channels in a circulating manner, and detecting whether effective service frame data exist in the plurality of channels in sequence; wherein the plurality of channels is at least three channels;
and if detecting that one of the channels has valid service frame data, staying in the channel, and acquiring the service frame data sent by the previous node from the first channel by taking the channel as the first channel.
5. The method of claim 1, wherein when three pieces of channel information are used in forwarding service frame data, the determining, according to the channel information, a second channel used by a current receiving node for forwarding comprises:
and acquiring channel information used when the node sends the service frame data from the service frame data, and determining one channel from the two channels except the first channel according to the sequence of the channels used by the node as a second channel used by the current receiving node for forwarding.
6. The method of claim 1, wherein the current receiving node has a dual phase-locked loop function, and receives service frame data sent by a previous node as first service frame data and service frame data sent to a next node as second service frame data, and comprises:
when first service frame data sent by a previous node is received by using the first channel, acquiring source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data from the first service frame data;
and when the second channel is used for forwarding the second service frame data to the next node, the first service frame data is filled according to the second channel, and the second service frame data forwarded to the next node is obtained.
7. The method of claim 6, wherein obtaining source address information, destination address information, intermediate node information, and channel information used by the node to transmit the service frame data from the first service frame data comprises:
acquiring a source address ID from source address information of a first service frame data header frame;
acquiring a destination address ID from destination address information of a first service frame data header frame;
acquiring an intermediate node ID from intermediate node information of a first service frame data head frame to acquire an intermediate node forwarding path;
and acquiring the code of the frequency point used when the node sends the service frame data from the channel information of the first service frame data header frame so as to acquire the sequence of the channel used by the node.
8. The method of claim 6, wherein the padding the first service frame data according to the second channel to obtain second service frame data to be forwarded to a next node comprises:
sequentially filling the address information of the current receiving node into the intermediate node information of the first service frame data head frame;
and sequentially filling the second channel information into the channel information of the first service frame data head frame to obtain second service frame data forwarded to a next node.
9. The method of claim 1, further comprising:
and judging whether the current receiving node is the final receiving node or not based on the service frame data, and if so, not forwarding the service frame data to other nodes.
10. A narrowband communication apparatus, wherein a communication channel between the apparatus and a previous node is a first channel, and a communication channel between the apparatus and a next node is a second channel, the apparatus comprising:
a receiving unit, configured to receive service frame data sent by an upper node based on a first channel; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
a determining unit, configured to determine whether a current receiving node needs to be forwarded based on the service frame data; if the forwarding is needed, determining a second channel used by the current receiving node for forwarding according to the channel information, wherein the first channel and the second channel are different communication frequencies;
and the sending unit is used for forwarding the service frame data received by the current receiving node to the next node by using the second channel.
11. The apparatus of claim 10, wherein the header frame of the traffic frame data comprises 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence.
12. The apparatus according to claim 11, wherein the number of the at least one 8-bit middle node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit middle node information is used to carry four middle node address information through which a service is forwarded, and the four 2-bit channel information is used to carry a frequency point code used when the bearer node sends service frame data.
13. The apparatus of claim 10, wherein when three channel information are used in forwarding service frame data, said determining the second channel used by the current receiving node for forwarding according to the channel information comprises:
and acquiring channel information used when the node sends the service frame data from the service frame data, and determining one channel from the two channels except the first channel according to the sequence of the channels used by the node as a second channel used by the current receiving node for forwarding.
14. The apparatus of claim 10, further comprising a scanning unit, wherein:
the scanning unit is used for circularly scanning a plurality of channels and sequentially detecting whether effective service frame data exists in the plurality of channels; wherein the plurality of channels is at least three channels; and if detecting that one of the channels has valid service frame data, staying in the channel, and acquiring the service frame data sent by the previous node from the first channel by taking the channel as the first channel.
15. A data communication method, applied to a narrowband communication apparatus on a trigger side, the method comprising:
generating service frame data according to the triggering condition parameters; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
determining the communication frequency of the trigger node and the next receiving node, and taking the communication frequency of the trigger node and the next receiving node as a first channel;
and sending the service frame data to a next receiving node by using the first channel.
16. The method of claim 15, wherein the header frame of the traffic frame data includes 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence.
17. The method according to claim 16, wherein the number of the at least one 8-bit intermediate node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit intermediate node information is used to carry four intermediate node address information through which the service is forwarded, and the four 2-bit channel information is used to carry a frequency point code used when the service frame data is sent by the node.
18. The method of claim 15, wherein determining the communication channel between the triggering node and the next receiving node comprises:
scanning a plurality of channels in a circulating manner, and detecting whether the plurality of channels are in an idle state or not in sequence;
if one of the channels is detected to be in an idle state, locking the channel as a first channel; wherein the plurality of channels is at least three channels.
19. The method of claim 15, wherein generating traffic frame data based on the trigger condition parameter and the next receiving node comprises:
acquiring the address ID and the destination node ID of the trigger node based on the trigger condition parameters;
respectively filling the trigger node address ID and the destination node ID into source address information and destination address information of a head frame of service frame data;
and generating service frame data of the trigger node.
20. A narrowband communication apparatus using a first channel as a communication channel between the apparatus and a next node, the apparatus comprising:
the generating unit is used for generating service frame data according to the triggering condition parameters; the service frame data comprises source address information, destination address information, intermediate node information and channel information used when the node sends the service frame data;
the determining unit is used for determining the communication frequency of the triggering node and the next receiving node, and the communication frequency of the triggering node and the next receiving node is taken as a first channel;
and the sending unit is used for sending the service frame data to a next receiving node by using the first channel.
21. The apparatus of claim 20, wherein the header frame of the traffic frame data comprises 8 bits of source address information, 8 bits of destination address information, at least one 8 bits of intermediate node information, and at least one 2 bits of channel information; the at least one 8-bit intermediate node information is used for bearing intermediate node address information through which the service is forwarded so as to record an intermediate node forwarding path, and the at least one 2-bit channel information is used for bearing a frequency point code number adopted when the service frame data is sent by the node so as to record a node use channel sequence.
22. The apparatus according to claim 21, wherein the number of the at least one 8-bit middle node information is four, the number of the at least one 2-bit channel information is four, the four 8-bit middle node information is used to carry four middle node address information through which a service is forwarded, and the four 2-bit channel information is used to carry a frequency point code used when the service frame data is sent by the node.
23. The apparatus of claim 20, further comprising a scanning unit, wherein:
the scanning unit is used for circularly scanning a plurality of channels and sequentially detecting whether the plurality of channels are in an idle state; if one of the channels is detected to be in an idle state, locking the channel as a first channel; wherein the plurality of channels is at least three channels.
24. A narrowband ad-hoc network system comprising a trigger-side narrowband communication means and at least one receiving-side narrowband communication means, wherein:
the receiving-side narrowband communication device performs the steps of the method of any of claims 1 to 9;
the trigger-side narrowband communication device performs the steps of the method of any of claims 15 to 19.
25. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor; wherein,
the processor is configured to perform the steps of the method of any one of claims 1 to 9 and/or to perform the steps of the method of any one of claims 15 to 19 when running the computer program.
26. A storage medium having a computer program stored thereon, wherein the computer program, when being executed by a processor, is adapted to carry out the steps of the method of any one of claims 1 to 9 and/or the steps of the method of any one of claims 15 to 19.
CN202110846125.6A 2021-07-26 2021-07-26 Data communication method, device, system, electronic equipment and storage medium Active CN113301512B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110846125.6A CN113301512B (en) 2021-07-26 2021-07-26 Data communication method, device, system, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110846125.6A CN113301512B (en) 2021-07-26 2021-07-26 Data communication method, device, system, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113301512A CN113301512A (en) 2021-08-24
CN113301512B true CN113301512B (en) 2021-11-05

Family

ID=77331072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110846125.6A Active CN113301512B (en) 2021-07-26 2021-07-26 Data communication method, device, system, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113301512B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115065947A (en) * 2021-09-13 2022-09-16 北京市万格数码通讯科技有限公司 Multimode intelligent recording and call-robbing dual-network fire rescue interphone based on public network
CN114495315A (en) * 2021-12-28 2022-05-13 杭州电子科技大学 Injection molding machine real-time data recording visualization method and system
CN114793351B (en) * 2022-06-21 2022-11-18 广州慧睿思通科技股份有限公司 Mobile ad hoc network communication method, device, system and computer storage medium
CN115550307B (en) * 2022-09-20 2024-10-11 中国银行股份有限公司 Business processing method, business end, user end and system based on block chain

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864412A (en) * 2017-09-29 2018-03-30 大唐终端技术有限公司 A kind of arrowband intercommunication terminal multi-hop remote communication method and system
CN112423253A (en) * 2020-10-13 2021-02-26 北京云联慧通科技有限公司 Narrow-band ad hoc network communication protocol applied to wireless electronic thermometer

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8184656B2 (en) * 2007-10-02 2012-05-22 Microsoft Corporation Control channel negotiated intermittent wireless communication
US20130029712A1 (en) * 2011-07-26 2013-01-31 Samsung Electronics Co., Ltd. Device/service discovery and channel access control for proximity device-to-device wireless communication
US20160081005A1 (en) * 2014-09-17 2016-03-17 Qualcomm Incorporated Route formation and message transmission in a data link group over multiple channels
WO2019136607A1 (en) * 2018-01-09 2019-07-18 Oppo广东移动通信有限公司 Routing method for relay and communication node
CN108289288A (en) * 2018-01-22 2018-07-17 上海晶曦微电子科技有限公司 A kind of method, apparatus of communication, communication equipment and storage medium
CN111200827B (en) * 2018-11-19 2023-03-21 华硕电脑股份有限公司 Network system, wireless network extender and network supply terminal
CN109587827B (en) * 2019-01-18 2021-08-03 哈尔滨工业大学 Multimode multi-pair D2D communication method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107864412A (en) * 2017-09-29 2018-03-30 大唐终端技术有限公司 A kind of arrowband intercommunication terminal multi-hop remote communication method and system
CN112423253A (en) * 2020-10-13 2021-02-26 北京云联慧通科技有限公司 Narrow-band ad hoc network communication protocol applied to wireless electronic thermometer

Also Published As

Publication number Publication date
CN113301512A (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN113301512B (en) Data communication method, device, system, electronic equipment and storage medium
US8027324B2 (en) Self-configuring, self-optimizing wireless local area network system
US5396496A (en) Unused time slot detection and selection in a mobile radio communication system
KR101524027B1 (en) Coordination in wireless networks having devices with different physical layer transmission schemes
US7417998B2 (en) Wireless network device and communication method using the wireless network device
CN113746585B (en) Time service method and communication device
CN107318141B (en) Data transmission method, equipment and system
KR20050071610A (en) Beacon channel for frequency hopping wireless devices
MX2009002655A (en) Selecting a leader node for an ad hoc network based on services.
EP1601144B1 (en) Method for communication between coordinator-based wireless networks
US20060092877A1 (en) Data transport in GSM system
KR20070048628A (en) System and method for resolving contention among applications requiring data connections between a mobile communications device and a wireless network
CN113613334B (en) Method and apparatus for wireless communication
JP3034281B2 (en) Wireless communication system
JP3313370B2 (en) Mobile communication system and fixed and mobile units used in this system
US20230292364A1 (en) Bandwidth resource multiplexing method and apparatus, communication device and storage medium
US20160007335A1 (en) Slot-based d2d communication method and apparatus
JP2019519955A (en) Communication method, network equipment and terminal equipment
US6477378B1 (en) Method and apparatus to limit frequency bands used by a low power radio frequency device
CN113949994B (en) Proximity service communication method, management network element, terminal equipment and communication system
JP3533353B2 (en) Handover method in a mobile station for PHS
CN116195281A (en) Wireless communication method, communication device and communication system
JP2023039736A (en) Communication device, communication method, and program
JP2001268624A (en) Base station controller and mobile communication system
WO2024109035A1 (en) Multi-link concurrent connection method and apparatus, and device

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Data communication method, apparatus, system, electronic device and storage medium

Effective date of registration: 20220809

Granted publication date: 20211105

Pledgee: China Co. truction Bank Corp Guangzhou Panyu branch

Pledgor: Guangzhou huiruisitong Technology Co.,Ltd.

Registration number: Y2022440000191

PP01 Preservation of patent right
PP01 Preservation of patent right

Effective date of registration: 20221228

Granted publication date: 20211105

PD01 Discharge of preservation of patent
PD01 Discharge of preservation of patent

Date of cancellation: 20240327

Granted publication date: 20211105