CN117858222A - Time-sharing communication method and device and electronic equipment - Google Patents

Time-sharing communication method and device and electronic equipment Download PDF

Info

Publication number
CN117858222A
CN117858222A CN202410010808.1A CN202410010808A CN117858222A CN 117858222 A CN117858222 A CN 117858222A CN 202410010808 A CN202410010808 A CN 202410010808A CN 117858222 A CN117858222 A CN 117858222A
Authority
CN
China
Prior art keywords
node
frame message
time
delay time
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410010808.1A
Other languages
Chinese (zh)
Inventor
徐玮
储子翔
苏晓东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ruohei Electronic Technology Shanghai Co ltd
Original Assignee
Ruohei Electronic Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ruohei Electronic Technology Shanghai Co ltd filed Critical Ruohei Electronic Technology Shanghai Co ltd
Priority to CN202410010808.1A priority Critical patent/CN117858222A/en
Publication of CN117858222A publication Critical patent/CN117858222A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a time-sharing communication method, a time-sharing communication device and electronic equipment, which relate to the technical field of information and comprise the steps of obtaining wireless communication configuration information and total data length of a single-frame message; judging whether the main equipment receives messages of other equipment within preset time; when the master device receives messages of other devices within the preset time, starting a synchronous communication model; determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message; and completing the ordered communication between the main equipment and other equipment based on the delay time of the single frame message sent between each two nodes. The invention can realize wireless communication with low delay and no collision package among a plurality of lifters.

Description

