CN114389888B - 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 PDF

Info

Publication number
CN114389888B
CN114389888B CN202210063358.3A CN202210063358A CN114389888B CN 114389888 B CN114389888 B CN 114389888B CN 202210063358 A CN202210063358 A CN 202210063358A CN 114389888 B CN114389888 B CN 114389888B
Authority
CN
China
Prior art keywords
vehicle
network
wake
data packet
mounted equipment
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.)
Active
Application number
CN202210063358.3A
Other languages
Chinese (zh)
Other versions
CN114389888A (en
Inventor
高原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gosuncn Iot Technology Co ltd
Original Assignee
Gosuncn Iot Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gosuncn Iot Technology Co ltd filed Critical Gosuncn Iot Technology Co ltd
Priority to CN202210063358.3A priority Critical patent/CN114389888B/en
Publication of CN114389888A publication Critical patent/CN114389888A/en
Application granted granted Critical
Publication of CN114389888B publication Critical patent/CN114389888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/101Access control lists [ACL]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/164Adaptation or special uses of UDP protocol
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The application discloses a vehicle-mounted device, a network awakening method and device thereof and a storage medium, and relates to the field of vehicle-mounted devices. The method comprises the following steps: receiving a network wake-up data packet sent by an upper computer and used for waking up vehicle-mounted equipment; and processing the received network wake-up data packet according to a preset access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment according to a processing result so as to wake-up the vehicle-mounted equipment. According to the embodiment of the application, the access control list function can be used for simulating the network wake-up function to wake-up the vehicle-mounted equipment which enters the low-power-consumption modes such as dormancy and the like, so that the wake-up time of the vehicle-mounted equipment is shortened, the vehicle-mounted equipment can enter the working mode quickly, and the user experience is improved.

Description

Vehicle-mounted equipment, network awakening method and device thereof and storage medium
Technical Field
The present disclosure relates to the field of vehicle devices, and in particular, to a vehicle device, a method and an apparatus for waking up a network of the vehicle device, and a storage medium.
Background
WOL (Wake On LAN) technology is now very popular for use On PCs, and the WOL function is typically enabled in the BIOS of the computer. When the PC is put on standby or dormant, the PC which has already turned on the WOL function is awakened by the remote WOL packet, and now WOL is also gradually applied to the vehicle-mounted device on which the ethernet chip having the WOL function is mounted.
When the number of vehicle devices is increased, the vehicle-mounted communication speed is increased, so that particularly strict requirements are generated on the power consumption of the vehicle, and as the automobile is gradually transited from the traditional fuel oil field to the hybrid power field to the pure electric field, the requirements on the overall power consumption of the vehicle are more and more strict, and particularly, the power consumption loss 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 is put into a dormant low power consumption mode, so that the overall power consumption of the vehicle is reduced.
Because of the large limitations of the traditional WOL function, the vehicle ethernet can only be woken up by sending a magic packet, specifically, a broadcast frame is implemented by using a special network message of the magic packet, where the network message includes a 48-bit MAC address repeated 16 times. The wake-up mode of waking up the vehicle-mounted Ethernet by sending the magic packet can not wake up the vehicle-mounted equipment which enters the low-power consumption modes such as dormancy and the like quickly to enter the working mode because the MAC address is required to be repeated for a plurality of times, so that the wake-up time is longer and the user experience is influenced.
Disclosure of Invention
The embodiment of the application aims to provide a vehicle-mounted device, a network awakening method and device thereof and a storage medium, and can solve the problems that the existing vehicle-mounted device which cannot be awakened quickly and enters a low-power-consumption mode such as dormancy and the like quickly enters a working mode, the awakening time is long, and the user experience is affected.
In order to solve the technical problems, the embodiment of the application provides the following technical scheme: a method of network wakeup of a vehicle-mounted device, the method comprising:
receiving a network wake-up data packet sent by an upper computer and used for waking up vehicle-mounted equipment;
and processing the received network wake-up data packet according to a preset access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment according to a processing result so as to wake-up the vehicle-mounted equipment.
Optionally, the network wakeup packet format includes: UDP packets and fixed port numbers.
Optionally, the in-vehicle device enables an access control list function of the in-vehicle device while dormant.
Optionally, before the network wake-up data packet is sent to the vehicle-mounted device, the upper computer encapsulates the network wake-up data packet through a TCP/IP protocol, and then the upper computer sends the network wake-up data packet encapsulated through the TCP/IP 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 interruption of the vehicle-mounted equipment is determined according to a processing result so as to wake up the vehicle-mounted equipment; comprising the following steps:
the vehicle-mounted equipment analyzes the received network wake-up data packet encapsulated by the TCP/IP to obtain an analyzed network wake-up data packet;
the vehicle-mounted equipment processes the analyzed network wake-up data packet according to a preset access control list rule, and decides whether to trigger interruption of the vehicle-mounted equipment according to a processing result so as to wake-up the vehicle-mounted equipment.
Optionally, determining whether to trigger the interruption of the vehicle-mounted equipment according to the processing result so as to wake up the vehicle-mounted equipment; comprising the following steps:
if the processing result shows that the network wake-up data packet accords with the preset access control list rule, triggering the interruption of the vehicle-mounted equipment according to the network wake-up data packet so as to wake-up the vehicle-mounted equipment.
Optionally, determining whether to trigger the interruption of the vehicle-mounted equipment according to the processing result so as to wake up the vehicle-mounted equipment; comprising the following steps:
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, and not triggering interruption of the vehicle-mounted equipment and not awakening the vehicle-mounted equipment.
In order to solve the technical problems, the embodiment of the application also provides the following technical scheme: an apparatus for network wakeup of an in-vehicle device, the apparatus comprising: a receiving module and a wake-up module, wherein:
the receiving module is used for receiving a network wake-up data packet sent by the upper computer and used for waking up the vehicle-mounted equipment;
the wake-up module is used for processing the received network wake-up data packet according to a preset access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment according to a processing result so as to wake-up the vehicle-mounted equipment.
In order to solve the technical problems, the embodiment of the application also provides the following technical scheme: an in-vehicle apparatus comprising: the system comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, wherein the computer program realizes the steps of the method for waking up the vehicle-mounted equipment network according to any embodiment of the application when the computer program is executed by the processor.
In order to solve the technical problems, the embodiment of the application also provides the following technical scheme: a storage medium, where a program of a method for waking up a vehicle device network is stored, where the program of the method for waking up a vehicle device network implements the steps of the method for waking up a vehicle device network according to any embodiment of the present application when executed by a processor.
Compared with the prior art, the method, the device and the storage medium for waking up the vehicle-mounted equipment on the network provided by the embodiment of the application are used for receiving the network wake-up (WOL) data packet sent by the upper computer and used for waking up the vehicle-mounted equipment, processing the received network wake-up data packet according to the Access Control List (ACL) rule of the preset configuration, and determining whether to trigger the interruption of the vehicle-mounted equipment according to the processing result to wake up the vehicle-mounted equipment. Therefore, the Access Control List (ACL) function can be used for simulating a network Wakeup (WOL) function to rapidly wake the vehicle-mounted equipment which enters the 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 rapidly enter the working mode, and the user experience is improved. The method is particularly suitable for vehicle-mounted equipment such as TBOX, OBU, ECU or a vehicle-mounted router in the field of vehicle-mounted Ethernet.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which the figures of the drawings are not to be taken in a limiting sense, unless otherwise indicated.
Fig. 1 is a flow chart of a method for waking up a network of a vehicle-mounted device provided in the present application;
fig. 2 is a flow chart of processing a received network wake-up data packet according to a preset access control list rule in a network wake-up method of a vehicle-mounted device provided by the present application;
fig. 3 is a schematic structural diagram of a device for waking up a network of a vehicle-mounted device provided in the present application;
fig. 4 is a flow chart of a method for waking up a network of a vehicle-mounted device provided in the present application;
fig. 5 is a schematic structural diagram of an in-vehicle apparatus provided in the present application.
Detailed Description
In order to facilitate an understanding of the present application, the present application will be described in more detail below with reference to the accompanying drawings and specific examples. It will be understood that when an element is referred to as being "fixed" to another element, it can be directly on the other element or one or more intervening elements may be present therebetween. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or one or more intervening elements may be present therebetween. The terms "upper," "lower," "inner," "outer," "bottom," and the like as used in this specification are used in an orientation or positional relationship based on that shown in the drawings, merely to facilitate the description of the present application and to simplify the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and 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 in this description is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and/or" as used in this specification includes any and all combinations of one or more of the associated listed items.
In addition, the technical features described below in the different embodiments of the present application may be combined with each other as long as they do not collide with each other.
WOL (Wake On LAN) is a technology that functions to enable a device that has entered a dormant or off state to Wake up from a dormant state, resume an operational state, or transition from an off state to an On state by signaling it through the other end of a LAN (e.g., ethernet).
WOL technology is now very popular for use on PCs, and WOL functionality is typically enabled in the BIOS of the computer. The traditional WOL function is basically used for local area network wakeup of a PC and remote wakeup by a router, and the hardware requirement of the local area network LAN must support the WOL function. When the PC enters standby or dormancy, the PC which has started the WOL function can only be awakened by sending a magic packet through the remote application program. Now, WOL is also increasingly applied to in-vehicle devices on which a WOL-capable in-vehicle ethernet chip is mounted.
The vehicle-mounted Ethernet is a novel local area network technology for connecting an electronic unit in a vehicle by using the Ethernet, and is different from the traditional Ethernet in that 4 pairs of unshielded twisted pair cables are used, the vehicle-mounted Ethernet can realize the transmission rate of 100Mbit/s and even 1Gbit/s on a single pair of unshielded twisted pair cables, and meanwhile, the requirements of the automobile industry on the aspects of high reliability, low electromagnetic radiation, low power consumption, bandwidth allocation, low delay, synchronous instantaneity and the like are also met.
With the popularization of the vehicle-mounted Ethernet technology, more and more vehicle enterprises begin to deploy the vehicle-mounted Ethernet function on self-researched vehicle types, and the deployed vehicle-mounted Ethernet is no longer an application of a local network, but integrates entertainment, security and communication subsystems to construct a vehicle-mounted Ethernet total system.
The functions of the prior automobile are simple, the required network bandwidth is smaller, but the requirements of the in-automobile network are rapidly increased due to the application of new technologies such as ADAS, information entertainment systems and active safety systems and the enhancement of the traditional technologies, and the capacity limit of the traditional vehicle-mounted networks such as CAN, flexray and the like is exceeded, so that an automobile enterprise pursues a faster and stronger communication mode, and the data communication in the automobile is increased from traditional KBps, mbps to 100Mbps, 1000Mbps and the like at present.
When the number of vehicle devices is increased, the vehicle-mounted communication speed is increased, so that particularly strict requirements are generated on the power consumption of the vehicle, and as the automobile is gradually transited from the traditional fuel oil field to the hybrid power field to the pure electric field, the requirements on the overall power consumption of the vehicle are more and more strict, and particularly, the power consumption loss 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 is put into a dormant low power consumption mode, so that the overall power consumption of the vehicle is reduced.
Because the traditional WOL function is more restrictive, the vehicle-mounted Ethernet can only be awakened by sending a magic packet (the format of the magic packet is that the MAC address is that of the awakened device, the IP address is 255.255.255.255, and the PORT is self-defined). Specifically, a broadcast frame is implemented by using a special network message of a magic packet, where the network message includes a 48-bit MAC address repeated 16 times. The wake-up mode of waking up the vehicle-mounted Ethernet by sending the magic packet can not wake up the vehicle-mounted equipment which enters the low-power consumption modes such as dormancy and the like quickly to enter the working mode because the MAC address is required to be repeated for a plurality of times, so that the wake-up time is longer and the user experience is influenced.
In view of this, the present application provides a method for waking up a vehicle-mounted device on network, by processing a received network wake-up packet according to a preset access control list rule, determining whether to trigger an interrupt of the vehicle-mounted device according to a processing result, and waking up the vehicle-mounted device, where the network wake-up packet format is changed from a conventional magic packet into a UDP packet and a fixed port number. Therefore, the network wake-up data packet can be sent more flexibly, the Access Control List (ACL) function is used for simulating the network wake-up (WOL) function to wake up the vehicle-mounted equipment which has entered into the 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 enter the working mode quickly, and the user experience is improved.
In order to facilitate understanding of the above inventive concepts of the present application, the above inventive concepts of the present application are described in more detail below with reference to the accompanying drawings and specific examples.
In one embodiment, as shown in fig. 1, the present application provides a method for waking up a network of an in-vehicle device, where the method includes:
s1, receiving a Wake On network (WOL) data packet sent by an upper computer and used for waking up vehicle-mounted equipment;
s2, processing the received network wake-up data packet according to a preset access control list (ACL, access Control List) rule, and determining whether to trigger interruption of the vehicle-mounted equipment according to a processing result so as to wake up the vehicle-mounted equipment.
In this embodiment, a wake-on-network (WOL) data packet sent by an upper computer and used for waking up a vehicle-mounted device is received, the received wake-on-network data 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 Wakeup (WOL) function to rapidly wake the vehicle-mounted equipment which enters the 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 rapidly enter the working mode, and the user experience is improved. The system is particularly suitable for vehicle-mounted equipment which does not have WOL function in the field of vehicle-mounted Ethernet, such as TBOX (Telematics Box), OBU (On Board Unit), ECU (Electronic Control Unit, electronic control Unit, also known as a vehicle-mounted computer and a vehicle-mounted computer) or a vehicle-mounted router.
In one embodiment, in step S1, the wake-on-network packet sent by the host computer and used for waking up the vehicle-mounted device is received.
Specifically, the in-vehicle devices include devices having an IP address and an ethernet chip having an access control list (ACL, access Control List) function mounted thereon, including TBOX (Telematics Box), OBU (On board Unit), ECU (Electronic Control Unit, electronic control Unit, also called a car computer, in-vehicle computer), or in-vehicle router.
The in-vehicle device may be a hardware device that does not have a wake on network (WOL) function.
And enabling the ACL function of the Ethernet chip when the vehicle-mounted equipment is dormant.
The network wake-up data packet is generated and transmitted by an upper computer for waking up the vehicle-mounted equipment. Wherein, the Wake On network data packet has a certain format, and the Wake On network data packet format includes: UDP (User Datagram Protocol, user packet protocol) packets and a fixed port number.
For example: the network wake-up data packet format is: uwolc.exe-m 112233445566 192.168.2.1.
Here, uwolc.exe is a Sock packet of UDP, 112233445566 is a MAC address, and 192.168.2.1 is an IP address of an IP gateway.
The IP gateway and the IP address are configured in the vehicle-mounted equipment to be awakened.
Before the network wake-up data packet is sent to the vehicle-mounted equipment, the upper computer is packaged by a TCP/IP protocol, and then the upper computer sends the network wake-up data packet packaged by the TCP/IP to the vehicle-mounted equipment. The network data packet received by the vehicle-mounted equipment is a network wake-up data packet encapsulated by TCP/IP.
In this embodiment, the network wakeup packet format is changed from the traditional magic packet to the UDP packet and the fixed port number, so that the network wakeup packet is sent more flexibly.
In one embodiment, as shown in fig. 2, in step S2, the received network wake-up packet is processed according to a preset access control list rule, and it is determined whether to trigger an interrupt of the vehicle-mounted device according to the 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 equipment is determined according to a processing result so as to wake up the vehicle-mounted equipment; comprising the following steps:
s21, the vehicle-mounted equipment analyzes the received network wake-up data packet packaged by the TCP/IP to obtain an analyzed network wake-up data packet.
S22, the vehicle-mounted equipment processes the analyzed network wake-up data packet according to a preset access control list rule, and decides whether to trigger interruption of the vehicle-mounted equipment according to a processing result so as to wake-up the vehicle-mounted equipment.
Specifically, if the processing result shows that the network wake-up data packet accords with a preset access control list rule, triggering the interruption of the vehicle-mounted equipment according to the network wake-up data packet so as to wake-up the vehicle-mounted equipment.
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, and not triggering interruption of the vehicle-mounted equipment and not awakening the vehicle-mounted equipment.
Access control list (ACL, access Control List) is a packet filtering based access control technique that filters packets on an interface according to set rules, allowing 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 network security is guaranteed to the greatest extent.
The access control list is a set of one or more rules, and the rules refer to judging sentences for 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 selectively set according to the requirements, and the rules of the access control list are applicable to hardware without WOL function.
The access control list is essentially a message filter, the rules are filter elements, the device performs message matching based on the rules, can filter out specific messages, and allows or prevents the messages to pass through according to the processing policy of the service module applying the ACL.
In this application, the preset access control list rule is preconfigured 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-network packet. The access control list ACL supports many message types for filtering, including: ICMP, TCP, UDP, GRE, IGMP, IP, IPinIP, OSPF.
Pattern masking: the pattern mask is in the same format as the IP address and is also a 32-bit numeric string that indicates which bits in the IP address are to be checked.
The operation is as follows: port operators, supporting port comparison when the protocol type is TCP or UDP, the supported comparison operations are: equal to, greater than, less than, not equal to, or between.
After the access control list rule is pre-configured, the vehicle-mounted device can reserve a special interrupt GPIO, and when the vehicle-mounted device sleeps, the GPIO is enabled to be interrupted and the GPIO pin is pulled high.
When a network awakening data packet with access control list rules comes in, the data in the network awakening data packet triggers the values of related registers on the PHY/SWITCH firstly, then the PHY/SHWITCH triggers the GPIO interrupt to awaken the Linux kernel, and then the Linux kernel reports a Uevent to awaken the whole vehicle-mounted system. When the onboard system wakes up completely, the GPIO interrupt will be disabled.
Specifically, when the access control list of the application works, after network data is received and includes, an IP gateway processor calls a memory, reads packet header information, such as an IP address, of a network wake-up data packet, searches a routing table to see whether the network wake-up data packet is in a routing table item, if yes, forwards the network wake-up data packet from a selected interface of the routing table (if no, discards the data packet), the data enters the access control list of the interface, and then screening is carried out according to rules 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 rules remained in the access control list are skipped, and the network awakening data packet is determined to be allowed according to the judging statement of the matched access control list rule. If the data of the wake-up data packet does not match a certain rule of the access control list, the wake-on-network data packet will be tested sequentially using the next rule of the access control list. The matching process continues until the end of the access control list. If the data of the wake-up data packet is not matched with the access control list rule, the network wake-up data packet is directly discarded.
Based on the same concept, in one embodiment, as shown in fig. 3, the present application provides an apparatus for waking up a vehicle-mounted device network, which is applied to a method for waking up a vehicle-mounted device network described in any one 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 the upper computer and used for waking up the vehicle-mounted device;
the wake-up module 20 is configured to process the received network wake-up data packet according to a preset 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 receiving module receives a wake-on-network (WOL) data packet sent by an upper computer and used for waking up the vehicle-mounted device, and the wake-up module processes the received wake-on-network data packet according to a preset Access Control List (ACL) rule, and decides 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 Wakeup (WOL) function to rapidly wake the vehicle-mounted equipment which enters the 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 rapidly enter the working mode, and the user experience is improved. The method is particularly suitable for vehicle-mounted equipment such as TBOX, OBU, ECU or a vehicle-mounted router which does not have WOL function in the field of vehicle-mounted Ethernet.
It should be noted that the above device embodiments and method embodiments belong to the same concept, the specific implementation process of the device embodiments is detailed in the method embodiments, and technical features in the method embodiments are applicable correspondingly in the device embodiments, which are not repeated herein.
In order to facilitate understanding of the above inventive concept of the present application, a method for waking up a vehicle-mounted device network is further described in more detail below with reference to the accompanying drawings and a specific embodiment.
In one embodiment, as shown in fig. 4, the present application provides a method for waking up a network of an in-vehicle device, where the method includes:
s501, enabling an ACL function of the Ethernet chip when the vehicle-mounted equipment is dormant.
Specifically, ACL-related register configuration of the ethernet chip is enabled when the in-vehicle apparatus is dormant.
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.
S504, the upper computer encapsulates the network wake-up data packet through a TCP/IP protocol, and transmits the encapsulated network wake-up data packet to the vehicle-mounted equipment according to the IP address.
S505, the vehicle-mounted device receives a network wake-up data packet sent by the upper computer and used for waking up the vehicle-mounted device.
S506, the vehicle-mounted equipment analyzes the received network wake-up data packet packaged by the TCP/IP to obtain an analyzed network wake-up data packet.
S507, the vehicle-mounted equipment processes the parsed network wake-up 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 that the wake-on-network packet accords with a preset access control list rule? If yes, go to step S509, otherwise, go to step S510.
And S509, if the processing result shows that the network wake-up data packet accords with the preset access control list rule, triggering the interruption of the vehicle-mounted equipment according to the network wake-up data packet so as to wake-up the vehicle-mounted equipment.
S510, if the processing result shows that the network wake-up data packet does not accord with the preset access control list rule, discarding the network wake-up data packet, and not triggering interruption of the vehicle-mounted equipment, and not waking up 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: a memory 902, a processor 901, and one or more computer programs stored in the memory 902 and executable on the processor 901, the memory 902 and the processor 901 being coupled together by a bus system 903, the one or more computer programs when executed by the processor 901 implementing a method for wake-up of a vehicle device network provided by an embodiment of the present application, comprising:
s1, receiving a network wake-up data packet sent by an upper computer and used for waking up vehicle-mounted equipment;
s2, processing the received network wake-up data packet according to a preset access control list rule, and determining whether to trigger interruption of the vehicle-mounted equipment according to a processing result so as to wake up the vehicle-mounted equipment.
The method disclosed in the embodiments 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 performed by instructions in the form of integrated logic circuits or software in hardware in the processor 901. The processor 901 may be a general purpose processor, DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 901 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. The 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 embodied in 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 in a memory 902, and the processor 901 reads information in the memory 902, in combination with its hardware, to perform the steps of the method as described above.
It is appreciated that the memory 902 of embodiments of the present application may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile Memory may be Read-Only Memory (ROM), programmable Read-Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read-Only Memory (EPROM), electrically Erasable Read-Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic Random Access Memory), flash Memory (Flash Memory) or other Memory technology, compact disc Read-Only Memory (CD-ROM, compact Disk Read-Only Memory), digital versatile disc (DVD, digital Video Disk) or other optical disc storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices; volatile memory can be random access memory (RAM, random Access Memory), many forms of RAM being available by way of example and not limitation, such as static random access memory (SRAM, static Random Access Memory), static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
It should be noted that the above vehicle-mounted device embodiments and method embodiments belong to the same concept, the specific implementation process of the vehicle-mounted device embodiments is detailed in the method embodiments, and technical features in the method embodiments are correspondingly applicable in the vehicle-mounted device embodiments, which are not repeated herein.
In addition, in an exemplary embodiment, the present application further provides a computer storage medium, specifically a computer readable storage medium, for example, including a memory 902 storing a computer program, where the computer storage medium stores one or more programs of a method for waking up an on-vehicle device network, where the one or more programs of the method for waking up an on-vehicle device network are executed by the processor 901 to implement a method for waking up an on-vehicle device network provided in the embodiment of the present application, where the method includes:
s1, receiving a network wake-up data packet sent by an upper computer and used for waking up vehicle-mounted equipment;
s2, processing the received network wake-up data packet according to a preset access control list rule, and determining whether to trigger interruption of the vehicle-mounted equipment according to a processing result so as to wake up the vehicle-mounted equipment.
It should be noted that, the method program embodiment and the method embodiment of network wake-up of a vehicle-mounted device on the computer readable storage medium belong to the same concept, the specific implementation process of the method program embodiment is detailed in the method embodiment, and the technical features in the method embodiment are correspondingly applicable in the embodiment of the computer readable storage medium, which is not repeated herein.
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 one … …" 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 for illustrating the technical solution of the present application, and are not limiting thereof; the technical features of the above embodiments or in the different embodiments may also be combined under the idea of the present application, the steps may 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 details 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (4)

