Vehicle-mounted passive optical network unit system and communication method thereof
By using the vehicle-mounted passive optical network unit system, VLAN conversion and UDP packet processing are performed using optical line terminals and optical network units, solving the problems of high power consumption, long latency, poor reliability and complex wiring in vehicle communication systems, and realizing vehicle communication with low power consumption, high bandwidth, low latency and electromagnetic interference protection.
Patent Information
- Application Number
- CN202511712268.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-20
- Publication Date
- 2026-02-27
AI Technical Summary
Existing vehicle communication systems suffer from high power consumption, long latency, poor reliability, weak anti-interference capabilities, and complex wiring, making it difficult to meet the requirements for low-latency, fast, accurate, stable, and reliable information collection and communication.
A vehicle-mounted passive optical network unit system is adopted. VLAN conversion and UDP packet processing are performed through optical line terminals and optical network units. Combined with optical splitters and vehicle-mounted processors, high-speed transmission of Ethernet UDP packets is achieved. The vehicle-mounted terminal control logic is directly designed in the optical network unit, and the passive optical network system is used for signal transmission.
It achieves low power consumption, high bandwidth, low latency, electromagnetic interference protection, simple wiring, and fast and stable vehicle communication, meeting the needs of vehicle terminals for fast and accurate transmission of low-speed control signals.
Smart Images

