Vehicle-mounted nfc service system, method, vehicle and device
By controlling the switching of the NFC module's operating mode through the vehicle interface unit, the problems of single function and fixed mode of the vehicle NFC module are solved, enabling diversified data interaction applications, improving the intelligence and resource utilization efficiency of the vehicle system, and ensuring vehicle safety and stability.
Patent Information
- Application Number
- CN202511717651.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-21
- Publication Date
- 2026-02-17
- Estimated Expiration
- 2045-11-21
AI Technical Summary
The in-vehicle NFC module has limited functionality, its NFC capabilities are not open, it lacks resource scheduling, and its mode is rigid, resulting in a waste of hardware resources and limited application scenarios for smart cockpits.
The vehicle interface unit intelligently responds to and controls the switching of the NFC module's operating mode based on vehicle status information, enabling flexible allocation of reader mode, card emulation mode, and peer-to-peer mode. It also sets operating mode switching requirements and priority sorting queues to ensure the stable operation of core functions.
It improves the intelligence level and resource utilization efficiency of the vehicle system, provides a richer and more convenient driving experience, ensures vehicle safety and power management, and enhances the stability and reliability of the system.
Smart Images

Figure CN121174124B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle technology, and more particularly to the field of vehicle network architecture, specifically to an in-vehicle NFC service system, method, vehicle, and device. Background Technology
[0002] In the automotive field, Near Field Communication (NFC) technology has a wide range of applications. It can be used for vehicle starting and authentication, allowing owners to quickly unlock and start the vehicle by simply bringing an NFC-enabled key card or mobile phone close to it. It can also be used for vehicle configuration reading and setting, facilitating maintenance personnel or owners to obtain and modify vehicle parameters. Furthermore, it enables interaction between in-vehicle devices, such as quick connection between mobile phones and the in-vehicle infotainment system, and in-vehicle payments. However, the functionality of in-vehicle NFC modules in related technologies is limited, and issues such as unopened NFC capabilities, lack of resource scheduling, and fixed modes exist. Summary of the Invention
[0003] This application provides an in-vehicle NFC service system, method, vehicle, and device to at least address the technical problems of in-vehicle NFC modules in related technologies, such as limited functionality, lack of open NFC capabilities, lack of resource scheduling, and fixed modes. The technical solution of this application is as follows:
[0004] According to a first aspect provided in this application, an in-vehicle NFC service system is provided. The system includes an NFC module and a vehicle interface unit. The NFC module is communicatively connected to the vehicle interface unit. The NFC module operates in three modes: reader mode, card emulation mode, and peer-to-peer mode. The vehicle interface unit is used to obtain vehicle status information in response to the NFC module's operation mode switching request. The vehicle interface unit is also used to control the NFC module to switch its operation mode when the vehicle status information meets the NFC module's operation mode switching requirements.
[0005] Based on the aforementioned technical means, this application can intelligently respond to and control the switching of the NFC module's operating mode according to the vehicle status information through the vehicle interface unit. It can flexibly allocate the NFC module's functions according to the vehicle's real-time status, giving full play to its multiple capabilities such as card reader mode, card emulation mode, and point-to-point mode, and realizing diversified vehicle network data interaction applications. This avoids the problems of single function and fixed mode of the in-vehicle NFC module in related technologies, which can only operate in a fixed mode, resulting in the waste of hardware resources and the limitation of smart cockpit application scenarios. As a result, it improves the intelligence level and resource utilization efficiency of the in-vehicle system, and brings users a richer and more convenient car use experience.
[0006] In one possible approach, vehicle status information includes vehicle speed and door status; a card reader mode is used for door unlocking; and the operating mode switching requirements include: when the vehicle speed is greater than a first preset speed and the door status is locked, the NFC module's operating mode is prohibited from switching to card reader mode.
[0007] Based on the aforementioned technical means, this application can precisely control the use of the NFC module function according to the actual driving status of the vehicle and the door status by setting the vehicle status information to include vehicle speed and door status, specifying that the card reader mode is used for door unlocking, and setting the operating mode switching requirement to prohibit the NFC module from switching to the card reader mode when the vehicle speed is greater than a first preset vehicle speed and the door is locked. This ensures the safety of the vehicle during driving and prevents danger caused by accidentally triggering the card reader mode to unlock the door in unsafe scenarios such as high-speed driving.
[0008] In one possible approach, vehicle status information includes power-on status; card reader mode is used for vehicle startup; and operating mode switching requirements include: when the power-on status is power-off, the NFC mode operating mode is prohibited from switching to card emulation mode and peer-to-peer mode.
[0009] Based on the aforementioned technical means, this application can incorporate vehicle status information into the key indicator of power-on status, clearly define the card reader mode for vehicle startup, and set a requirement to prohibit the NFC module from switching to card emulation mode and peer-to-peer mode when the power is off. This allows for precise control of the NFC module function based on the actual power-on status of the vehicle, ensuring that the NFC module will not enter card emulation or peer-to-peer modes that may cause unnecessary power consumption or security risks when the vehicle is powered off, thus ensuring reasonable and orderly vehicle power management.
[0010] In one possible approach, the NFC mode's operating mode also includes a waiting mode; the waiting mode has a lower priority than the reader mode, card emulation mode, and peer-to-peer mode; the operating mode switching request is used to indicate switching from the current operating mode to the target operating mode; the vehicle interface unit is specifically used to: control the NFC module to switch its operating mode to the target operating mode when the target operating mode has a higher priority than the current operating mode.
[0011] Based on the aforementioned technical means, this application can add a waiting mode to the in-vehicle NFC service system and clearly define its priority as lower than that of the card reader, card emulation, and peer-to-peer modes. At the same time, it can control mode switching based on the priority of the target mode and the current mode in the operation mode switching request. This enables the NFC module to reasonably allocate resources under different functional requirement scenarios, prioritize responding to key functions (such as the card reader mode when the vehicle starts, the card emulation mode in payment scenarios, and the peer-to-peer mode for device interaction), ensure the stable operation of core functions, thereby improving the stability and reliability of the in-vehicle NFC system and providing users with smoother and more efficient in-vehicle interaction services.
[0012] In one possible approach, the vehicle interface unit is specifically used to: place the target operating mode into the execution priority sorting queue of the NFC module when the priority of the target operating mode is not higher than the priority of the current operating mode.
[0013] Based on the aforementioned technical means, this application can place the target mode into the pending execution priority sorting queue of the NFC module through the design of the vehicle interface unit when the priority of the target operating mode is not higher than that of the current operating mode. This design can manage the mode switching requests in an orderly manner according to the priority of different operating modes, avoid the interference of the normal operation of the current high-priority mode due to the direct preemption of resources by low-priority requests, and ensure the stable execution of key vehicle functions (such as starting the vehicle in card reader mode and completing payment in card emulation mode).
[0014] In one possible approach, the NFC module is specifically used to: reorder the running modes in the execution priority sorting queue based on preset rules; wherein the preset rules include, if the time difference between the first time when the first running mode is included in the execution priority sorting queue and the second time when the second running mode is included in the execution priority sorting queue is greater than a preset time difference, the first running mode is ordered before the second running mode; and, if the time difference is less than or equal to the preset time difference, the running mode with higher priority among the first and second running modes is ordered first; the first running mode and the second running mode are two different running modes in the execution priority sorting queue.
[0015] Based on the above technical means, this application can reorder any two running modes (e.g., the first running mode and the second running mode) in the priority sorting queue of execution by preset rules. That is, it can flexibly adjust according to the time difference of different running modes entering the queue and their original priorities. It can reasonably take into account the mode switching requests that are submitted earlier while ensuring that high-priority functional requirements are processed relatively first. It avoids the backlog of low-priority but initiated requests due to simple priority sorting and also prevents the situation of ignoring the priority of key functions by sorting only by time.
[0016] In one possible approach, the NFC module is specifically used to: run a third running mode after the current running mode has finished running; wherein the third running mode is the first running mode in the priority sorting queue to be executed.
[0017] Based on the aforementioned technical means, this application can ensure the orderliness and continuity of mode switching by allowing the NFC module to automatically run the first (i.e., the third) running mode in the priority queue after the current running mode ends. After the NFC module completes the current key task (such as starting the vehicle in card reader mode or completing payment in card emulation mode), it can promptly process the subsequent pending requests in the priority queue (i.e., the third running mode) in a preset priority order, thus avoiding functional interruption or a decline in user experience due to disordered switching or delayed processing.
[0018] In one possible approach, the in-vehicle NFC service system also includes an in-vehicle terminal; the in-vehicle terminal is communicatively connected to the vehicle interface unit; the in-vehicle terminal includes an application interface for the NFC module; and the operating mode switching request is sent by the in-vehicle terminal to the vehicle interface unit in response to the operating mode switching operation on the application interface.
[0019] Based on the aforementioned technical means, this application can add an in-vehicle terminal that communicates with the vehicle interface unit in the in-vehicle NFC service system, and integrate the application interface of the NFC module in the in-vehicle terminal. The operation mode switching request is generated and sent by the in-vehicle terminal in response to the application interface operation, which can provide users with an intuitive and convenient interactive entry point. Users can easily initiate the NFC module operation mode switching operation directly through the interface of the in-vehicle terminal without complicated settings or additional equipment operation, thereby improving the convenience and friendliness of user operation, enhancing the usability and user acceptance of the in-vehicle NFC service system, and creating a more intelligent and efficient in-vehicle interactive environment for users.
[0020] In one possible approach, the operating mode switching request is used to indicate a switch from the current operating mode to the target operating mode; the vehicle interface unit is specifically used to: determine that an operating mode switching request has been received when a target event is determined to have occurred; wherein, the target operating mode is the operating mode corresponding to the target event.
[0021] Based on the aforementioned technical means, this application can closely associate the operating mode switching request with the target event, enabling the vehicle interface unit to detect the target event (e.g., a user pressing the brake and start button, a user approaching the vehicle with an authorized digital key, etc.). When the target event is determined to occur, the vehicle interface unit will receive a target operating mode switching request corresponding to the target event. This allows the NFC module's operating mode switching to accurately match specific vehicle scenarios or user needs, ensuring that the mode switching has clear triggering conditions and practical significance. It avoids the NFC module switching modes unnecessarily due to misoperation or irrelevant requests, which would waste system resources or interfere with the normal function of the vehicle. This improves the accuracy and rationality of the in-vehicle NFC service system's mode switching, providing users with more reliable and intelligent in-vehicle interaction services.
[0022] According to the second aspect provided in this application, a vehicle-mounted NFC service method is provided, applied to the vehicle-mounted NFC service system of the first aspect; the system includes an NFC module and a vehicle interface unit; the NFC module is communicatively connected to the vehicle interface unit; the operating modes of the NFC module include: reader mode, card emulation mode, and peer-to-peer mode; the method includes: the vehicle interface unit responding to the operating mode switching request of the NFC module and obtaining vehicle status information; and the vehicle interface unit controlling the NFC module to switch operating modes when the vehicle status information meets the operating mode switching requirements of the NFC module.
[0023] In one possible approach, vehicle status information includes vehicle speed and door status; a card reader mode is used for door unlocking; and the operating mode switching requirements include: when the vehicle speed is greater than a first preset speed and the door status is locked, the NFC module's operating mode is prohibited from switching to card reader mode.
[0024] In one possible approach, vehicle status information includes power-on status; card reader mode is used for vehicle startup; and operating mode switching requirements include: when the power-on status is power-off, the NFC mode operating mode is prohibited from switching to card emulation mode and peer-to-peer mode.
[0025] In one possible approach, the NFC mode's operating mode also includes a waiting mode; the waiting mode has a lower priority than the reader mode, card emulation mode, and peer-to-peer mode; the operating mode switching request is used to indicate switching from the current operating mode to the target operating mode; when the vehicle status information meets the NFC module's operating mode switching requirements, the vehicle interface unit controls the NFC module to switch operating modes, including: when the target operating mode has a higher priority than the current operating mode, controlling the NFC module to switch operating modes to the target operating mode.
[0026] In one possible approach, the vehicle interface unit controls the NFC module to switch operating modes when the vehicle status information meets the operating mode switching requirements of the NFC module. The approach also includes placing the target operating mode into the execution priority sorting queue of the NFC module if the priority of the target operating mode is not higher than the priority of the current operating mode.
[0027] In one possible approach, if the priority of the target operating mode is not higher than that of the current operating mode, after placing the target operating mode into the execution priority sorting queue of the NFC module, the method includes: the NFC module reordering the operating modes in the execution priority sorting queue based on preset rules. The preset rules include: if the time difference between the first time the first operating mode is included in the execution priority sorting queue and the second time the second operating mode is included in the execution priority sorting queue is greater than a preset time difference, the first operating mode is sorted before the second operating mode; and if the time difference is less than or equal to the preset time difference, the operating mode with higher priority between the first and second operating modes is sorted first; the first operating mode and the second operating mode are two different operating modes in the execution priority sorting queue.
[0028] In one possible approach, after placing the target running mode into the execution priority sorting queue of the NFC module, provided that the priority of the target running mode is not higher than that of the current running mode, the method further includes: the NFC module running a third running mode after the current running mode has finished running; wherein the third running mode is the first running mode in the execution priority sorting queue.
[0029] In one possible approach, the in-vehicle NFC service system also includes an in-vehicle terminal; the in-vehicle terminal is communicatively connected to the vehicle interface unit; the in-vehicle terminal includes an application interface for the NFC module; and the operating mode switching request is sent by the in-vehicle terminal to the vehicle interface unit in response to the operating mode switching operation on the application interface.
[0030] In one possible approach, the operating mode switching request is used to indicate a switch from the current operating mode to the target operating mode; the vehicle interface unit determines that it has received the operating mode switching request when it determines that the target event has occurred; wherein, the target operating mode is the operating mode corresponding to the target event.
[0031] According to a third aspect provided in this application, a vehicle is provided, including the in-vehicle NFC service system of the first aspect.
[0032] According to a fourth aspect provided in this application, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the method of the second aspect described above and any possible implementation thereof.
[0033] According to a fifth aspect provided in this application, a computer-readable storage medium is provided that, when the instructions in the computer-readable storage medium are executed by a processor of an electronic device, enables the electronic device to perform the system described in the first aspect and any possible implementation thereof.
[0034] According to the sixth aspect provided in this application, a computer program product is provided, the computer program product including computer instructions that, when executed on an electronic device, cause the electronic device to perform the first aspect described above and any possible implementation thereof.
[0035] It should be noted that the technical effects of any of the implementation methods in aspects two through six can be found in the technical effects of the corresponding implementation methods in aspect one, and will not be repeated here.
[0036] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0037] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application, and do not constitute an undue limitation of this application.
[0038] Figure 1 This is a schematic diagram illustrating the structure of an in-vehicle NFC service system according to an exemplary embodiment;
[0039] Figure 2 This is a schematic diagram illustrating the structure of yet another in-vehicle NFC service system according to an exemplary embodiment;
[0040] Figure 3 This is a flowchart illustrating an in-vehicle NFC service method according to an exemplary embodiment;
[0041] Figure 4 This is a schematic diagram illustrating an in-vehicle NFC service process according to an exemplary embodiment;
[0042] Figure 5 This is a schematic diagram illustrating yet another in-vehicle NFC service process according to an exemplary embodiment;
[0043] Figure 6 This is a schematic diagram illustrating yet another in-vehicle NFC service process according to an exemplary embodiment;
[0044] Figure 7 This is a schematic diagram illustrating yet another in-vehicle NFC service process according to an exemplary embodiment;
[0045] Figure 8 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation
[0046] To enable those skilled in the art to better understand the technical solutions of this application, the technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings.
[0047] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0048] In the embodiments of this application, the words "exemplary," "for example," or "for instance" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary," "for example," or "for instance" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the words "exemplary," "for example," or "for instance" is intended to present the relevant concepts in a specific manner.
[0049] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments.
[0050] The in-vehicle NFC service system provided in this application embodiment can be applied in vehicles. Vehicles can also be referred to as vehicles, mobile carriers, electric vehicles (EVs), hybrid electric vehicles (HEVs), plug-in hybrid electric vehicles (PHEVs), fuel cell vehicles (FCVs), autonomous vehicles, intelligent and connected vehicles (ICVs), driverless vehicles, etc.
[0051] In this application, the vehicle can be a sedan, a sport utility vehicle (SUV), a truck, an electric vehicle, a motorcycle, a tricycle, a special vehicle (such as an ambulance, fire truck, police car, etc.), a driverless taxi, an intelligent connected bus, an autonomous logistics vehicle, an electric truck, etc. Furthermore, this method is also applicable to various special-purpose vehicles, such as agricultural vehicles, mining vehicles, forestry vehicles, airport vehicles, and port vehicles. This application does not impose specific limitations in this regard.
[0052] Figure 1 This is a schematic diagram illustrating the structure of an in-vehicle NFC service system according to an exemplary embodiment. Figure 1 The in-vehicle NFC service system may include a vehicle interface unit 101 and an NFC module 102.
[0053] Among them, the vehicle interface unit 101 is the data exchange and communication hub in the vehicle electronic architecture. It is responsible for aggregating, converting and routing data from different vehicle subsystems (such as body control, powertrain and infotainment system) and signals from external devices (such as telematics box (T-Box) and on-board diagnostics (OBD)). This enables secure and efficient connection between the vehicle's internal network and the outside world, and supports a variety of intelligent services such as remote status monitoring, fleet management, fault diagnosis and online software upgrades.
[0054] The NFC module 102 operates in three modes: reader mode, card emulation mode, and peer-to-peer mode. In reader mode, the vehicle's NFC module 102 acts as an active device, reading information from external NFC tags or cards. For example, when the owner approaches the vehicle, the vehicle can read their NFC key card, automatically verifying their identity and unlocking the doors for convenient keyless entry. In card emulation mode, the vehicle's NFC module 102 simulates a virtual card, allowing the vehicle to be recognized by external card readers. For example, when exiting a parking lot, the vehicle can simulate a payment card being read by the gate to automatically complete parking fee payment. In peer-to-peer mode, the vehicle's NFC module 102 communicates directly with other NFC devices to exchange data. For example, the owner can bring their smartphone close to the vehicle's center console to quickly transfer navigation routes or music files to the in-vehicle system.
[0055] Optionally, the vehicle interface unit 101 can communicate with the NFC module 102.
[0056] Optionally, the NFC module 102 can be deployed inside the vehicle. For example, the NFC module 102 can be deployed next to the center console to facilitate starting the vehicle and unlocking the doors.
[0057] In one embodiment, combined with Figure 1 ,like Figure 2 As shown, Figure 2 This is a schematic diagram illustrating the structure of another in-vehicle NFC service system according to an exemplary embodiment. The in-vehicle NFC service system may further include an in-vehicle terminal 103. The in-vehicle terminal 103 can be connected to the vehicle interface unit 101. The in-vehicle terminal 103 may include an application interface for the NFC module. The vehicle interface unit 101 may include an NFC service proxy module 1011 and a protocol conversion module 1012.
[0058] In one possible implementation, the vehicle terminal 103 can display the application interface of the NFC module through the vehicle's infotainment system.
[0059] For example, such as Figure 2 As shown, the in-vehicle applications in the application interface of the NFC module 102 may include a wireless Fidelity (WIFI) quick connection application (APP), a Bluetooth quick connection APP, a vehicle information sharing APP, and a trip sharing APP.
[0060] Among them, the vehicle-mounted terminal 103 includes in-vehicle applications, which are application software that users can directly perceive and interact with to achieve specific functions. The in-vehicle service in the vehicle-mounted terminal 103, also known as the NFC service client, is a module that runs in the background and provides general capability support for upper-layer applications (in-vehicle applications).
[0061] In one possible implementation, the NFC service proxy module 1011 in the vehicle interface unit 101 can encapsulate NFC capabilities into services, providing service interfaces such as the NfcModeControlInterface and the NfcDataTransmitInterface. The mode control interface is used to send commands to the NFC module 102 to control the switching of its operating mode.
[0062] It should be noted that the structures illustrated in the embodiments of this application do not constitute a limitation on the in-vehicle NFC service system. The system may include more or fewer components than illustrated, or combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of both.
[0063] For ease of understanding, the functions of the in-vehicle NFC service system provided in this application will be described in detail below with reference to the accompanying drawings.
[0064] Figure 3 This is a flowchart illustrating an in-vehicle NFC service method according to an exemplary embodiment, such as... Figure 3 As shown, the in-vehicle NFC service method includes the following steps: S301-S302.
[0065] S301, Vehicle Interface Unit, is used to obtain vehicle status information in response to the NFC module's operating mode switching request.
[0066] The operating mode switching request can be sent by the in-vehicle terminal to the vehicle interface unit in response to the operating mode switching operation on the application interface. Vehicle status information can include vehicle speed, door status, and power status.
[0067] For example, a user clicks the "One-click WiFi Connection" button in the WiFi Quick Connection app. The WiFi Quick Connection app does not directly operate the NFC hardware, but instead calls the underlying "NFC service client". After receiving the request, the "NFC service client" can send a mode switching request to the NFC service proxy module 1011 in the vehicle interface unit 101 through the vehicle network (e.g., Service-Oriented Architecture, SOA) to control the NFC module 102 to enter peer-to-peer mode.
[0068] Furthermore, the NFC module 102 can establish a connection with the user device, transmit the WIFI configuration information to the mobile phone, and complete the WIFI quick connection.
[0069] In another possible implementation, the operating mode switching request can be generated by the vehicle interface unit based on the target event. That is, the vehicle interface unit can determine that it has received the operating mode switching request if it determines that the target event has occurred.
[0070] For example, the target event may include the approach of an authorized digital key. The vehicle interface unit can determine that it has received an operating mode switching request if it determines that a user is approaching the vehicle with an authorized digital key and intends to get in, and then request the NFC module to switch to reader mode.
[0071] The target event may also include the charging gun being inserted into the vehicle's charging port. The vehicle interface unit can determine that the vehicle has started charging and is ready to make a payment, and if so, it will receive an operating mode switching request to request the NFC module to switch its operating mode to card emulation mode.
[0072] In one possible implementation, the vehicle interface unit can be connected to a vehicle speed sensor. The vehicle interface unit can acquire real-time vehicle speed information collected by the vehicle speed sensor.
[0073] The vehicle interface unit can connect to the body control module. The vehicle interface unit can send acquisition commands to the body control module to obtain the door status data collected by the body control module.
[0074] The vehicle interface unit can be connected to the vehicle controller. The vehicle controller can send the vehicle's power status to the vehicle interface unit after power is applied.
[0075] S302, the vehicle interface unit, is also used to control the NFC module to switch operating modes when the vehicle status information meets the operating mode switching requirements of the NFC module.
[0076] In one possible implementation, the operating mode switching requirements include: when the vehicle speed is greater than a first preset speed and the door is locked, the NFC module is prohibited from switching its operating mode to card reader mode; and when the power-on state is power-off, the NFC mode is prohibited from switching its operating mode to card emulation mode and peer-to-peer mode.
[0077] Optionally, the first preset vehicle speed can be set according to actual needs. For example, the first preset vehicle speed can be 0 or 2 kilometers per hour. This application does not impose specific limitations on this.
[0078] By preventing the NFC module from switching to card reader mode when the vehicle speed exceeds a first preset speed and the doors are locked, the system prevents the NFC module from accidentally reading unlocking commands from the user device while the vehicle is in motion, thus avoiding the risk of accidental door opening. Disabling card emulation and peer-to-peer modes during power outages is because these functions (such as payment and data synchronization) are no longer needed after the vehicle is powered off. Forced disabling minimizes the standby power consumption of the NFC module and related control units, effectively preventing battery depletion during prolonged vehicle parking.
[0079] In one possible implementation, the NFC operating mode can also include a standby mode, which is a low-power sleep state. In standby mode, most of the functional circuitry of the NFC module is turned off, retaining only the most basic listening capabilities. Standby mode has lower priority than reader mode, card emulation mode, and peer-to-peer mode. An operating mode switching request can be used to indicate a switch from the current operating mode to the target operating mode.
[0080] In one possible implementation, the vehicle interface unit can control the NFC module to switch to the target operating mode if the target operating mode has a higher priority than the current operating mode.
[0081] For example, the priority of reader mode is higher than that of card emulation mode, and the priority of card emulation mode is higher than that of peer-to-peer mode. When the target operating mode is reader mode and the current operating mode is peer-to-peer mode, the NFC module's operating mode is switched to reader mode.
[0082] In another possible implementation, the vehicle interface unit can place the target operating mode into the execution priority sorting queue of the NFC module, provided that the priority of the target operating mode is not higher than the priority of the current operating mode.
[0083] Furthermore, the NFC module can reorder the running modes in the priority sorting queue based on preset rules.
[0084] The preset rules may include, if the time difference between the first time when the first running mode is included in the priority sorting queue and the second time when the second running mode is included in the priority sorting queue is greater than a preset time difference, the first running mode shall be sorted before the second running mode; and if the time difference is less than or equal to the preset time difference, the running mode with higher priority among the first and second running modes shall be sorted first; the first running mode and the second running mode are two different running modes in the priority sorting queue.
[0085] In other words, if the arrival time of two operation modes is relatively long (for example, the second operation mode arrives 30 seconds after the first operation mode arrives), then the first or second operation mode will be executed strictly in the order of arrival. However, if the two operation modes arrive almost simultaneously (for example, the interval is very short, within a few milliseconds), the operation mode with higher priority among the first and second operation modes can be executed first, thus intelligently balancing fairness and urgency.
[0086] In one possible implementation, the NFC module can also run a third operating mode after the current operating mode has finished running. This third operating mode is the first operating mode in the priority queue to be executed.
[0087] In other words, after the current running mode has finished running, the NFC module can execute the running modes in the priority queue in the order they are ordered.
[0088] Based on the above technical solution, this application can intelligently respond to and control the switching of the NFC module's operating mode according to the vehicle status information through the vehicle interface unit. It can flexibly allocate the NFC module's functions according to the real-time status of the vehicle, giving full play to its multiple capabilities such as card reader mode, card emulation mode, and point-to-point mode, and realize diversified vehicle network data interaction applications. This avoids the problems of single function and fixed mode of the in-vehicle NFC module in related technologies, which can only operate in a fixed mode, resulting in the waste of hardware resources and the limitation of smart cockpit application scenarios. This improves the intelligence level and resource utilization efficiency of the in-vehicle system and brings users a richer and more convenient car experience.
[0089] In some embodiments, such as Figure 4 As shown, Figure 4 This is a schematic diagram illustrating an in-vehicle NFC service process according to an exemplary embodiment.
[0090] In one possible implementation, the in-vehicle NFC service process may include a service invocation phase, a dynamic arbitration and management phase, a protocol conversion phase, a mode switching phase, a data interaction phase, and an external interaction phase.
[0091] The service invocation phase may include:
[0092] The vehicle terminal sends an operating mode switching request to the NFC service client. The NFC service client can respond to the operating mode switching request by making standardized service calls, that is, by sending the operating mode switching request to the vehicle interface unit through the NFC service interface.
[0093] The dynamic arbitration and management phase may include:
[0094] The vehicle interface unit performs dynamic arbitration, that is, when the vehicle status information meets the operating mode switching requirements of the NFC module, and the priority of the target operating mode is higher than the priority of the current operating mode, it controls the NFC module to switch operating modes.
[0095] The protocol conversion phase may include:
[0096] The vehicle interface unit performs protocol conversion and sends instructions to the NFC module. In other words, it converts the protocol of the operating mode switching request into the protocol corresponding to the NFC module, obtains the mode switching instruction, and sends the mode switching instruction to the NFC module.
[0097] The mode switching phase may include:
[0098] If the mode switching command is correct, the NFC module performs the mode switch and sends a successful switch response to the vehicle interface unit. The vehicle interface unit can then send the successful switch response to the on-board terminal via the NFC service client.
[0099] The data interaction phase may include:
[0100] The vehicle-mounted terminal sends a data request to the NFC service client. The NFC service client can respond to the data request and invoke data services; that is, the vehicle-mounted terminal sends a data request to the vehicle interface unit through the NFC service interface. The vehicle interface unit performs protocol conversion and sends Application Protocol Data Unit (APDU) data to the NFC module. The NFC module buffers the APDU data and sends a data reception completion response to the vehicle interface unit. The vehicle interface unit then sends a data reception completion response to the NFC server interface.
[0101] The external interaction phase may include:
[0102] The NFC module responds to the proximity of the user device by performing NFC radio frequency interaction.
[0103] In some embodiments, such as Figure 5 As shown, Figure 5 This is a schematic diagram illustrating yet another in-vehicle NFC service process according to an exemplary embodiment.
[0104] S501: In response to the NFC module's request to switch operating modes, obtain vehicle status information.
[0105] S502, determine whether the vehicle status information meets the NFC module's operating mode switching requirements.
[0106] If yes, then execute S503; otherwise, execute S504.
[0107] S503. Determine whether the priority of the target operating mode is higher than the priority of the current operating mode.
[0108] If yes, then execute S505; otherwise, execute S506.
[0109] S504, Reject the operation mode switching request and send a rejection response.
[0110] S505, control the NFC module to switch its operating mode to the target operating mode.
[0111] S506, Add the target operating mode to the pending priority sorting queue of the NFC module or reject the request.
[0112] S507: Record the new mode and notify the relevant modules.
[0113] S508, End.
[0114] In some embodiments, such as Figure 6 As shown, Figure 6 This is a schematic diagram illustrating another in-vehicle NFC service process according to an exemplary embodiment, the process including: S601-S605.
[0115] S601. The user initiates the sharing process on the application interface of the NFC module of the vehicle terminal.
[0116] Specifically, on the NFC module's application interface, after selecting the current trip record, the user clicks the "Generate NFC Share Code" option. At this time, the vehicle terminal can send a mode switching request to the NFC module through the vehicle interface unit, putting it into card emulation mode. Subsequently, the data packets of this trip from the vehicle terminal are encapsulated according to the NFC Data Exchange Format (NDEF) and sent to the NFC module through the vehicle interface unit.
[0117] The encapsulated data includes a sharing token, connection credentials, and action commands. The sharing token is a unique identity (ID) number that identifies this trip. The connection credentials are the ID and password (or Bluetooth pairing code) of the vehicle's temporary hotspot. The action commands are used to tell the user device "This is a command to request trip data."
[0118] S602, Data Triggered Exchange.
[0119] Specifically, when the user device is brought close to the NFC sensing area of the NFC module, the NFC chip of the user device reads the "card" information simulated by the NFC module to identify the NDEF message containing intelligent instructions, and automatically wakes up the corresponding vehicle APP on the user device to obtain the sharing token and connection credentials.
[0120] S603. Establish a high-speed data channel.
[0121] Specifically, the vehicle app can automatically use the received connection credentials in the background to connect to the temporary hotspot emitted by the vehicle (or complete Bluetooth pairing), without requiring the user to manually search for a network and enter a password.
[0122] S604, Requesting and transmitting data.
[0123] Specifically, the vehicle app initiates a data acquisition request to the in-vehicle terminal via an established hotspot / Bluetooth connection. The data acquisition request can include a sharing token and a request content. For example, the request content could include: "Hello, this is the vehicle app; please send me the trip data corresponding to the sharing token." After verifying the sharing token's validity, the in-vehicle terminal sends the complete local trip data (which may be an index file containing detailed waypoints, timestamps, speed, altitude, and even driving video clips) to the vehicle app via a high-speed hotspot or Bluetooth channel.
[0124] S605, Data storage and display.
[0125] Specifically, after receiving the complete data, the vehicle app saves it to a local database. Users can view the complete route, review driving data, and even export it to other map applications to generate 3D path animations at any time in the vehicle app's "My Trip" or "Imported Records".
[0126] In some embodiments, such as Figure 7 As shown, Figure 7 This is a schematic diagram illustrating yet another in-vehicle NFC service process according to an exemplary embodiment. The process includes:
[0127] When a user device touches the NFC sensing area of an NFC module, it sends a sharing request to the NFC module.
[0128] In response to a sharing request, the NFC module transmits a "sharing token" and a "connection credential" to the user equipment via NFC radio frequency communication, and notifies the vehicle terminal of a sharing request.
[0129] User devices automatically connect to the vehicle's hotspot or Bluetooth via connection credentials.
[0130] The vehicle terminal prepares the trip data packet based on the sharing token.
[0131] The user device's vehicle app initiates a data acquisition request to the in-vehicle terminal.
[0132] The vehicle terminal transmits trip data to the user's device at high speed via hotspot or Bluetooth.
[0133] The user device parses the data and saves it to the vehicle's app;
[0134] User devices synchronize the received trip data to the vehicle manufacturer's cloud account via the vehicle's app for storage.
[0135] The foregoing mainly describes the solutions provided by the embodiments of this application from a methodological perspective. To achieve the above functions, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0136] This application embodiment can, according to the above method, exemplarily divide an electronic device into functional modules. For example, the electronic device may include functional modules corresponding to each functional division, or two or more functions may be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; in actual implementation, there may be other division methods.
[0137] Figure 8 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Figure 8 As shown, the electronic device includes, but is not limited to, a processor 801 and a memory 802.
[0138] The memory 802 described above is used to store the executable instructions of the processor 801. It is understood that the processor 801 is configured to execute instructions to implement the in-vehicle NFC service method in the above embodiments.
[0139] It should be noted that those skilled in the art will understand that Figure 8 The electronic device structure shown does not constitute a limitation on the electronic device; the electronic device may include, but is not limited to, other electronic devices. Figure 8 This may indicate more or fewer components, or a combination of certain components, or a different arrangement of components.
[0140] The processor 801 is the control center of the electronic device. It connects various parts of the electronic device via various interfaces and lines. By running or executing software programs and / or modules stored in the memory 802, and by calling data stored in the memory 802, it performs various functions and processes data, thereby providing overall monitoring of the electronic device. The processor 801 may include one or more processing units. Optionally, the processor 801 may integrate an application processor and a modem processor. The application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into the processor 801.
[0141] The memory 802 can be used to store software programs and various data. The memory 802 may primarily include a program storage area and a data storage area. The program storage area may store the operating system, application programs required by at least one functional module (such as a determination unit, processing unit, etc.), etc. Furthermore, the memory 802 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device.
[0142] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory 802 including instructions, which can be executed by a processor 801 of an electronic device to implement the methods in the above embodiments.
[0143] Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage device. In an exemplary embodiment, this application also provides a computer program product including one or more instructions, which can be executed by a processor 801 of an electronic device to perform the methods in the above embodiments.
[0144] It should be noted that when one or more instructions in the computer-readable storage medium or computer program product are executed by the processor of an electronic device, they implement the various processes of the above method embodiments and achieve the same technical effect as the above method. To avoid repetition, they will not be described again here.
[0145] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0146] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0147] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0148] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0149] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0150] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to execute the in-vehicle NFC service method described in the above method embodiments.
[0151] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the in-vehicle NFC service method in the method flow shown in the above method embodiments.
[0152] The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, a register, a hard disk, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC). In embodiments of this application, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0153] Since the in-vehicle NFC service system, computer-readable storage medium, and computer program product in the embodiments of this application can be applied to the above methods, the technical effects that can be obtained can also be referred to the above method embodiments. The embodiments of this application will not be repeated here.
[0154] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. An in-vehicle NFC service system, characterized in that, The system includes an NFC module and a vehicle interface unit; the NFC module is communicatively connected to the vehicle interface unit; the NFC module has the following operating modes: reader mode, card emulation mode, peer-to-peer mode, and waiting mode; the waiting mode has a lower priority than the reader mode, card emulation mode, and peer-to-peer mode; the reader mode has a higher priority than the card emulation mode; and the card emulation mode has a higher priority than the peer-to-peer mode. The vehicle interface unit is used to obtain vehicle status information in response to the operating mode switching request of the NFC module; wherein the operating mode switching request is used to indicate switching from the current operating mode to the target operating mode; The vehicle interface unit is further configured to control the NFC module to switch operating modes when the vehicle status information meets the operating mode switching requirements of the NFC module and the priority of the target operating mode is higher than the priority of the current operating mode; or, when the priority of the target operating mode is not higher than the priority of the current operating mode, to place the target operating mode into the pending execution priority sorting queue of the NFC module. The NFC module is specifically used for: The execution modes in the priority sorting queue to be executed are reordered based on preset rules; The preset rule includes, if the time difference between the first time the first running mode is included in the priority sorting queue and the second time the second running mode is included in the priority sorting queue is greater than a preset time difference, then the first running mode is sorted before the second running mode; and, If the time difference is less than or equal to the preset time difference, the running mode with higher priority between the first running mode and the second running mode is sorted first; the first running mode and the second running mode are two different running modes in the priority sorting queue to be executed.
2. The in-vehicle NFC service system according to claim 1, characterized in that, The vehicle status information includes the vehicle speed and door status; the card reader mode is used for door unlocking. The operation mode switching requirements include: when the vehicle speed is greater than a first preset vehicle speed and the vehicle door is locked, the operation mode of the NFC module is prohibited from switching to the card reader mode.
3. The in-vehicle NFC service system according to claim 1, characterized in that, The vehicle status information includes the power-on status; the card reader mode is used for vehicle startup. The operation mode switching requirements include: when the power-on state is power-off, the operation mode of the NFC module is prohibited from switching to the card emulation mode and the peer-to-peer mode.
4. The in-vehicle NFC service system according to claim 1, characterized in that, The NFC module is specifically used for: After the current running mode finishes running, the third running mode is run; wherein, the third running mode is the first running mode in the priority sorting queue to be executed.
5. The in-vehicle NFC service system according to claim 1, characterized in that, The in-vehicle NFC service system also includes an in-vehicle terminal; the in-vehicle terminal is communicatively connected to the vehicle interface unit; the in-vehicle terminal includes the application interface of the NFC module; The operating mode switching request is sent by the vehicle terminal to the vehicle interface unit in response to the operating mode switching operation on the application interface.
6. The in-vehicle NFC service system according to claim 1, characterized in that, The operating mode switching request is used to indicate a switch from the current operating mode to the target operating mode; the vehicle interface unit is specifically used for: If the target event is determined to have occurred, it is determined that the operation mode switching request has been received; The target operating mode is the operating mode corresponding to the target event.
7. A method for providing in-vehicle NFC services, characterized in that, An in-vehicle NFC service system according to any one of claims 1-6; the system includes an NFC module and a vehicle interface unit; the NFC module is communicatively connected to the vehicle interface unit; the NFC module has the following operating modes: reader mode, card emulation mode, peer-to-peer mode, and waiting mode; the waiting mode has a lower priority than the reader mode, card emulation mode, and peer-to-peer mode; the reader mode has a higher priority than the card emulation mode; the card emulation mode has a higher priority than the peer-to-peer mode; the method includes: The vehicle interface unit responds to the operating mode switching request of the NFC module and obtains vehicle status information; wherein, the operating mode switching request is used to indicate switching from the current operating mode to the target operating mode; The vehicle interface unit controls the NFC module to switch operating modes when the vehicle status information meets the operating mode switching requirements of the NFC module and the priority of the target operating mode is higher than the priority of the current operating mode; or, when the priority of the target operating mode is not higher than the priority of the current operating mode, the vehicle interface unit puts the target operating mode into the execution priority sorting queue of the NFC module. The NFC module is specifically used for: The execution modes in the priority sorting queue to be executed are reordered based on preset rules; The preset rule includes, if the time difference between the first time the first running mode is included in the priority sorting queue and the second time the second running mode is included in the priority sorting queue is greater than a preset time difference, then the first running mode is sorted before the second running mode; and, If the time difference is less than or equal to the preset time difference, the running mode with higher priority between the first running mode and the second running mode is sorted first; the first running mode and the second running mode are two different running modes in the priority sorting queue to be executed.
8. A vehicle, characterized in that, The vehicle includes the in-vehicle NFC service system as described in any one of claims 1-6.
9. An electronic device, characterized in that, include: processor; Memory used to store the processor's executable instructions; The processor is configured to execute the instructions to implement the in-vehicle NFC service method as described in claim 7.
Citation Information
Patent Citations
Mode switching module and mode switching method
CN103684535A
Method and device for reducing vehicle-mounted power consumption, vehicle and computer readable storage medium
CN114143754A
Vehicle NFC communication module control method and system and vehicle
CN119636633A