Time-sharing communication method and device and electronic equipment
Technical Field
The present invention relates to the field of information technologies, and in particular, to a time-sharing communication method, a device, and an electronic device.
Background
A lift is a mechanical device for lifting and transporting a weight. The device can lift goods or vehicles from low to high through hydraulic or electric motors and the like, and is convenient for the operation operations of loading and unloading goods, maintaining vehicles and the like.
Wireless communication in 433Mhz, 868Mhz, 915Mhz and other frequency bands is widely applied to the lifting machines, and how to ensure low-delay and packet-collision-free wireless communication among a plurality of lifting machines is a great difficulty.
Therefore, a time-sharing communication method, a time-sharing communication device and electronic equipment are provided.
Disclosure of Invention
The specification provides a time-sharing communication method, a time-sharing communication device and electronic equipment, which can realize wireless communication with low delay and no collision package among a plurality of lifters.
The present specification provides a time-sharing communication method, including:
acquiring the total data length of the wireless communication configuration information and the single frame message;
judging whether the main equipment receives messages of other equipment within preset time;
when the master device receives messages of other devices within the preset time, starting a synchronous communication model;
determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
and completing the ordered communication between the main equipment and other equipment based on the delay time of the single frame message sent between each two nodes.
Optionally, the method further comprises:
when the main equipment does not receive messages of other equipment within the preset time, starting an asynchronous communication model;
determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
and completing the ordered communication of the master equipment based on the delay time of the single frame message sent between each two nodes.
Optionally, the determining the delay time of sending the single frame message between each node according to the wireless communication configuration information and the total data length of the single frame message includes:
the wireless communication configuration information comprises wireless communication air speed and time for receiving and sending single frame messages;
T=total_bytes*8/date_rate+proess_time+△t
wherein T is the delay time of transmitting a single frame message between each node, total_bytes is the total data length of the single frame message, date_rate is the wireless communication air rate, process_time is the time of receiving the single frame message, and Δt is the transmission delay redundancy time.
Optionally, the completing the ordered communication of the device based on the delay time of sending the single frame message between each node includes:
transmitting messages containing the node numbers of the other devices according to the sequence from small to large of the node numbers of the other devices;
determining the delay time of a next frame of message based on the delay time of a single frame of message sent between other equipment nodes;
refreshing the delay time of the next frame message by using the node numbers of the other devices;
and completing the ordered communication of the ordered communication between the main equipment and other equipment according to the refreshed delay time of the next frame message.
Optionally, the determining the delay time of the next frame of message based on the delay time of the single frame of message sent between the other device nodes includes:
t 1 =T*total_deice
wherein t is 1 The number of other devices total_delay is the delay time of the next frame message.
Optionally, the refreshing the delay time of the next frame message by using the node number of the other device includes:
t 2 =T*[local_node>recv_node?(local_node-recv_node):(local_node+
total_deice-recv_node)]-(T-△t)
wherein t is 2 For refreshing the next frame messageLocal_node is the current node number of the other device, recv_node is the node number of the other device carried by the message received by the master device>recv_node? (local_node-recv_node) is the node difference between the current node number of the other device and the node number of the other device carried by the message received by the master device.
Optionally, the determining the delay time of the next frame of message based on the delay time of the single frame of message sent between the other device nodes includes:
t 3 =T*total_devie*loal_node
wherein t is 3 And for the delay time of the next frame message, the number of the other devices of the total_node is the node number of the other devices currently.
The present specification provides a time-sharing communication device including:
the acquisition module is used for acquiring the wireless communication configuration information and the total data length of the single-frame message;
the judging module is used for judging whether the main equipment receives messages of other equipment in preset time;
the starting module is used for starting the synchronous communication model when the master device receives messages of other devices within the preset time;
the determining module is used for determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
and the communication module is used for completing the ordered communication between the main equipment and other equipment based on the delay time of the single-frame message sent between each two nodes.
Optionally, the apparatus further includes:
when the main equipment does not receive messages of other equipment within the preset time, starting an asynchronous communication model;
determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
and completing the ordered communication of the master equipment based on the delay time of the single frame message sent between each two nodes.
Optionally, the determining the delay time of sending the single frame message between each node according to the wireless communication configuration information and the total data length of the single frame message includes:
the wireless communication configuration information comprises wireless communication air speed and time for receiving and sending single frame messages;
T=total_dytes*8/date_rate+proess_time+△t
wherein T is the delay time of transmitting a single frame message between each node, total_bytes is the total data length of the single frame message, date_rate is the wireless communication air rate, process_time is the time of receiving the single frame message, and Δt is the transmission delay redundancy time.
Optionally, the completing the ordered communication of the device based on the delay time of sending the single frame message between each node includes:
transmitting messages containing the node numbers of the other devices according to the sequence from small to large of the node numbers of the other devices;
determining the delay time of a next frame of message based on the delay time of a single frame of message sent between other equipment nodes;
refreshing the delay time of the next frame message by using the node numbers of the other devices;
and completing the ordered communication of the ordered communication between the main equipment and other equipment according to the refreshed delay time of the next frame message.
Optionally, the determining the delay time of the next frame of message based on the delay time of the single frame of message sent between the other device nodes includes:
t 1 =T*total_deice
wherein t is 1 The number of other devices total_delay is the delay time of the next frame message.
Optionally, the refreshing the delay time of the next frame message by using the node number of the other device includes:
t 2 =T*[local_node>recv_node?(local_node-recv_node):(local_node+
total_deice-recv_node)]-(T-△t)
wherein t is 2 For the delay time of the next frame message to be refreshed, the local_node is the current node number of the other device, and the recv_node is the node number of the other device carried by the message received by the master device>recv_node? (local_node-recv_node) is the node difference between the current node number of the other device and the node number of the other device carried by the message received by the master device.
Optionally, the determining the delay time of the next frame of message based on the delay time of the single frame of message sent between the other device nodes includes:
t 3 =T*total_devie*loal_node
wherein t is 3 And for the delay time of the next frame message, the number of the other devices of the total_node is the node number of the other devices currently.
The specification also provides an electronic device, wherein the electronic device includes:
a processor; and a memory storing processor-executable instructions that, when executed, cause the processor to perform the method of any of the above.
The present specification also provides a computer readable storage medium storing one or more programs which when executed by a processor implement any of the methods described above.
In the present invention, at least one of the following advantages is provided:
1. the method has the characteristic of simple operation, and an operator only needs to input/import the number of the participating communication equipment, so that complex setting is not needed;
2. the communication decision is fully automatically completed, so that the workload of operators is greatly reduced, and the smooth proceeding of the communication process is ensured;
3. each frame of message can refresh the transmission delay, so that the transmission delay is more accurate and controllable, and compared with the traditional master-slave polling communication scheme, the transmission delay is lower, and various real-time communication requirements are met;
4. under normal communication state, each device has an independent sending window, so that orderly and collision-free message sending is ensured, stable and reliable packet collision-free communication is realized, the accuracy and the high efficiency of communication are ensured, and the transmission collision caused by message collision is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a time-sharing communication method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a time-sharing communication device according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram of a computer readable medium according to an embodiment of the present disclosure.
Detailed Description
The following description is presented to enable one of ordinary skill in the art to make and use the invention. The preferred embodiments in the following description are by way of example only and other obvious variations will occur to those skilled in the art. The basic principles of the invention defined in the following description may be applied to other embodiments, variations, modifications, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
Exemplary embodiments of the present invention are described more fully below in connection with fig. 1-4. However, the exemplary embodiments can be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the invention to those skilled in the art. The same reference numerals in the drawings denote the same or similar elements, components or portions, and thus a repetitive description thereof will be omitted.
The features, structures, characteristics or other details described in a particular embodiment do not exclude that may be combined in one or more other embodiments in a suitable manner, without departing from the technical idea of the invention.
In the description of specific embodiments, features, structures, characteristics, or other details described in the present invention are provided to enable one skilled in the art to fully understand the embodiments. However, it is not excluded that one skilled in the art may practice the present invention without one or more of the specific features, structures, characteristics, or other details.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The term "and/or" and/or "includes all combinations of any one or more of the associated listed items.
Fig. 1 is a schematic diagram of a time-sharing communication method according to an embodiment of the present disclosure, where the method may include:
s110: acquiring the total data length of the wireless communication configuration information and the single frame message;
in the specific embodiment of the present specification, the message includes fields such as a preamble, a sync word, a total data length, a payload, and a check bit.
S120: judging whether the main equipment receives messages of other equipment within preset time;
s130: when the master device receives messages of other devices within the preset time, starting a synchronous communication model;
s140: determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
optionally, the S140 includes:
the wireless communication configuration information comprises wireless communication air speed and time for receiving and sending single frame messages;
T=total_bytes*8/date_rate+proess_time+△t
wherein T is the delay time of transmitting a single frame message between each node, total_bytes is the total data length of the single frame message, date_rate is the wireless communication air rate, process_tome is the time of receiving the single frame message, and Δt is the transmission delay redundancy time.
In the specific embodiment of the present specification, total_bytes are the total data length of a single frame message, and the unit is byte, which refers to the capability of how many bits of data can be transmitted per second. total_bytes 8 is to convert bytes to bits (1 byte=8bit), facilitating unit alignment. The rate is the wireless communication air rate in bps, which refers to the ability to put how many bits of data per second. The process_time is typically provided by the manufacturer. The delta t is used for lengthening the length of the message sending window to avoid packet collision, and the value can be set empirically or can be adjusted according to actual conditions. Specifically, assuming that the total data length of the single frame message is 20 bursts, the wireless communication air rate is 100kbps, the time from receiving the single frame message to transmitting is 2ms, and the redundancy time is 100ms, the delay time t=20×8/100000+0.002+0.1=0.1036 s for transmitting the single frame message between each node.
S150: and completing the ordered communication between the main equipment and other equipment based on the delay time of the single frame message sent between each two nodes.
Optionally, the step S150 of starting the synchronous communication model includes:
transmitting messages containing the node numbers of the other devices according to the sequence from small to large of the node numbers of the other devices;
determining the delay time of a next frame of message based on the delay time of a single frame of message sent between other equipment nodes;
refreshing the delay time of the next frame message by using the node numbers of the other devices;
and completing the ordered communication of the ordered communication between the main equipment and other equipment according to the refreshed delay time of the next frame message.
In a specific embodiment of the present description, the operator inputs/imports the node number of the participating communication device, the other devices node numbers being 1, 2, 3. The sequence of sending messages of the node numbers of other devices is determined by the node number of the other devices, namely, when the sending of the maximum node number from the small node number to the large node number is finished, the sending is restarted from the minimum node. Specifically, the case of using 4 lifters is as follows: node number 1→node number 2→node number 3→node number 4→node number 1→node number 2.
Optionally, the determining the delay time of the next frame of message based on the delay time of the single frame of message sent between the other device nodes includes:
t 1 =T*total_deice
wherein t is 1 The number of other devices total_delay is the delay time of the next frame message.
Optionally, the refreshing the delay time of the next frame message by using the node number of the other device includes:
t 2 =T*[local_node>recv_node?(local_node-recv_node):(local_node+
total_deice-recv_node)]-(T-△t)
wherein t is 2 For the delay time of the next frame message to be refreshed, the local_node is the current node number of the other device, and the recv_node is the node number of the other device carried by the message received by the master device>recv_node? (local_node-recv_node) is the node difference between the current node number of the other device and the node number of the other device carried by the message received by the master device.
Optionally, the method further comprises:
when the main equipment does not receive messages of other equipment within the preset time, starting an asynchronous communication model;
determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
and completing the ordered communication of the master equipment based on the delay time of the single frame message sent between each two nodes.
In the specific embodiment of the present specification, all devices participating in communication default to initiating an unsynchronized communication model prior to communication.
Optionally, starting an unsynchronized communication model, S150 includes:
t 3 =T*total_devie*loal_node
wherein t is 3 And for the delay time of the next frame message, the number of the other devices of the total_node is the node number of the other devices currently.
In the specific embodiment of the specification, different nodes of the equipment and time delays for sending single-frame messages by the equipment are utilized to manufacture different time windows, so that the fact that messages of other equipment cannot be knocked off by occupying a communication channel in an unsynchronized model state can be guaranteed, and a window large enough to receive the messages of the other equipment can be reserved to achieve a synchronous communication model combination state.
In the present invention, at least one of the following advantages is provided:
1. the method has the characteristic of simple operation, and an operator only needs to input/import the number of the participating communication equipment, so that complex setting is not needed;
2. the communication decision is fully automatically completed, so that the workload of operators is greatly reduced, and the smooth proceeding of the communication process is ensured;
3. each frame of message can refresh the transmission delay, so that the transmission delay is more accurate and controllable, and compared with the traditional master-slave polling communication scheme, the transmission delay is lower, and various real-time communication requirements are met;
4. under normal communication state, each device has an independent sending window, so that orderly and collision-free message sending is ensured, stable and reliable packet collision-free communication is realized, the accuracy and the high efficiency of communication are ensured, and the transmission collision caused by message collision is avoided.
Fig. 2 is a schematic structural diagram of a time-sharing communication device according to an embodiment of the present disclosure, where the device may include:
an acquiring module 10, configured to acquire the wireless communication configuration information and the total data length of the single frame message;
the judging module 20 is configured to judge whether the master device receives a message of another device within a preset time;
a starting module 30, configured to start a synchronous communication model when the master device receives a message from another device within the preset time;
a determining module 40, configured to determine a delay time for transmitting a single frame message between each node according to the wireless communication configuration information and a total data length of the single frame message;
and the communication module 50 is used for completing the ordered communication between the main equipment and other equipment based on the delay time of transmitting the single-frame message between each two nodes.
Optionally, the apparatus further includes:
when the main equipment does not receive messages of other equipment within the preset time, starting an asynchronous communication model;
determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
and completing the ordered communication of the master equipment based on the delay time of the single frame message sent between each two nodes.
Optionally, the determining the delay time of sending the single frame message between each node according to the wireless communication configuration information and the total data length of the single frame message includes:
the wireless communication configuration information comprises wireless communication air speed and time for receiving and sending single frame messages;
T=total_bytes*8/date_rate+proess_time+△t
wherein T is the delay time of transmitting a single frame message between each node, total_bytes is the total data length of the single frame message, date_rate is the wireless communication air rate, process_tome is the time of receiving the single frame message, and Δt is the transmission delay redundancy time.
Optionally, the completing the ordered communication of the device based on the delay time of sending the single frame message between each node includes:
transmitting messages containing the node numbers of the other devices according to the sequence from small to large of the node numbers of the other devices;
determining the delay time of a next frame of message based on the delay time of a single frame of message sent between other equipment nodes;
refreshing the delay time of the next frame message by using the node numbers of the other devices;
and completing the ordered communication of the ordered communication between the main equipment and other equipment according to the refreshed delay time of the next frame message.
Optionally, the determining the delay time of the next frame of message based on the delay time of the single frame of message sent between the other device nodes includes:
t 1 =T*total_deice
wherein t is 1 The number of other devices total_delay is the delay time of the next frame message.
Optionally, the refreshing the delay time of the next frame message by using the node number of the other device includes:
t 2 =T*[local_node>recv_mode?(local_node-recv_node):(local_node+
total_deice-recv_node)]-(T-△t)
wherein t is 2 For the delay time of the refreshed next frame message, the local_mode is the current node number of the other device, and the recv_node is the node number of the other device carried by the message received by the main device>recv_node? (local_node-recv_node) is the node difference between the current node number of the other device and the node number of the other device carried by the message received by the master device.
Optionally, the determining the delay time of the next frame of message based on the delay time of the single frame of message sent between the other device nodes includes:
t 3 =T*total_devie*load_node
wherein t is 3 And for the delay time of the next frame message, the number of the other devices of the total_node is the node number of the other devices currently.
The functions of the apparatus according to the embodiments of the present invention have been described in the foregoing method embodiments, so that the descriptions of the embodiments are not exhaustive, and reference may be made to the related descriptions in the foregoing embodiments, which are not repeated herein.
Based on the same inventive concept, the embodiments of the present specification also provide an electronic device.
The following describes an embodiment of an electronic device according to the present invention, which may be regarded as a specific physical implementation of the above-described embodiment of the method and apparatus according to the present invention. Details described in relation to the embodiments of the electronic device of the present invention should be considered as additions to the embodiments of the method or apparatus described above; for details not disclosed in the embodiments of the electronic device of the present invention, reference may be made to the above-described method or apparatus embodiments.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. An electronic device 300 according to this embodiment of the present invention is described below with reference to fig. 3. The electronic device 300 shown in fig. 3 is merely an example and should not be construed as limiting the functionality and scope of use of embodiments of the present invention.
As shown in fig. 3, the electronic device 300 is embodied in the form of a general purpose computing device. Components of electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one memory unit 320, a bus 330 connecting the different system components (including the memory unit 320 and the processing unit 310), a display unit 340, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 310 such that the processing unit 310 performs the steps according to various exemplary embodiments of the invention described in the above processing method section of the present specification. For example, the processing unit 310 may perform the steps shown in fig. 1.
The memory unit 320 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 3201 and/or cache memory 3202, and may further include Read Only Memory (ROM) 3203.
The storage unit 320 may also include a program/utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 330 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 300 may also communicate with one or more external devices 400 (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a viewer to interact with the electronic device 300, and/or any device (e.g., router, modem, etc.) that enables the electronic device 300 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 350. Also, electronic device 300 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet, through network adapter 360. The network adapter 360 may communicate with other modules of the electronic device 300 via the bus 330. It should be appreciated that although not shown in fig. 3, other hardware and/or software modules may be used in connection with electronic device 300, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
Those skilled in the art will readily understand from the description of the embodiments above. Thus, the technical solution according to the embodiments of the present invention may be embodied in the form of a software product, which may be stored in a computer readable storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-mentioned method according to the present invention. The computer program, when executed by a data processing device, enables the computer readable medium to carry out the above-described method of the present invention, namely: such as the method shown in fig. 1.
Fig. 4 is a schematic diagram of a computer readable medium according to an embodiment of the present disclosure.
A computer program implementing the method shown in fig. 1 may be stored on one or more computer readable media. The computer readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the spectator computing device, partly on the spectator device, as a stand-alone software package, partly on the spectator computing device, partly on a remote computing device, or entirely on a remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the spectator computing device through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the internet using an internet service provider).
In summary, the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that some or all of the functionality of some or all of the components in accordance with embodiments of the present invention may be implemented in practice using a general purpose data processing device such as a microprocessor or Digital Signal Processor (DSP). The present invention can also be implemented as an apparatus or device program (e.g., a computer program and a computer program product) for performing a portion or all of the methods described herein. Such a program embodying the present invention may be stored on a computer readable medium, or may have the form of one or more signals. Such signals may be downloaded from an internet website, provided on a carrier signal, or provided in any other form.
The above-described specific embodiments further describe the objects, technical solutions and advantageous effects of the present invention in detail, and it should be understood that the present invention is not inherently related to any particular computer, virtual device or electronic apparatus, and various general-purpose devices may also implement the present invention. The foregoing description of the embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.

