CN114389888A - Vehicle-mounted equipment, network awakening method and device thereof, and storage medium - Google Patents
Vehicle-mounted equipment, network awakening method and device thereof, and storage medium Download PDFInfo
- Publication number
- CN114389888A CN114389888A CN202210063358.3A CN202210063358A CN114389888A CN 114389888 A CN114389888 A CN 114389888A CN 202210063358 A CN202210063358 A CN 202210063358A CN 114389888 A CN114389888 A CN 114389888A
- Authority
- CN
- China
- Prior art keywords
- vehicle
- network
- mounted equipment
- data packet
- wake
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 83
- 238000012545 processing Methods 0.000 claims abstract description 45
- 230000015654 memory Effects 0.000 claims description 27
- 230000006870 function Effects 0.000 claims description 26
- 230000002618 waking effect Effects 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 7
- 230000007958 sleep Effects 0.000 description 11
- 238000005516 engineering process Methods 0.000 description 7
- 230000005059 dormancy Effects 0.000 description 6
- 238000004891 communication Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 5
- 230000007704 transition Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000005684 electric field Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 239000000446 fuel Substances 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 102100034112 Alkyldihydroxyacetonephosphate synthase, peroxisomal Human genes 0.000 description 1
- 101000799143 Homo sapiens Alkyldihydroxyacetonephosphate synthase, peroxisomal Proteins 0.000 description 1
- 238000000848 angular dependent Auger electron spectroscopy Methods 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000005670 electromagnetic radiation Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/161—Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/164—Adaptation or special uses of UDP protocol
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2212/00—Encapsulation of packets
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Small-Scale Networks (AREA)
Abstract
The application discloses vehicle-mounted equipment, a network awakening method and device thereof, and a storage medium, and relates to the field of vehicle-mounted equipment. The method comprises the following steps: receiving a network awakening data packet which is sent by an upper computer and used for awakening the vehicle-mounted equipment; and processing the received network awakening data packet according to a preset configured access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment or not according to a processing result so as to awaken the vehicle-mounted equipment. Through the embodiment of the application, the access control list function can be used for simulating the network awakening function to quickly awaken the vehicle-mounted equipment which enters the low power consumption modes such as the dormant mode and the like, the awakening time of the vehicle-mounted equipment is shortened, the vehicle-mounted equipment can quickly enter the working mode, and the user experience is improved.
Description
Technical Field
The present disclosure relates to the field of vehicle-mounted devices, and in particular, to a vehicle-mounted device, a network wake-up method and apparatus thereof, and a storage medium.
Background
WOL (Wake On LAN, web wakeup) technology is now commonly used in PCs, and WOL functionality is generally enabled in the BIOS of the PC. When the PC enters standby or sleep, the WOL function-enabled PC is woken up by a remote WOL packet, and WOL is now also gradually applied to an in-vehicle device on which an ethernet chip having a WOL function is mounted.
When the number of vehicle devices is increased and the vehicle-mounted communication rate is increased, a particularly strict requirement is generated on the power consumption of the vehicle, and the requirement on the overall power consumption of the vehicle is more and more strict along with the gradual transition of the vehicle from the traditional fuel field to the hybrid field to the pure electric field, and particularly, the loss of the power consumption is required to be better reduced when the vehicle is in a flameout state. At this time, when the vehicle is in a flameout state, the vehicle-mounted device enters a low power consumption sleep mode to reduce the overall power consumption of the vehicle.
Since the conventional WOL function is relatively limited, the vehicle ethernet can be woken up only by sending the magic packet, and specifically, one broadcast frame is implemented by using a special network message of the magic packet, which includes a 48-bit MAC address repeated 16 times. According to the awakening mode for awakening the vehicle-mounted Ethernet by sending the magic packet, as the MAC address is required to be repeated for many times, the vehicle-mounted equipment which enters the low power consumption modes such as dormancy and the like cannot be awakened quickly to enter the working mode quickly, the awakening time is long, and the user experience is influenced.
Disclosure of Invention
The embodiment of the application aims to provide a vehicle-mounted device and a network awakening method, device and storage medium thereof, and can solve the problems that the conventional vehicle-mounted device which cannot be awakened into a low power consumption mode such as a sleep mode can be rapidly switched into a working mode, the awakening time is long, and the user experience is influenced.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions: a method for network wake-up of a vehicle-mounted device, the method comprising:
receiving a network awakening data packet which is sent by an upper computer and used for awakening the vehicle-mounted equipment;
and processing the received network awakening data packet according to a preset configured access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment or not according to a processing result so as to awaken the vehicle-mounted equipment.
Optionally, the network wakeup packet format includes: UDP packets and fixed port numbers.
Optionally, the access control list function of the vehicle-mounted device is enabled when the vehicle-mounted device is in the sleep state.
Optionally, before the network wake-up data packet is sent to the vehicle-mounted device, the upper computer packages the network wake-up data packet through a TCP/IP protocol, and then the upper computer sends the network wake-up data packet after the TCP/IP package to the vehicle-mounted device.
Optionally, the received network wake-up data packet is processed according to a preset access control list rule, and whether to trigger the interrupt of the vehicle-mounted device is determined according to a processing result so as to wake up the vehicle-mounted device; the method comprises the following steps:
the vehicle-mounted equipment analyzes the received network awakening data packet packaged by the TCP/IP to obtain an analyzed network awakening data packet;
and the vehicle-mounted equipment processes the analyzed network awakening data packet according to a preset access control list rule, and determines whether to trigger the interruption of the vehicle-mounted equipment or not according to a processing result so as to awaken the vehicle-mounted equipment.
Optionally, the determining whether to trigger the interrupt of the vehicle-mounted device according to the processing result is performed to wake up the vehicle-mounted device; the method comprises the following steps:
and if the processing result shows that the network awakening data packet conforms to the preset access control list rule, triggering the interruption of the vehicle-mounted equipment according to the network awakening data packet so as to awaken the vehicle-mounted equipment.
Optionally, the determining whether to trigger the interrupt of the vehicle-mounted device according to the processing result is performed to wake up the vehicle-mounted device; the method comprises the following steps:
and if the processing result shows that the network awakening data packet does not accord with the preset access control list rule, discarding the network awakening data packet, not triggering the interruption of the vehicle-mounted equipment, and not awakening the vehicle-mounted equipment.
In order to solve the above technical problem, the embodiments of the present application further provide the following technical solutions: an apparatus for network wake-up of a vehicle device, the apparatus comprising: receiving module and awaken module, wherein:
the receiving module is used for receiving a network awakening data packet which is sent by the upper computer and used for awakening the vehicle-mounted equipment;
and the awakening module is used for processing the received network awakening data packet according to a preset configured access control list rule and determining whether to trigger the interruption of the vehicle-mounted equipment or not according to a processing result so as to awaken the vehicle-mounted equipment.
In order to solve the above technical problem, the embodiments of the present application further provide the following technical solutions: an in-vehicle apparatus comprising: the network wake-up system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the network wake-up method for the vehicle-mounted device are realized according to any embodiment of the application.
In order to solve the above technical problem, the embodiments of the present application further provide the following technical solutions: a storage medium, where a program of a vehicle device network wake-up method is stored, and when executed by a processor, the program of the vehicle device network wake-up method implements steps of a vehicle device network wake-up method according to any embodiment of the present application.
Compared with the prior art, according to the vehicle-mounted device and the network awakening method, device and storage medium thereof provided by the embodiment of the application, the network awakening (WOL) data packet which is sent by the upper computer and used for awakening the vehicle-mounted device is received, the received network awakening data packet is processed according to a preset configured Access Control List (ACL) rule, whether the interrupt of the vehicle-mounted device is triggered or not is determined according to a processing result, and the vehicle-mounted device is awakened. Therefore, the Access Control List (ACL) function can be used for simulating a network wake-up (WOL) function to quickly wake up the vehicle-mounted equipment which enters low-power-consumption modes such as dormancy and the like, the wake-up time of the vehicle-mounted equipment is shortened, the vehicle-mounted equipment can quickly enter a working mode, and the user experience is improved. The method is particularly suitable for vehicle-mounted equipment such as TBOX, OBU, ECU or vehicle-mounted router in the field of vehicle-mounted Ethernet.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a schematic flowchart illustrating a method for network wake-up of a vehicle-mounted device according to the present application;
fig. 2 is a schematic flowchart illustrating a process of processing a received wake-on-lan data packet according to a preset access control list rule in a wake-on-lan method for a vehicle device according to the present application;
FIG. 3 is a schematic structural diagram of an apparatus for network wake-up of a vehicle-mounted device according to the present application;
FIG. 4 is a schematic flowchart of a method for network wake-up of a vehicle-mounted device according to the present application;
fig. 5 is a schematic structural diagram of an in-vehicle device provided by the present application.
Detailed Description
In order to facilitate an understanding of the present application, the present application is described in more detail below with reference to the accompanying drawings and specific embodiments. It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may be present. As used in this specification, the terms "upper," "lower," "inner," "outer," "bottom," and the like are used in an orientation or positional relationship indicated based on the orientation or positional relationship shown in the drawings for convenience in describing the present application and for simplicity in description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated in a particular orientation, and therefore should not be construed as limiting the present application. Furthermore, the terms "first," "second," "third," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In addition, the technical features mentioned in the different embodiments of the present application described below may be combined with each other as long as they do not conflict with each other.
WOL (Wake On LAN) is a technique that functions to enable a device that has entered a sleep or power-off state to issue a command to the device through the other end of a LAN (e.g., ethernet), to Wake up from the sleep state, to return to an operational state, or to transition from the power-off state to the power-On state.
WOL technology is now commonly used in PCs, and typically WOL functionality can be enabled in the BIOS of the computer. The conventional WOL function is basically used for LAN wake-up of a PC and remote wake-up by a router, and the hardware requirement for the LAN must support the WOL function. When the PC enters standby or sleep, the remote application program can only send the magic packet to wake up the PC with the WOL function started. WOL is also currently being applied to in-vehicle devices that mount an in-vehicle ethernet chip having a WOL function.
The vehicle-mounted Ethernet is a novel local area network technology for connecting electronic units in a vehicle through the Ethernet, and different from the traditional Ethernet which uses 4 pairs of unshielded twisted pair cables, the vehicle-mounted Ethernet can realize the transmission rate of 100Mbit/s or even 1Gbit/s on a single pair of unshielded twisted pair cables, and simultaneously also meets the requirements of the automobile industry on high reliability, low electromagnetic radiation, low power consumption, bandwidth allocation, low delay, synchronous real-time property and the like.
Now, with the popularization of the vehicle-mounted ethernet technology, more and more vehicle enterprises begin to deploy the vehicle-mounted ethernet function on self-developed vehicle types, and the deployed vehicle-mounted ethernet is not the application of a local network any more, but integrates entertainment, security and communication subsystems to construct a vehicle-mounted ethernet total system.
The function of the former automobile is simple, the required network bandwidth is smaller, but at present, due to the application of new technologies such as ADAS, infotainment system, active safety system and the like and the enhancement of the traditional technologies, the network requirement in the automobile is increased rapidly and exceeds the capacity limit of the traditional vehicle-mounted networks such as CAN, Flexray and the like, so that the automobile enterprise pursues a faster and stronger communication mode, and the data communication in the automobile is increased from the traditional several Kbps and several Mbps to the current 100Mbps and even 1000Mbps and the like.
When the number of vehicle devices is increased and the vehicle-mounted communication rate is increased, a particularly strict requirement is generated on the power consumption of the vehicle, and the requirement on the overall power consumption of the vehicle is more and more strict along with the gradual transition of the vehicle from the traditional fuel field to the hybrid field to the pure electric field, and particularly, the loss of the power consumption is required to be better reduced when the vehicle is in a flameout state. At this time, when the vehicle is in a flameout state, the vehicle-mounted device enters a low power consumption sleep mode to reduce the overall power consumption of the vehicle.
Because the traditional WOL function has larger limitation, the vehicle-mounted Ethernet can only be woken up by sending a magic packet (the format of the magic packet is that the MAC address is the MAC address of the woken-up device, the IP address is 255.255.255.255, and the PORT is self-defined). Specifically, one broadcast frame is implemented with a special network message of a magic packet, which includes a 48-bit MAC address repeated 16 times. According to the awakening mode for awakening the vehicle-mounted Ethernet by sending the magic packet, as the MAC address is required to be repeated for many times, the vehicle-mounted equipment which enters the low power consumption modes such as dormancy and the like cannot be awakened quickly to enter the working mode quickly, the awakening time is long, and the user experience is influenced.
In view of the above, the present application provides a method for waking up a vehicle device on a network, where a received network wake-up packet is processed according to a preset access control list rule, and whether to trigger an interrupt of the vehicle device to wake up the vehicle device is determined according to a processing result, and a format of the network wake-up packet is also changed from a conventional magic packet to a UDP packet and a fixed port number. Therefore, the network awakening data packet can be sent more flexibly, the Access Control List (ACL) function is used for simulating the network awakening (WOL) function to quickly awaken the vehicle-mounted equipment which enters the low power consumption modes such as the dormancy mode, the awakening time of the vehicle-mounted equipment is shortened, the vehicle-mounted equipment can quickly enter the working mode, and the user experience is improved.
For the purpose of facilitating an understanding of the above inventive concepts of the present application, reference is made to the following detailed description of the embodiments taken in conjunction with the accompanying drawings.
In one embodiment, as shown in fig. 1, the present application provides a method for network wake-up of a vehicle device, where the method includes:
s1, receiving a network Wake-On (WOL) data packet which is sent by the upper computer and used for waking up the vehicle-mounted equipment;
and S2, processing the received network awakening data packet according to a preset configured Access Control List (ACL) rule, and determining whether to trigger the interruption of the vehicle-mounted equipment according to a processing result so as to awaken the vehicle-mounted equipment.
In this embodiment, a network wake-up (WOL) packet sent by an upper computer and used for waking up the vehicle-mounted device is received, the received network wake-up packet is processed according to a preset Access Control List (ACL) rule, and whether to trigger an interrupt of the vehicle-mounted device is determined according to a processing result, so as to wake up the vehicle-mounted device. Therefore, the Access Control List (ACL) function can be used for simulating a network wake-up (WOL) function to quickly wake up the vehicle-mounted equipment which enters low-power-consumption modes such as dormancy and the like, the wake-up time of the vehicle-mounted equipment is shortened, the vehicle-mounted equipment can quickly enter a working mode, and the user experience is improved. The system is particularly suitable for vehicle-mounted equipment without WOL function in the field of vehicle-mounted Ethernet, such as TBOX (Telematics Box), OBU (On board Unit), ECU (Electronic Control Unit, also called traveling computer, vehicle-mounted computer) or vehicle-mounted router.
In one embodiment, in the step S1, the receiving unit receives a network wake-up packet sent by the upper computer for waking up the vehicle-mounted device.
Specifically, the On-board device includes a device that carries an ethernet chip having an Access Control List (ACL) function and configures an IP address, and includes a TBOX (Telematics Box), an OBU (On board Unit), an ECU (Electronic Control Unit, also called a vehicle computer or an On-board computer), or an On-board router.
The in-vehicle device may be a hardware device without wake on network (WOL) functionality.
And when the vehicle-mounted equipment is in a dormant state, the ACL function of the Ethernet chip is enabled.
The network awakening data packet is generated and sent by an upper computer used for awakening the vehicle-mounted equipment. Wherein the Wake-On-LAN (WOL) packet has a format including: UDP (User data packet Protocol) packets and fixed port numbers.
For example: the network awakening data packet format is as follows: uwolf. exe-m 112233445566192.168.2.1.
Wherein uwolc.exe is the Sock data packet of UDP, 112233445566 is the MAC address, 192.168.2.1 is the IP address of the IP gateway.
And the IP gateway and the IP address are configured on the vehicle-mounted equipment to be awakened.
Before the network awakening data packet is sent to the vehicle-mounted equipment, the upper computer packages the network awakening data packet through a TCP/IP protocol, and then the upper computer sends the network awakening data packet which is packaged through the TCP/IP protocol to the vehicle-mounted equipment. And the network data packet received by the vehicle-mounted equipment is a network awakening data packet packaged by TCP/IP.
In this embodiment, the format of the wake-on-lan packet is changed from a conventional magic packet to a UDP packet and a fixed port number, so that the wake-on-lan packet is more flexibly sent.
In an embodiment, as shown in fig. 2, in the step S2, the received network wake-up packet is processed according to a preset access control list rule, and whether to trigger an interrupt of the vehicle-mounted device is determined according to a processing result, so as to wake up the vehicle-mounted device.
Specifically, the received network wake-up data packet is processed according to a preset access control list rule, and whether to trigger the interruption of the vehicle-mounted device is determined according to a processing result so as to wake up the vehicle-mounted device; the method comprises the following steps:
and S21, the vehicle-mounted equipment analyzes the received network awakening data packet after TCP/IP packaging to obtain an analyzed network awakening data packet.
And S22, the vehicle-mounted equipment processes the analyzed network awakening data packet according to a preset access control list rule, and determines whether to trigger the interruption of the vehicle-mounted equipment according to a processing result so as to awaken the vehicle-mounted equipment.
Specifically, if the processing result shows that the wake-on-lan data packet conforms to the preset access control list rule, the interrupt of the vehicle-mounted device is triggered according to the wake-on-lan data packet to wake up the vehicle-mounted device.
And if the processing result shows that the network awakening data packet does not accord with the preset access control list rule, discarding the network awakening data packet, not triggering the interruption of the vehicle-mounted equipment, and not awakening the vehicle-mounted equipment.
An Access Control List (ACL) is a packet filtering-based Access Control technique that can filter data packets on an interface according to a set rule, allow them to pass or drop. By means of the access control list, the access of the user to the network can be effectively controlled, and therefore the network security is guaranteed to the maximum extent.
The access control list is a set formed by one or more rules, and the rule refers to a judgment statement describing message matching conditions, and the conditions can be a source address, a destination address, a port number and the like of a message. The rules provided by the method are flexible and changeable, the data packet sending mode can be selected and set according to requirements, and the rules of the access control list are suitable for hardware without WOL function.
The access control list is essentially a message filter, the rules are filter elements for filtering, and the device performs message matching based on the rules, can filter out a specific message, and allows or prevents the message from passing through according to the processing policy of the service module applying the ACL.
In this application, the preset access control list rule is pre-configured in the vehicle-mounted device, and the preset access control list rule includes: packet mode, mode mask, and operation.
Wherein, the data packet mode: including the format or message type of the wake-on-lan packet. The access control list ACL supports a wide variety of filtered message types, including: ICMP, TCP, UDP, GRE, IGMP, IP, IPinIP, OSPF.
Mode masking: the pattern mask is in the same format as the IP address and is a 32-bit numeric string that indicates which bits of the IP address are to be examined.
The operation is as follows: the port operator supports port comparison when the protocol type is TCP or UDP, and the supported comparison operations comprise: equal to, greater than, less than, not equal to, or between.
After the rules of the access control list are configured in advance, the vehicle-mounted device reserves a special interrupt GPIO, and when the vehicle-mounted device is in a sleep state, the GPIO can be interrupted and the GPIO pin is pulled high.
When a network awakening data packet with an access control list rule comes in, data in the network awakening data packet firstly triggers the value of a relevant register on the PHY/SWITCH, then the PHY/SHWITCH triggers the GPIO to interrupt and awaken the Linux kernel, and then the Linux kernel reports a Uevent to awaken the whole vehicle-mounted system. And when the vehicle-mounted system is completely awakened, the GPIO interruption is disabled.
Specifically, when the access control list of the present application is in operation, after receiving network data, the IP gateway processor calls the memory, reads packet header information, such as an IP address, of a network wake-up packet, searches the routing table, checks whether the packet header information is in a routing table entry, if the packet header information is in the routing table entry, forwards the packet from a selected interface of the routing table (if the packet header information is not in the routing table entry, discards the packet), and then the data enters the access control list of the interface and is screened according to a rule set by the access control list.
When the access control list screens the network awakening data packet, once the data of the network awakening data packet is matched with a certain access control list rule, other remaining rules in the access control list are skipped, and the network awakening data packet is allowed according to a judgment statement of the matched access control list rule. If the data of the wake-up packet does not match a certain access control list rule, the next rule in the access control list will be used to test the wake-on-lan packet in turn. The matching process continues until the end of the access control list. And if the data of the wake-up data packet does not match with the access control list rule, directly discarding the network wake-up data packet.
Based on the same concept, in an embodiment, as shown in fig. 3, the present application provides an apparatus for network wake-up of a vehicle device, which is applied to a method for network wake-up of a vehicle device according to any of the foregoing embodiments, where the apparatus includes: a receiving module 10 and a wake-up module 20, wherein:
the receiving module 10 is configured to receive a network wake-up data packet sent by an upper computer and used for waking up a vehicle-mounted device;
the wake-up module 20 is configured to process the received network wake-up data packet according to a preset configured access control list rule, and determine whether to trigger an interrupt of the vehicle-mounted device according to a processing result, so as to wake up the vehicle-mounted device.
In this embodiment, a network wake-up (WOL) data packet sent by an upper computer and used for waking up the vehicle-mounted device is received by the receiving module, and the wake-up module processes the received network wake-up data packet according to a preset configured Access Control List (ACL) rule and determines whether to trigger an interrupt of the vehicle-mounted device according to a processing result so as to wake up the vehicle-mounted device. Therefore, the Access Control List (ACL) function can be used for simulating a network wake-up (WOL) function to quickly wake up the vehicle-mounted equipment which enters low-power-consumption modes such as dormancy and the like, the wake-up time of the vehicle-mounted equipment is shortened, the vehicle-mounted equipment can quickly enter a working mode, and the user experience is improved. The method is particularly suitable for vehicle-mounted equipment without WOL function in the field of vehicle-mounted Ethernet, such as TBOX, OBU, ECU or vehicle-mounted router.
It should be noted that the device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiment, and technical features in the method embodiment are correspondingly applicable in the device embodiment, which is not described herein again.
In order to facilitate understanding of the above inventive concept of the present application, a method for providing network wake-up of an in-vehicle device according to the present application is further described in more detail with reference to the accompanying drawings and specific embodiments.
In one embodiment, as shown in fig. 4, the present application provides a method for network wake-up of a vehicle device, where the method includes:
s501, enabling an ACL function of the Ethernet chip when the vehicle-mounted equipment is in a sleep state.
Specifically, when the in-vehicle device is in sleep, ACL-related register configuration of the ethernet chip is enabled.
And S502, determining the IP address of the vehicle-mounted equipment.
S503, the upper computer used for waking up the vehicle-mounted equipment generates a network wake-up data packet.
And S504, the upper computer packages the network awakening data packet through a TCP/IP protocol, and transmits the packaged network awakening data packet to the vehicle-mounted equipment according to the IP address.
And S505, the vehicle-mounted equipment receives a network awakening data packet which is sent by the upper computer and used for awakening the vehicle-mounted equipment.
S506, the vehicle-mounted equipment analyzes the received network awakening data packet after TCP/IP packaging to obtain an analyzed network awakening data packet.
And S507, the vehicle-mounted equipment processes the analyzed network awakening data packet according to a preset access control list rule, and triggers the interruption of the vehicle-mounted equipment according to a processing result.
S508, the processing result shows whether the wake-on-lan packet meets the preset access control list rule? If so, the process proceeds to step S509, otherwise, the process proceeds to step S510.
And S509, if the processing result shows that the network awakening data packet conforms to a preset access control list rule, triggering the interruption of the vehicle-mounted equipment according to the network awakening data packet so as to awaken the vehicle-mounted equipment.
And S510, if the processing result shows that the network awakening data packet does not accord with the preset access control list rule, discarding the network awakening data packet, not triggering the interruption of the vehicle-mounted equipment, and not awakening the vehicle-mounted equipment.
Based on the same concept, in one embodiment, as shown in fig. 5, the present application provides an in-vehicle apparatus 900 including: the memory 902, the processor 901 and one or more computer programs stored in the memory 902 and executable on the processor 901, where the memory 902 and the processor 901 are coupled together by a bus system 903, and the one or more computer programs are executed by the processor 901 to implement a method for network wake-up of an in-vehicle device provided by an embodiment of the present application, and include:
s1, receiving a network awakening data packet which is sent by the upper computer and used for awakening the vehicle-mounted equipment;
and S2, processing the received network awakening data packet according to a preset configured access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment or not according to a processing result so as to awaken the vehicle-mounted equipment.
The method disclosed in the foregoing embodiment of the present application may be applied to the processor 901, or implemented by the processor 901. The processor 901 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by an integrated logic circuit of hardware or an instruction in the form of software in the processor 901. The processor 901 may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 901 may implement or execute the methods, steps and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 902, and the processor 901 reads the information in the memory 902 and performs the steps of the foregoing method in combination with the hardware thereof.
It is to be appreciated that the memory 902 of the subject embodiment can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a magnetic Random Access Memory (Flash Memory) or other Memory technologies, a Compact disc Read-Only Memory (CD-ROM), a Digital Versatile Disc (DVD), or other optical disc storage, magnetic cartridge, magnetic tape, magnetic Disk storage, or other magnetic storage devices; volatile Memory can be Random Access Memory (RAM), and by way of exemplary and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Double Data Rate Synchronous Random Access Memory (ESDRAM), Synchronous Link Dynamic Random Access Memory (SLDRAM), Direct Memory bus Random Access Memory (DRRAM). The memories described in the embodiments of the present application are intended to comprise, without being limited to, these and any other suitable types of memory.
It should be noted that the vehicle-mounted device embodiment and the method embodiment belong to the same concept, and specific implementation processes thereof are described in the method embodiment in detail, and technical features in the method embodiment are correspondingly applicable in the vehicle-mounted device embodiment, and are not described herein again.
In an exemplary embodiment, a computer storage medium, specifically a computer readable storage medium, for example, a memory 902 storing a computer program, is further provided, where the computer storage medium stores one or more programs of a method for network wake-up of a vehicle device, and the one or more programs of the method for network wake-up of a vehicle device are executed by a processor 901 to implement the method for network wake-up of a vehicle device provided by the embodiment of the present application, and include:
s1, receiving a network awakening data packet which is sent by the upper computer and used for awakening the vehicle-mounted equipment;
and S2, processing the received network awakening data packet according to a preset configured access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment or not according to a processing result so as to awaken the vehicle-mounted equipment.
It should be noted that, the embodiment of the method program for waking up the vehicle-mounted device on the computer-readable storage medium and the embodiment of the method belong to the same concept, and specific implementation processes thereof are described in detail in the embodiment of the method, and technical features in the embodiment of the method are correspondingly applicable to the embodiment of the computer-readable storage medium, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; within the context of the present application, where technical features in the above embodiments or in different embodiments can also be combined, the steps can be implemented in any order and there are many other variations of the different aspects of the present application as described above, which are not provided in detail for the sake of brevity; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.
Claims (10)
1. A method for network wake-up of a vehicle-mounted device is characterized by comprising the following steps:
receiving a network awakening data packet which is sent by an upper computer and used for awakening the vehicle-mounted equipment;
and processing the received network awakening data packet according to a preset configured access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment or not according to a processing result so as to awaken the vehicle-mounted equipment.
2. The method of claim 1, wherein the wake-on-lan packet format comprises: UDP packets and fixed port numbers.
3. The method of claim 1, wherein the access control list function of the vehicle-mounted device is enabled when the vehicle-mounted device is dormant.
4. The method according to claim 1, wherein the network wake-up packet is encapsulated by the upper computer through a TCP/IP protocol before being sent to the vehicle-mounted device, and then the network wake-up packet after being encapsulated by the TCP/IP is sent to the vehicle-mounted device by the upper computer.
5. The method according to claim 3, wherein the received network wake-up data packet is processed according to a preset access control list rule, and whether to trigger the interrupt of the vehicle-mounted device is determined according to a processing result so as to wake up the vehicle-mounted device; the method comprises the following steps:
the vehicle-mounted equipment analyzes the received network awakening data packet packaged by the TCP/IP to obtain an analyzed network awakening data packet;
and the vehicle-mounted equipment processes the analyzed network awakening data packet according to a preset access control list rule, and determines whether to trigger the interruption of the vehicle-mounted equipment or not according to a processing result so as to awaken the vehicle-mounted equipment.
6. The method according to claim 5, wherein the determining whether to trigger the interrupt of the vehicle-mounted device according to the processing result is used for waking up the vehicle-mounted device; the method comprises the following steps:
and if the processing result shows that the network awakening data packet conforms to the preset access control list rule, triggering the interruption of the vehicle-mounted equipment according to the network awakening data packet so as to awaken the vehicle-mounted equipment.
7. The method according to claim 5, wherein the determining whether to trigger the interrupt of the vehicle-mounted device according to the processing result is used for waking up the vehicle-mounted device; the method comprises the following steps:
and if the processing result shows that the network awakening data packet does not accord with the preset access control list rule, discarding the network awakening data packet, not triggering the interruption of the vehicle-mounted equipment, and not awakening the vehicle-mounted equipment.
8. An on-board device network wake-up apparatus applied to the on-board device network wake-up method according to any one of claims 1 to 7, the apparatus comprising: receiving module and awaken module, wherein:
the receiving module is used for receiving a network awakening data packet which is sent by the upper computer and used for awakening the vehicle-mounted equipment;
and the awakening module is used for processing the received network awakening data packet according to a preset configured access control list rule and determining whether to trigger the interruption of the vehicle-mounted equipment or not according to a processing result so as to awaken the vehicle-mounted equipment.
9. An in-vehicle apparatus, characterized by comprising: memory, processor and computer program stored on the memory and executable on the processor, which computer program, when being executed by the processor, carries out the steps of a method for network wake-up of a vehicle device according to any of claims 1 to 7.
10. A storage medium having stored thereon a program of a method for network wake-up of a vehicle device, the program implementing the steps of the method for network wake-up of a vehicle device as claimed in any one of claims 1 to 7 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210063358.3A CN114389888B (en) | 2022-01-20 | 2022-01-20 | Vehicle-mounted equipment, network awakening method and device thereof and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210063358.3A CN114389888B (en) | 2022-01-20 | 2022-01-20 | Vehicle-mounted equipment, network awakening method and device thereof and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114389888A true CN114389888A (en) | 2022-04-22 |
CN114389888B CN114389888B (en) | 2024-03-08 |
Family
ID=81204360
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210063358.3A Active CN114389888B (en) | 2022-01-20 | 2022-01-20 | Vehicle-mounted equipment, network awakening method and device thereof and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114389888B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116112826A (en) * | 2023-01-06 | 2023-05-12 | 上海拿森汽车电子有限公司 | SENT data acquisition method, computer equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103414575A (en) * | 2013-08-01 | 2013-11-27 | 广州杰赛科技股份有限公司 | Method, system and device for network wakeup |
US20180103121A1 (en) * | 2016-10-07 | 2018-04-12 | Hyundai Motor Company | Operation method of communication node for selective wake-up in vehicle network |
CN108833122A (en) * | 2018-05-29 | 2018-11-16 | 奇瑞汽车股份有限公司 | Awakening method, device and the storage medium of vehicle-carrying communication controller |
CN110211589A (en) * | 2019-06-05 | 2019-09-06 | 广州小鹏汽车科技有限公司 | Awakening method, device and vehicle, the machine readable media of onboard system |
CN111325863A (en) * | 2020-03-27 | 2020-06-23 | 深圳复芯微科技有限公司 | Method, device and equipment for rapidly waking up vehicle-mounted unit |
CN111490918A (en) * | 2019-01-29 | 2020-08-04 | 广州汽车集团股份有限公司 | Vehicle-mounted Ethernet network awakening system, method and device and computer equipment |
CN112291749A (en) * | 2020-09-30 | 2021-01-29 | 智博汽车科技(上海)有限公司 | Method and device for awakening T-Box, T-Box and server |
CN112537265A (en) * | 2019-09-23 | 2021-03-23 | 北京轻享科技有限公司 | Control method and device of vehicle-mounted terminal and automobile |
-
2022
- 2022-01-20 CN CN202210063358.3A patent/CN114389888B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103414575A (en) * | 2013-08-01 | 2013-11-27 | 广州杰赛科技股份有限公司 | Method, system and device for network wakeup |
US20180103121A1 (en) * | 2016-10-07 | 2018-04-12 | Hyundai Motor Company | Operation method of communication node for selective wake-up in vehicle network |
CN108833122A (en) * | 2018-05-29 | 2018-11-16 | 奇瑞汽车股份有限公司 | Awakening method, device and the storage medium of vehicle-carrying communication controller |
CN111490918A (en) * | 2019-01-29 | 2020-08-04 | 广州汽车集团股份有限公司 | Vehicle-mounted Ethernet network awakening system, method and device and computer equipment |
CN110211589A (en) * | 2019-06-05 | 2019-09-06 | 广州小鹏汽车科技有限公司 | Awakening method, device and vehicle, the machine readable media of onboard system |
CN112537265A (en) * | 2019-09-23 | 2021-03-23 | 北京轻享科技有限公司 | Control method and device of vehicle-mounted terminal and automobile |
CN111325863A (en) * | 2020-03-27 | 2020-06-23 | 深圳复芯微科技有限公司 | Method, device and equipment for rapidly waking up vehicle-mounted unit |
CN112291749A (en) * | 2020-09-30 | 2021-01-29 | 智博汽车科技(上海)有限公司 | Method and device for awakening T-Box, T-Box and server |
Non-Patent Citations (1)
Title |
---|
陈辰;陈晓韦;杨开欣;董海博;郭谨玮;: "智能车路协同***的休眠唤醒设计和实现", 电脑知识与技术, no. 27 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116112826A (en) * | 2023-01-06 | 2023-05-12 | 上海拿森汽车电子有限公司 | SENT data acquisition method, computer equipment and storage medium |
CN116112826B (en) * | 2023-01-06 | 2024-03-26 | 上海拿森汽车电子有限公司 | SENT data acquisition method, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114389888B (en) | 2024-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102338503B1 (en) | Method for transmitting and receiving wake-up signal in vehicle network | |
KR102357886B1 (en) | Operating method of communication node supporting functions of network management in vehicle network | |
US9152195B2 (en) | Wake on cloud | |
US9007930B2 (en) | Communication apparatus | |
US20070201461A1 (en) | Network switching device | |
CN112075063B (en) | Gateway for data communication in a vehicle | |
US9519327B2 (en) | Communication apparatus and control method therefor | |
JP2008301077A (en) | Network controller, information processor, and wake-up control method | |
US20130111074A1 (en) | Method for changing an operating mode of at least one device | |
JP2007243595A (en) | Network control apparatus and control method | |
EP3169036A1 (en) | Packet processing method, apparatus, and device | |
US20060168378A1 (en) | Method and chip unit for addressing and/or activating a user of a serial data bus | |
KR20170117634A (en) | Method for supplying power in network and apparatus therefor | |
CN114389888B (en) | Vehicle-mounted equipment, network awakening method and device thereof and storage medium | |
JP2012165257A (en) | Communication system, transceiver, and node | |
US11171653B2 (en) | Method for programming a field programmable gate array and network configuration | |
JP5607823B2 (en) | How messages are processed | |
US11126240B2 (en) | Communication node in vehicle network and operation method of the communication node | |
US20150007254A1 (en) | Ip-free end-point management appliance | |
US20180219692A1 (en) | Communication apparatus, method for controlling communication apparatus, and storage medium | |
US11985028B2 (en) | Method for configuring a network, in particular, in a motor vehicle | |
US7143173B2 (en) | Autodetection of routing protocol version and type | |
KR102342000B1 (en) | Method and apparatus for playing contents based on presentation time in automotive network | |
WO2020018113A1 (en) | Assigning power sources | |
CN110677479A (en) | Equipment management method, system and storage medium of local area network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Country or region after: China Address after: 518000 606, block a, sharing building, No. 78, Keyuan North Road, songpingshan community, Xili street, Nanshan District, Shenzhen, Guangdong Applicant after: Gosuncn IOT Technology Co.,Ltd. Address before: 518000 606, block a, sharing building, No. 78, Keyuan North Road, songpingshan community, Xili street, Nanshan District, Shenzhen, Guangdong Applicant before: Gaoxing Wulian Technology Co.,Ltd. Country or region before: China |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |