Signal-to-service conversion method and device, electronic equipment and storage medium

By implementing the signal to service method in the vehicle main controller, the problem of difficulty in quickly accessing vehicles by rear-installed equipment is solved, and the rapid and legal access of equipment and real-time release of services is achieved, which improves the user experience.

CN119966678APending Publication Date: 2025-05-09GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510019496.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-05-09

AI Technical Summary

Technical Problem

In the prior art, it is difficult for the rear-installation equipment to provide services to users quickly, which affects the user experience. Especially when the whole vehicle adopts a service-oriented communication architecture, the access and function of the rear-installation equipment require complex configuration and debugging.

Method used

By implementing the signal-to-service method in the main controller of the vehicle, receiving the SDK authentication information sent by the target external device, and sending authentication information to the server for authentication. If the authentication is passed, confirm that the device is legal and sending the authentication result, so that the device can quickly access the vehicle under legal and safe conditions. At the same time, the device signal is converted into a service and released according to the preset correspondence relationship.

Benefits of technology

The target external equipment is quickly connected to the vehicle under legal and safe conditions, without complex configuration and debugging, ensuring the real-time and usability of the service, and improving the user's experience of the target external equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119966678A_ABST
    Figure CN119966678A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a signal-to-service conversion method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving SDK authentication information sent by target external equipment; sending the SDK authentication information to the server, so that the server authenticates the target external device based on the SDK authentication information to obtain an authentication result; if the authentication result returned by the server indicates that the authentication is passed, confirming that the target external equipment is legal, and sending the authentication result to the target external equipment, so that the target external equipment confirms that the target external equipment is accessed to the vehicle when confirming that the received authentication result is that the authentication is passed; and if a first equipment signal sent by the target external equipment after confirming that the target external equipment accesses the vehicle is received, converting the first equipment signal into a first service according to a preset corresponding relationship between the equipment signal of the target external equipment and the service, and issuing the first service. Through the method, the target external equipment can be used after being connected to the vehicle, so that the use experience of the target external equipment is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and more specifically, to a signal transfer service method, device, electronic device and storage medium. Background Art

[0002] At present, with the development of software-defined vehicle (SDV) technology, vehicles have gradually begun to adopt service-oriented architecture (SOA). In this communication architecture, various functions of the vehicle are abstracted as services. These services can be called and combined through the network to provide users with intelligent and personalized services, thereby improving the user experience.

[0003] However, although whole vehicles are gradually adopting service-oriented communications, for aftermarket devices of the vehicle (such as navigation, game consoles, in-vehicle air purification equipment, etc.), if the functions of the aftermarket devices need to be provided to the vehicle or background use, the currently commonly used method is to provide services after connecting to the whole vehicle network. In this case, users need to configure and debug or install corresponding software for the access of new aftermarket devices and the addition of new functions, which makes it difficult for the aftermarket devices to provide services to users quickly, thereby affecting the user experience. Summary of the invention

[0004] In view of this, the embodiments of the present application propose a signal conversion service method, device, electronic device and storage medium, which can effectively solve the problem in the related art that after-sales equipment is difficult to quickly provide services to users.

[0005] In the first aspect, an embodiment of the present application provides a signal-to-service method, which is applied to a main controller of a vehicle, and the method includes: receiving SDK authentication information sent by a target external device; sending the SDK authentication information to a server, so that the server authenticates the target external device based on the SDK authentication information to obtain an authentication result of the target external device; if the authentication result returned by the server indicates that the authentication is successful, confirming that the target external device is legal, and sending the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is successful; if a first device signal is received and sent by the target external device after confirming that it is connected to the vehicle, convert the first device signal into a first service according to a preset correspondence between the device signal of the target external device and the service, and publish the first service.

[0006] In a second aspect, an embodiment of the present application provides a signal-to-service method, which is applied to a server, and the method includes: when the main controller of the target vehicle receives SDK authentication information sent by a target external device, forwarding the SDK authentication information to the server; authenticating the target external device based on the SDK authentication information to obtain an authentication result; sending the authentication result to the main controller so that the main controller confirms that the target external device is legitimate when confirming that the authentication result is authenticated, and sending the authentication result to the target external device, the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is authenticated, and the main controller receives a first device signal sent by the target external device after confirming that it is connected to the vehicle, converts the first device signal into a first service according to a preset correspondence between the signal of the target external device and the service, and publishes the first service.

[0007] In the third aspect, the application embodiment provides a signal-to-service device, which is applied to the main controller of a vehicle, and the device includes: a first information receiving module, which is used to receive SDK authentication information sent by a target external device; an information sending module, which is used to send the SDK authentication information to a server, so that the server authenticates the target external device based on the SDK authentication information to obtain an authentication result of the target external device; an authentication confirmation module, which is used to confirm that the target external device is legitimate when the authentication result returned by the server indicates that the authentication is successful, and send the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is successful; a signal-to-service module, which is used to, when receiving a first device signal sent by the target external device after confirming that it is connected to the vehicle, convert the first device signal into a first service according to a preset correspondence between the device signal of the target external device and the service, and publish the first service.

[0008] In a fourth aspect, the present embodiment provides a signal-to-service device, which is applied to a server, and the device includes: a second information receiving module, which is used to receive the SDK authentication information sent by the target external device when the main controller of the target vehicle receives the SDK authentication information, and forwards it to the server; an authentication module, which is used to authenticate the target external device based on the SDK authentication information to obtain an authentication result; a result sending module, which is used to send the authentication result to the main controller, so that the main controller confirms the legality of the target external device when confirming that the authentication result is authenticated, and sends the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is authenticated, and so that the main controller, after receiving the first device signal sent by the target external device after confirming that it is connected to the vehicle, converts the first device signal into a first service according to a preset correspondence between the signal of the target external device and the service, and publishes the first service.

[0009] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory; one or more programs are stored in the memory and configured to be executed by the processor to implement the above method.

[0010] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, wherein the above method is executed when the program code is executed by a processor.

[0011] In a seventh aspect, an embodiment of the present application provides a computer program product or a computer program, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device obtains the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above method.

[0012] The embodiments of the present application provide a signal-to-service method, device, electronic device, and storage medium. By receiving SDK authentication information sent by a target external device; sending the SDK authentication information to a server, so that the server authenticates the target external device based on the SDK authentication information to obtain an authentication result of the target external device; if the authentication result returned by the server indicates that the authentication is passed, confirming that the target external device is legal, and sending the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is authentication passed, a standardized authentication process is adopted for the target external device, so that the target external device can quickly access the vehicle under legal and safe conditions without complicated configuration and debugging; if the first device signal sent by the target external device after confirming that it is connected to the vehicle is received, the first device signal is converted into a first service according to the preset correspondence between the device signal of the target external device and the service, and the first service is published, ensuring the real-time and availability of the service, and the published first service can be directly called by the vehicle-mounted terminal or the terminal associated with the vehicle, that is, by adopting the above method, the target external device can be used after being connected to the vehicle, thereby greatly improving the user's experience of using the target external device. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0014] Figure 1 A schematic diagram of a timing flow of a signal conversion service method provided in an embodiment of the present application is shown;

[0015] Figure 2 Another timing flow diagram of a signal conversion service method provided by an embodiment of the present application is shown;

[0016] Figure 3 A schematic diagram of a process of a signal conversion service method applied to a main controller provided in an embodiment of the present application is shown;

[0017] Figure 4 A schematic diagram of a process of a signal conversion service method applied to a server provided in an embodiment of the present application is shown;

[0018] Figure 5 Another schematic diagram of a flow chart of a signal conversion service method applied to a server provided in an embodiment of the present application is shown;

[0019] Figure 6 A connection block diagram of a signal transfer service device provided in an embodiment of the present application is shown;

[0020] Figure 7 Another connection block diagram of a signal transfer service device provided by an embodiment of the present application is shown;

[0021] Figure 8 A structural block diagram of an electronic device for executing the method of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0022] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0023] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0024] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0025] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0026] It should be noted that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.

[0027] It should also be noted that in the embodiments of the present application, the collection, use, processing and storage of application information are all subject to the user's permission and must comply with the regulations of the region.

[0028] The present application provides a signal-to-service method, which can be applied to an electronic device, which may be a server, a vehicle or a main controller of the vehicle, or a combination of one or more of the above.

[0029] In some embodiments, the server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.

[0030] Among them, the above-mentioned server may specifically include a host manufacturer's cloud backend server, which is a cloud service platform maintained by the vehicle manufacturer and is responsible for managing and processing various data and service requests from the vehicle and its external devices.

[0031] Figure 1 The signal-to-service method of the present application is specifically shown, and the method can be applied to a signal-to-service system including a main controller of a vehicle and a server, and the method includes:

[0032] Step S110: The target external device sends SDK authentication information to the main controller of the vehicle.

[0033] Among them, the target external device can be a navigation device, a game console, an in-vehicle air purification device, or other device that can provide services in the vehicle. When it wants to establish a connection with the vehicle, it needs to generate SDK authentication information through the authentication software development kit corresponding to the target external device, namely, the authentication SDK (Software Development Kit).

[0034] The SDK authentication information usually includes one or more of the following: the identity of the target external device, authentication information generated by a specific algorithm module in the authentication SDK, device information, and an initial key, which are used to prove the legitimacy of the target external device and determine the access rights of the target external device. After receiving this information, the vehicle's main controller will start the authentication process.

[0035] The authentication SDK of the target external device is applied for in advance by the target external device to a server (e.g., a cloud backend server of the OEM, a backend server of a vehicle service provider, or a backend server of a third-party organization that is specifically responsible for managing the vehicle access platform). The authentication SDK may include a device ID for identifying the type of the target external device, a specific algorithm module for encrypting and decrypting authentication information, an initial key for verifying the device identity of the target external device, and a TLV value (Type-Length-Value) for defining the type, length, and value of the signal of the target external device.

[0036] Among them, the main controller can receive the SDK authentication information sent by the target external device through an appropriate communication protocol (such as CAN bus, Ethernet, Bluetooth, etc.). In the embodiment of the present application, the communication protocol adopted can be the CAN bus communication protocol.

[0037] Step S120: The main controller of the vehicle sends SDK authentication information to the server.

[0038] In one possible implementation, the main controller of the vehicle may forward the SDK authentication information to the server upon receiving the SDK authentication information, so that the server may authenticate the target external device according to the SDK information.

[0039] In another possible implementation, the main controller of the vehicle may also add the vehicle identification to the SDK authentication information after receiving the SDK authentication information, and send the authentication information with the vehicle identification added to the server, so that the subsequent server can ensure that the authentication request of a target external device is for a specific vehicle, and after authenticating the target external device, send the authentication result to the terminal associated with the vehicle identification, and may also send the information associated with the target external device to the terminal associated with the vehicle identification, such as the multiple services that the target external device can provide.