Claims (10)

1. A time-sharing communication method, comprising:
acquiring the total data length of the wireless communication configuration information and the single frame message;
judging whether the main equipment receives messages of other equipment within preset time;
when the master device receives messages of other devices within the preset time, starting a synchronous communication model;
determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
and completing the ordered communication between the main equipment and other equipment based on the delay time of the single frame message sent between each two nodes.
2. The time-sharing communication method of claim 1, further comprising:
when the main equipment does not receive messages of other equipment within the preset time, starting an asynchronous communication model;
determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
and completing the ordered communication of the master equipment based on the delay time of the single frame message sent between each two nodes.
3. The time-sharing communication method according to claim 1 or 2, wherein determining the delay time for transmitting the single-frame message between each node according to the wireless communication configuration information and the total data length of the single-frame message comprises:
the wireless communication configuration information comprises wireless communication air speed and time for receiving and sending single frame messages;
T=total_bytes*8/date_rate+proess_time+Δt
wherein T is the delay time of transmitting a single frame message between each node, total_bytes is the total data length of the single frame message, date_rate is the wireless communication air rate, process_time is the time of receiving the single frame message from each node, and Δt is the transmission delay redundant time.
4. The time-sharing communication method as claimed in claim 1, wherein said completing the ordered communication of the devices based on the delay time of transmitting the single frame message between each of the nodes comprises:
transmitting messages containing the node numbers of the other devices according to the sequence from small to large of the node numbers of the other devices;
determining the delay time of a next frame of message based on the delay time of a single frame of message sent between other equipment nodes;
refreshing the delay time of the next frame message by using the node numbers of the other devices;
and completing the ordered communication of the ordered communication between the main equipment and other equipment according to the refreshed delay time of the next frame message.
5. The method of time-sharing communication according to claim 3, wherein determining the delay time of the next frame message based on the delay time of transmitting the single frame message between each of the other device nodes comprises:
t 1 =T*total_deice
wherein t is 1 The number of other devices total_delay is the delay time of the next frame message.
6. The method of time-sharing communication as claimed in claim 4, wherein said refreshing the delay time of the next frame message using the node number of the other device comprises:
t 2 =T*[local_node>recv_node?(local_node-recv_node):(local_node+total_deice-recv_node)]-(T-Δt)
wherein t is 2 For the delay time of the refreshed next frame message, local_node is the current node number of the other device, recv_node is the node number of the other device carried by the message received by the master device, local_node > recv_node? (local_node-recv_node): (local_node+total_node-recv_node) is the node difference between the current node number of the other device and the node number of the other device carried by the message received by the master device.
7. The method of time-sharing communication according to claim 1, wherein determining the delay time of the next frame message based on the delay time of transmitting the single frame message between each of the other device nodes comprises:
t 3 =T*total_devie*loal_node
wherein t is 3 And for the delay time of the next frame message, the number of the other devices of the total_node is the node number of the other devices currently.
8. A time sharing communication device, comprising:
the acquisition module is used for acquiring the wireless communication configuration information and the total data length of the single-frame message;
the judging module is used for judging whether the main equipment receives messages of other equipment in preset time;
the starting module is used for starting the synchronous communication model when the master device receives messages of other devices within the preset time;
the determining module is used for determining the delay time for transmitting the single-frame message between each two nodes according to the wireless communication configuration information and the total data length of the single-frame message;
and the communication module is used for completing the ordered communication between the main equipment and other equipment based on the delay time of the single-frame message sent between each two nodes.
9. An electronic device, wherein the electronic device comprises:
a processor; and a memory storing processor-executable instructions that, when executed, cause the processor to perform the method of any of claims 1-7.
10. A computer readable storage medium, wherein the computer readable storage medium stores one or more programs which, when executed by a processor, implement the method of any of claims 1-7.
CN202410010808.1A 2024-01-03 2024-01-03 Time-sharing communication method and device and electronic equipment Pending CN117858222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410010808.1A CN117858222A (en) 2024-01-03 2024-01-03 Time-sharing communication method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410010808.1A CN117858222A (en) 2024-01-03 2024-01-03 Time-sharing communication method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN117858222A true CN117858222A (en) 2024-04-09