Figure CN121585935A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle-mounted communication, in particular to a vehicle-mounted passive optical network unit system and a communication method thereof. BACKGROUND
[0002] New energy vehicles have many sensors, and the control and signal transmission of cameras and radars. If all use wireless communication, the power consumption is large, and the power supply system is complex. Moreover, the frequency spectrum bandwidth is a problem. Wireless frequency spectrum is controlled by the state, and cannot be used as desired. If all use general wired communication, wiring and power supply will face problems. The main control party also has not so many interfaces. Some domestic car companies use copper cables weighing nearly 100 kilograms for communication on the vehicle, and the wiring density on the entire vehicle body is almost like a cocoon. This brings great trouble to after-sales maintenance and the stability and reliability of the vehicle-mounted communication system. Moreover, the doors and windows of the vehicle are often opened, which will inevitably involve the pulling of communication cables. The information collection and communication on the vehicle require low latency, fast and accurate stability and reliability, low power consumption, simple wiring, and easy maintenance. At present, many vehicle-mounted sensor control and information collection systems have high latency, slow speed, poor reliability, high power consumption, weak anti-interference ability, and complex wiring. SUMMARY
[0003] Therefore, it is necessary to provide a vehicle-mounted passive optical network unit system and a communication method thereof in view of the problems in the related art.
[0004] In order to achieve the above-mentioned purpose, in a first aspect, the present application provides a vehicle-mounted passive optical network unit system, comprising: an optical line terminal, configured to receive downlink data, perform vlan conversion on the downlink data, and establish a correspondence between a vlan number in the downlink data and a gem port. The multiple optical network units are configured to perform the following: receiving downlink data; parsing the downlink data to obtain a UDP data packet and determining whether the UDP data packet is an instruction UDP data packet; performing FCS check on the instruction UDP data packet; if the check is successful, parsing the instruction UDP data packet to obtain instruction information; marking the instruction information with a head and a tail; storing the instruction information marked with the head and the tail; extracting the instruction information marked with the head and the tail, generating control information based on the instruction information marked with the head and the tail, and sending the control information to a vehicle terminal, and reading uplink data obtained by the vehicle terminal from the vehicle terminal when the control information is read instruction information; forming the uplink data into a UDP frame, processing the UDP frame, and buffering the processed uplink data; extracting the buffered uplink data and sending the uplink data to the first interface; the first interface is further configured to send the uplink data sent by the multiplexer upward; the first interface receives downlink data after VLAN conversion; the optical line terminal is further configured to perform gem port-VLAN conversion on the uplink data sent by the optical network unit, and send the uplink data after gem port-VLAN conversion upward. An optical splitter is connected to the optical line terminal and the multiple optical network units, and is configured to send the downlink data after VLAN conversion to the optical network units, and send the uplink data sent by the optical network units to the optical line terminal. A vehicle processor is connected to the passive optical network system, and is configured to send downlink data to the passive optical network system, receive the uplink data sent by the passive optical network system, and process the uplink data. A vehicle terminal is connected to the passive optical network system, and is configured to collect the downlink data.
[0005] The vehicle passive optical network unit system can directly design the control logic of the vehicle terminal in the optical network unit, can transmit the low-speed control signal of the vehicle terminal in the form of an Ethernet UDP packet through a high-speed passive optical network system, and can quickly and accurately send the control signal to a specified vehicle terminal. The vehicle passive optical network unit system has the advantages of low energy consumption, high bandwidth, low latency, anti-electromagnetic interference, simple wiring, fast and stable reliability, and the like.
[0006] In some embodiments, the optical network unit includes: A first interface configured to receive downlink data; A parsing module configured to parse the downlink data to obtain a UDP data packet and determine whether the UDP data packet is an instruction UDP data packet; a check module, configured to perform fcs check on the instruction udp data packet, and if the check succeeds, parse the instruction udp data packet to obtain instruction information, and mark the head and tail of the instruction information; a write input buffer, configured to store the instruction information marked with the head and tail; a logic control module, configured to extract the instruction information marked with the head and tail, generate control information based on the instruction information marked with the head and tail, and send the control information to the vehicle terminal, and read uplink data obtained by the vehicle terminal; a storage processing module, configured to form a udp frame from the uplink data, process the udp frame, and cache the processed uplink data; a multiplexer, configured to extract the cached uplink data from the storage processing module and send the uplink data to the first interface; the first interface is also configured to send the uplink data sent by the multiplexer upward.
[0007] In some embodiments, the logic control module generates control information based on the instruction information marked with the head and tail and sends the control information to the vehicle terminal, including: the logic control module determines the type of the instruction information marked with the head and tail; if the instruction information marked with the head and tail is write instruction information, a start signal is generated before the first byte of the write instruction information, the write instruction information is sent to the vehicle terminal byte by byte, and a stop signal is generated after the last byte of the write instruction information is sent to the vehicle terminal; if the instruction information marked with the head and tail is read instruction, a start signal is generated and sent to the vehicle terminal to obtain the register address where the uplink data to be read is stored, and a stop signal is generated and sent to the vehicle terminal after the uplink data is read.
[0008] In some embodiments, the uplink data includes video stream data, picture data and gateway data; the storage processing module includes: a first storage module, connected to the logic control module, configured to form a video stream udp frame from the video stream data, calculate the fcs of the video stream udp frame, add the fcs of the video stream udp frame at the end of the video stream udp frame, and set a corresponding gem port frame to obtain processed video stream data; a first read data buffer, configured to store the processed video stream data; a second storage module, configured to obtain the picture data from the vehicle terminal, and form a picture udp frame from the picture data; a third storage module, configured to calculate the FCS of the picture udp frame, and map the FCS of the picture udp frame into the corresponding gem port frame after adding the FCS of the picture udp frame at the end of the picture udp frame, to obtain the processed picture data; a second read data buffer, configured to store the processed picture data; a physical medium attachment / physical coding sublayer, configured to acquire gateway data from the vehicle terminal; a fourth storage module, configured to store the gateway data.
[0009] In some embodiments, the multiplexer is configured to poll the first read data buffer, the second read data buffer and the fourth storage module, and extract the processed video stream data, the processed picture data and the gateway data from the first read data buffer, the second read data buffer and the fourth storage module according to a priority and a scheduling control algorithm, and transmit the processed video stream data, the processed picture data and the gateway data to the first interface.
[0010] In some embodiments, the downstream data comprises different vlan numbers and different packet types.
[0011] In some embodiments, the optical line terminal comprises: a media access controller, configured to receive downstream data; a vlan switch, configured to perform vlan conversion on the downstream data, to establish a correspondence between the vlan numbers in the downstream data and the gem ports; a second interface, configured to transmit the vlan-converted downstream data to the optical splitter, and transmit upstream data transmitted by the optical splitter to the vlan switch; the vlan switch is further configured to perform gem port-vlan conversion on the upstream data transmitted by the optical network unit, and transmit the gem port-vlan-converted upstream data to the media access controller; and the media access controller is further configured to transmit the upstream data transmitted by the vlan switch upward.
[0012] In some embodiments, the number of the optical splitters is plural, and each of the optical splitters is connected to the optical line terminal and connected to a different optical network unit.
[0013] In a second aspect, the application further provides a communication method of a vehicle passive optical network unit system, the communication method of the vehicle passive optical network unit system comprising: downloading downstream data using a vehicle processor; performing vlan conversion on the downstream data using an optical line terminal, to establish a correspondence between the vlan numbers in the downstream data and the gem ports; transmit the vlan-converted downstream data to the optical network unit using a splitter; receive the vlan-converted downstream data using the optical network unit; parse the vlan-converted downstream data to obtain a udp packet, and determine whether the udp packet is an instruction udp packet; if the udp packet is an instruction udp packet, perform fcs check on the instruction udp packet; if the check is successful, parse the instruction udp packet to obtain instruction information, and mark the head and tail of the instruction information; store the instruction information marked with the head and tail; extract the instruction information marked with the head and tail, generate control information based on the instruction information marked with the head and tail, and send the control information to the vehicle terminal; and when the control information is read instruction information, read the upstream data obtained by the vehicle terminal from the vehicle terminal; form the upstream data into a udp frame, process the udp frame, and cache the processed upstream data; extract the cached upstream data and transmit the upstream data to the optical line terminal via the splitter; perform gem port-vlan conversion on the upstream data transmitted by the optical network unit using the optical line terminal, and transmit the gem port-vlan converted upstream data to the vehicle processor.
[0014] The communication method of the vehicle passive optical network unit system can transmit the low-speed control signal of the vehicle terminal in the form of an ethernet udp packet at high speed, quickly and accurately send the control signal to the designated vehicle terminal, and has the advantages of low energy consumption, high bandwidth, low latency, anti-electromagnetic interference, simple wiring, fast and stable and reliable, etc. BRIEF DESCRIPTION OF DRAWINGS
[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed to be used in the embodiments or the prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.
[0016] Figure 1 a structural block diagram of the vehicle passive optical network unit system provided in an embodiment of the present application; Figure 2 a structural block diagram of the optical network unit in the vehicle passive optical network unit system in Figure 1 Figure 3 a structural block diagram of the optical network unit in the vehicle passive optical network unit system in Figure 1 a structural block diagram of the optical line terminal, optical mesh unit and splitter in the vehicle passive optical network unit system in Figure 4 a structural block diagram of the optical network unit in the vehicle passive optical network unit system in Figure 1 Structure block diagram of the central optical network unit and the vehicle-mounted terminal; Figure 5 Flow chart of the communication method of the vehicle-mounted passive optical network unit system provided in another embodiment of the present application.
[0017] Reference signs: 10, optical network unit; 101, first interface; 102, analysis module; 103, check module; 104, write input buffer; 105, logic control module; 1061, first storage module; 1062, first read data buffer; 1063, second storage module; 1064, third storage module; 1065, second read data buffer; 1066, physical medium adaptation layer / physical coding sublayer; 1067, fourth storage module; 107, multiplexer; 20, optical line terminal; 201, media access controller; 202, vlan switch; 203, second interface; 301, first optical splitter; 302, second optical splitter; 40, vehicle-mounted terminal; 401, camera; 402, gateway / hub; 50, vehicle-mounted processor. DETAILED DESCRIPTION
[0018] In order to make the purpose, technical scheme and advantages of the present application clearer, the present application is further described in detail below in combination with the drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and do not limit the present application.
[0019] In one embodiment, referring to Figure 1 The present application also provides a vehicle-mounted passive optical network unit system, which comprises: The optical line terminal 20 is used for receiving downlink data, performing vlan conversion on the downlink data, and establishing the correspondence between the vlan number in the downlink data and the gem port. A plurality of optical network units (ONU, Optical Network Unit) 10, the optical network unit 10 is used to perform the following contents: receiving downlink data; parsing the downlink data to obtain udp data packets, and judging whether the udp data packet is an instruction udp data packet; performing fcs check on the instruction udp data packet; if the check is successful, parsing the instruction udp data packet to obtain instruction information; and marking the head and tail of the instruction information; storing the instruction information marked with the head and tail; extracting the instruction information marked with the head and tail, generating control information based on the instruction information marked with the head and tail and issuing it to the vehicle terminal, and when the control information is read instruction information, reading the uplink data obtained by the vehicle terminal from the vehicle terminal; forming the uplink data into a udp frame, processing the udp frame, and buffering the processed uplink data; extracting the buffered uplink data and transmitting it to the first interface; the first interface is also used to transmit the multiplexer transmitted uplink data; the first interface receives the downlink data after vlan conversion; the optical line terminal is also used for gem port-vlan conversion of the uplink data transmitted by the optical network unit, and transmitting the gem port-vlan converted uplink data upward; Optical splitter, the optical splitter is connected with the optical line terminal and a plurality of optical network units, used for transmitting the downlink data after vlan conversion to the optical network unit, and transmitting the uplink data transmitted by the optical network unit 10 to the optical line terminal 20; Vehicle-mounted processor 50, the vehicle-mounted processor 50 can be connected with the passive optical network system, used for issuing downlink data to the passive optical network system, receiving and processing the uplink data transmitted by the passive optical network system; Vehicle terminal 40, the vehicle terminal 40 can be connected with the passive optical network system, used for collecting the downlink data.
[0020] The above-mentioned vehicle-mounted passive optical network unit system can directly design the control logic of the vehicle terminal 40 in the optical network unit 10, can transmit the low-speed control signal of the vehicle terminal 40 through the high-speed passive optical network system in the form of Ethernet udp packet, and can quickly and accurately send the control signal into the specified vehicle terminal 40, which has the advantages of low energy consumption, high bandwidth, low delay, anti-electromagnetic interference, simple wiring, fast and stable and reliable.
[0021] As an example, please refer to Figure 1 Please refer to Figure 2The optical network unit 10 can include: a first interface (Poninterf) 101, which is used to receive downstream data; a parsing module (defram) 102, which can be used to parse the downstream data to obtain a udp data packet, and determine whether the udp data packet is an instruction udp data packet; a check module (check) 103, which can be used to perform fcs check on the instruction udp data packet; if the check is successful, the instruction udp data packet is parsed to obtain instruction information; and the instruction information is marked at the head and tail; a write input buffer (wfifo) 104, which can be used to store the instruction information marked at the head and tail; a logic control module (I2c / can ctrl) 105, which can be used to extract the instruction information marked at the head and tail, generate control information based on the instruction information marked at the head and tail, and send the control information to the vehicle terminal 40, and when the control information is read instruction information, read the upstream data obtained by the vehicle terminal 40 from the vehicle terminal 40; a storage processing module, which is used to form a udp frame from the upstream data, process the udp frame, and cache the processed upstream data; a multiplexer (mux) 107, which is used to extract the cached upstream data from the storage processing module and transmit it to the first interface 101; and the first interface 101 is also used to transmit the upstream data transmitted by the multiplexer 107 upwards.
[0022] The optical network unit 10 described above, by setting the first interface 101, the parsing module 102, the check module 103, the write input buffer 104, the logic control module 105, the storage processing module and the multiplexer 107, the control logic of the vehicle terminal 40 can be directly designed in the optical network unit 10. When the optical network unit 10 is applied to a vehicle passive optical network unit system, it can be used for vehicle communication, and the low-speed control signal of the vehicle terminal can be transmitted in the form of an Ethernet udp packet through a high-speed passive optical network system, and the control signal can be quickly and accurately sent to the designated vehicle terminal. It has the advantages of low energy consumption, high bandwidth, low latency, anti-electromagnetic interference, simple wiring, fast and stable and reliable.
[0023] As an example, after the parsing module 102 parses the downstream data, it can identify whether the current udp data packet is an instruction udp data packet of the vehicle terminal through the gem port number packet type of the udp data packet, etc. If it is an instruction udp data packet, the check module 103 is used for fcs check. If it is data sent to the downstream gateway, etc., the fcs check can be performed without the check module, and the data is directly sent to the gateway in the vehicle terminal.
[0024] As an example, the check module 103 directly discards the instruction udp data packet currently checked if the check fails, to prevent misoperation.
[0025] As an example, the logic control module 105 generates the I2c / can corresponding protocol packet waveform when detecting the instruction information in the write input buffer 104, to complete the control of the vehicle terminal. Specifically, the logic control module generates the control information based on the head and tail marked instruction information and issues it to the vehicle terminal 40, which can include: the logic control module 105 judges the type of the head and tail marked instruction information; if the head and tail marked instruction information is write instruction information, a start signal is generated before the first byte of the write instruction information, and then it is issued byte by byte to the vehicle terminal 40, and a stop signal is generated after the last byte of the write instruction information is issued to the vehicle terminal 40; if the head and tail marked instruction signal is read instruction, a start signal is issued to the vehicle terminal 40 to obtain the register address where the uplink data to be read is stored, and a stop signal is generated after the uplink data reading is completed and issued to the vehicle terminal 40.
[0026] As an example, please continue to refer to Figure 2 , the uplink data includes video stream data, picture data and gateway data; the storage processing module can include: a first storage module (fram1) 1061 connected to the logic control module 105, used to form a video stream udp frame from the video stream data, calculate the fcs of the video stream udp frame, and add the fcs of the video stream udp frame at the end of the video stream udp frame, and set the corresponding gem port frame to obtain the processed video stream data; a first read data buffer (rfifo1) 1062 used to store the processed video stream data; a second storage module (ram1) 1063 used to obtain the picture data from the vehicle terminal 40 and form a picture udp frame from the picture data; a third storage module (fram) 1064 used to calculate the fcs of the picture udp frame and add the fcs of the picture udp frame at the end of the picture udp frame, and then map it into the corresponding gem port frame to obtain the processed picture data; a second read data buffer (rfifo2) 1065 used to store the processed picture data; a physical medium adaptation layer / physical coding sublayer (Pma / pcs) 1066 used to obtain gateway data from the vehicle terminal 40; a fourth storage module (ram2) 1067 used to store the gateway data.
[0027] As an example, the multiplexer 107 is configured to poll the first read data buffer 1062, the second read data buffer 1065 and the fourth storage module 1067, and extract processed video stream data, processed picture data and gateway data from the first read data buffer 1062, the second read data buffer 1065 and the fourth storage module 1067 according to a priority and a scheduling control algorithm and transmit the processed video stream data, the processed picture data and the gateway data to the first interface.
[0028] As an example, the downstream data can include different vlan numbers and different packet types.
[0029] As an example, please refer to Figure 3 , the optical line terminal 20 can include a media access controller (Mac) 201, which can be configured to receive downstream data; a vlan switch (vlan sw) 202, which can be configured to perform vlan conversion on the downstream data to establish a correspondence between vlan numbers in the downstream data and gemports; a second interface (pon) 203, which can be configured to transmit the downstream data after vlan conversion to the optical splitter and transmit upstream data transmitted by the optical splitter to the vlan switch 202; the vlan switch 202 is further configured to perform gem port-vlan conversion on upstream data transmitted by the optical network unit 10 and transmit the gem port-vlan converted upstream data to the media access controller 201; the media access controller 201 is further configured to transmit the upstream data transmitted by the vlan switch 202 upward.
[0030] As an example, the number of optical splitters can be multiple, and multiple optical splitters are connected to the optical line terminal 20 and are respectively connected to different optical network units 10. Specifically, Figure 3 In the embodiment, the number of optical splitters is two, the number of optical network units 10 is six, and the optical splitters include a first optical splitter 301 and a second optical splitter 302; the first optical splitter 301 can be connected to three optical network units 10, and the second optical splitter 302 can be connected to another three optical network units 10.
[0031] As an example, please refer to Figure 1 and Figure 4The vehicle terminal 40 can include a camera 401 and a gateway / hub 402. The camera 401 is connected to the logic control module 105 and the second storage module 1063. The gateway / hub 402 is connected to the physical medium attachment / physical coding sublayer 1066.
[0032] In this embodiment, the camera 401 in the vehicle terminal 40 and other vehicle sensors are connected to the optical network unit 10 of the passive optical network, and one end of the optical line terminal 20 is a mac port, which is directly connected to the mac port of the vehicle processor (such as CPU) 50 or other equipment. The logical control module (such as I2c / can control interface) 105, image information and other sensor data acquisition interface, and udp de-framing, framing, fcs (Frame Check Sequence, Frame Check Sequence) calculation, checking, buffering, polling scheduling processing function modules are added to the optical network unit 10. The vehicle processor sends instructions through the Ethernet udp package to complete the control and state reading of the vehicle terminal. The control instructions sent to different vehicle terminals through the optical line terminal 20 are no longer transmitted in low-speed i2c, can and other serial data, but are encoded and framed into udp Ethernet packages, and are distinguished by different vlan numbers, package types, etc. In the optical line terminal 20, the correspondence between the vlan number and the gem port is established through vlan conversion; the i2c, can and other low-speed control signals of the vehicle terminal 40 are transmitted in the form of Ethernet udp packages through the high-speed passive optical network system, which can be quickly and accurately sent to the designated optical network unit 10. After the designated optical network unit 10 receives the data udp package (udp data package), it analyzes the udp package and identifies whether the current udp package is a vehicle terminal control instruction package (i.e. instruction udp data package) through the gem port number, package type, etc. If it is data sent to the downstream gateway, it is directly sent to the downstream gateway; if it is a control instruction package, fcs checking is performed first; if the checking is correct, the control instruction is stored in the write input buffer 104 in a certain data format, and the instruction header and tail are marked; if the checking is incorrect, it is directly discarded to prevent misoperation. After the logical control module 105 detects that there is instruction information in the write input buffer 104, it generates the I2c / can corresponding protocol package waveform to complete the control of the camera 401 and other vehicle terminals.Specifically, the logic control module 105 judges the type of the instruction information marked with the head and tail; if the instruction information marked with the head and tail is write instruction information, a start signal is generated before the first byte of the write instruction information, and then the write instruction information is sent byte by byte to the vehicle-mounted terminal 40, and a stop signal is generated and sent to the vehicle-mounted terminal 40 after the last byte of the write instruction information is sent; if the instruction information marked with the head and tail is read instruction, a start signal is generated and sent to the vehicle-mounted terminal 40 to obtain the register address (for example, write) storing the uplink data to be read, and a stop signal is generated and sent to the vehicle-mounted terminal 40 after the uplink data reading is completed; the read uplink data is mapped into a udp frame, the fcs of which is calculated and added to the tail of the udp frame, and then the udp frame is mapped into a gem port frame, and the gem port frame is sent to the vehicle-mounted processor 50 through the optical splitter and the optical line terminal 20; if there is still instruction information in the write input buffer 104, the foregoing process is repeated.
[0033] For the uplink channel, the control return information and sensor data from the vehicle-mounted terminal 40 are encapsulated into udp Ethernet packets, and the data from the gateway are mapped into different gem port frames, and finally sent to the first interface 101 through the multiplexer (dispatching logic circuit) 107; and then sent to the vehicle-mounted processor (master) 50 through the optical splitter and the optical line terminal 20. Specifically, the data is first buffered, and then extracted from the buffer when a udp frame payload data is collected, and then composed into an Ethernet frame, and then mapped into a gem port frame, and then sent to the first interface 101 under the control of the multiplexer 107, and then sent to the vehicle-mounted processor 50 through the first interface 101.
[0034] As an example, the OLT and the onu are connected through an optical splitter, and one optical splitter can be connected with up to 64 onus; the connection between the vehicle-mounted terminals 40 can be reduced, and the power consumption of the vehicle-mounted passive optical network unit system can be greatly reduced, because the optical splitter does not need power supply and has low energy consumption. The vehicle-mounted passive optical network unit system can meet the requirements of low energy consumption, high bandwidth, low delay, fast and stable reliability, etc.; the electric vehicle is driven by electromagnetic force, and the electric signal is easily disturbed by the electromagnetic field, while the gpon is optical communication and is not disturbed by the electromagnetic field, and has stronger anti-electromagnetic interference ability.
[0035] In another embodiment, please refer to Figures 2 to 4 In another embodiment, please refer to Figure 5 The application also provides a communication method of a vehicle-mounted passive optical network unit system, and the communication method of the vehicle-mounted passive optical network unit system comprises the following steps: S10-S50.
[0036] S10: Downlink data is sent by using a vehicle-mounted processor.
[0037] S20: converting the downlink data using the optical line terminal to establish a correspondence between the VLAN number in the downlink data and the gem port.
[0038] S30: transmitting the VLAN-converted downlink data to the optical network unit using the optical splitter.
[0039] S40: receiving the VLAN-converted downlink data using the optical network unit; parsing the VLAN-converted downlink data to obtain a UDP data packet, and determining whether the UDP data packet is an instruction UDP data packet; if the UDP data packet is an instruction UDP data packet, performing FCS verification on the instruction UDP data packet; if the verification is successful, parsing the instruction UDP data packet to obtain instruction information; marking the head and tail of the instruction information; storing the instruction information marked with the head and tail; extracting the instruction information marked with the head and tail, generating control information based on the instruction information marked with the head and tail, and sending the control information to the vehicle terminal; and when the control signal is a read instruction signal, reading the uplink data obtained by the vehicle terminal from the vehicle terminal; forming the uplink data into a UDP frame, processing the UDP frame, and buffering the processed uplink data; extracting the buffered uplink data and transmitting the uplink data to the optical line terminal via the optical splitter.
[0040] S50: performing gem port-VLAN conversion on the uplink data transmitted by the optical network unit using the optical line terminal, and transmitting the gem port-VLAN-converted uplink data to the vehicle processor.
[0041] The communication method of the vehicle passive optical network unit system can transmit low-speed control signals of the vehicle terminal in the form of Ethernet UDP packets at high speed, quickly and accurately send control signals to the specified vehicle terminal, and has the advantages of low energy consumption, high bandwidth, low latency, anti-electromagnetic interference, simple wiring, fast and stable and reliable.
[0042] The communication method of the vehicle passive optical network unit system in the embodiment is a communication method of the vehicle passive optical network unit system as described in Figures 1 to 4 and the corresponding embodiment.
[0043] In one specific example, the vehicle passive optical network unit system communication method is used to control and collect images of the vehicle camera. Assuming that the camera connected to the optical network unit 10 is used to take pictures, and the camera result is sent to the screen connected to the vehicle processor 50, and the control interface of the camera is i2c, please refer to Figures 2 to 4 The corresponding communication method of the vehicle passive optical network unit system can include the following steps: First step: the passive optical network system completes initialization, establishes cpu (on-board processor 50), olt (optical line terminal 20), optical splitter, onu (optical network unit 10) to terminal registration and connection.
[0044] Second step: cpu fills in the form of udp protocol package, fills in the form of vlan, type and other information representing signaling flow information, and sends downlink to ensure that information can flow to onu_dev1_1.
[0045] Third step, after receiving the instruction information, onu_dev1_1 confirms that it is the information it receives, enters defram to parse gem port frame to obtain udp package, and sends it into check module for fcs calculation verification. If the verification result is correct, the udp is parsed to obtain the instruction information of cpu, the head and tail marks are made, and the i2c write instruction wfifo is stored. If it is data sent to the downlink gateway, it is sent to the gateway.
[0046] Fourth step: the i2c / can logic control circuit of the camera detects that there is instruction information in the wfifo, extracts the instruction from the wfifo, if it is a write instruction, generates a start signal before the first byte of the instruction, then writes the instruction byte by byte into the terminal, generates a stop signal after writing the last byte of the current instruction. If it is a read instruction, a start signal is sent at the beginning of the instruction, and after writing the read instruction and the address of the register, data is received. After the data is read, stop information is sent. The read data is formed into a udp frame, the fcs of the udp frame is calculated and added at the end of the frame, then mapped into a gemport frame and stored in the cache fifo1, waiting for the scheduling control circuit mux of the first interface 101 to schedule. If there is still instruction in the wfifo, the above process is started again.
[0047] Fifth step: the image data sent by the camera through a special interface in a certain format is written into ram1. When fram detects that the cache is enough for a udp frame data, the data group udp frame is read, the fcs is calculated and added at the end of the frame, then mapped into the corresponding gemport frame and stored in the cache fifo2, waiting for the scheduling control circuit mux of the gpon port to schedule. The uplink data from the gateway and the like is stored in the cache ram2, waiting for the scheduling control circuit mux of the gpon port to schedule.
[0048] Sixth step, the scheduling control circuit mux of the first interface 101 polls rfifo1, rfifo2 and ram2, respectively extracts the package from them according to priority and scheduling control algorithm, sends it into the first interface 101, and then sends it up to enter the olt, completes the conversion of gem port to vlan, and then sends it to cpu from mac. Cpu obtains its source information by identifying vlan and type.
[0049] The technical features of the above embodiments can be combined in any manner. For the sake of brevity, not all possible combinations of the technical features of the above embodiments are described, however, as long as the combinations of the technical features do not contradict each other, they should be considered to be within the scope of the present disclosure.
[0050] The above embodiments only express several implementation manners of the present application, and the description is specific and detailed, but it should not be understood as a limitation on the patent scope of the application. It should be pointed out that for ordinary skilled persons in the art, some modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application should be subject to the appended claims.
Claims
1. A vehicle-mounted passive optical network unit system, characterized in that, include: An optical line terminal (OLT) is used to receive downlink data and perform VLAN conversion on the downlink data to establish the correspondence between VLAN numbers and gem ports in the downlink data. Multiple optical network units (ONUs) are configured to perform the following functions: receive downlink data; parse the downlink data to obtain UDP packets and determine whether the UDP packets are instruction UDP packets; perform FCS verification on the instruction UDP packets; if the verification is successful, parse the instruction UDP packets to obtain instruction information; and mark the instruction information with headers and footers. Store the instruction information marked with the beginning and end; Extract the header and tail marked instruction information, generate control information based on the header and tail marked instruction information and send it to the vehicle terminal, and when the control information is read instruction information, read the uplink data obtained by the vehicle terminal from the vehicle terminal; form the uplink data into a UDP frame, process the UDP frame, and cache the processed uplink data; The cached uplink data is extracted and transmitted to the first interface; the first interface is also used to transmit the uplink data transmitted by the multiplexer upwards; the first interface receives downlink data after VLAN conversion; the optical line terminal is also used to perform gem port-VLAN conversion on the uplink data transmitted by the optical network unit and transmit the gem port-VLAN converted uplink data upwards. The optical splitter is connected to both the optical line terminal and the multiple optical network units, and is used to transmit downlink data after VLAN conversion to the optical network units and transmit uplink data transmitted by the optical network units to the optical line terminal. The vehicle-mounted processor is connected to the passive optical network system and is used to send downlink data to the passive optical network system, receive uplink data transmitted by the passive optical network system, and process it. The vehicle-mounted terminal is connected to the passive optical network system and is used to collect the downlink data.
2. The vehicle-mounted passive optical network unit system according to claim 1, characterized in that, The optical network unit includes: The first interface is used to receive downlink data; The parsing module is used to parse the downlink data to obtain UDP data packets and determine whether the UDP data packets are command UDP data packets; The verification module is used to perform FCS verification on the instruction UDP data packet; if the verification is successful, the instruction UDP data packet is parsed to obtain instruction information; and the instruction information is marked with a header and a footer. Write to the input buffer to store the instruction information marked with the beginning and end; The logic control module is used to extract the instruction information marked with the beginning and end, generate control information based on the instruction information marked with the beginning and end and send it to the vehicle terminal, and read the uplink data obtained by the vehicle terminal from the vehicle terminal. The storage processing module is used to form the uplink data into UDP frames, process the UDP frames, and cache the processed uplink data. A multiplexer is used to extract cached uplink data from the storage processing module and transmit it to the first interface; the first interface is also used to transmit the uplink data transmitted by the multiplexer upwards.
3. The vehicle-mounted passive optical network unit system according to claim 2, characterized in that, The logic control module generates control information based on the pre- and post-marked instruction information and sends it to the vehicle terminal, including: The logic control module determines the type of the instruction information marked with the beginning and end; If the instruction information marked at the beginning and end is a write instruction information, then after generating a start signal before the first byte of the write instruction information, it is sent to the vehicle terminal byte by byte, and after sending the last byte of the write instruction information, a stop signal is generated and sent to the vehicle terminal. If the instruction signals marked at the beginning and end are read instructions, a start signal is generated and sent to the vehicle terminal to obtain the register address storing the uplink data to be read, and a stop signal is generated and sent to the vehicle terminal after the uplink data reading is completed.
4. The vehicle-mounted passive optical network unit system according to claim 2, characterized in that, The uplink data includes video stream data, image data, and gateway data; the storage processing module includes: The first storage module, connected to the logic control module, is used to form video stream UDP frames from the video stream data, calculate the FCS of the video stream UDP frames, and add the FCS of the video stream UDP frames to the end of the video stream UDP frames. After that, the corresponding gem port frame should be set to obtain the processed video stream data. The first read data buffer is used to store the processed video stream data; The second storage module is used to obtain the image data from the vehicle terminal and form the image data into an image UDP frame. The third storage module is used to calculate the FCS of the image UDP frame, append the FCS of the image UDP frame to the end of the image UDP frame, and map it into the corresponding gem port frame to obtain the processed image data. The second read data buffer is used to store the processed image data; Physical Media Adaptation Layer / Physical Encoding Sublayer, used to obtain gateway data from the vehicle terminal; The fourth storage module is used to store the gateway data.
5. The vehicle-mounted passive optical network unit system according to claim 4, characterized in that, The multiplexer is used to poll the first read data buffer, the second read data buffer, and the fourth storage module, and extract the processed video stream data, processed image data, and gateway data from the first read data buffer, the second read data buffer, and the fourth storage module according to priority and scheduling control algorithm, and transmit them to the first interface.
6. The vehicle-mounted passive optical network unit system according to claim 1, characterized in that, The downlink data includes different VLAN numbers and different packet types.
7. The vehicle-mounted passive optical network unit system according to claim 6, characterized in that, The optical line terminal includes: Media access controller, used to receive downlink data; A VLAN switch is used to perform VLAN translation on the downlink data in order to establish the correspondence between the VLAN number and gemport in the downlink data; The second interface is used to transmit downlink data after VLAN conversion to the optical splitter, and to transmit uplink data transmitted by the optical splitter to the VLAN switch; The VLAN switch is also used to perform gem port-VLAN conversion on the uplink data transmitted by the optical network unit, and transmit the gem port-VLAN converted uplink data to the media access controller; the media access controller is also used to transmit the uplink data transmitted by the VLAN switch upwards.
8. The vehicle-mounted passive optical network unit system according to claim 6, characterized in that, The number of optical splitters is multiple, and each of the multiple optical splitters is connected to the optical line terminal and to different optical network units.
9. A communication method for a vehicle-mounted passive optical network unit system, characterized in that, include: Use the vehicle's onboard processor to send downlink data; The downlink data is VLAN-converted using an optical line terminal to establish the correspondence between the VLAN number and gemport in the downlink data; The downlink data after VLAN conversion is transmitted to the optical network unit using a splitter. The optical network unit receives downlink data after VLAN conversion; the downlink data after VLAN conversion is parsed to obtain UDP data packets, and it is determined whether the UDP data packets are command UDP data packets; if the UDP data packets are command UDP data packets, the command UDP data packets are checked by FCS; if the check is successful, the command UDP data packets are parsed to obtain command information; and the command information is marked with headers and footers. Store the instruction information marked with the beginning and end; Extract the header and tail marked instruction information, generate control information based on the header and tail marked instruction information and send it to the vehicle terminal, and when the control information is read instruction information, read the uplink data obtained by the vehicle terminal from the vehicle terminal; form the uplink data into a UDP frame, process the UDP frame, and cache the processed uplink data; The cached uplink data is extracted and transmitted to the optical line terminal via the optical splitter; The optical line terminal is used to perform gem port-vlan conversion on the uplink data transmitted by the optical network unit, and then transmits the gem port-vlan converted uplink data to the vehicle processor.
Citation Information
Cited By
A video alarm transmission method and system of a vehicle-mounted PON network and a medium
CN122226932A