[0040] The vehicle's main controller and the server can communicate via mobile cellular communication (such as 4G or 5G), wifi communication, satellite communication or Ethernet communication, etc. For example, the main controller can send the SDK authentication information to the server via 4G / 5G, Wi-Fi, Ethernet and other communication technologies.

[0041] Step S130: the server authenticates the target external device based on the SDK authentication information to obtain an authentication result of the target external device.

[0042] Among them, when the background server authenticates the received SDK authentication information, it specifically includes verifying the device ID, authentication information and initial secret key of the target external device. Specifically, it can be checked whether the device ID of the target external device is in the known legal device list. If it is, the authentication is passed, otherwise the authentication fails; the authentication information is encrypted and decrypted using a specific short-code module in the authentication SDK corresponding to the target external device to ensure the integrity and authenticity of the information. If both the encryption and decryption verifications are passed, the authentication information is authenticated. If there is an encryption or decryption verification failure, the authentication information fails; check whether the initial secret key in the SDK authentication information is consistent with the initial secret key in the SDK authentication of the target device. If they are consistent, the initial key verification is passed, otherwise the verification fails.

[0043] It is worth mentioning that when the device ID, authentication information and initial key are all authenticated, the target external device is authenticated. If the device ID, authentication information and initial key fail to authenticate, the target external device is authenticated.

[0044] In some scenarios, if the vehicle ID of the vehicle is added to the SDK authentication information, the vehicle ID can also be verified, such as checking whether the vehicle ID corresponding to the vehicle stored in the server is consistent with the vehicle ID added to the SDK authentication information. In this case, if they are consistent, and the device ID, authentication information, and initial key are all authenticated, the target external device is authenticated. If they are inconsistent or there is an authentication failure in the device ID, authentication information, and initial key, the target external device is authenticated. Failure.

[0045] Step S140: The server returns the authentication result to the main controller of the vehicle.

[0046] Among them, the server can return the authentication results to the main controller through communication technologies such as 4G / 5G, Wi-Fi, and Ethernet.

[0047] Step S150: When the main controller of the vehicle determines that the authentication result indicates that the authentication is successful, it confirms that the target external device is legitimate and sends the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when it confirms that the received authentication result is successful.

[0048] Specifically, when receiving the authentication result, the main controller can parse the authentication result to obtain the authentication status (such as authentication passed or authentication failed). If the authentication result indicates that the authentication is passed, the main controller can also record the relevant information of the target external device, such as device ID, device type, device name, etc., update the status of the target external device to "legal" or "authenticated", and record it in the device management table.

[0049] If it is determined that the authentication result indicates an authentication failure, the main controller may also record an error log, and send a notification of authentication failure to the target external device, thereby terminating the access process.

[0050] The main controller can specifically send the authentication result to the target external device through a communication protocol (such as CAN bus, Ethernet, Bluetooth, etc.).

[0051] Step S160: The main controller of the vehicle receives a first device signal sent by the target external device after confirming that the target external device is connected to the vehicle.

[0052] The target external device can parse the authentication result and obtain the authentication status (such as authentication passed or authentication failed). If the authentication status is authentication passed, the target external device confirms that it has accessed the vehicle. If the authentication status is authentication failed, the target external device can record an error log, display a prompt message of authentication failure, and terminate the access process.

[0053] Among them, after confirming that the authentication is passed, the target external device can also update its own status to "connected".

[0054] The first device signal of the target device may be one of multiple device signals of the target device. Each device signal of the target device may be preconfigured or generated based on signal details of multiple initial signals of the target external device and the type of service provided by each initial signal.

[0055] Among them, each device signal may specifically include signal details, such as signal name, signal value, signal type (such as integer, floating point number, Boolean value, etc.), signal description, cycle time, etc., and may also include a signal representation value (TLV value) used to describe the signal format, a method identifier / event identifier used to describe a specific method or event in the service corresponding to the device signal, and one or more of the service type corresponding to the signal.

[0056] In one possible implementation, different external devices may have different device signal identifiers, such as CANID, etc. The above device signal may be obtained by splicing based on a preset initial signal and device signal identifier.

[0057] Step S170: The main controller of the vehicle converts the first device signal into a first service according to a preset correspondence between the device signal of the target external device and the service, and publishes the first service.

[0058] The preset correspondence stores a plurality of device signals of the target external device and services corresponding to each device signal. The service corresponding to each device signal may be a service composed of one or more of Getter, Setter, Notifier, etc.

[0059] When receiving the first device signal, the main controller may match the first device signal with a plurality of device signals included in the preset corresponding relationship, thereby finding the first service corresponding to the first device signal.

[0060] In one possible implementation, the correspondence between device signals and services corresponding to different external devices can be stored in different databases or different storage locations of the vehicle, that is, databases or storage locations corresponding to different external devices are set in the main controller, and the target external device can also send the device identification of the target external device while sending the first device signal, so that the main controller of the vehicle can find the corresponding database or storage location according to the device identification, and find the first service corresponding to the first device signal from the preset correspondence stored in the database or storage location corresponding to the device identification.

[0061] Through the above implementation, the main controller can quickly locate the corresponding database or storage location according to the device identification, thereby improving the query efficiency.

[0062] In another possible implementation, the device signal of each external device is unique, that is, the correspondence between the device signals and services of multiple external devices can be stored in the same database or storage location of the vehicle, so that the vehicle's tracking controller can directly search for the first service corresponding to the first device signal from the preset correspondence stored in the above-mentioned database or storage location according to the first device signal.

[0063] Through the above implementation, since the correspondence between the device signals and services of all external devices is stored in the same database or storage location, and only one database or storage location needs to be maintained, data management is simplified while saving storage resources.

[0064] By adopting the above-mentioned signal-to-service method of the present application, the main controller receives SDK authentication information sent by the target external device; sends the SDK authentication information to the server, so that the server authenticates the target external device based on the SDK authentication information to obtain the authentication result of the target external device; if the authentication result returned by the server indicates that the authentication is successful, confirm that the target external device is legal, and send the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is successful, thereby realizing the use of a standardized authentication process for the target external device, so that the target external device can quickly connect to the vehicle under legal and safe conditions without complicated configuration and debugging; if the first device signal sent by the target external device after confirming that it is connected to the vehicle is received, the first device signal is converted into a first service according to the preset correspondence between the device signal of the target external device and the service, and the first service is published, thereby ensuring the real-time and availability of the service, and the published first service can be directly called by the vehicle-mounted terminal of the vehicle or the terminal associated with the vehicle, that is, by adopting the above-mentioned method, the target external device can be used after connecting to the vehicle, thereby greatly improving the user's experience of using the target external device.

[0065] In one possible implementation, before executing the above step S110, the method further includes:

[0066] Step S210: The server receives an SDK application request for a target external device.

[0067] The SDK application request carries the device parameters of the target external device.

[0068] The application request of the target external device SDK application request may be sent by a developer to the server through a development client.

[0069] The device parameters may include but are not limited to the device type, device model, device manufacturer, device serial number, etc. of the target external device, and are used to provide the necessary information for the server to generate a suitable authentication SDK to ensure that the generated SDK can meet the specific requirements of the device.

[0070] Step S220: the server generates an authentication SDK in response to the SDK application request.

[0071] The server can parse the device parameters in the SDK application request and extract information such as device type, device model, device manufacturer, etc. The server can generate a personalized authentication SDK based on the device parameters to ensure that the generated authentication SDK can meet the needs of specific devices.

[0072] Step S230: The server sends the authentication SDK to the target external device, so that the target external device generates the SDK authentication information based on the authentication SDK.

[0073] The server may send the generated authentication SDK to the target external device through a communication protocol.

[0074] By adopting the above steps S210-S230, since the authentication SDK usually contains multiple modules, such as device ID, specific algorithm module, initial key, etc., the above modules have been tested and optimized and can be used directly by developers. Subsequent developers do not need to write complex authentication logic and algorithms, but only need to call the authentication SDK to generate SDK authentication information, thereby reducing repetitive development work and reducing the workload of developers.

[0075] In one possible implementation, the method further includes:

[0076] Step S240: The server obtains signal details of multiple initial signals of the target external device and the service type corresponding to each initial signal.

[0077] The above step S240 may be to obtain the signal details and service type built into the firmware uploaded by the target external device.

[0078] In another possible implementation, the above step S240 may include steps ac.

[0079] Step a: The server sends a signal to the target external device to fill in the interface.

[0080] The above-mentioned signal interface can be a signal filling interface, which is used to indicate that the target user (such as a developer) needs to fill in the signal details of the various initial signals of the target external device and the service type corresponding to each initial signal on the signal filling interface. The signal details may include: signal sending type (such as periodic sending or sending at a specified time), signal sending period (if the signal sending type is periodic sending, specify the sending period), signal name, signal description (a brief description of the signal), start position (the start position of the initial signal in the message), signal length, signal minimum and maximum values, signal unit, and signal group description. The service type corresponding to the signal can be obtainable (Getter), settable (Setter), notifiable (Notifier), etc.

[0081] Step b: The external device receives the signal details of the multiple initial signals of the target external device and the service type corresponding to each initial signal filled in by the target user through the signal filling interface.

[0082] Specifically, the target user fills in the signal details information of multiple initial signals of the target external device on the signal filling interface and selects or fills in the service type corresponding to each initial signal.

[0083] After the target user completes filling in the form, the target external device saves the filled in information, and in response to a page submission instruction triggered by the target user, feeds back a filling in signal interface indicating the completion of filling in to the server.

[0084] Step c: The server obtains the completed signal filling interface to obtain the signal details of the multiple initial signals of the target external device in the signal filling interface and the service type corresponding to each initial signal.

[0085] Among them, the server can parse the completed signal filling interface and extract the signal details and service type of each initial signal.

[0086] Step S250: The server generates a device signal corresponding to each initial signal based on the signal details of each initial signal of the target device and the corresponding service type.

[0087] In one possible implementation, the device signal identifier of the target device may be obtained, and the device signal identifier may be concatenated with the signal details and service type in each initial signal to obtain the device signal.

[0088] In another possible implementation, the above step S250 includes the server executing the following steps d-f.

[0089] Step d: Obtain the device signal identifier of the target external device.

[0090] The above-mentioned device signal identifier may be composed of one or more of numbers, letters or symbols, etc., and is used to identify that the signal sent by the target external device is sent by the target external device.

[0091] In one possible implementation, the device signal identifier of the target external device may be generated based on signal details of multiple initial signals and the service type corresponding to each signal.

[0092] In another possible implementation, the device signal identifier of the target external device may also be generated by a random number generator, each device signal identifier is within a specified range, such as between 0x600-0x6FF, and the device signal identifiers of different external devices may be different.