1. A method for waking up a vehicle-mounted device network, the method comprising:
receiving a network wake-up data packet sent by an upper computer and used for waking up vehicle-mounted equipment;
processing the received network wake-up data packet according to a preset access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment according to a processing result so as to wake up the vehicle-mounted equipment;
the network wake-up data packet format includes: UDP data packet and fixed end number;
enabling an access control list function of the vehicle-mounted equipment when the vehicle-mounted equipment is dormant;
before the network wake-up data packet is sent to the vehicle-mounted equipment, the upper computer is encapsulated by a TCP/IP protocol, and then the upper computer sends the network wake-up data packet encapsulated by the TCP/IP to the vehicle-mounted equipment;
the received network awakening data packet is processed according to a preset access control list rule, and whether to trigger interruption of the vehicle-mounted equipment is determined according to a processing result so as to awaken the vehicle-mounted equipment; comprising the following steps:
the vehicle-mounted equipment analyzes the received network wake-up data packet encapsulated by the TCP/IP to obtain an analyzed network wake-up data packet;
the vehicle-mounted equipment processes the parsed network wake-up data packet according to a preset access control list rule, and decides whether to trigger interruption of the vehicle-mounted equipment according to a processing result so as to wake-up the vehicle-mounted equipment;
the determining whether to trigger the interruption of the vehicle-mounted equipment according to the processing result so as to wake up the vehicle-mounted equipment comprises the following steps:
if the processing result shows that the network awakening data packet accords with 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;
the determining whether to trigger the interruption of the vehicle-mounted equipment according to the processing result so as to wake up the vehicle-mounted equipment comprises the following steps:
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, and not triggering interruption of the vehicle-mounted equipment and not awakening the vehicle-mounted equipment;
the preset access control list rule is preconfigured in the vehicle-mounted equipment, and comprises the following steps: packet mode, mode mask and operation;
wherein,
packet mode: the method comprises the following steps of including the format or the message type of a network awakening data packet, wherein the message type of the ACL support filtering comprises the following steps: ICMP, TCP, UDP, GRE, IGMP, IP, IPinIP, OSPF;
pattern masking: the pattern mask is in the same format as the IP address, a 32 bit numeric string, indicating which bits in the IP address are to be checked;
the operation is as follows: port operators, supporting port comparison when the protocol type is TCP or UDP, the supported comparison operations are: equal to, greater than, less than, not equal to, or between;
after the access control list rule is pre-configured, the vehicle-mounted equipment reserves a special interrupt GPIO, and when the vehicle-mounted equipment sleeps, the GPIO is enabled to be interrupted and the GPIO pin is pulled high;
when a network awakening data packet with access control list rule comes in, the data in the network awakening data packet triggers the value of a related register on the PHY/SWITCH; then, the PHY/SHWITCH triggers the GPIO interrupt to wake up the Linux kernel; then, the Linux kernel reports a Uevent to wake up the whole vehicle-mounted system; when the vehicle-mounted system is completely awakened, disabling GPIO interruption;
when the access control list works, after network data is received, an IP gateway processor calls a memory, reads packet header information of a network wake-up data packet, wherein the packet header information comprises an IP address, searches a routing table to check whether the packet header information is in a routing table item, if yes, forwards the packet from a selected interface of the routing table, if not, discards the data packet, and the data enters the access control list of the interface; then, screening according to the 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, skipping other rules remained in the access control list, and determining to allow the network awakening data packet according to a judging statement of the matched access control list rule; if the data of the wake-up data packet is not matched with a certain rule of the access control list, testing the network wake-up data packet by using the next rule in the access control list in sequence; the matching process continues until the end of the access control list; if the data of the wake-up data packet is not matched with the access control list rule, the network wake-up data packet is directly discarded.
2. An apparatus for waking up a network of an in-vehicle device, applied to a method for waking up a network of an in-vehicle device according to claim 1, the apparatus comprising: a receiving module and a wake-up module, wherein:
the receiving module is used for receiving a network wake-up data packet sent by the upper computer and used for waking up the vehicle-mounted equipment;
the wake-up module is used for processing the received network wake-up data packet according to a preset access control list rule, and determining whether to trigger the interruption of the vehicle-mounted equipment according to a processing result so as to wake-up the vehicle-mounted equipment.
3. An in-vehicle apparatus, characterized by comprising: memory, a processor and a computer program stored on the memory and executable on the processor, which when executed by the processor, performs the steps of a method for waking up a vehicle device network according to claim 1.
4. A storage medium, wherein a program of a method for waking up a vehicle-mounted device network is stored on the storage medium, and the program of the method for waking up a vehicle-mounted device network realizes the steps of the method for waking up a vehicle-mounted device network according to claim 1 when executed by a processor.
CN202210063358.3A 2022-01-20 2022-01-20 Vehicle-mounted equipment, network awakening method and device thereof and storage medium Active CN114389888B (en)

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 CN114389888A (en) 2022-04-22
CN114389888B true 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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116112826B (en) * 2023-01-06 2024-03-26 上海拿森汽车电子有限公司 SENT data acquisition method, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414575A (en) * 2013-08-01 2013-11-27 广州杰赛科技股份有限公司 Method, system and device for network wakeup
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102017123251A1 (en) * 2016-10-07 2018-04-12 Hyundai Motor Company Operating method of a communication node for selective waking in the vehicle network

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414575A (en) * 2013-08-01 2013-11-27 广州杰赛科技股份有限公司 Method, system and device for network wakeup
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)

* Cited by examiner, † Cited by third party
Title
智能车路协同系统的休眠唤醒设计和实现;陈辰;陈晓韦;杨开欣;董海博;郭谨玮;;电脑知识与技术(第27期);全文 *

Also Published As

Publication number Publication date
CN114389888A (en) 2022-04-22

Similar Documents

Publication Publication Date Title
KR102338503B1 (en) Method for transmitting and receiving wake-up signal in vehicle network
EP3468106B1 (en) Gateway device, in-vehicle network system, transfer method, and program
US10382221B2 (en) Communication method based on automotive safety integrity level in vehicle network and apparatus for the same
US11169821B2 (en) Method of operating selective wake-up of communication node in vehicle network
CN103944869B (en) Access the method and high in the clouds connector of remote resource
KR102357886B1 (en) Operating method of communication node supporting functions of network management in vehicle network
CN105388858B (en) Method of operating a communication node in a network
US10693668B2 (en) Operation method of communication node in network
US20130111074A1 (en) Method for changing an operating mode of at least one device
CN114389888B (en) Vehicle-mounted equipment, network awakening method and device thereof and storage medium
WO2019021923A1 (en) Network monitor, network monitoring method and program
CN112075063B (en) Gateway for data communication in a vehicle
WO2017203902A1 (en) Gateway device, in-vehicle network system, transfer method, and program
KR20190000514A (en) Method for preventing diagnostic errors in vehicle network and apparatus for the same
KR20170011826A (en) Security method for ethernet based network
Postolache et al. CAN-Ethernet gateway for automotive applications
KR20160025452A (en) Operation method of communication node in network
JP2004297400A (en) Wireless information communication system
JP7001026B2 (en) Vehicle communication device
US11126240B2 (en) Communication node in vehicle network and operation method of the communication node
KR102342000B1 (en) Method and apparatus for playing contents based on presentation time in automotive network
Luo et al. Implementation of bootloader based on DoIP
US20020087703A1 (en) Autodetection of routing protocol version and type
US20230291650A1 (en) Communication control system and communication control method
JP7464054B2 (en) Relay device, communication method, and communication program

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