CN114866607A - Networking transmission method and device based on voice coding technology - Google Patents
Networking transmission method and device based on voice coding technology Download PDFInfo
- Publication number
- CN114866607A CN114866607A CN202210471019.9A CN202210471019A CN114866607A CN 114866607 A CN114866607 A CN 114866607A CN 202210471019 A CN202210471019 A CN 202210471019A CN 114866607 A CN114866607 A CN 114866607A
- Authority
- CN
- China
- Prior art keywords
- equipment
- sub
- audio data
- preset format
- networking
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 136
- 230000006855 networking Effects 0.000 title claims abstract description 109
- 238000000034 method Methods 0.000 title claims abstract description 82
- 238000005516 engineering process Methods 0.000 title claims abstract description 32
- 238000012546 transfer Methods 0.000 claims abstract description 10
- 239000003795 chemical substances by application Substances 0.000 claims description 95
- 239000003999 initiator Substances 0.000 claims description 33
- 230000008569 process Effects 0.000 claims description 25
- 230000004044 response Effects 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 8
- 230000009471 action Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L19/00—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
- G10L19/04—Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
- G10L19/16—Vocoder architecture
- G10L19/173—Transcoding, i.e. converting between two coded representations avoiding cascaded coding-decoding
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The application relates to a networking transmission method and device based on a voice coding technology, which relate to the technical field of data transmission, wherein the networking comprises a main device and at least 2 sub-devices, and the method comprises the following steps: when the equipment distance between the sub-equipment as the transmission destination and the main equipment is not larger than the equipment distance threshold value, the main equipment converts the control instruction and the associated data content into audio data in a preset format and sends the audio data to the sub-equipment as the transmission destination; when the distance between the sub-device as the transmission destination and the main device is larger than the device distance threshold value, the main device converts the control command and the associated data content into preset format audio data, and transmits the preset format audio data to the sub-device as the transmission destination by means of at least 1 sub-device for transfer. The data transmission method and the data transmission device are based on the voice coding technology, data needing to be transmitted are coded, transmission work among equipment networks is achieved, electromagnetic interference is avoided, and guarantee is provided for stability and reliability of data transmission.
Description
Technical Field
The present application relates to the field of data transmission technologies, and in particular, to a networking transmission method and apparatus based on a voice coding technology.
Background
With the rapid development of the internet of things, the internet of everything is in the interconnected age. And all walks of the world acquire equipment data through a network and perform unified management and analysis on the data. The current internet of things system is mainly based on network transmission modes such as network cables, 4G, Wi-Fi and Bluetooth, and each internet of things device is provided with a network card device to access the internet of things system.
However, in some special closed use environments, electromagnetic interference is extremely large, and it is inconvenient to access an electromagnetic interference prevention network cable, so that the conventional wireless network communication mode is difficult to ensure data transmission, daily work of data transmission is affected, and daily operation of the internet of things is delayed.
In order to avoid strong electromagnetic interference, a new networking transmission technology is provided so as to meet the current use requirement.
Disclosure of Invention
The application provides a networking transmission method and device based on a voice coding technology, and the method and device are used for coding data to be transmitted based on the voice coding technology, so that transmission work among equipment networks is realized, electromagnetic interference is avoided, and guarantee is provided for stability and reliability of data transmission.
In a first aspect, the present application provides a networking transmission method based on a vocoding technology, where the networking includes a master device and at least 2 slave devices, and the method includes the following steps:
when the device distance between the sub-device as a transmission destination and the main device is not larger than a device distance threshold value, the main device converts the control command and the associated data content into preset format audio data and sends the preset format audio data to the sub-device as the transmission destination;
when the distance between the sub-equipment serving as the transmission destination and the main equipment is larger than an equipment distance threshold value, the main equipment converts the control command and the associated data content into preset format audio data, and transmits the preset format audio data to the sub-equipment serving as the transmission destination by means of at least 1 sub-equipment for transfer.
Specifically, when the number of the child devices used for the relay is greater than 1, the device distance between the child devices used for the relay is not greater than a device distance threshold, the device distance between the first child device used for the relay and the master device is not greater than the device distance threshold, and the device distance between the last child device used for the relay and the child device serving as the transmission destination is not greater than the device distance threshold.
Specifically, when the number of the child devices for relay is 1, the device distance between the child device for relay and the master device and the device distance between the child device as the transmission destination and the master device are not greater than the device distance threshold.
Specifically, when the master device converts the control command and the associated data content into audio data in a preset format and transmits the audio data to the slave device serving as a transmission destination by means of 1 slave device for relay, the method includes the following steps:
the main equipment converts the control instruction and the associated data content into first preset format audio data;
the sub-equipment for transferring receives the audio data in the first preset format, converts the audio data into audio data in a second preset format, and transfers the audio data to the sub-equipment serving as a transmission destination; wherein,
the first preset format audio data and the second preset format audio data comprise control instructions, associated data contents, an initiator ID, a destination ID, a sending agent ID and a receiving agent ID;
the initiator ID and the sending agent ID in the first preset format audio data are the device ID of the master device, the destination ID is the device ID of the child device of the transmission destination, and the receiving agent ID is the device ID of the child device for relay;
the initiator ID in the second preset format audio data is the device ID of the master device, the destination ID is the device ID of the child device of the transmission destination, the receiving agent ID is the device ID of the child device of the transmission destination, and the sending agent ID is the device ID of the child device for relay.
Specifically, the preset format audio data includes a control instruction, associated data content, an initiator ID, a destination ID, a sending agent ID, and a receiving agent ID; wherein,
the initiator ID is a master ID;
the destination ID is a sub-device ID of a destination corresponding to the control instruction;
the sending agent ID is a main equipment ID or a sub-equipment ID which actually sends the audio data with the preset format;
and the receiving agent ID is the ID of the sub-equipment which actually receives the audio data with the preset format.
Specifically, the sub-device monitors the audio data in the preset format in real time, and identifies a destination ID or a receiving agent ID of the audio data in the preset format;
and when the destination ID or the receiving agent ID is consistent with the equipment ID of the sub-equipment, the sub-equipment processes the audio data in the preset format, otherwise, the audio data in the preset format is discarded.
Further, the method further includes an equipment networking process, and the equipment networking process includes the following steps:
the equipment judges whether the equipment is the main equipment or the sub-equipment according to the equipment ID of the equipment;
if the sub-device is the master device, waiting for receiving the networking application transmitted by the sub-device;
if the sub-equipment is the sub-equipment, checking whether the sub-equipment is networked, and if the sub-equipment is not networked, sending a networking application;
and the master equipment receives the networking application, records the ID of the corresponding sub-equipment and feeds back a networking response to the corresponding sub-equipment.
Specifically, the device ID of the master device is 0;
the device IDs of the child devices are all greater than 0.
Specifically, the master device is configured with a forwarding list;
the forwarding list records the device ID of the sub-device with the device distance not greater than the device distance threshold, and also records the device ID of the sub-device for transferring corresponding to the sub-device with the device distance greater than the device distance threshold.
In a second aspect, the present application provides a networking transmission device based on a voice coding technology, the device includes:
the first networking transmission module is used for controlling the main equipment to convert a control instruction and associated data content into audio data in a preset format and send the audio data to the sub equipment serving as a transmission destination when the equipment distance between the sub equipment serving as the transmission destination and the main equipment is not larger than an equipment distance threshold value;
and the second networking transmission module is used for controlling the main equipment to convert the control instruction and the associated data content into audio data in a preset format when the equipment distance between the sub-equipment serving as the transmission destination and the main equipment is larger than an equipment distance threshold value, and transmitting and sending the audio data to the sub-equipment serving as the transmission destination by means of at least 1 piece of sub-equipment for transferring.
Specifically, when the number of the child devices for relay is greater than 1, the device distance between the child devices for relay is not greater than a device distance threshold, the device distance between the first child device for relay and the master device is not greater than the device distance threshold, and the device distance between the last child device for relay and the child device serving as the transmission destination is not greater than the device distance threshold.
Specifically, when the number of the child devices for relay is 1, the device distance between the child device for relay and the master device and the device distance between the child device as the transmission destination and the master device are not greater than the device distance threshold.
Specifically, the second networking transmission module is further configured to control the master device to convert the control instruction and the associated data content into audio data in a first preset format;
the second networking transmission module is also used for controlling the sub-equipment for transferring to receive the audio data in the first preset format, converting the audio data to generate audio data in a second preset format, and forwarding the audio data to the sub-equipment serving as a transmission destination; wherein,
the first preset format audio data and the second preset format audio data comprise control instructions, associated data contents, an initiator ID, a destination ID, a sending agent ID and a receiving agent ID;
the initiator ID and the sending agent ID in the first preset format audio data are the device ID of the master device, the destination ID is the device ID of the child device of the transmission destination, and the receiving agent ID is the device ID of the child device for relay;
the initiator ID in the second preset format audio data is the device ID of the master device, the destination ID is the device ID of the child device of the transmission destination, the receiving agent ID is the device ID of the child device of the transmission destination, and the sending agent ID is the device ID of the child device for relay.
Specifically, the preset format audio data includes a control instruction, associated data content, an initiator ID, a destination ID, a sending agent ID, and a receiving agent ID; wherein,
the initiator ID is a master ID;
the destination ID is a sub-device ID of a destination corresponding to the control instruction;
the sending agent ID is a main equipment ID or a sub-equipment ID which actually sends the audio data with the preset format;
and the receiving agent ID is the ID of the sub-equipment which actually receives the audio data with the preset format.
Specifically, the sub-device monitors the audio data in the preset format in real time, and identifies a destination ID or a receiving agent ID of the audio data in the preset format;
and when the destination ID or the receiving agent ID is consistent with the equipment ID of the sub-equipment, the sub-equipment processes the audio data in the preset format, otherwise, the audio data in the preset format is discarded.
Further, the device also comprises a device networking module;
the equipment networking module is used for controlling the equipment to judge that the equipment is the main equipment or the sub-equipment according to the equipment ID of the equipment;
the device networking module is also used for controlling the main device to wait for receiving the networking application transmitted by the sub-device when the device is the main device;
the equipment networking module is also used for controlling the sub-equipment to check whether the equipment is networked or not when the equipment is the sub-equipment, and sending a networking application if the equipment is not networked;
the device networking module is further used for controlling the main device to receive the networking application, record the ID of the corresponding sub-device and feed back a networking response to the corresponding sub-device.
Specifically, the device ID of the master device is 0;
the device IDs of the child devices are all greater than 0.
Specifically, the master device is configured with a forwarding list;
the forwarding list records the device ID of the sub-device with the device distance not greater than the device distance threshold, and also records the device ID of the sub-device for transferring corresponding to the sub-device with the device distance greater than the device distance threshold.
The beneficial effect that technical scheme that this application provided brought includes:
the data transmission method and the data transmission device are based on the voice coding technology, data needing to be transmitted are coded, transmission work among equipment networks is achieved, electromagnetic interference is avoided, and guarantee is provided for stability and reliability of data transmission.
Drawings
Interpretation of terms:
ID: identity Document, identification number.
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a method for networking transmission based on vocoding techniques provided in an embodiment of the present application;
fig. 2 is a schematic diagram of voice encoding in a networking transmission method based on a voice encoding technology provided in an embodiment of the present application;
fig. 3 is a schematic diagram of voice conversion in a networking transmission method based on a voice coding technique provided in an embodiment of the present application;
fig. 4 is a schematic diagram of a data format in a networking transmission method based on a voice coding technique provided in an embodiment of the present application;
fig. 5 is a schematic networking diagram in a networking transmission method based on a vocoding technique provided in an embodiment of the present application;
fig. 6 is a schematic diagram of a networking flow in a networking transmission method based on a vocoding technique provided in an embodiment of the present application;
fig. 7 is a schematic diagram of a data transmission flow of a master device in a networking transmission method based on a vocoding technique provided in an embodiment of the present application;
fig. 8 is a schematic data transmission flow diagram of a sub-device in a networking transmission method based on a sound coding technique provided in an embodiment of the present application;
fig. 9 is a block diagram of a networking transmission device based on a vocoding technique provided in an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The embodiment of the application provides a networking transmission method and device based on a voice coding technology, and the method and device are based on the voice coding technology, encode processing is carried out on data needing to be transmitted, transmission work among equipment networking is achieved, electromagnetic interference is avoided, and guarantee is provided for stability and reliability of data transmission.
In order to achieve the technical effects, the general idea of the application is as follows:
a networking transmission method based on voice coding technology, the networking includes a main device and at least 2 sub-devices, the method includes the following steps:
s1, identifying the equipment distance between the main equipment and the sub equipment as the transmission destination;
s2, when the distance between the sub-equipment as the transmission destination and the main equipment is not larger than the equipment distance threshold value, the main equipment converts the control command and the associated data content into preset format audio data and sends the preset format audio data to the sub-equipment as the transmission destination;
and S3, when the distance between the sub-device as the transmission destination and the main device is larger than the device distance threshold value, the main device converts the control command and the associated data content into preset format audio data, and transmits the preset format audio data to the sub-device as the transmission destination by means of at least 1 sub-device for transfer.
Embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
In a first aspect, referring to fig. 1 to 8, an embodiment of the present application provides a networking transmission method based on a vocoding technology, where networking includes a master device and at least 2 sub devices, and the method includes the following steps:
s1, identifying the equipment distance between the main equipment and the sub equipment as the transmission destination;
s2, when the distance between the sub-equipment as the transmission destination and the main equipment is not larger than the equipment distance threshold value, the main equipment converts the control command and the associated data content into preset format audio data and sends the preset format audio data to the sub-equipment as the transmission destination;
and S3, when the distance between the sub-device as the transmission destination and the main device is larger than the device distance threshold value, the main device converts the control command and the associated data content into preset format audio data, and transmits the preset format audio data to the sub-device as the transmission destination by means of at least 1 sub-device for transfer.
It should be noted that, in the technical solution of the embodiment of the present application, devices are divided into two types, "main devices" and "sub devices," and each device has its own independent ID;
only one master device has an ID of 0;
the sub-device may be plural, and the ID is a number greater than 0;
all IDs are set in advance before networking and cannot be repeated.
In the networking architecture, except that the sub-device can actively send data in the networking process, other operation processes can only be actively inquired by the main device, and the sub-device replies the data to respond after receiving the inquiry request.
Due to the fact that the coverage range of the sound is limited, if the distance between the main device and the sub-devices is too far, the sound cannot be transmitted normally, and the sound can be transferred through other sub-devices.
As shown in fig. 5 of the drawings of the specification, the sub-devices 6, 7, and 8 cannot directly communicate sound data with the main device, and a relay agent ID of 5 may be set in the device, where "receiving agent ID" in the data sent by the devices 6, 7, and 8 is all the device 5;
after receiving the data of the devices 6, 7, and 8, the device 5 queries its forwarding list and agent ID, for example, in fig. 5, the device 5 will forward the short data of the devices 6, 7, and 8 to the device 4, and meanwhile, modify the "sending agent ID" of the short data to be 5, and modify the "receiving agent ID" to be 4;
after receiving the short message from the device 5, the device 4 queries the forwarding list and the relay proxy ID, forwards the short data to the "master device 0", modifies the "sending proxy ID" of the short data to 4, modifies the "receiving proxy ID" to 0, and forwards the short data to the "master device 0".
In summary, during the forwarding process, the device responsible for forwarding data maintains its own forwarding list according to the "initiator ID", "destination ID", "sending agent ID", and "receiving agent ID", and when forwarding the "query data" of the "main device" and the "response data" of the "sub device", data forwarding is preferentially performed according to the forwarding list.
According to the technical scheme, the data to be transmitted are coded based on the voice coding technology, transmission work among equipment networks is achieved, electromagnetic interference is avoided, and guarantee is provided for stability and reliability of data transmission.
Specifically, when the number of the child devices for relay is greater than 1, the device distance between the child devices for relay is not greater than a device distance threshold, the device distance between the first child device for relay and the master device is not greater than the device distance threshold, and the device distance between the last child device for relay and the child device serving as the transmission destination is not greater than the device distance threshold.
Specifically, when the number of the child devices for relay is 1, the device distance between the child device for relay and the master device and the device distance between the child device as the transmission destination and the master device are not greater than the device distance threshold.
Specifically, when the master device converts the control command and the associated data content into audio data in a preset format and transmits the audio data to the slave device serving as a transmission destination by means of 1 slave device for relay, the method includes the following steps:
the main equipment converts the control instruction and the associated data content into first preset format audio data;
the sub-equipment for transferring receives the audio data in the first preset format, converts the audio data into audio data in a second preset format, and transfers the audio data to the sub-equipment serving as a transmission destination; wherein,
the first preset format audio data and the second preset format audio data comprise control instructions, associated data contents, an initiator ID, a destination ID, a sending agent ID and a receiving agent ID;
the initiator ID and the sending agent ID in the first preset format audio data are the device ID of the master device, the destination ID is the device ID of the child device of the transmission destination, and the receiving agent ID is the device ID of the child device for relay;
the initiator ID in the second preset format audio data is the device ID of the master device, the destination ID is the device ID of the child device of the transmission destination, the receiving agent ID is the device ID of the child device of the transmission destination, and the sending agent ID is the device ID of the child device for relay.
Specifically, the preset format audio data includes a control instruction, associated data content, an initiator ID, a destination ID, a sending agent ID, and a receiving agent ID; wherein,
the initiator ID is a master ID;
the destination ID is a sub-device ID of a destination corresponding to the control instruction;
the sending agent ID is a main equipment ID or a sub-equipment ID which actually sends the audio data with the preset format;
and the receiving agent ID is the ID of the sub-equipment which actually receives the audio data with the preset format.
Specifically, the sub-device monitors the audio data in the preset format in real time, and identifies a destination ID or a receiving agent ID of the audio data in the preset format;
and when the destination ID or the receiving agent ID is consistent with the equipment ID of the sub-equipment, the sub-equipment processes the audio data in the preset format, otherwise, the audio data in the preset format is discarded.
In specific implementation, the number of preset format audio data in the method may include six fields, that is, a control instruction, associated data content, an initiator ID, a destination ID, a sending agent ID, and a receiving agent ID;
initiator ID, which is the device ID that generates the data;
a destination ID, which is the final receiving device ID of the data;
the sending agent ID is the equipment ID of the actual sending data, the default is the equipment ID of the generated data, and if the sending agent ID is the data generated by other equipment, the equipment ID of the current actual sending data is filled;
receiving an agent ID, defaulting to be consistent with the destination ID, and filling in a transfer agent equipment ID set by a user if the current equipment cannot be directly communicated with the destination ID;
a control command, a user-defined control instruction;
data content, detailed data content related to the control command.
Based on the technical scheme of the embodiment of the application, the equipment can monitor the received audio data in the preset format all the time, and when the destination ID or the receiving agent ID is the same as the equipment ID of the equipment, the data are processed.
Based on the technical solution of the embodiment of the present application, fig. 7 in the drawings of the specification is a data transmission flow of a master device in a networking architecture, and the specific situations are as follows:
in step S601, the master device prepares to query the slave device for data.
In step S602, the master device starts generating "inquiry command" and fills in "control command type" and "data content".
In step S603, the master device fills in its own device ID 0 in the "initiator ID" and "sending agent ID", and fills in the device ID to be queried in the "destination ID". The "forwarding list" is then queried to fill in the "receiving agent ID".
After completing the data package, the process proceeds to step S604, and the device converts the data into sound to be played through a speaker.
In step S605, the "response" data is waited for.
Step S606, when the main device receives the data, the 'destination ID' of the data needs to be checked, if the 'destination ID' is not the own, the data is discarded, otherwise, the 'response' data sent by the sub-device is processed.
Based on the technical solution of the embodiment of the present application, fig. 8 in the drawings of the specification is a data transmission process of a sub-device in a networking architecture, and the specific conditions are as follows:
since the slave device cannot actively send a message after networking, step S701 is executed to maintain the state of "receiving a command".
When the child device receives the data, it proceeds to step S702 to check the agent ID. If the "receiving agent ID" is not itself, step S703 is executed to discard the data, otherwise step S704 is entered.
In step S704, the "destination ID" is checked.
If the "destination ID" is the same as the "destination ID", the flow proceeds to step S705, and "response" data is generated.
Step S706, the response data is transmitted.
In step S704, if the "destination ID" is not the own, it indicates that the own needs to forward the data, the process proceeds to step S707, determines the data type, if the "destination ID" is 0, it indicates that the data is "response" data, the process proceeds to step S710, searches for a forwarding list with ID 0, modifies "sending agent ID" and "receiving agent ID", and then proceeds to step S711, and forwards the "response" data.
If the "destination ID" is not 0 in step S707, this is an "inquiry" command, and the process proceeds to step S708, where the agent ID corresponding to the "destination ID" is inquired in the forwarding list, the "sending agent ID" and the "receiving agent ID" are modified, and the complete packet is modified, and then the process proceeds to step S709, where the "inquiry" data is forwarded.
Further, the method further includes an equipment networking process, and the equipment networking process includes the following steps:
the equipment judges whether the equipment is the main equipment or the sub-equipment according to the equipment ID of the equipment;
if the sub-device is the master device, waiting for receiving the networking application transmitted by the sub-device;
if the sub-equipment is the sub-equipment, checking whether the sub-equipment is networked, and if the sub-equipment is not networked, sending a networking application;
and the master equipment receives the networking application, records the ID of the corresponding sub-equipment and feeds back a networking response to the corresponding sub-equipment.
Based on the technical solution of the embodiment of the present application, fig. 6 in the drawings of the specification is a networking flow of a device in a networking architecture, and the specific situations are as follows:
s501, starting a networking process after the equipment is started.
S502, the device needs to determine whether it is a master device or a slave device according to its device ID.
S503, if the device ID is the master device, that is, the device ID is 0, it only needs to wait for the networking application sent by the child device.
In step S504, the master device receives the data.
Step S505, after the main device receives the data, the agent ID in the data packet needs to be checked; if the "receiving agent ID" and the "destination ID" are not self, the data is discarded without processing, otherwise the data content is processed.
Step S506, the master device continues to check the data packet, and judges whether the data packet is a networking application according to the control command type and the data content;
if the data packet is not a "networking application", it is the "response data" that the child device replies to the master device, and the process is switched to other data processing flows, i.e. step S509;
if the data packet is determined to be a networking application, the initiator ID can be read, the online state of the equipment is recorded in the system, the sending agent ID is recorded, the inquiry data sent to the initiator ID later are actually sent to the sending agent ID, and the rule is written into a forwarding list, namely step S507.
Step S508, after the master device completes the registration of the slave device, the master device replies a message of "successful networking" to the slave device. The "initiator ID" and "sending agent ID" of the packet are both the ID of the master device is 0, the "destination ID" is filled in the ID of the slave device, and the "receiving agent ID" is obtained by querying the "forwarding list".
If the device ID is not 0 in step S502, it is a sub-device, and the process goes to step S510, where the device checks whether it has already accessed the network, and if not, the process goes to step S517 to send a networking request.
In the networking request, the 'initiator ID' and 'sending agent ID' are both the own ID of the device, and the 'destination ID' is filled with the master ID of 0, if the device is set with the transit agent ID, the 'receiving agent ID' is filled with the transit agent ID, otherwise, the master ID is filled with 0.
After sending the networking request, the child device proceeds to step S518 to wait for the reply of the master device.
In step S519, the sub-device receives the data, step S520 is performed to check the proxy ID of the short data, if "receiving proxy ID" is not itself, the data is discarded, otherwise step S521 is performed to determine whether the data content is "networking reply", if not, "networking reply", the data is discarded, otherwise step S522 is performed to complete networking.
In step S510, if the device determines that it has completed networking, the method proceeds to step S511 to wait for receiving data, and if the device receives data, the method proceeds to step S512;
at this time, it is determined whether the data is addressed to the receiving agent ID, step S513, and if the data is not addressed to the receiving agent ID, the data is directly discarded, otherwise, the process proceeds to step S514.
In step S514, the device checks the "destination ID", and if the "destination ID" is not itself, it indicates that it only needs to forward the data. The device continues to check the command type of the data packet, if the command type is networking request or networking response, the forwarding list is updated and the data is forwarded, otherwise, the forwarding list is inquired and the data is directly forwarded.
Specifically, the device ID of the master device is 0;
the device IDs of the child devices are all greater than 0.
Specifically, the master device is configured with a forwarding list;
the forwarding list records the device ID of the sub-device with the device distance not greater than the device distance threshold, and also records the device ID of the sub-device for transferring corresponding to the sub-device with the device distance greater than the device distance threshold.
In a second aspect, referring to fig. 9, an embodiment of the present application provides, on the basis of the technology of the voice coding technology-based networking transmission method mentioned in the first aspect, a voice coding technology-based networking transmission apparatus, where the apparatus includes:
a transmission distance identification module for identifying a device distance between the master device and the child device as a transmission destination;
the first networking transmission module is used for controlling the main equipment to convert a control instruction and associated data content into audio data in a preset format and send the audio data to the sub equipment serving as a transmission destination when the equipment distance between the sub equipment serving as the transmission destination and the main equipment is not larger than an equipment distance threshold value;
and the second networking transmission module is used for controlling the main equipment to convert the control instruction and the associated data content into audio data in a preset format when the equipment distance between the sub-equipment serving as the transmission destination and the main equipment is larger than an equipment distance threshold value, and transmitting and sending the audio data to the sub-equipment serving as the transmission destination by means of at least 1 piece of sub-equipment for transferring.
According to the technical scheme, the data to be transmitted are coded based on the voice coding technology, transmission work among equipment networks is achieved, electromagnetic interference is avoided, and guarantee is provided for stability and reliability of data transmission.
Specifically, when the number of the child devices for relay is greater than 1, the device distance between the child devices for relay is not greater than a device distance threshold, the device distance between the first child device for relay and the master device is not greater than the device distance threshold, and the device distance between the last child device for relay and the child device serving as the transmission destination is not greater than the device distance threshold.
Specifically, when the number of the child devices for relay is 1, the device distance between the child device for relay and the master device and the device distance between the child device as the transmission destination and the master device are not greater than the device distance threshold.
Specifically, the second networking transmission module is further configured to control the master device to convert the control instruction and the associated data content into audio data in a first preset format;
the second networking transmission module is also used for controlling the sub-equipment for transferring to receive the audio data in the first preset format, converting the audio data to generate audio data in a second preset format, and forwarding the audio data to the sub-equipment serving as a transmission destination; wherein,
the first preset format audio data and the second preset format audio data comprise control instructions, associated data contents, an initiator ID, a destination ID, a sending agent ID and a receiving agent ID;
the initiator ID and the sending agent ID in the first preset format audio data are the device ID of the master device, the destination ID is the device ID of the child device of the transmission destination, and the receiving agent ID is the device ID of the child device for relay;
and the initiator ID in the second preset format audio data is the equipment ID of the main equipment, the destination ID is the equipment ID of the sub-equipment of the transmission destination, the receiving agent ID is the equipment ID of the sub-equipment of the transmission destination, and the sending agent ID is the equipment ID of the sub-equipment for transfer.
Specifically, the preset format audio data includes a control instruction, associated data content, an initiator ID, a destination ID, a sending agent ID, and a receiving agent ID; wherein,
the initiator ID is a master ID;
the destination ID is a sub-device ID of a destination corresponding to the control instruction;
the sending agent ID is a main equipment ID or a sub-equipment ID which actually sends the audio data with the preset format;
and the receiving agent ID is the ID of the sub-equipment which actually receives the audio data with the preset format.
Specifically, the sub-device monitors the audio data in the preset format in real time, and identifies a destination ID or a receiving agent ID of the audio data in the preset format;
and when the destination ID or the receiving agent ID is consistent with the equipment ID of the sub-equipment, the sub-equipment processes the audio data in the preset format, otherwise, the audio data in the preset format is discarded.
Further, the device also comprises an equipment networking module;
the equipment networking module is used for controlling the equipment to judge that the equipment is the main equipment or the sub-equipment according to the equipment ID of the equipment;
the device networking module is also used for controlling the main device to wait for receiving the networking application transmitted by the sub-device when the device is the main device;
the equipment networking module is also used for controlling the sub-equipment to check whether the equipment is networked or not when the equipment is the sub-equipment, and sending a networking application if the equipment is not networked;
the device networking module is further used for controlling the main device to receive the networking application, record the ID of the corresponding sub-device and feed back a networking response to the corresponding sub-device.
Specifically, the device ID of the master device is 0;
the device IDs of the child devices are all greater than 0.
Specifically, the master device is configured with a forwarding list;
the forwarding list records the device ID of the sub-device with the device distance not greater than the device distance threshold, and also records the device ID of the sub-device for transferring corresponding to the sub-device with the device distance greater than the device distance threshold.
It is noted that, in the present application, relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, 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 a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present application and are presented to enable those skilled in the art to understand and practice the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A networking transmission method based on voice coding technology is characterized in that the networking comprises a main device and at least 2 sub-devices, and the method comprises the following steps:
when the device distance between the sub-device as a transmission destination and the main device is not larger than a device distance threshold value, the main device converts the control command and the associated data content into preset format audio data and sends the preset format audio data to the sub-device as the transmission destination;
when the distance between the sub-equipment serving as the transmission destination and the main equipment is larger than the equipment distance threshold value, the main equipment converts the control command and the associated data content into audio data in a preset format, and transmits the audio data to the sub-equipment serving as the transmission destination by means of at least 1 sub-equipment for transfer.
2. The voice coding technology based networking transmission method of claim 1, wherein:
when the number of the sub-devices for relaying is greater than 1, the device distance between the sub-devices for relaying is not greater than a device distance threshold, the device distance between the first sub-device for relaying and the main device is not greater than the device distance threshold, and the device distance between the last sub-device for relaying and the sub-device serving as a transmission destination is not greater than the device distance threshold.
3. The voice coding technology based networking transmission method of claim 1, wherein:
when the number of the child devices for relay is 1, a device distance between the child device for relay and the master device and a device distance between the child device for relay and the child device as a transmission destination are not greater than a device distance threshold value.
4. The networking transmission method based on the sound coding technology as claimed in claim 1, wherein the master device converts the control command and the associated data content into audio data in a preset format, and when the audio data is transmitted to the slave device as the transmission destination by means of 1 slave device for relay, the method comprises the following steps:
the main equipment converts the control instruction and the associated data content into first preset format audio data;
the sub-equipment for transferring receives the audio data in the first preset format, converts the audio data to generate audio data in a second preset format, and transfers the audio data to the sub-equipment serving as a transmission destination; wherein,
the first preset format audio data and the second preset format audio data comprise control instructions, associated data contents, an initiator ID, a destination ID, a sending agent ID and a receiving agent ID;
the initiator ID and the sending agent ID in the first preset format audio data are the device ID of the master device, the destination ID is the device ID of the child device of the transmission destination, and the receiving agent ID is the device ID of the child device for relay;
the initiator ID in the second preset format audio data is the device ID of the master device, the destination ID is the device ID of the child device of the transmission destination, the receiving agent ID is the device ID of the child device of the transmission destination, and the sending agent ID is the device ID of the child device for relay.
5. The voice coding technology based networking transmission method of claim 1, wherein:
the preset format audio data comprises a control instruction, associated data content, an initiator ID, a destination ID, a sending agent ID and a receiving agent ID; wherein,
the initiator ID is a master ID;
the destination ID is a sub-device ID of a destination corresponding to the control instruction;
the sending agent ID is a main equipment ID or a sub-equipment ID which actually sends the audio data with the preset format;
and the receiving agent ID is the ID of the sub-equipment which actually receives the audio data with the preset format.
6. The voice coding technology based networking transmission method of claim 5, wherein:
the sub-equipment monitors the audio data in the preset format in real time and identifies a destination ID or a receiving agent ID of the audio data in the preset format;
and when the destination ID or the receiving agent ID is consistent with the equipment ID of the sub-equipment, the sub-equipment processes the audio data in the preset format, otherwise, the audio data in the preset format is discarded.
7. The method for networking transmission based on vocoding technology of claim 1, further comprising a device networking procedure, wherein said device networking procedure comprises the steps of:
the equipment judges whether the equipment is the main equipment or the sub-equipment according to the equipment ID of the equipment;
if the sub-device is the master device, waiting for receiving the networking application transmitted by the sub-device;
if the sub-equipment is the sub-equipment, checking whether the sub-equipment is networked, and if the sub-equipment is not networked, sending a networking application;
and the master equipment receives the networking application, records the ID of the corresponding sub-equipment and feeds back a networking response to the corresponding sub-equipment.
8. The networking transmission method based on the voice coding technology as claimed in claim 1, wherein:
the device ID of the master device is 0;
the device IDs of the child devices are all greater than 0.
9. The voice coding technology based networking transmission method of claim 1, wherein:
the master device is configured with a forwarding list;
the forwarding list records the device ID of the sub-device with the device distance not greater than the device distance threshold, and also records the device ID of the sub-device for transferring corresponding to the sub-device with the device distance greater than the device distance threshold.
10. A networking transmission device based on voice coding technology, characterized in that the device comprises:
the first networking transmission module is used for controlling the main equipment to convert a control instruction and associated data content into audio data in a preset format and send the audio data to the sub equipment serving as a transmission destination when the equipment distance between the sub equipment serving as the transmission destination and the main equipment is not larger than an equipment distance threshold value;
and the second networking transmission module is used for controlling the main equipment to convert the control instruction and the associated data content into audio data in a preset format when the equipment distance between the sub-equipment serving as the transmission destination and the main equipment is larger than an equipment distance threshold value, and transmitting and sending the audio data to the sub-equipment serving as the transmission destination by means of at least 1 piece of sub-equipment for transferring.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210471019.9A CN114866607A (en) | 2022-04-28 | 2022-04-28 | Networking transmission method and device based on voice coding technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210471019.9A CN114866607A (en) | 2022-04-28 | 2022-04-28 | Networking transmission method and device based on voice coding technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114866607A true CN114866607A (en) | 2022-08-05 |
Family
ID=82634517
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210471019.9A Pending CN114866607A (en) | 2022-04-28 | 2022-04-28 | Networking transmission method and device based on voice coding technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114866607A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1798132A (en) * | 2004-12-29 | 2006-07-05 | 海信集团有限公司 | Method for implementing wireless route between master-slaves device set based on IGRS protocol |
US20090046712A1 (en) * | 2007-08-15 | 2009-02-19 | Erik Nordmark | Predictive routing technique in the ad hoc wireless network |
CN101392656A (en) * | 2007-12-04 | 2009-03-25 | 哈尔滨工业大学深圳研究生院 | Hydraulic support electrohydraulic control system and ad hoc network method thereof |
CN102348294A (en) * | 2011-09-22 | 2012-02-08 | 中国电力科学研究院 | Building method of self-organized reconfigurable wireless sensor network |
CN103687060A (en) * | 2013-11-26 | 2014-03-26 | 小米科技有限责任公司 | Terminal communication method, terminal communication device and terminals |
CN103713608A (en) * | 2013-12-27 | 2014-04-09 | 广东康宝电器有限公司 | Hierarchical network architecture of wireless Internet-of-Things home system and networking communication method thereof |
CN105338535A (en) * | 2015-08-31 | 2016-02-17 | 浙江利尔达物联网技术有限公司 | Method for wireless networking through employing mobile terminal |
CN109246786A (en) * | 2018-10-16 | 2019-01-18 | 天津大学 | Balancing energy Dynamic Geographic method for routing in underwater sensor network based on distance |
CN114189946A (en) * | 2020-09-15 | 2022-03-15 | 华为技术有限公司 | Data sharing method, electronic device and system |
-
2022
- 2022-04-28 CN CN202210471019.9A patent/CN114866607A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1798132A (en) * | 2004-12-29 | 2006-07-05 | 海信集团有限公司 | Method for implementing wireless route between master-slaves device set based on IGRS protocol |
US20090046712A1 (en) * | 2007-08-15 | 2009-02-19 | Erik Nordmark | Predictive routing technique in the ad hoc wireless network |
CN101392656A (en) * | 2007-12-04 | 2009-03-25 | 哈尔滨工业大学深圳研究生院 | Hydraulic support electrohydraulic control system and ad hoc network method thereof |
CN102348294A (en) * | 2011-09-22 | 2012-02-08 | 中国电力科学研究院 | Building method of self-organized reconfigurable wireless sensor network |
CN103687060A (en) * | 2013-11-26 | 2014-03-26 | 小米科技有限责任公司 | Terminal communication method, terminal communication device and terminals |
CN103713608A (en) * | 2013-12-27 | 2014-04-09 | 广东康宝电器有限公司 | Hierarchical network architecture of wireless Internet-of-Things home system and networking communication method thereof |
CN105338535A (en) * | 2015-08-31 | 2016-02-17 | 浙江利尔达物联网技术有限公司 | Method for wireless networking through employing mobile terminal |
CN109246786A (en) * | 2018-10-16 | 2019-01-18 | 天津大学 | Balancing energy Dynamic Geographic method for routing in underwater sensor network based on distance |
CN114189946A (en) * | 2020-09-15 | 2022-03-15 | 华为技术有限公司 | Data sharing method, electronic device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7324531B2 (en) | Gateway enabling data communication between devices having different middlewares | |
JP4536981B2 (en) | Information signal processing apparatus and information signal processing method | |
US7986968B2 (en) | Control of field device on low power wireless networks | |
KR20110071453A (en) | Zigbee gateway and method for identifying message of the same | |
KR20170124187A (en) | Iot platform having a funtion automatically compatible with the communication protocol | |
JP2009505213A (en) | Group management method and system in linked system of IMPS system and SIMPLEIM system | |
US7911947B2 (en) | Gateway apparatus | |
CN106130991A (en) | A kind of data forwarding method and device | |
TWI241815B (en) | Frame transmission method of WLAN and data structure thereof | |
CN109039687A (en) | Load-balancing method, device, system, equipment and the storage medium of request | |
CN114866607A (en) | Networking transmission method and device based on voice coding technology | |
CN101494587B (en) | Method for processing packet network tunnel and communication system as well as relevant equipment | |
JP2005192059A (en) | Wireless lan slave station device | |
KR100226781B1 (en) | Method for recognizing node | |
JP2007265356A (en) | Interconnection method and device using communication protocol | |
CN111464364B (en) | Power failure warning method and system for terminal equipment in home domain and PON gateway | |
JPH11234335A (en) | Fa network system | |
JPH07120322B2 (en) | Online SG processing method | |
JP3678705B2 (en) | ATM cell communication system | |
JP4026817B2 (en) | Communications system | |
JP2004110345A (en) | Multi-session control system | |
JPH11215132A (en) | Device and method for processing information and distribution medium | |
CN110581798A (en) | power gateway and communication method thereof | |
JP4506350B2 (en) | Controller equipment connected to the IEEE1394 serial bus | |
CN117641341A (en) | Data transmission method and device and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220805 |
|
RJ01 | Rejection of invention patent application after publication |