[0093] The device signal identifier may specifically be a CAN ID, which is used to determine the priority of a data frame carrying the CAN ID. The smaller the value of the CAN ID, the higher the priority of the corresponding data frame. If the main controller receives data frames sent by different external devices at the same time, the CAN ID in one data frame is 0x100, and the CAN ID in another data frame is 0x101. Since the priority of 0x100 is higher than 0x101, the data frame with the CAN ID of 0x100 will be processed first.

[0094] Step e: Generate a signal representation value of the initial signal based on the signal length and signal value of the initial signal and the service type corresponding to the initial signal.

[0095] The signal indication value can be obtained by concatenating the signal length and signal value of the initial signal and the parameter value of the service type corresponding to the initial signal. In one embodiment, the signal indication value can be specifically represented as a TLV value, where different service types can correspond to different parameter values. For example, the range of T is 4 bits, the range of L is 4 bits, and the value of V is specifically defined according to the initial signal. Then the TLV value can be represented by the following table:

[0096]

[0097]

[0098] Step f: concatenate the device signal identifier and the signal representation value and signal details of the initial signal to obtain a device signal corresponding to the initial signal.

[0099] The order of splicing the device signal identifier, signal representation value and signal details can be arbitrary.

[0100] Since the device signal identifiers (such as CAN ID) corresponding to different external devices are unique, the definition of the signal representation value can be automatically converted into a message (such as automatically converted into a Setter) through the above table for the initial signal, the device signal identifier and the signal representation value. The TLV definition is actually converted into a specific numerical value, and the corresponding service can be obtained according to the specific numerical value. For example, the binary of TLV is 0000 0000 01 01, 0000 represents Setter, 000001 represents a length of 2 bits, and 01 represents the definition value of the signal (assuming 01 represents the window is open, 00 represents the window is closed, and the value is 01 at this time, which means the window is open).

[0101] By adopting the above steps S251-S253, it is possible to splice the signal identification, signal representation value and signal details into a complete device signal, ensure the integrity and consistency of the device signal, ensure that each device signal has a unique identifier, avoid signal conflicts, and in addition, the generated device signal has a clear structure, which is convenient for developers and system administrators to manage and maintain.

[0102] Step S260: The server sends the device signal to the target external device.

[0103] Specifically, the server can organize the generated device signal into a format suitable for transmission, such as a data packet in the form of CAN, TCP / IP, MQTT, etc., and send it to the target external device through a corresponding protocol. For example, if the target device communicates via a CAN bus, the server can organize the device signal into a CAN data packet and send the CAN data packet to the target external device using the CAN protocol.

[0104] Step S270: The server establishes a preset correspondence between the device signal of the target external device and the service based on the device signal corresponding to each of the initial signals and the service type corresponding to each of the initial signals.

[0105] Step S280: The server sends the preset corresponding relationship to the main controller.

[0106] Among them, by establishing a preset correspondence between device signals and services, the preset correspondence between device signals and services can be subsequently stored in a database or configuration file, and the preset correspondence can be sent to the main controller to perform the aforementioned steps S110-S150, so as to ensure that the device signal can be correctly mapped to the corresponding service type, so that the device can convert the signal into a service according to the preset correspondence.

[0107] See also Figure 3 As shown, the embodiment of the present application also provides a signal-to-service method, which is applied to a main controller of a vehicle, and the method includes the following steps:

[0108] Step S310: receiving SDK authentication information sent by the target external device.

[0109] Step S320: Sending the SDK authentication information to the server, so that the server authenticates the target external device based on the SDK authentication information to obtain an authentication result of the target external device.

[0110] Step S330: If the authentication result returned by the server indicates that the authentication is successful, the target external device is confirmed to be legitimate, and the authentication result is sent to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is successful.

[0111] Step S340: If a first device signal is received that is sent by the target external device after confirming that the target external device is connected to the vehicle, the first device signal is converted into a first service according to a preset correspondence between the device signal of the target external device and the service, and the first service is published.

[0112] For the detailed description of the above steps S310 - S340 , please refer to the detailed description of steps S110 - S170 in the above embodiments, which will not be repeated here.

[0113] In one possible implementation, before executing the above step S340, the method also includes: receiving a preset correspondence between a device signal of the target external device and a service, which is sent by the server after confirming that the target external device has been authenticated, and the device signal of the target external device is generated based on the initial signal of the target external device and the device signal identifier of the target external device.

[0114] The process of obtaining the device signal of the target external device can refer to the specific description of the above-mentioned embodiment, which will not be described in detail here.

[0115] In one possible implementation, after executing the above step S340, the method also includes: if a second service is received by the terminal device associated with the vehicle based on multiple services provided by the target external device, converting the second service into a second device signal based on the preset correspondence; sending the second device signal to the target external device so that the target external device performs an operation corresponding to the second device signal.

[0116] In one possible implementation, the SDK authentication information includes a vehicle identification of the vehicle, and the terminal device stores multiple services provided by the target external device. The multiple services provided by the external device are sent by the server to the terminal device associated with the vehicle based on the vehicle identification of the vehicle when the target external device is authenticated.

[0117] See also Figure 4 As shown, the embodiment of the present application provides a signal conversion service method, which is applied to a server, and the method includes:

[0118] Step S410: When receiving the SDK authentication information sent by the target external device, the main controller of the target vehicle forwards the SDK authentication information to the server.

[0119] Step S420: authenticating the target external device based on the SDK authentication information to obtain an authentication result.

[0120] Step S430: Send the authentication result to the main controller, so that the main controller confirms that the target external device is legitimate when confirming that the authentication result is authenticated, and send the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is authenticated, and so that the main controller receives the first device signal sent by the target external device after confirming that it is connected to the vehicle, converts the first device signal into a first service according to a preset correspondence between the signal of the target external device and the service, and publishes the first service.

[0121] For the detailed description of the above steps S410 - S430 , please refer to the detailed description of steps S110 - S170 in the above embodiment, which will not be repeated here.

[0122] In one possible implementation mode, the main controller of the target vehicle adds the vehicle identification of the target vehicle to the SDK authentication information forwarded to the server. After executing step S420, the method further includes: sending multiple services of the target external device to a terminal device associated with the vehicle identification, so that the target external device selects a second service based on the multiple services and sends the second service to the main controller. When receiving the second service, the main controller obtains a second device signal corresponding to the second service based on the preset correspondence, so as to send the second device signal to the target external device.

[0123] See also Figure 5 As shown, in one possible implementation, before executing step S410, the method further includes:

[0124] Step S440: receiving an SDK application request for the target external device, wherein the SDK application request carries device parameters of the target external device.

[0125] Step S450: Generate an authentication SDK based on the SDK application request, and feed back the authentication SDK to the target external device, so that the target external device generates the SDK authentication information based on the authentication SDK.

[0126] For the detailed description of the above steps S440-S450, please refer to the detailed description of steps S210-S230 in the above embodiment, which will not be repeated here.

[0127] In one possible implementation, after executing step S450, the method further includes steps S460-S480.

[0128] Step S460: Acquire signal details of multiple initial signals of the target external device and the service type corresponding to each initial signal.

[0129] In one possible implementation, the above step S460 may be to send a signal filling interface to the target external device; and obtain signal details of multiple initial signals of the target external device filled in through the signal filling interface and the service type corresponding to each initial signal.

[0130] Step S470: Based on the signal details of each initial signal of the target device and the corresponding service type, a device signal corresponding to each initial signal is generated, and the device signal is sent to the target external device.

[0131] In one possible implementation, the signal details include a signal length and a signal value; the above-mentioned step S470 includes: obtaining a device signal identifier of the target external device; generating a signal representation value of the initial signal based on the signal length and signal value of the initial signal and the service type corresponding to the initial signal; and splicing the device signal identifier and the signal representation value and signal details of the initial signal to obtain a device signal corresponding to the initial signal.

[0132] Step S480: Based on the device signal corresponding to each of the initial signals and the service type corresponding to each of the initial signals, a preset correspondence relationship between the device signal and the service of the target external device is established, and the preset correspondence relationship is sent to the main controller.

[0133] For the detailed description of the above steps S460-S480, please refer to the detailed description of steps S250-S270 in the above embodiment, which will not be repeated here.

[0134] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0135] See also Figure 6 Another embodiment of the present application provides a signal-to-service device 500, which is applied to the main controller of a vehicle, and the signal-to-service device 500 includes: a first information receiving module 510, which is used to receive SDK authentication information sent by a target external device; an information sending module 520, which is used to send the SDK authentication information to a server, so that the server authenticates the target external device based on the SDK authentication information to obtain an authentication result of the target external device; an authentication confirmation module 530, which is used to confirm that the target external device is legal when the authentication result returned by the server indicates that the authentication is successful, and send the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is successful; a signal-to-service module 540, which is used to, when receiving a first device signal sent by the target external device after confirming that it is connected to the vehicle, convert the first device signal into a first service according to a preset correspondence between the device signal of the target external device and the service, and publish the first service.

[0136] In one possible implementation, the signal conversion service device 500 also includes: a correspondence receiving module, which is used to receive a preset correspondence between the device signal of the target external device and the service sent by the server after confirming that the target external device has been authenticated, and the device signal of the target external device is generated based on the initial signal of the target external device and the device signal identifier of the target external device.

[0137] In one possible implementation, the signal-to-service device 500 further includes a device signal sending module. The signal-to-service module is further configured to, upon receiving a second service selected by the terminal device associated with the vehicle based on a plurality of services provided by the target external device, convert the second service into a second device signal based on the preset correspondence. The device signal sending module is configured to send the second device signal to the target external device so that the target external device performs an operation corresponding to the second device signal.

[0138] In one possible implementation, the SDK authentication information includes a vehicle identification of the vehicle, and the terminal device stores multiple services provided by the target external device. The multiple services provided by the external device are sent by the server to the terminal device associated with the vehicle based on the vehicle identification of the vehicle when the target external device is authenticated.

[0139] See also Figure 7As shown, another embodiment of the present application provides a signal-to-service device 600, which is applied to a server, and the signal-to-service device 600 includes: a second information receiving module 610, which is used to receive the SDK authentication information sent by the target external device when the main controller of the target vehicle receives the SDK authentication information, and forwards it to the server; an authentication module 620, which is used to authenticate the target external device based on the SDK authentication information to obtain an authentication result; a result sending module 630, which is used to send the authentication result to the main controller, so that the main controller confirms the legality of the target external device when confirming that the authentication result is authenticated, and sends the authentication result to the target external device, and the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is authenticated, and the main controller receives the first device signal sent by the target external device after confirming that it is connected to the vehicle, converts the first device signal into a first service according to a preset correspondence between the signal of the target external device and the service, and publishes the first service.

[0140] In one possible implementation, the signal-to-service device 600 also includes: a service sending module, used to send multiple services of the target external device to the terminal device associated with the vehicle identification, so that the target external device selects a second service based on the multiple services and sends the second service to the main controller. When the main controller receives the second service, it obtains a second device signal corresponding to the second service based on the preset correspondence relationship to send the second device signal to the target external device.

[0141] In one possible implementation, the signal conversion service device 600 further includes: a request receiving module and an authentication information generating module. The request receiving module is used to receive an SDK application request for the target external device, wherein the SDK application request carries the device parameters of the target external device; and the authentication information generating module is used to generate an authentication SDK based on the SDK application request, and feed back the authentication SDK to the target external device, so that the target external device generates the SDK authentication information based on the authentication SDK.

[0142] In one possible implementation, the signal-to-service device 600 also includes: an initial signal acquisition module, a device signal generation module and a correspondence establishment module, the initial signal acquisition module being used to acquire signal details of multiple initial signals of the target external device and the service type corresponding to each initial signal; the device signal generation module being used to generate a device signal corresponding to each initial signal based on the signal details of each initial signal of the target device and the corresponding service type, and send the device signal to the target external device; the correspondence establishment module being used to establish a preset correspondence between the device signal of the target external device and the service based on the device signal corresponding to each of the initial signals and the service type corresponding to each initial signal, and send the preset correspondence to the main controller.

[0143] In one possible implementation, the initial signal acquisition module is further used to send a signal filling interface to the target external device; obtain signal details of multiple initial signals of the target external device filled in through the signal filling interface and the service type corresponding to each initial signal.

[0144] In one possible implementation, the signal details include a signal length and a signal value; a device signal generation module is used to obtain a device signal identifier of a target external device; a signal representation value of the initial signal is generated based on the signal length and signal value of the initial signal and the service type corresponding to the initial signal; the device signal identifier and the signal representation value and signal details of the initial signal are concatenated to obtain a device signal corresponding to the initial signal.

[0145] Each module in the above-mentioned device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules. It should be noted that the device embodiment in this application corresponds to the aforementioned method embodiment. The specific principles in the device embodiment can be found in the contents of the aforementioned method embodiment, which will not be repeated here.

[0146] The following will be combined Figure 8 An electronic device provided by the present application is described.

[0147] See also Figure 8 Based on the signal-to-service method provided in the above embodiment, the embodiment of the present application also provides another electronic device 700 including a processor 710 that can execute the above method. The electronic device 700 can be a server, a terminal device or a vehicle. The terminal device can be a smart phone, a tablet computer, a computer or a portable computer and other devices.

[0148] The electronic device 700 further includes a memory 720 . The memory 720 stores a program that can execute the contents of the aforementioned embodiments, and the processor 710 can execute the program stored in the memory 720 .

[0149] Among them, the processor 710 may include one or more cores for processing data and a message matrix unit. The processor 710 uses various interfaces and lines to connect the various parts of the entire electronic device 700, and executes various functions and processes data of the electronic device 700 by running or executing instructions, programs, code sets or instruction sets stored in the memory 720, and calling data stored in the memory 720. Optionally, the processor 710 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The processor 710 can integrate one or more combinations of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 710, but may be implemented separately through a communication chip.

[0150] The memory 720 may include a random access memory (RAM) or a read-only memory (ROM). The memory 720 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 720 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function, instructions for implementing the following various method embodiments, etc. The data storage area may also store data (e.g., application information or skin images) obtained by the electronic device 700 during use.

[0151] The electronic device 700 may also include a network module and a screen. The network module is used to receive and send electromagnetic waves, realize the mutual conversion between electromagnetic waves and electrical signals, and thus communicate with a communication network or other devices, such as communicating with an audio playback device. The network module may include various existing circuit elements for performing these functions, such as antennas, radio frequency transceivers, digital signal processors, encryption / decryption chips, user identity modules (SIM) cards, memories, and the like. The network module may communicate with various networks such as the Internet, corporate intranets, wireless networks, or communicate with other devices via wireless networks. The above-mentioned wireless networks may include cellular telephone networks, wireless local area networks, or metropolitan area networks. The screen may display interface content and perform data interaction, such as displaying the aforementioned interface, and triggering operations via the screen.

[0152] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable medium stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0153] The computer-readable storage medium may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium includes a non-transitory computer-readable storage medium. The computer-readable storage medium has storage space for program codes that execute any of the method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code can be compressed, for example, in an appropriate form.

[0154] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device performs the method described in the above various optional implementations.

[0155] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A signal transfer service method, characterized in that: Applied to a main controller of a vehicle, the method comprises: Receive SDK authentication information sent by the target external device; Sending the SDK authentication information to a server, so that the server authenticates the target external device based on the SDK authentication information to obtain an authentication result of the target external device; If the authentication result returned by the server indicates that the authentication is successful, confirm that the target external device is legitimate, and send the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is successful; If a first device signal is received that is sent by the target external device after confirming that the target external device is connected to the vehicle, the first device signal is converted into a first service according to a preset correspondence between the device signal of the target external device and the service, and the first service is published.

2. The method according to claim 1, characterized in that If a first device signal is received from the target external device after confirming that the target external device is connected to the vehicle, before converting the first device signal into the first service according to a preset correspondence between the device signal of the target external device and the service, the method further includes: The preset correspondence between the device signal of the target external device and the service is received after the server confirms that the target external device is authenticated, wherein the device signal of the target external device is generated based on the initial signal of the target external device and the device signal identifier of the target external device.

3. The method according to claim 1, characterized in that If the authentication result returned by the server indicates that the authentication is successful, confirming that the target external device is legitimate, and sending the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is successful, the method further includes: If a second service selected by the terminal device associated with the vehicle based on the plurality of services provided by the target external device is received, converting the second service into a second device signal based on the preset corresponding relationship; The second device signal is sent to the target external device, so that the target external device performs an operation corresponding to the second device signal.

4. The method according to claim 3, characterized in that The SDK authentication information includes the vehicle identification of the vehicle, and the terminal device stores multiple services provided by the target external device. The multiple services provided by the external device are sent by the server to the terminal device associated with the vehicle based on the vehicle identification of the vehicle when the target external device is authenticated.

5. A signal-to-service method, applied to a server, characterized in that: The method comprises: The main controller of the receiving target vehicle forwards the SDK authentication information to the server when receiving the SDK authentication information sent by the target external device; Authenticate the target external device based on the SDK authentication information to obtain an authentication result; The authentication result is sent to the main controller so that the main controller confirms that the target external device is legitimate when confirming that the authentication result is authenticated, and the authentication result is sent to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is authenticated, and the main controller receives a first device signal sent by the target external device after confirming that it is connected to the vehicle, converts the first device signal into a first service according to a preset correspondence between the signal of the target external device and the service, and publishes the first service.

6. The method according to claim 5, characterized in that The main controller of the target vehicle adds the vehicle identification of the target vehicle to the SDK authentication information forwarded to the server, and the target external device is authenticated based on the SDK authentication information. After obtaining the authentication result, the method further includes: Send multiple services of the target external device to the terminal device associated with the vehicle identification, so that the target external device selects a second service based on the multiple services and sends the second service to the main controller. When the main controller receives the second service, it obtains a second device signal corresponding to the second service based on the preset correspondence relationship to send the second device signal to the target external device.

7. The method according to claim 5, characterized in that Before receiving the SDK authentication information sent by the main controller of the target vehicle, the method further includes: Receiving an SDK application request for the target external device, wherein the SDK application request carries device parameters of the target external device; An authentication SDK is generated based on the SDK application request, and the authentication SDK is fed back to the target external device, so that the target external device generates the SDK authentication information based on the authentication SDK.

8. The method according to claim 7, characterized in that After generating the authentication SDK based on the SDK application request and feeding back the authentication SDK to the target external device, the method further includes: Obtain signal details of multiple initial signals of the target external device and the service type corresponding to each initial signal; Based on the signal details of each initial signal of the target device and the corresponding service type, generate a device signal corresponding to each initial signal, and send the device signal to the target external device; Based on the device signal corresponding to each of the initial signals and the service type corresponding to each of the initial signals, a preset correspondence relationship between the device signal and the service of the target external device is established, and the preset correspondence relationship is sent to the main controller.

9. The method according to claim 8, characterized in that The obtaining of signal details of multiple initial signals of the target external device and the service type corresponding to each initial signal includes: Send a signal filling interface to the target external device; The signal details of the multiple initial signals of the target external device filled in through the signal filling interface and the service type corresponding to each initial signal are obtained.

10. The method according to claim 8, characterized in that The signal details include signal length and signal value; The generating of a device signal corresponding to each initial signal based on the signal details of each initial signal of the target device and the corresponding service type includes: Get the device signal identifier of the target external device; Generate a signal representation value of the initial signal based on a signal length and a signal value of the initial signal and a service type corresponding to the initial signal; The device signal identifier and the signal representation value and signal details of the initial signal are concatenated to obtain a device signal corresponding to the initial signal.

11. A signal transfer service device, characterized in that: A main controller for a vehicle, the device comprising: A first information receiving module, used to receive SDK authentication information sent by a target external device; An information sending module, used for sending the SDK authentication information to a server, so that the server authenticates the target external device based on the SDK authentication information to obtain an authentication result of the target external device; an authentication confirmation module, configured to confirm that the target external device is legitimate when the authentication result returned by the server indicates that the authentication is successful, and to send the authentication result to the target external device, so that the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is successful; The signal-to-service module is used to, when receiving a first device signal sent by the target external device after confirming that it is connected to the vehicle, convert the first device signal into a first service according to a preset correspondence between the device signal of the target external device and the service, and publish the first service.

12. A signal-to-service device, applied to a server, characterized in that: The device comprises: A second information receiving module, configured to receive the SDK authentication information forwarded to the server by the main controller of the target vehicle when receiving the SDK authentication information sent by the target external device; An authentication module, used to authenticate the target external device based on the SDK authentication information to obtain an authentication result; The result sending module is used to send the authentication result to the main controller, so that the main controller confirms that the target external device is legitimate when confirming that the authentication result is authenticated, and sends the authentication result to the target external device, and the target external device confirms that it is connected to the vehicle when confirming that the received authentication result is authenticated, and the main controller receives a first device signal sent by the target external device after confirming that it is connected to the vehicle, converts the first device signal into a first service according to a preset correspondence between the signal of the target external device and the service, and publishes the first service.

13. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method as described in any one of claims 1-4 or 5-10.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the method according to any one of claims 1-4 or 5-10.

15. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method described in any one of claims 1-4 or 5-10 are implemented.