Family

ID=90534145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410010808.1A Pending CN117858222A (en) 2024-01-03 2024-01-03 Time-sharing communication method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN117858222A (en)

Similar Documents

Publication Publication Date Title
US6697366B1 (en) Ethernet memory management system and methods for operation thereof
US8989170B2 (en) Wireless communication system and wireless communication control method, wireless communication device and wireless communication method, and computer program
CN111818136A (en) Data processing method and device, electronic equipment and computer readable medium
CN108334367A (en) A kind of firmware remote update system and method towards BMC chip
CN112835616A (en) Version upgrading method and device, electronic equipment and storage medium
CN117858222A (en) Time-sharing communication method and device and electronic equipment
CN107659641B (en) Method, device, server, equipment and storage medium for web awakening client
US20110116426A1 (en) Cableless usb connectivity over ieee 802.11 networks
US20220405213A1 (en) Data processing method and apparatus
CN112615916A (en) File deployment method and device, electronic equipment and storage medium
CN115484216A (en) Message transmission method and device, electronic equipment and automatic driving vehicle
CN113630300B (en) Method and node for message transmission
CN115167325B (en) Intelligent processing control method, system, equipment and storage medium for cable
CN112925623A (en) Task processing method and device, electronic equipment and medium
CN115623070B (en) IDL message processing method and device, electronic equipment and storage medium
CN114710755B (en) Message processing method, vehicle-mounted communication device, electronic equipment and storage medium
CN113132480B (en) Data transmission method, device and system
CN114928581B (en) CAN message forwarding method, device, equipment and storage medium based on AUTOSAR architecture
EP4362362A1 (en) Resource allocation method, apparatus and system
CN109981554B (en) Information processing method and system and electronic equipment
CN115243274A (en) Network distribution method, device, equipment and storage medium
CN117519753A (en) Remote upgrading method, device and equipment of terminal equipment and storage medium
CN115225556A (en) Detection method, device, equipment and storage medium
CN117519728A (en) Container mirror image deployment method, system, device, equipment and storage medium
CN115600687A (en) Model training method, device, equipment and storage medium

Legal Events

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