Information registration method, electronic equipment and vehicle
By obtaining the information of the vehicle to be registered in the vehicle machine system and using the preset vehicle machine information database to determine the unique identification code, the signal registration process is simplified, the problem of cumbersome and high cost of signal registration in the existing technology is solved, and information accuracy is improved and system stability.
Patent Information
- Application Number
- CN202411360437.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2025-01-03
AI Technical Summary
The signal registration process in the vehicle computer system is cumbersome and the code is lengthy, which leads to high development and maintenance costs, and is prone to introduce errors, affecting the stability of the system.
By obtaining the vehicle information to be registered in the target service layer, a unique identification code is determined based on the preset vehicle information database, the registration information is determined using the identification code processing database, and the information is registered at the service layer, simplifying the signal registration logic and processing process.
It improves the accuracy of registration information, simplifies the signal processing process, reduces signal access and maintenance costs, and improves system stability and development efficiency.
Smart Images

Figure CN119254746A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to an information registration method, an electronic device and a vehicle. Background Art
[0002] The signal processing of the vehicle system usually includes signal registration and signal change callback processing. When registering signals at the business layer, the business layer needs to perform logical processing on all signals. The processing process is cumbersome, and the code corresponding to the processing steps is lengthy and bloated, making it difficult to read and maintain. Due to the huge number of signals, the business layer needs to frequently modify and manage the registration and distribution logic of the signals, which increases the development and maintenance costs. In addition, frequent modifications are prone to introduce errors, resulting in inaccurate registration information and unstable systems.
[0003] Therefore, how to improve the accuracy of registration information while simplifying the signal registration logic at the business layer to simplify the signal processing process, and then simplify the code corresponding to the processing steps, so as to reduce the cost of signal access and signal maintenance is an urgent problem to be solved. Summary of the invention
[0004] In view of this, the purpose of the present application is to provide an information registration method, an electronic device and a vehicle.
[0005] Based on the above purpose, the first aspect of the present application provides an information registration method, including:
[0006] Get the vehicle information to be registered corresponding to the target business layer;
[0007] Based on the vehicle information to be registered and a preset vehicle information database, determining a unique identification code corresponding to the vehicle information to be registered;
[0008] Based on the unique identification code and the preset identification code processing library, registration information is determined, and the registration information is registered in the target business layer.
[0009] Optionally, the determining the registration information based on the unique identification code and a preset identification code processing library includes:
[0010] Determining signal processing information corresponding to the unique identification code in the preset identification code processing library;
[0011] The unique identification code and the corresponding signal processing information are determined as registration information.
[0012] Optionally, the method further comprises:
[0013] In response to receiving signal change information corresponding to a vehicle computer signal, determining a unique identification code corresponding to the vehicle computer signal based on the vehicle computer signal;
[0014] Signal processing information corresponding to the unique identification code is determined in the registration information, and the signal processing information is sent to a target application layer corresponding to the target service layer.
[0015] Optionally, determining registration information based on the unique identification code and a preset identification code processing library includes:
[0016] Determining signal processing information corresponding to the unique identification code in the preset identification code processing library;
[0017] Determining the priority corresponding to the signal processing information based on a preset priority order;
[0018] The unique identification code, the signal processing information, and the priority are determined as registration information.
[0019] Optionally, the method further comprises:
[0020] In response to simultaneously receiving signal change information corresponding to a plurality of vehicle computer signals, determining a unique identification code corresponding to each of the vehicle computer signals based on the plurality of vehicle computer signals;
[0021] determining, in the registration information, signal processing information and a priority corresponding to each of the unique identification codes;
[0022] Based on the priorities corresponding to the plurality of signal processing information, a sending order of the plurality of signal processing information is determined, and based on the sending order, the plurality of signal processing information is sequentially sent to the target application layer corresponding to the target service layer.
[0023] Optionally, the determining the sending order of the plurality of signal processing information based on priorities corresponding to the plurality of signal processing information includes:
[0024] In response to the plurality of signal processing information corresponding to different priorities, the plurality of signal processing information are sorted in descending order of priority, and the sorting result is determined as the sending order.
[0025] Optionally, determining the target signal processing information based on the priorities corresponding to the plurality of signal processing information includes:
[0026] In response to at least two of the signal processing information corresponding to the same priority, determining the processing durations corresponding to the two signal processing information in the preset identification code processing library;
[0027] The processing times corresponding to the two signal processing information are compared, and the processing times are sorted in order from short to long, and the sorting result is determined as the sending order.
[0028] Optionally, the method further comprises:
[0029] Get all the initial vehicle information;
[0030] Each of the initial vehicle computer information is marked to obtain marking information, wherein the marking information includes a unique identification code, and the unique identification code corresponds to the initial vehicle computer information one by one.
[0031] A second aspect of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements any of the above methods when executing the program.
[0032] A third aspect of the present application provides a vehicle, comprising the electronic device described in the second aspect.
[0033] From the above, it can be seen that the information registration method, electronic device and vehicle provided by the present application first obtain the vehicle information to be registered corresponding to the target business layer, and then determine the unique identification code corresponding to the vehicle information to be registered based on the vehicle information to be registered and the preset vehicle information library, and then determine the registration information based on the unique identification code and the preset identification code processing library, and register the registration information to the target business layer. In this way, in the information registration process of the target business layer, only the vehicle information to be registered corresponding to the target business layer needs to be processed, and there is no need to re-mark the identification code of the vehicle information to be registered, but directly from the preset vehicle information. It is sufficient to determine the unique identification code corresponding to the vehicle information to be registered in the information database, which improves the accuracy of the final registration information; then based on the unique identification code and the preset identification code processing library, the final registration information can be determined and the registration information can be registered to the target business layer. The entire registration process only needs to process the vehicle information to be registered corresponding to the target business layer and its corresponding unique identification code, without the need for other irrelevant signal information processing and logical judgment, which greatly simplifies the signal registration logic and signal processing process of the target business layer, simplifies the code corresponding to the processing process, and thereby reduces the cost of the target business layer during signal access and signal maintenance. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the present application or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 This is a schematic diagram of a first flow chart of the information registration method according to an embodiment of the present application;
[0036] Figure 2 A second flow chart of the information registration method according to an embodiment of the present application;
[0037] Figure 3 A schematic diagram of an information registration device according to an embodiment of the present application;
[0038] Figure 4 A schematic diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0039] In order to make the objectives, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0040] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be the usual meanings understood by people with ordinary skills in the field to which the present application belongs. The "first", "second" and similar words used in the embodiments of the present application do not represent any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing in front of the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0041] The signal processing system of the vehicle system includes the signal layer, the business layer and the application layer. The signal layer is a layer in the signal processing system, which is mainly responsible for the transmission and distribution of signals. It solves the problem of how to effectively propagate signals in space, ensuring that the signals can cover the target area while minimizing mutual interference between signals. The technology of the signal layer involves the transmission, reception, propagation characteristics, channel coding, modulation and demodulation of signals. The signal layer sends the received signals to the business layer.
[0042] The business layer is another level in the signal processing system, which is mainly used for signal transmission and processing, maintaining the registration and storage of relevant signals required to execute the business, performing signal callback processing when the signal changes, and sending the execution strategy corresponding to the callback processing to the application layer.
[0043] The application layer specifically executes the specific application corresponding to the business layer based on the received execution strategy.
[0044] In the related art, the signal processing of the vehicle system is usually completed through the following steps:
[0045] Signal registration: Use the signal provided by the signal layer to register the corresponding identification code of the signal. The business layer needs to define its own interface and judge all signals through logical processing. When a signal belongs to the registration signal required by the business layer, redefine the identification code for the signal and then register the identification code in the business layer.
[0046] Signal change callback processing: In the callback of signal monitoring, it is necessary to perform logical processing on the monitored signal to determine whether the identification code registered by the business layer corresponds to the identification code provided by the signal layer. If so, the signal processing is distributed.
[0047] However, in the above registration step, the business layer needs to perform logical processing on all signals. The processing process is cumbersome, and the code corresponding to the processing steps is lengthy and bloated, making it difficult to read and maintain. Due to the huge number of signals of all signals, the business layer needs to frequently modify and manage the registration and distribution logic of the signals, which increases the development and maintenance costs. Moreover, frequent modifications can easily introduce errors, resulting in inaccurate registration information and an unstable system.
[0048] Therefore, how to improve the accuracy of registration information while simplifying the signal registration logic at the business layer to simplify the signal processing process, and then simplify the code corresponding to the processing steps, so as to reduce the cost of signal access and signal maintenance is an urgent problem to be solved.
[0049] Based on this, see Figure 1 , the present application provides an information registration method, comprising:
[0050] Step S100, obtaining the vehicle information to be registered corresponding to the target business layer;
[0051] Step S200, based on the vehicle information to be registered and a preset vehicle information database, determining a unique identification code corresponding to the vehicle information to be registered;
[0052] Step S300: Determine registration information based on the unique identification code and a preset identification code processing library, and register the registration information in the target business layer.
[0053] Specifically, the target business layer is one of the many business layers on the vehicle. That is, when the many business layers on the vehicle register information, they can all be executed according to this information registration method, so that each business layer only needs to process the required vehicle information to be registered, and does not need to process all vehicle information.
[0054] Obtain the vehicle information to be registered corresponding to the target business layer. The vehicle information to be registered is the vehicle information that the target business layer must use. These vehicle information must be registered in the target business layer so that the target business layer can store and maintain these necessary vehicle information and distribute signal processing during signal change callback processing.
[0055] The vehicle machine information to be registered may be one, or two or more. Generally speaking, for a certain target service layer, there are multiple vehicle machine information to be registered corresponding to the target service layer.
[0056] After obtaining the vehicle information to be registered corresponding to the target business layer, the initial vehicle information corresponding to the vehicle information to be registered is determined from the preset vehicle information library based on the vehicle information to be registered. The preset vehicle information library is the sum of all vehicle information, all vehicle information is the initial information of the vehicle, and is the information that each vehicle comes with when it leaves the factory. The preset vehicle information library contains a lot of vehicle information.
[0057] Therefore, after obtaining the vehicle information to be registered corresponding to the target business layer, it is necessary to determine the initial vehicle information corresponding to the vehicle information to be registered in the preset vehicle information database based on the vehicle information to be registered, and each vehicle information to be registered corresponds to an initial vehicle information. Exemplarily, the vehicle information to be registered and the corresponding initial vehicle information can be the same.
[0058] After determining the initial vehicle information corresponding to the vehicle information to be registered, a unique identification code corresponding to each initial vehicle information is determined based on the initial vehicle information. The unique identification code may be a unique code pre-marked for each initial vehicle information, and each unique identification code corresponding to the initial vehicle information is different, and one unique identification code represents one initial vehicle information.
[0059] Then, after the unique identification code is determined, registration information is determined based on the unique identification code and a preset identification code processing library, and the registration information is registered in the target business layer.
[0060] The preset identification code processing library is a preset information library for storing signal processing information corresponding to a unique identification code. Based on the preset identification code processing library, the signal processing information corresponding to the unique identification code can be determined. The signal processing information is the preset signal processing steps required for the vehicle computer signal corresponding to the unique identification code.
[0061] Therefore, the final registration information can be determined based on the vehicle information to be registered, the unique identification code and the preset identification code processing library, and the registration information is the registration information required by the target business layer. Then the registration information is registered in the target business layer, so that the target business layer can perform subsequent signal change callback processing based on the registration information.
[0062] In the present application, firstly, the vehicle information to be registered corresponding to the target business layer is obtained, and then based on the vehicle information to be registered and the preset vehicle information library, the unique identification code corresponding to the vehicle information to be registered is determined, and then based on the unique identification code and the preset identification code processing library, the registration information is determined, and the registration information is registered in the target business layer. In this way, in the information registration process of the target business layer, only the vehicle information to be registered corresponding to the target business layer needs to be processed, and there is no need to reset the identification code of the vehicle information to be registered, but directly determine the unique identification code corresponding to the vehicle information to be registered from the preset vehicle information library, thereby improving the accuracy of the registration information finally determined; then, based on the unique identification code and the preset identification code processing library, the final registration information can be determined and the registration information can be registered in the target business layer. The entire registration process only needs to process the vehicle information to be registered corresponding to the target business layer and its corresponding unique identification code, and there is no need to process other irrelevant signal information and logical judgment, which greatly simplifies the signal registration logic and signal processing process of the target business layer, simplifies the code corresponding to the processing process, and thus reduces the cost of the target business layer in signal access and signal maintenance.
[0063] Furthermore, how to determine the registration information based on the unique identification code and the preset identification code processing library needs to be further clarified, otherwise the accuracy of the registration information finally determined will be reduced.
[0064] In some embodiments, the step S300 determines the registration information based on the unique identification code and the preset identification code processing library, including:
[0065] Step S310, determining signal processing information corresponding to the unique identification code in the preset identification code processing library;
[0066] Step S320: Determine the unique identification code and the corresponding signal processing information as registration information.
[0067] Specifically, the signal processing information corresponding to the unique identification code is determined in the preset identification code processing library, and the signal processing information corresponds to the unique identification code one by one. The signal processing information is the preset signal processing steps required for the vehicle computer signal corresponding to the unique identification code.
[0068] Exemplarily, the vehicle computer signal is a "volume signal", and the unique identification code corresponding to the "volume signal" is "key1". Based on "key1", the signal processing information corresponding to the unique identification code "key1" is determined in the preset identification code processing library as "adjusting the volume of the audio or video player".
[0069] The unique identification code and the corresponding signal processing information are information that must be registered in the target business layer so that the target business layer can perform signal change callback processing based on the information. Therefore, the unique identification code and the corresponding signal processing information are determined as registration information, and the registration information is registered in the target business layer, so that the target business layer can perform subsequent signal change callback processing based on the registration information.
[0070] In specific implementation, the target business layer can be one of the many business layers of the vehicle. For example, if the target business layer is a "video playback business layer", when the "video player" function needs to be configured on the vehicle, the "video playback business layer" needs to be configured in the business layer of the vehicle system.
[0071] When configuring the "Video Playback Service Layer", you first need to register the required signals in the "Video Playback Service Layer". In this way, when these signals change, the "Video Playback Service Layer" can obtain the changes of these signals in time and send the execution strategies corresponding to these signals to the corresponding application layer.
[0072] When registering the required signal in the "video playback service layer", it is necessary to perform the information registration method described in the above embodiment. Specifically:
[0073] First, the vehicle information to be registered corresponding to the "video playback service layer" is obtained. For example, the vehicle information to be registered includes "volume information" and "brightness information". These vehicle information to be registered are necessary information to realize the "video player" function.
[0074] Then, based on the "volume information" and "video brightness information" of the vehicle information to be registered, a unique identification code corresponding to the vehicle information to be registered is determined in a preset vehicle information database.
[0075] The preset vehicle information library includes all the initial vehicle information of the vehicle and the unique identification code corresponding to each initial vehicle information. For example, the preset vehicle information library includes video brightness information, volume information, Bluetooth information, vehicle lock information, seat height information, etc., and also includes unique identification codes "key1", "key2", "key3", "key4", "key5", etc. corresponding to each initial vehicle information.
[0076] When the vehicle machine information to be registered is obtained as "volume information" and "video brightness information", the initial vehicle machine information corresponding to the "volume information" is determined in the preset vehicle machine information library as "volume signal", and the information corresponding to the "brightness information" is determined as "video brightness signal", and the unique identification code corresponding to the "volume signal" is determined to be "key2", and the unique identification code corresponding to the "video brightness information" is determined to be "key1".
[0077] After the unique identification code is determined, the signal processing information corresponding to the unique identification code is searched from a preset identification code processing library.
[0078] The preset identification code processing library includes the unique codes of all the initial information of the vehicle computer and the signal processing information corresponding to the unique codes. For example, the preset identification code processing library includes the signal processing information corresponding to the unique code "key1" as "adjust the brightness of the video player"; the signal processing information corresponding to the unique code "key3" as "turn on the Bluetooth function"... The signal processing information corresponding to the unique code "key5" is "adjust the seat height".
[0079] After determining the unique identification code, the unique identification code "key2" corresponding to the "volume signal" is found in the preset identification code processing library, and the signal processing information corresponding to the unique identification code "key1" corresponding to the "video brightness information" is "adjust the brightness of the video player".
[0080] Finally, the unique identification code "key1" and its corresponding "adjust the brightness of the video player", the unique identification code "key2" and its corresponding "adjust the volume of the video player" are determined as registration information, and these registration information are registered to the "video playback service layer".
[0081] In this way, the information registration of the "video playback service layer" is completed.
[0082] After completing the information registration, once the "video playback business layer" receives a change in a certain vehicle computer signal (such as the "volume signal"), the unique identification code "key2" corresponding to the "volume signal" is searched in the registration information, and then the signal processing information "adjust the volume of the video player" corresponding to the unique identification code "key2" is sent to the "video playback application layer" corresponding to the "video playback business layer". The "video playback application layer" performs the corresponding operation based on the received signal processing information "adjust the volume of the video player".
[0083] In the present application, the signal processing information corresponding to the unique identification code is determined in the preset identification code processing library, and then the unique identification code and the corresponding signal processing information are determined as registration information. On the one hand, the accuracy of the registration information can be improved to ensure that the target business layer can perform subsequent signal change callback processing based on the registration information. On the other hand, the registration information only contains the necessary unique identification code and the corresponding signal processing information, and no other non-essential information, which simplifies the content of the registration information, thereby simplifying the complexity of registration information registration and improving registration efficiency.
[0084] In some embodiments, after the registration information is registered in the target business layer, once the corresponding vehicle computer signal changes, the target business layer needs to perform signal change callback processing. Based on this, the method further includes:
[0085] Step S400, in response to receiving signal change information corresponding to a vehicle computer signal, determining a unique identification code corresponding to the vehicle computer signal based on the vehicle computer signal;
[0086] Step S500: determine signal processing information corresponding to the unique identification code in the registration information, and send the signal processing information to a target application layer corresponding to the target service layer.
[0087] Specifically, when signal change information corresponding to a vehicle computer signal is received, the unique identification code corresponding to the vehicle computer signal is determined based on the vehicle computer signal. Then, since the registration information includes the unique identification code and the unique signal processing information corresponding to the unique identification code, the signal processing information corresponding to the unique identification code is determined in the registration information based on the unique identification code.
[0088] Then, the signal processing information is sent to the target application layer corresponding to the target service layer, so that the target application layer can perform subsequent specific operations based on the signal processing information.
[0089] In the present application, since the target business layer does not re-treat the registered vehicle information mark identification code, but instead uses or inherits the preset unique identification code of the vehicle information, when receiving the signal change information corresponding to the vehicle signal, there is no need to verify or logically judge the unique identification code. The unique identification code corresponding to the vehicle signal can be directly determined based on the vehicle signal, and then the unique signal processing information corresponding to the unique identification code can be determined in the registration information. In this way, the final signal processing information can be determined only based on the vehicle signal and the registration information registered in the target business layer, and then the signal processing information can be sent to the target application layer corresponding to the target business layer, which greatly simplifies the complexity of the signal change callback processing process, making the corresponding code more concise and easy to read, and in the entire processing process, the signal change information, vehicle information, unique identification code and signal processing information correspond one by one, which can improve the accuracy of the entire signal change callback processing process.
[0090] In some embodiments, the step S300 determines the registration information based on the unique identification code and the preset identification code processing library, including:
[0091] Step S310′, determining the signal processing information corresponding to the unique identification code in the preset identification code processing library;
[0092] Step S320′, determining the priority corresponding to the signal processing information based on a preset priority order;
[0093] Step S330′: determine the unique identification code, the signal processing information and the priority as registration information.
[0094] Specifically, the signal processing information corresponding to the unique identification code is determined in the preset identification code processing library, and the signal processing information corresponds to the unique identification code one by one. The signal processing information is the preset signal processing steps required for the vehicle computer signal corresponding to the unique identification code.
[0095] Exemplarily, the vehicle computer signal is a "volume signal", and the unique identification code corresponding to the "volume signal" is "key1". Based on "key1", the signal processing information corresponding to the unique identification code "key1" is determined in the preset identification code processing library as "adjusting the volume of the audio or video player".
[0096] After determining the signal processing information corresponding to the unique identification code, different signal processing information may have different priorities due to their different importance or timeliness. When different signal processing information is actually executed, different operations may be performed based on different priorities.
[0097] Based on this, in this application, after determining the signal processing information, the priority corresponding to the signal processing information is determined based on the preset priority order. The preset priority order is the preset priority order of different signal processing information. The earlier the priority, the more important the signal processing information is, and it needs to be executed first; the later the priority, the less important the signal processing information is, and it can be executed later.
[0098] Thus, when a plurality of signal processing information need to be sent, the priority order of the signal processing information is very important.
[0099] The unique identification code, the signal processing information, and the priority corresponding to the signal processing information are information that must be registered in the target business layer so that the target business layer can perform signal change callback processing based on the information. Therefore, the unique identification code, the signal processing information, and the priority corresponding to the signal processing information are determined as registration information, and the registration information is registered in the target business layer, so that the target business layer can perform subsequent signal change callback processing based on the registration information.
[0100] In the present application, the signal processing information corresponding to the unique identification code is determined in the preset identification code processing library, and then the priority corresponding to the signal processing information is determined based on the preset priority order, and the unique identification code, the signal processing information and the priority are determined as the registration information. On the one hand, the accuracy and comprehensiveness of the registration information can be improved to ensure that the target business layer can perform subsequent signal change callback processing based on the registration information, and there will also be some execution order according to the priority to ensure the effective execution. On the other hand, the registration information only contains the necessary unique identification code, the signal processing information and the priority, and no other non-essential information, which simplifies the content of the registration information, thereby simplifying the complexity of registration information registration and improving registration efficiency.
[0101] In some embodiments, after the registration information is registered in the target business layer, once the corresponding vehicle computer signal changes, the target business layer needs to perform signal change callback processing. Based on this, the method further includes:
[0102] Step S400′, in response to simultaneously receiving signal change information corresponding to a plurality of vehicle computer signals, determining a unique identification code corresponding to each of the vehicle computer signals based on the plurality of vehicle computer signals;
[0103] Step S500′, determining the signal processing information and priority corresponding to each unique identification code in the registration information;
[0104] Step S600′: determine the sending order of the plurality of signal processing information based on the priorities corresponding to the plurality of signal processing information, and send the plurality of signal processing information in sequence to the target application layer corresponding to the target service layer based on the sending order.
[0105] Specifically, when signal change information corresponding to multiple vehicle computer signals is received at the same time, unique identification codes corresponding to the multiple vehicle computer signals are respectively determined based on the multiple vehicle computer signals. Then, since the registration information includes a unique identification code, unique signal processing information corresponding to the unique identification code, and a priority corresponding to the signal processing information, the signal processing information corresponding to each unique identification code and the priority corresponding to each signal processing information are determined in the registration information based on the unique identification codes of the multiple vehicle computer signals.
[0106] Since multiple vehicle machine signals change at the same time, the target business layer needs to distribute and process the signals based on the multiple signal processing information corresponding to the unique identification codes of the multiple vehicle machine signals. Then, the order in which the target business layer sends the multiple signal processing information to the corresponding target application layer is another problem that needs to be solved.
[0107] If these multiple signal processing information are sent at the same time, the target business layer will send a large amount of information at the same time, resulting in poor transmission efficiency. In addition, when the target application layer receives these multiple signal processing information, the processing efficiency of these multiple signal processing information is also low.
[0108] If the messages are sent in an inappropriate order, the target application layer may execute related functions in an inappropriate order or the execution order may be disordered, which may eventually lead to low processing efficiency of the target application layer.
[0109] Therefore, in the present application, first, based on the priorities corresponding to the multiple signal processing information, the sending order of the multiple signal processing information is determined, and based on the sending order, the multiple signal processing information is sent in sequence to the target application layer corresponding to the target business layer. In this way, based on the priorities corresponding to the multiple signal processing information, the sending order of the multiple signal processing information is determined to ensure that the multiple signal processing information is sent in sequence in the best or most appropriate order, thereby improving the sending efficiency of the target business layer and at the same time improving the execution efficiency of the target application layer.
[0110] In some embodiments, when determining the order of sending the plurality of signal processing information based on the priorities corresponding to the plurality of signal processing information, the actual situation of the priorities is fully taken into consideration. Therefore, different sending orders are determined based on different priority situations. Based on this, determining the order of sending the plurality of signal processing information based on the priorities corresponding to the plurality of signal processing information in step S600′ includes:
[0111] Step S610′: in response to the plurality of signal processing information corresponding to different priorities, the plurality of signal processing information are sorted in descending order of priority, and the sorting result is determined as the sending order.
[0112] Step S620′, in response to at least two of the signal processing information corresponding to the same priority, determining the processing durations corresponding to the two signal processing information in the preset identification code processing library;
[0113] Step S630′: compare the processing times corresponding to the two pieces of signal processing information, sort them in order from short to long, and determine the sorting result as the sending order.
[0114] Specifically, when the priorities corresponding to multiple signal processing information are different, the multiple signal processing information are sorted in order of priority from earliest to latest, and the sorting result is determined as the sending order. In this way, in the final determined sending order, the signal processing information with the earliest priority, that is, the most important, will be sent to the target application layer first, and the target application layer will also execute the signal processing information with the earliest priority first; the signal processing information with the last priority, that is, the least important, will be sent to the target application layer last, and the target application layer will also execute the signal processing information with the last priority last. In this way, the target business layer can send multiple signal processing information in order of priority, ensuring that the signal processing information with an earlier priority can be sent earlier, thereby improving the sending efficiency, and enabling the target application layer to receive the signal processing information with an earlier priority at the earliest, and then process the signal processing information with an earlier priority first, so as to improve the timeliness and effectiveness of the processing of the target application layer.
[0115] When at least two of the signal processing information have the same priority, it is necessary to determine a reasonable sending order for the signal processing information with the same priority.
[0116] Specifically, first, the processing durations corresponding to the two signal processing information are determined in the preset identification code processing library. The processing duration is the processing duration required for the target application layer to process a certain signal processing information.
[0117] Then, the processing times corresponding to the two signal processing information are compared, and the processing times are sorted in order from short to long. The sorting result is determined as the sending order. In this way, in the sending order finally determined, among at least two signal processing information with the same priority order, the signal processing information with the shortest processing time will be sent to the target application layer first, and the target application layer will also execute the signal processing information with the shortest processing time first; the signal processing information with the longest processing time will be sent to the target application layer last, and the target application layer will also execute the signal processing information with the longest processing time last. In this way, the target service layer can send multiple signal processing information in order from short to long, ensuring that the signal processing information with shorter processing time can be sent earlier, thereby improving the sending efficiency, and enabling the target application layer to receive the signal processing information with shorter processing time at the earliest, and then process the signal processing information with shorter processing time first, so as to increase the information processing amount per unit time, thereby improving the timeliness and effectiveness of the processing of the target application layer.
[0118] In some embodiments, before step S100, the method further includes:
[0119] Get all the initial vehicle information;
[0120] Each of the initial vehicle computer information is marked to obtain marking information, wherein the marking information includes a unique identification code, and the unique identification code corresponds to the initial vehicle computer information one by one.
[0121] Specifically, all initial vehicle information of the vehicle is obtained, and all initial vehicle information is various types of information that the vehicle comes with when it leaves the factory. Each of the initial vehicle information is marked to obtain marking information, and the marking information is used to characterize the basic attributes of the initial vehicle information, such as the category, state, and specific attributes of the initial vehicle information. Exemplarily, the marking information includes a unique identification code, and the unique identification code corresponds to the initial vehicle information one by one.
[0122] In this application, before the target business layer starts to register relevant information, all initial vehicle information is marked first, and the obtained marking information includes a unique identification code corresponding to the initial vehicle information. In this way, when registering information at the target business layer, the initial vehicle information can be directly determined based on the vehicle information to be registered corresponding to the target business layer, and then the unique identification code corresponding to the initial vehicle information can be directly used or inherited for subsequent registration procedures, which not only makes it unnecessary for the target business layer to re-mark the vehicle information to be registered, simplifying the registration process, but also directly using or inheriting the unique identification code corresponding to the initial vehicle information can improve the accuracy of the registration information and avoid errors in the re-marking process.
[0123] In some embodiments, see Figure 2 The information registration method described in this application provides a general signal distribution framework based on the vehicle-mounted system, which solves the problems of bloated code, high access cost, high maintenance cost, and poor system stability in related technologies. By defining a unified signal processing model and annotation mechanism, the signal registration and processing process is simplified, and the code maintainability and system stability are improved.
[0124] Specifically, the whole process can be performed by using specific codes according to the following steps. In the following text, specific English names represent specific contents, including:
[0125] SignSDK: A software development kit provided by the signal layer, used to receive and process vehicle signals.
[0126] SignListener: An interface defined at the business layer, used to monitor and process vehicle computer signals.
[0127] SignAdapterManager: Signal management class used to register and distribute signals.
[0128] SignModelAnnotation: custom annotation used to mark the signal processing class of the business layer.
[0129] BaseSignModel: basic signal processing class. The business layer needs to inherit and implement its abstract methods to process signals.
[0130] Annotation: It is a tag used to provide metadata. It can be used to mark classes, methods, attributes, etc., so as to obtain the information of these tags through the reflection mechanism at runtime.
[0131] Coroutines: Coroutines are lightweight threads that can execute code in a non-blocking manner, thus implementing asynchronous programming. They can be suspended and resumed during execution and are suitable for handling concurrent tasks.
[0132] Specifically, the information registration method can be performed according to the following steps, using specific codes to execute the entire process.
[0133] 1. Define the basic signal processing class
[0134] Create a basic signal processing class (exemplarily represented by BaseSignModel), each basic signal (i.e. the initial vehicle information) is a BaseSignModel, and all signal processing classes at the business layer will inherit this class. Define an abstract method in this class to process changes in signal data.
[0135] 2. Define signal annotations
[0136] Create an annotation (i.e., mark each of the initial vehicle information, exemplarily represented by SignModelAnnotation) to mark the signal processing class of the business layer, and define a key attribute (i.e., unique identification code) in the annotation to specify the unique identification of the signal.
[0137] 3. Define the signal controller class
[0138] Create a signal controller class (exemplarily represented by SignController) to manage the registration and distribution of signals. Define a mapping in the class to maintain the relationship between the signal and its corresponding processing method.
[0139] Specifically, a signal to be registered at the business layer is obtained, initial vehicle information corresponding to the signal to be registered is determined from a preset vehicle information library, and then a unique identification key corresponding to each initial vehicle information is determined.
[0140] Add the signal key to the signal key list that needs to be registered, then map the signal key with the corresponding signal processing method, and register them together in the business layer.
[0141] 4. Business layer signal processing class
[0142] When the business layer needs to monitor a certain vehicle signal, it inherits BaseSignModel and uses the SignModelAnnotation annotation to mark the class, and provides a specific key value. In this class, the onDataChange method is rewritten to process specific signal data. When a signal changes, the signal key is determined based on the changed signal, and then the corresponding signal processing method is called based on the signal key.
[0143] In summary, when the business layer is registering signals and SignController is initialized, the SignModelAnnotation annotation is scanned from the signal processing class of the business layer, all signal keys that need to be registered are extracted, and these signals are registered through SignSdkClient (that is, based on the vehicle information to be registered and the preset vehicle information library, the unique identification code corresponding to the vehicle information to be registered is determined; based on the unique identification code and the preset identification code processing library, the registration information is determined, and the registration information is registered to the target business layer).
[0144] When monitoring signals, when the signal changes, the corresponding processing method is searched according to the signal Key, and the signal data is passed to the processing class of the business layer (i.e., in response to receiving signal change information corresponding to a vehicle computer signal, the unique identification code corresponding to the vehicle computer signal is determined based on the vehicle computer signal; the signal processing information corresponding to the unique identification code is determined in the registration information, and the signal processing information is sent to the target application layer corresponding to the target business layer).
[0145] During the entire information registration process, the business layer only needs to determine the initial information corresponding to the information to be registered and the unique identification code corresponding to the initial information. There is no need to identify all the information, which reduces a lot of if-else logic and makes the code more concise and easy to read. Through a unified signal processing framework, the business layer does not need to frequently modify the signal registration and distribution logic, reducing development and maintenance costs. The business layer of any vehicle signal can register information through this information registration method, which has high scalability and reusability. The target business layer only needs to pay attention to the information to be registered, and there is no need to process other irrelevant signal information and logical judgment, which greatly simplifies the signal registration logic and signal processing process of the target business layer, simplifies the code corresponding to the processing process, and greatly improves development efficiency.
[0146] It should be noted that the method of the embodiment of the present application can be performed by a single device, such as a computer or server. The method of this embodiment can also be applied to a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present application, and the multiple devices will interact with each other to complete the described method.
[0147] It should be noted that some embodiments of the present application are described above. In some cases, the actions or steps recorded in the above embodiments can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the process depicted in the accompanying drawings does not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0148] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides an information registration device.
[0149] refer to Figure 3 , the information registration device comprises:
[0150] The acquisition module 100 is configured to acquire the vehicle information to be registered corresponding to the target business layer;
[0151] The determination module 200 is configured to determine a unique identification code corresponding to the vehicle information to be registered based on the vehicle information to be registered and a preset vehicle information database;
[0152] The execution module 300 is configured to determine registration information based on the unique identification code and the preset identification code processing library, and register the registration information in the target business layer.
[0153] In some embodiments, the execution module 300 is further configured to:
[0154] Determining signal processing information corresponding to the unique identification code in the preset identification code processing library;
[0155] The unique identification code and the corresponding signal processing information are determined as registration information.
[0156] In some embodiments, the execution module 300 is further configured to:
[0157] In response to receiving signal change information corresponding to a vehicle computer signal, determining a unique identification code corresponding to the vehicle computer signal based on the vehicle computer signal;
[0158] Signal processing information corresponding to the unique identification code is determined in the registration information, and the signal processing information is sent to a target application layer corresponding to the target service layer.
[0159] In some embodiments, the execution module 300 is further configured to:
[0160] Determining signal processing information corresponding to the unique identification code in the preset identification code processing library;
[0161] Determining the priority corresponding to the signal processing information based on a preset priority order;
[0162] The unique identification code, the signal processing information, and the priority are determined as registration information.
[0163] In some embodiments, the execution module 300 is further configured to:
[0164] In response to simultaneously receiving signal change information corresponding to a plurality of vehicle computer signals, determining a unique identification code corresponding to each of the vehicle computer signals based on the plurality of vehicle computer signals;
[0165] determining, in the registration information, signal processing information and a priority corresponding to each of the unique identification codes;
[0166] Based on the priorities corresponding to the plurality of signal processing information, a sending order of the plurality of signal processing information is determined, and based on the sending order, the plurality of signal processing information is sequentially sent to the target application layer corresponding to the target service layer.
[0167] In some embodiments, the execution module 300 is further configured to:
[0168] In response to the plurality of signal processing information corresponding to different priorities, the plurality of signal processing information are sorted in descending order of priority, and the sorting result is determined as the sending order.
[0169] In some embodiments, the execution module 300 is further configured to:
[0170] In response to at least two of the signal processing information corresponding to the same priority, determining the processing durations corresponding to the two signal processing information in the preset identification code processing library;
[0171] The processing times corresponding to the two signal processing information are compared, and the processing times are sorted in order from short to long, and the sorting result is determined as the sending order.
[0172] In some embodiments, the acquisition module 100 is further configured to:
[0173] Get all the initial vehicle information;
[0174] Each of the initial vehicle computer information is marked to obtain marking information, wherein the marking information includes a unique identification code, and the unique identification code corresponds to the initial vehicle computer information one by one.
[0175] For the convenience of description, the above device is described in terms of functions divided into various modules. Of course, when implementing the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0176] The device of the above embodiment is used to implement the corresponding information registration method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0177] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the information registration method described in any of the above embodiments is implemented.
[0178] Figure 4A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0179] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0180] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0181] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0182] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).
[0183] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0184] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0185] The electronic device of the above embodiment is used to implement the corresponding information registration method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0186] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the information registration method described in any of the above embodiments.
[0187] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0188] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the information registration method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0189] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present application also provides a computer program product, including computer program instructions. When the computer program instructions are run on a computer, the computer executes the information registration method described in any of the above embodiments, which has the beneficial effects of the corresponding method embodiments and will not be repeated here.
[0190] Based on the same inventive concept, corresponding to any of the above embodiments and methods, the present application also provides a vehicle, the vehicle comprising the information registration device, electronic device, storage medium or computer program product described in any of the above embodiments. The vehicle has the beneficial effects of any of the above embodiments, which will not be repeated here.
[0191] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.
[0192] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0193] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0194] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0195] A person skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present application is limited to these examples. In line with the concept of the present application, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present application as described above, which are not provided in detail for the sake of simplicity.
[0196] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present application difficult to understand, the known power supply / ground connection with the integrated circuit (IC) chip and other components may or may not be shown in the provided drawings. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the present application (that is, these details should be fully within the scope of understanding of those skilled in the art). In the case of elaborating specific details (e.g., circuits) to describe exemplary embodiments of the present application, it is obvious to those skilled in the art that the embodiments of the present application can be implemented without these specific details or when these specific details are changed. Therefore, these descriptions should be considered to be illustrative rather than restrictive.
[0197] Although the present application has been described in conjunction with specific embodiments of the present application, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0198] The embodiments of the present application are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the present application. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present application should be included in the protection scope of the present application.
Claims
1. An information registration method, characterized in that: include: Get the vehicle information to be registered corresponding to the target business layer; Based on the vehicle information to be registered and a preset vehicle information database, determining a unique identification code corresponding to the vehicle information to be registered; Based on the unique identification code and the preset identification code processing library, registration information is determined, and the registration information is registered in the target business layer.
2. The method according to claim 1, characterized in that The determining of registration information based on the unique identification code and the preset identification code processing library includes: Determining signal processing information corresponding to the unique identification code in the preset identification code processing library; The unique identification code and the corresponding signal processing information are determined as registration information.
3. The method according to claim 2, characterized in that The method further comprises: In response to receiving signal change information corresponding to a vehicle computer signal, determining a unique identification code corresponding to the vehicle computer signal based on the vehicle computer signal; Signal processing information corresponding to the unique identification code is determined in the registration information, and the signal processing information is sent to a target application layer corresponding to the target service layer.
4. The method according to claim 1, characterized in that: The determining of registration information based on the unique identification code and the preset identification code processing library includes: Determining signal processing information corresponding to the unique identification code in the preset identification code processing library; Determining the priority corresponding to the signal processing information based on a preset priority order; The unique identification code, the signal processing information, and the priority are determined as registration information.
5. The method according to claim 4, characterized in that The method further comprises: In response to simultaneously receiving signal change information corresponding to a plurality of vehicle computer signals, determining a unique identification code corresponding to each of the vehicle computer signals based on the plurality of vehicle computer signals; Determining signal processing information and a priority corresponding to each of the unique identification codes in the registration information; Based on the priorities corresponding to the plurality of signal processing information, a sending order of the plurality of signal processing information is determined, and based on the sending order, the plurality of signal processing information is sequentially sent to the target application layer corresponding to the target service layer.
6. The method according to claim 5, characterized in that The determining the sending order of the plurality of signal processing information based on the priorities corresponding to the plurality of signal processing information comprises: In response to the plurality of signal processing information corresponding to different priorities, the plurality of signal processing information are sorted in descending order of priority, and the sorting result is determined as the sending order.
7. The method according to claim 5, characterized in that The determining target signal processing information based on priorities corresponding to the plurality of signal processing information includes: In response to at least two of the signal processing information corresponding to the same priority, determining the processing durations corresponding to the two signal processing information in the preset identification code processing library; The processing times corresponding to the two signal processing information are compared, and the processing times are sorted in order from short to long, and the sorting result is determined as the sending order.
8. The method according to claim 1, characterized in that The method further comprises: Get all the initial vehicle information; Each of the initial vehicle computer information is marked to obtain marking information, wherein the marking information includes a unique identification code, and the unique identification code corresponds to the initial vehicle computer information one by one.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 8 is implemented.
10. A vehicle, characterized in that: An electronic device comprising the electronic device described in claim 9.
