Vehicle-mounted optical network communication method, device, equipment and storage medium
By setting the equalization delay time and difference compensation time, calculating and sending the appropriate transmission delay time, the problem of delay desynchronization in vehicle optical network communication is solved, communication accuracy and user experience are improved, and the vehicle network is ensured. Time synchronization accuracy.
Patent Information
- Application Number
- CN202410778301.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-08
AI Technical Summary
There is a problem of delay and synchronization in vehicle optical network communication, which results in low network time synchronization accuracy of the vehicle. The accumulated time error will affect the normal driving function of the vehicle.
By setting the equilibrium delay time of each access node, obtaining the difference compensation time, calculating and sending the appropriate transmission delay time, the communication data is sent after the delay, ensuring the data communication synchronization between the OLT and the ONU. Implement compensation for every communication.
It improves the accuracy and user experience of in-vehicle optical network communication, ensures the vehicle's network time synchronization accuracy, and avoids the impact of time errors on driving functions.
Smart Images

Figure CN118748762A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication control technology, and in particular to a vehicle-mounted optical network communication method, device, equipment and storage medium. Background Art
[0002] As automotive architectures place increasing demands on bandwidth and safety, in-vehicle communication systems are gradually shifting from electrical signals to optical signals. Using optical fiber as a transmission medium enables high-speed, low-latency, and highly reliable data transmission. At the same time, optical transmission is not affected by electromagnetic interference, making data communications in vehicle systems more stable. In addition, optical fiber is also lightweight, having little impact on the overall weight of the vehicle, helping to improve the fuel economy and range of the vehicle.
[0003] However, for safety control reasons, the vehicle's requirements for network time synchronization are much higher than the time synchronization accuracy of the local area network in other daily scenarios. As the vehicle continues to run, the accumulated time error will become larger and larger, affecting the communication transmission accuracy of the on-board optical network and even affecting the normal driving function of the vehicle.
[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention
[0005] The main purpose of the present application is to provide a vehicle-mounted optical network communication method, device, equipment and storage medium, aiming to solve the technical problem of delay and asynchrony in vehicle-mounted optical network communication in the prior art.
[0006] To achieve the above objectives, the present application proposes a vehicle-mounted optical network communication method, the vehicle-mounted optical network communication method comprising:
[0007] Set the balanced delay time of each access node;
[0008] Obtaining the difference compensation time of each access node;
[0009] Calculate the sending delay duration corresponding to each of the access nodes according to the balanced delay time and the difference compensation time;
[0010] The communication data sent to each access node is sent after being delayed by the corresponding sending delay time.
[0011] In one embodiment, the step of calculating the transmission delay duration corresponding to each of the access nodes according to the equalization delay time and the difference compensation time includes:
[0012] sending a ranging request to the access node;
[0013] The access node returns a ranging response signal in response to the ranging request;
[0014] Recording the receiving time when receiving the ranging response signal;
[0015] The sending delay duration corresponding to each of the access nodes is calculated according to the difference between the receiving time and the balanced delay time.
[0016] In one embodiment, after the step of calculating the sending delay duration corresponding to each of the access nodes according to the difference between the receiving time and the balanced delay time, the step further includes:
[0017] Sending a compensation frame including the transmission delay duration to the corresponding access node;
[0018] After receiving the compensation frame, the access node delays the preset initial time according to the sending delay duration.
[0019] In one embodiment, the step of setting the equalization delay time of each access node includes:
[0020] Configuring a balanced delay time for each of the access nodes;
[0021] The balanced delay time is sent to the corresponding access nodes to adjust the preset initial time of each access node to the corresponding balanced delay time.
[0022] In one embodiment, before the step of setting the equalization delay time of each access node, the method further includes:
[0023] Determine whether the vehicle is in maintenance mode;
[0024] If it is determined that the vehicle is in the maintenance mode, a node ID of each access node is allocated to set the equilibrium delay time of each access node according to each node ID.
[0025] In one embodiment, after the step of determining whether the vehicle is in maintenance mode, the method further includes:
[0026] If it is determined that the vehicle is in non-maintenance mode, it is determined whether the vehicle is currently powered on for the first time that day;
[0027] If it is determined that the vehicle is powered on for the first time that day, the equalization delay time is set.
[0028] In one embodiment, after the step of determining whether the vehicle is currently powered on for the first time that day if the vehicle is determined to be in the non-maintenance mode, the method further includes:
[0029] If it is determined that the vehicle is not powered on for the first time that day, the equalization delay time is not set, and the communication data sent by the central node to each access node is sent after the corresponding sending delay time.
[0030] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted optical network communication device, the vehicle-mounted optical network communication device comprising:
[0031] The delay setting module is used to set the balanced delay time of each access node;
[0032] The delay setting module is further used to obtain the difference compensation time of each access node;
[0033] A calculation module is configured to calculate the transmission delay duration corresponding to each of the access nodes according to the equalization delay time and the difference compensation time;
[0034] The communication management module is used to send the communication data sent to each access node after a delay of the corresponding sending delay time.
[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes a vehicle-mounted optical network communication device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the vehicle-mounted optical network communication method described above.
[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the vehicle-mounted optical network communication method described above are implemented.
[0037] The present application provides a vehicle optical network communication method, which first sets the balanced delay time of each access node; obtains the difference compensation time of each access node; calculates the corresponding sending delay time of each access node according to the balanced delay time and the difference compensation time; and sends the communication data sent to each access node after the corresponding sending delay time delay. The delay time for communication synchronization is calculated by designing the time of data communication between OLT and ONU, so that each communication between OLT and ONU will compensate for the next communication synchronization, thereby improving the accuracy of vehicle optical network communication and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 A flowchart of the first embodiment of the vehicle-mounted optical network communication method of the present application is provided;
[0041] Figure 2 A star-type network diagram of the first embodiment of the vehicle-mounted optical network communication method of the present application;
[0042] Figure 3 A flow chart of the second embodiment of the vehicle-mounted optical network communication method of the present application;
[0043] Figure 4 This is a schematic diagram of the downlink data structure of the second embodiment of the vehicle-mounted optical network communication method of the present application;
[0044] Figure 5 A flowchart of the third embodiment of the vehicle-mounted optical network communication method of the present application is provided;
[0045] Figure 6 This is a schematic diagram of the module structure of the vehicle-mounted optical network communication device according to an embodiment of the present application;
[0046] Figure 7 A schematic diagram of the structure of an on-board optical network communication device of the hardware operating environment involved in the on-board optical network communication method in an embodiment of the present application.
[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0050] The main solution of the embodiment of the present application is: setting the balanced delay time of each access node; obtaining the difference compensation time of each access node; calculating the corresponding sending delay duration of each access node based on the balanced delay time and the difference compensation time; and sending the communication data sent to each access node after the corresponding sending delay duration has passed.
[0051] Since the vehicle's requirements for network time synchronization are much higher than the time synchronization accuracy of the local area network in other daily scenarios, and as the vehicle continues to run, the accumulated time error will become larger and larger, affecting the communication transmission accuracy of the on-board optical network and even affecting the normal driving function of the vehicle.
[0052] The present application provides a solution, which calculates and obtains the delay time for communication synchronization by designing the time of data communication between OLT and ONU, so that each communication between OLT and ONU can compensate for the synchronization of the next communication, thereby improving the accuracy of vehicle-mounted optical network communication and improving the user experience.
[0053] It should be noted that the execution subject of this embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a vehicle-mounted optical network communication device capable of realizing the above functions, etc. The following takes the vehicle-mounted optical network communication device as an example to illustrate this embodiment and the following embodiments.
[0054] Based on this, the embodiment of the present application provides a vehicle-mounted optical network communication method, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the vehicle-mounted optical network communication method of the present application.
[0055] In this embodiment, the vehicle-mounted optical network communication method includes steps S10 to S30:
[0056] Step S10: Setting the balanced delay time of each access node.
[0057] It should be noted that the central node (Optical Line Terminal, OLT) can be a terminal device for connecting to the optical fiber trunk line, connected to the core network, and can provide optical signals to the access node (Optical Network Unit, ONU), and the ONU can convert the optical signal from the OLT into an electrical signal and transmit it to the corresponding connected device. The executor of this solution can also be a domain controller set in the OLT.
[0058] Among them, all ONUs can only transmit data upstream to the OLT, which configures network communication, and the ONUs cannot communicate with each other.
[0059] Reference Figure 2 , Figure 2This is a schematic diagram of a star-type network of the first embodiment of the vehicle-mounted optical network communication method of this application. Taking the star-type network type as an example, the communication data is concentrated in one OLT for processing, and no horizontal communication is performed between the integrated ONUs. For example, the data of each camera or radar is transmitted to the corresponding domain control for processing, and no horizontal communication is required between radars.
[0060] It should be understood that the balanced delay time may be a uniform delay time allocated by the OLT to all ONUs when the time synchronization adjustment is performed for the first time. The communication between the OLT and each ONU minimizes the overall delay of the system through a uniform balanced delay time.
[0061] Furthermore, the central node may also send the balanced delay time to the corresponding access nodes to adjust the preset initial time of each access node to the corresponding balanced delay time.
[0062] Furthermore, an initial preset time is set in the ONU, that is, during the first power-on or vehicle maintenance project, the ONU will perform delayed communication with the OLT according to the initial preset time. After the central node completes the configuration of the balanced delay time, it transmits it to the ONU to update the corresponding balanced delay time.
[0063] Step S20: Obtain the difference compensation time of each access node.
[0064] It should be noted that the difference compensation time can be the difference between the actual response time of each ONU and the time after the balanced delay time is demonstrated when the vehicle is powered on and starts communication. The difference compensation time of each access node is different due to differences in hardware structure and execution function.
[0065] Step S30: Calculate the sending delay duration corresponding to each of the access nodes according to the equalization delay time and the difference compensation time.
[0066] It should be noted that the transmission delay duration is obtained based on the comprehensive calculation of the unified equalization delay time of the access node and the difference compensation time of each access node, and the data transmission between the central node and each access node is delayed by the transmission delay duration to realize the synchronization function of the data signal. The transmission delay duration of each access node is also different.
[0067] Step S40: the communication data sent to each access node is sent after being delayed by the corresponding sending delay time.
[0068] It should be noted that after calculating the corresponding transmission delay duration of each access node, the central node will store the corresponding transmission delay duration in RAM, and extract the delay duration stored in RAM for compensation communication in each communication with the access node.
[0069] In this embodiment, the balanced delay time of each access node is set; the difference compensation time of each access node is obtained; the corresponding sending delay time of each access node is calculated according to the balanced delay time and the difference compensation time; the communication data sent to each access node is sent after the corresponding sending delay time. By designing the time of data communication between OLT and ONU, the delay time for communication synchronization is calculated and obtained, so that each communication between OLT and ONU will compensate for the next communication synchronization, thereby improving the accuracy of vehicle optical network communication and improving the user experience.
[0070] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 3 , Figure 3 A flow chart of the second embodiment of the vehicle optical network communication method of the present application is provided. In step S30, the vehicle optical network communication method includes:
[0071] Step S301: Send a ranging request to the access node.
[0072] It should be noted that the ranging request may be a communication request signal sent when distance measurement and calculation of each node in the communication network is implemented in the communication network, so as to measure the time required for these signals to propagate between two nodes according to the ranging request.
[0073] Step S302: the access node returns a ranging response signal in response to the ranging request.
[0074] It should be noted that, after receiving the ranging request sent by the central node, each access node feeds back a response signal of the ranging request, and simultaneously records the sending time of the response signal locally at the access node.
[0075] Step S303: recording the receiving time when the ranging response signal is received.
[0076] It should be noted that the central node records the receiving time when receiving the ranging response signal returned by the access node. At the same time, the central node can also receive the sending time recorded by the access node. The difference between the receiving time and the sending time recorded by the access node is the node distance time of this ranging.
[0077] Step S304: Calculate the sending delay time corresponding to each of the access nodes according to the difference between the receiving time and the balanced delay time.
[0078] It should be noted that the difference between the sending time after the equalization delay time and the receiving time is the sending delay length of the corresponding access node.
[0079] Furthermore, after step S204, the method further includes:
[0080] Step S305: Send the compensation frame including the transmission delay duration to the corresponding access node.
[0081] Step S306: After receiving the compensation frame, the access node delays the preset initial time according to the sending delay duration.
[0082] It should be noted that, after the central node has completed ranging for all access nodes, it extracts the transmission delay duration of each access node stored in the RAM, processes the delay duration to generate a compensation frame and sends it to the corresponding ONUi (the i-th access node).
[0083] Among them, the compensation frame is a frame generated by predicting and compensating the current frame based on the previous frame, which does not affect the information of the normal data sequence and avoids redundant interference that affects the transmission of normal communication signals.
[0084] Reference Figure 4 , Figure 4 This is a schematic diagram of the downlink data structure of the second embodiment of the vehicle-mounted optical network communication method of this application. In the communication transmission between the central node and the access node, the normal communication data is transmitted in the time division multiplexing (TDM) time slot segment, and the compensation frame is transmitted in the accompanying time slot segment. Where ti is the equalization delay time, and △t is the transmission delay time.
[0085] In this embodiment, a ranging request is sent to the access node; the access node returns a ranging response signal in response to the ranging request; the receiving time is recorded when the ranging response signal is received; and the sending delay duration corresponding to each access node is calculated according to the difference between the receiving time and the balanced delay time. Accurate calculation of the delay of data communication between OLT and ONU is achieved, and the accuracy of vehicle-mounted optical network communication is improved. At the same time, a compensation frame containing the sending delay duration is sent to the corresponding access node; after receiving the compensation frame, the access node delays the preset initial time according to the sending delay duration. It does not occupy the data transmission end, is decoupled from data communication, reduces mutual influence, and is also convenient for the expansion and tailoring of the mechanism, and does not affect the data transmission of actual vehicle communication applications.
[0086] Based on the first embodiment and / or the second embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those of the above-mentioned first and second embodiments can refer to the above introduction, and will not be repeated later. Figure 5 , Figure 5 A flowchart diagram of the third embodiment of the vehicle-mounted optical network communication method of the present application is provided.
[0087] Before step S10, the vehicle-mounted optical network communication method further includes:
[0088] Step S501: Determine whether the vehicle is in maintenance mode.
[0089] It should be noted that the vehicle's maintenance mode or factory mode may be the mode in which the vehicle is in the pre-factory debugging stage or the factory repair stage, and the vehicle can adjust and set nodes in this mode.
[0090] Step S502: If it is determined that the vehicle is in the maintenance mode, a node ID of each access node is allocated to set a balanced delay time of each access node according to each node ID.
[0091] It should be noted that in the maintenance mode, a new access node can be added to the vehicle and a corresponding node ID can be assigned to it, or a node ID can be reassigned to an access node that has been assigned a node ID. Communication between the central node and the access node is carried out through the node ID.
[0092] Step S503: If it is determined that the vehicle is in a non-maintenance mode, it is determined whether the vehicle is currently powered on for the first time that day.
[0093] It should be noted that the time error between the central node and the access node will continue to increase as the vehicle runs. In order to control the time error within a certain range, it can be set to perform a distance measurement operation again when the vehicle is powered on for the first time every day.
[0094] It should be understood that the time interval for re-performing the ranging operation can be adjusted according to the specific vehicle conditions and user needs, and is not specifically limited in this embodiment.
[0095] Step S504: If it is determined that the vehicle is powered on for the first time that day, the equalization delay time is set.
[0096] Step S505: If it is determined that the vehicle is not powered on for the first time on the day, the equalization delay time is not set, and the communication data sent by the central node to each access node is sent after a delay of the corresponding sending delay time.
[0097] In this embodiment, by judging whether the vehicle is in maintenance mode; if the vehicle is judged to be in maintenance mode, the node ID of each access node is allocated to set the balance delay time of each access node according to each node ID; if the vehicle is judged to be in non-maintenance mode, it is judged whether the vehicle is currently powered on for the first time that day; if the vehicle is judged to be powered on for the first time that day, the balance delay time is set; if the vehicle is judged to be not powered on for the first time that day, the balance delay time is not set, and the communication data sent by the central node to each access node is sent after the corresponding sending delay time. The flexibility of node adjustment is improved, and the time error can be ensured to always be maintained within an acceptable range, avoiding the influence of excessive time error on the normal driving function of the vehicle.
[0098] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the vehicle-mounted optical network communication method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.
[0099] This application also provides a vehicle-mounted optical network communication device, please refer to Figure 6 , the vehicle-mounted optical network communication device comprises:
[0100] The delay setting module 10 is used to set the balanced delay time of each access node;
[0101] The delay setting module 10 is further used to obtain the difference compensation time of each access node;
[0102] A calculation module 20 is configured to calculate a sending delay duration corresponding to each of the access nodes according to the equalization delay time and the difference compensation time;
[0103] The communication management module 30 is used to send the communication data sent to each access node after a delay of the corresponding sending delay time.
[0104] Optionally, the configuration calculation module 20 is also used to send a ranging request to the access node; the access node returns a ranging response signal in response to the ranging request; records the receiving time when the ranging response signal is received; and calculates the sending delay duration corresponding to each of the access nodes based on the difference between the receiving time and the equalization delay time.
[0105] Optionally, the configuration calculation module 20 is further used to send a compensation frame including the sending delay duration to the corresponding access node; after receiving the compensation frame, the access node delays a preset initial time according to the sending delay duration.
[0106] Optionally, the delay setting module 10 is further used to configure the balanced delay time of each of the access nodes; and send the balanced delay time to the corresponding access nodes to adjust the preset initial time of each of the access nodes to the corresponding balanced delay time.
[0107] Optionally, the delay setting module 10 is also used to determine whether the vehicle is in maintenance mode; if the vehicle is determined to be in maintenance mode, a node ID of each access node is allocated to set the balanced delay time of each access node according to each node ID.
[0108] Optionally, the delay setting module 10 is further used to determine whether the vehicle is currently powered on for the first time that day if it is determined that the vehicle is in a non-maintenance mode; if it is determined that the vehicle is powered on for the first time that day, set the equalization delay time.
[0109] Optionally, the delay setting module 10 is also used to not set the equalization delay time if it is determined that the vehicle is not powered on for the first time that day, and the communication data sent by the central node to each access node is sent after a delay of the corresponding sending delay time.
[0110] The vehicle-mounted optical network communication device provided by the present application adopts the vehicle-mounted optical network communication method in the above embodiment, which can solve the technical problem of delay and asynchrony in vehicle-mounted optical network communication. Compared with the prior art, the beneficial effects of the vehicle-mounted optical network communication device provided by the present application are the same as the beneficial effects of the vehicle-mounted optical network communication method provided by the above embodiment, and other technical features in the vehicle-mounted optical network communication device are the same as the features disclosed in the above embodiment method, which will not be repeated here.
[0111] The present application provides a vehicle-mounted optical network communication device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the vehicle-mounted optical network communication method in the above-mentioned embodiment one.
[0112] Reference below Figure 7, which shows a schematic diagram of the structure of an in-vehicle optical network communication device suitable for implementing the embodiment of the present application. The in-vehicle optical network communication device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The vehicle-mounted optical network communication device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0113] like Figure 7 As shown, the vehicle-mounted optical network communication device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the xxx device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the vehicle optical network communication device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a vehicle optical network communication device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided alternatively.
[0114] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0115] The vehicle-mounted optical network communication device provided by the present application adopts the vehicle-mounted optical network communication method in the above embodiment, which can solve the technical problem of delay and asynchrony in vehicle-mounted optical network communication. Compared with the prior art, the beneficial effects of the vehicle-mounted optical network communication device provided by the present application are the same as the beneficial effects of the vehicle-mounted optical network communication method provided by the above embodiment, and the other technical features in the vehicle-mounted optical network communication device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.
[0116] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0117] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0118] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the vehicle-mounted optical network communication method in the above-mentioned embodiment.
[0119] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.
[0120] The computer-readable storage medium may be included in the vehicle-mounted optical network communication device; or may exist independently without being assembled into the vehicle-mounted optical network communication device.
[0121] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0122] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0123] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0124] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned vehicle-mounted optical network communication method, and can solve the technical problem of delay and asynchrony in vehicle-mounted optical network communication. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the vehicle-mounted optical network communication method provided by the above-mentioned embodiment, and will not be repeated here.
[0125] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.
Claims
1. A vehicle-mounted optical network communication method, characterized in that: The vehicle-mounted optical network communication method comprises: Set the balanced delay time of each access node; Obtaining the difference compensation time of each access node; Calculate the sending delay duration corresponding to each of the access nodes according to the balanced delay time and the difference compensation time; The communication data sent to each access node is sent after being delayed by the corresponding sending delay time.
2. The vehicle-mounted optical network communication method according to claim 1, characterized in that: The step of calculating the transmission delay duration corresponding to each of the access nodes according to the equalization delay time and the difference compensation time includes: sending a ranging request to the access node; The access node returns a ranging response signal in response to the ranging request; Recording the receiving time when receiving the ranging response signal; The sending delay duration corresponding to each of the access nodes is calculated according to the difference between the receiving time and the balanced delay time.
3. The vehicle-mounted optical network communication method according to claim 2, characterized in that: After the step of calculating the sending delay duration corresponding to each of the access nodes according to the difference between the receiving time and the balanced delay time, the method further includes: Sending a compensation frame including the transmission delay duration to the corresponding access node; After receiving the compensation frame, the access node delays the preset initial time according to the sending delay duration.
4. The vehicle-mounted optical network communication method according to claim 1, characterized in that: The step of setting the equalization delay time of each access node includes: Configuring a balanced delay time for each of the access nodes; The balanced delay time is sent to the corresponding access nodes to adjust the preset initial time of each access node to the corresponding balanced delay time.
5. The vehicle-mounted optical network communication method according to claim 1, characterized in that: Before the step of setting the equalization delay time of each access node, the method further includes: Determine whether the vehicle is in maintenance mode; If it is determined that the vehicle is in the maintenance mode, a node ID of each access node is allocated to set the equilibrium delay time of each access node according to each node ID.
6. The vehicle-mounted optical network communication method according to claim 5, characterized in that: After the step of determining whether the vehicle is in the maintenance mode, the method further includes: If it is determined that the vehicle is in non-maintenance mode, it is determined whether the vehicle is currently powered on for the first time that day; If it is determined that the vehicle is powered on for the first time that day, the equalization delay time is set.
7. The vehicle-mounted optical network communication method according to claim 6, characterized in that: After the step of determining whether the vehicle is powered on for the first time that day if the vehicle is determined to be in the non-maintenance mode, the method further includes: If it is determined that the vehicle is not powered on for the first time that day, the equalization delay time is not set, and the communication data sent by the central node to each access node is sent after the corresponding sending delay time.
8. A vehicle-mounted optical network communication device, characterized in that: The device comprises: The delay setting module is used to set the balanced delay time of each access node; The delay setting module is further used to obtain the difference compensation time of each access node; A calculation module is configured to calculate the transmission delay duration corresponding to each of the access nodes according to the equalization delay time and the difference compensation time; The communication management module is used to send the communication data sent to each access node after a delay of the corresponding sending delay time.
9. A vehicle-mounted optical network communication device, characterized in that: The device comprises: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the vehicle-mounted optical network communication method according to any one of claims 1 to 7.
10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the vehicle-mounted optical network communication method according to any one of claims 1 to 7 are implemented.
