Method, device, storage medium and electronic device for accessing a vehicle networking terminal

Through the channel connection and identity verification of the terminal management system, combined with the use of distributed cache and middleware, the complexity and failover problems of Internet of Vehicles terminal access management in the existing technology are solved, and efficient and stable data transmission and Load balancing.

CN114915656BActive Publication Date: 2024-10-18NANJING SIWEI ZHILIAN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111648530.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-10-18
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

In the existing technology, the Internet of Vehicles terminal distributes server information through the web-server, which makes management difficult and cannot be quickly switched when the TCP server fails, affecting the stability and real-time performance of data access.

Method used

The terminal management system is used to receive the terminal's channel connection request and unique identification, perform identity verification and binding, store the binding information in memory and distributed cache, realize business data verification and middleware sending, and query the terminal unique identification corresponding The server performs data transmission and uses a reverse proxy for load balancing and fault handling.

Benefits of technology

It simplifies the content exposure of the terminal, reduces the dependence on the target server address, realizes undifferentiated terminal access and efficient fault handling, and improves the stability and real-time performance of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114915656B_ABST
    Figure CN114915656B_ABST
Patent Text Reader

Abstract

The present invention discloses a vehicle networking terminal access method, device, storage medium and electronic device, the method comprising: receiving a channel connection request sent by a terminal until the channel connection is successful and receiving a unique identifier sent by the terminal; verifying the identity according to the unique identifier; when the identity authentication is successful, binding the channel to the terminal and storing the binding information in the memory and distributed cache; when receiving the business data sent by the terminal, verifying the business data, and when the verification result meets the preset conditions, sending the business data to the middleware; when obtaining the business data sent by the business call end received by the middleware, querying the server corresponding to the terminal unique identification information in the business data in the memory and distributed cache; when the server corresponding to the unique identification information is queried, sending the business data to the terminal through the corresponding server. The method is simple in content for the terminal, has indiscriminate access to the terminal, and has high fault handling and practicality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data terminal access technology, and in particular to a vehicle networking terminal access method, device, storage medium and electronic equipment. Background Art

[0002] With the vigorous development and widespread application of Internet of Vehicles technology, the volume of data generated by Internet of Vehicles is becoming larger and larger, and the requirements for data reliability and real-time performance are becoming higher and higher, which leads to higher and higher requirements for Internet of Vehicles terminal access. Therefore, how to quickly, efficiently and stably access the data collected by Internet of Vehicles terminals to the Internet of Vehicles system faces severe challenges. In the prior art, the terminal obtains the assigned TCP server information by calling the web-server service, and then connects to the server through the assigned TCP server information; the calling end obtains the information of the TCP server assigned to the corresponding terminal through the web-server, and then sends the message to the corresponding TCP server, and then sends the message to the terminal. However, this method allocates server information through the web-server, which is not only difficult to manage in terms of process, but also has too many calling logics, which is not friendly to the terminal. In the event of a TCP server failure, the terminal cannot quickly implement fault switching. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method, device, storage medium and electronic device for terminal access in an Internet of Vehicles to solve the technical problem in the prior art that server information is distributed through a web-server when a terminal accesses, which is not only difficult to manage in terms of process, but also the terminal cannot quickly implement fault switching when a TCP server fails.

[0004] The technical solution proposed by the present invention is as follows:

[0005] A first aspect of an embodiment of the present invention provides a vehicle networking terminal access method, which is applied to a terminal management system, wherein the terminal management system includes multiple servers, one side of the server is connected to a service calling end, and the other side of the server is used to provide services to any connected terminal; the vehicle networking terminal access method includes: receiving a channel connection request sent by a terminal until the channel connection is successful and receiving a unique identifier sent by the terminal; verifying the identity according to the unique identifier; when the identity authentication is successful, binding the channel with the terminal and storing the binding information in a memory and a distributed cache, the binding information including the terminal unique identifier, the channel information corresponding to the terminal unique identifier, and the server corresponding to the terminal unique identifier; when receiving the service data sent by the terminal, verifying the service data, and when the verification result meets the preset conditions, sending the service data to the middleware; when obtaining the service data sent by the service calling end received by the middleware, querying the server corresponding to the terminal unique identifier information in the service data in the memory and the distributed cache; when the server corresponding to the unique identifier information is queried, sending the service data to the terminal through the corresponding server.

[0006] Optionally, when the server corresponding to the unique identification information is queried, the business data is sent to the terminal through the corresponding server, including: when the server corresponding to the unique identification information is queried, the business data is sent to the middleware corresponding to the server; the business data is obtained from the middleware corresponding to the server, the corresponding terminal channel is queried in the memory, and the business data sent by the business call end is sent to the terminal through the terminal channel.

[0007] Optionally, the method further includes: when no server corresponding to the unique identification information is found, storing the business data sent by the business call end in the middleware.

[0008] Optionally, when receiving the business data sent by the terminal, verifying the business data includes: when the verification result does not meet a preset condition, recording the business data through a log.

[0009] Optionally, when receiving the business data sent by the terminal, verifying the business data, and sending the business data to the middleware when the verification result meets the preset conditions, including: when the business data is complete and the data structure is consistent with the business logic requirements, sending the business data to the middleware.

[0010] According to a second aspect of an embodiment of the present invention, there is provided a vehicle network terminal access device, which is applied to a terminal management system. The terminal management system includes multiple servers, one side of the server is connected to a service calling end, and the other side of the server is used to provide services to any connected terminal. The vehicle network terminal access device includes: a receiving module, which is used to receive a channel connection request sent by a terminal until the channel connection is successful and receive a unique identifier sent by the terminal; a verification module, which is used to verify the identity according to the unique identifier; a storage module, which is used to bind the channel with the terminal and store the binding information in a memory and a distributed cache when the identity authentication is successful, and the binding information includes the terminal unique identifier, the channel information corresponding to the terminal unique identifier, and the server corresponding to the terminal unique identifier; a processing module, which is used to verify the service data sent by the terminal when receiving the service data sent by the terminal, and send the service data to the middleware when the verification result meets the preset conditions; a query module, which is used to query the server corresponding to the terminal unique identifier information in the service data in the memory and the distributed cache when the service data sent by the service calling end received by the middleware is obtained; and a sending module, which is used to send the service data to the terminal through the corresponding server when the server corresponding to the unique identifier information is queried.

[0011] Optionally, the device also includes: a first sending module, used to send the business data to the middleware corresponding to the server when the server corresponding to the unique identification information is queried; a first processing module, used to obtain the business data from the middleware corresponding to the server, query the corresponding terminal channel in the memory and send the business data sent by the business calling end to the terminal through the terminal channel.

[0012] A third aspect of an embodiment of the present invention provides a vehicle networking system, which includes: a terminal management system, the terminal management system includes multiple servers, one side of the server is connected to a service calling end, and the other side of the server is used to provide services to any connected terminal; the service calling end is used to obtain vehicle networking service data; the terminal management system is used to execute the vehicle networking terminal access method as described in the first aspect of the embodiment of the present invention and any one of the first aspects.

[0013] A fourth aspect of an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the vehicle network terminal access method as described in the first aspect of the embodiment of the present invention and any one of the first aspects.

[0014] A fifth aspect of an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the vehicle network terminal access method as described in the first aspect of the embodiment of the present invention and any one of the first aspects by executing the computer instructions.

[0015] The technical solution provided by the present invention has the following effects:

[0016] The vehicle network terminal access method provided by an embodiment of the present invention is applied to a terminal management system, wherein the terminal management system includes multiple servers, one side of the server is connected to a service calling end, and the other side of the server is used to provide services to any connected terminal; the method includes: receiving a channel connection request sent by a terminal until the channel connection is successful and receiving a unique identifier sent by the terminal; verifying the identity according to the unique identifier; when the identity authentication is successful, binding the channel with the terminal and storing the binding information in a memory and a distributed cache, the binding information including the terminal unique identifier, the channel information corresponding to the terminal unique identifier, and the server corresponding to the terminal unique identifier; when receiving the service data sent by the terminal, verifying the service data, and sending the service data to the middleware when the verification result meets the preset conditions; when obtaining the service data sent by the service calling end received by the middleware, querying the server corresponding to the terminal unique identifier information in the service data in the memory and the distributed cache; when the server corresponding to the unique identifier information is queried, sending the service data to the terminal through the corresponding server. This method is simple in terms of terminal-oriented content, only exposes the connection IP and port, and has no web-server to allocate servers. There is no need to consider which gateway server the currently uniquely identified terminal is located on, and only needs to call any server interface in the gateway cluster to send data. There is no distinction in terminal access, no need to know the address of the target server, and no need to make any settings on the terminal, that is, a reverse proxy is used internally for load balancing strategy, with high fault handling and practicality. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 is a schematic diagram of the structure of a terminal management system according to an embodiment of the present invention;

[0019] Figure 2is a flow chart of a vehicle networking terminal access method according to an embodiment of the present invention;

[0020] Figure 3 is a structural block diagram of a vehicle networking terminal access device according to an embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of the structure of a vehicle networking system provided according to an embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of the structure of a computer-readable storage medium provided according to an embodiment of the present invention;

[0023] Figure 6 is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0025] The embodiment of the present invention provides a vehicle networking terminal access method, which is applied to a terminal management system, such as Figure 1 As shown, the terminal management system includes multiple servers, each server is connected to multiple terminals, and the other side is connected to the service calling end, and the server is used to provide services to any connected terminal; Figure 2 As shown, the method comprises the following steps:

[0026] Step S101: Receive a channel connection request sent by the terminal until the channel connection is successful and receive a unique identifier sent by the terminal. Specifically, before the terminal connects to the management end, a long connection communication pipeline, i.e., a channel, is established based on the TCP protocol. Then the management end receives the channel connection request sent by the terminal. When the TCP connection communication pipeline is successfully connected, the management end receives the unique identifier of the current terminal sent by the terminal again. When the TCP connection communication pipeline is not successfully connected, the management end continues to receive the channel connection request sent by the terminal until the connection is successful.

[0027] Step S102: Verify the identity according to the unique identifier. Specifically, after receiving the unique identifier sent by the receiving terminal, the management terminal can verify the identity of the terminal connected to the current management terminal according to the unique identifier of the terminal received. The unique identifier can be some encrypted data or some specific terminal information data, such as the frame number vin, serial number iccid, etc.

[0028] Step S103: When the identity authentication is successful, the channel is bound to the terminal and the binding information is stored in the memory and distributed cache, and the binding information includes the terminal unique identifier, the channel information corresponding to the terminal unique identifier, and the server corresponding to the terminal unique identifier. Specifically, when the identity authentication of the terminal connected to the current management end is successfully verified on the management end, the currently connected communication channel is bound to the current terminal on the current management end, and the binding information is stored in the memory and distributed cache, and the current connection state is maintained for subsequent business use. Among them, the binding information includes the terminal unique identifier, the channel information corresponding to the terminal unique identifier, and the server corresponding to the terminal unique identifier; subsequent businesses include Internet of Vehicles remote control communication, vehicle data reporting communication, terminal connection channel management, etc.

[0029] Specifically, the terminal unique identifier and the channel information corresponding to the terminal unique identifier are stored in the memory, and the server corresponding to the terminal unique identifier is stored in the distributed cache. When sending data, the corresponding server is directly searched in the distributed cache, and it can be directly determined whether the current terminal is online; if the terminal is online, the channel information required for sending data continues to be searched in the memory. This separate storage method speeds up the data sending process, and the interaction between the terminal and the management end is simpler and faster.

[0030] Step S104: When receiving the business data sent by the terminal, verify the business data, and when the verification result meets the preset conditions, send the business data to the middleware. Specifically, after the terminal is connected to the management end, when the management end receives the business data sent by the terminal, the management end verifies the business data, including verifying the integrity and correctness of the business data. If it meets the requirements, the received business data is sent to the middleware for use by the business service. Among them, the business data includes Internet of Vehicles remote control data, vehicle data reported data, etc.; the middleware can be a message queue for the user to obtain data.

[0031] Step S105: When the business data sent by the business call end and received by the middleware is obtained, the server corresponding to the terminal unique identification information in the business data is queried in the memory and distributed cache. Specifically, when the management end sends data to the terminal, the business call end first sends the business data to the middleware for consumption by the management end service cluster. After the management end receives the business data, it queries the memory and distributed cache for information on the server corresponding to the terminal unique identification information in the received business data by identifying the unique identification.

[0032] Step S106: When the server corresponding to the unique identification information is found, the service data is sent to the terminal through the corresponding server. Specifically, if the server corresponding to the unique identification information can be found in the memory and the distributed cache, the management end sends the received service data to the terminal through the corresponding server.

[0033] The vehicle network terminal access method provided by an embodiment of the present invention is applied to a terminal management system, which includes multiple servers, one side of the server is connected to a service calling end, and the other side of the server is used to provide services to any connected terminal; receiving a channel connection request sent by the terminal until the channel connection is successful and receiving a unique identifier sent by the terminal; verifying the identity according to the unique identifier; when the identity authentication is successful, binding the channel with the terminal and storing the binding information in a memory and a distributed cache, the binding information including the terminal unique identifier, the channel information corresponding to the terminal unique identifier, and the server corresponding to the terminal unique identifier; when receiving the service data sent by the terminal, verifying the service data, and sending the service data to the middleware when the verification result meets the preset conditions; when obtaining the service data sent by the service calling end received by the middleware, querying the server corresponding to the terminal unique identifier information in the service data in the memory and the distributed cache; when the server corresponding to the unique identifier information is queried, sending the service data to the terminal through the corresponding server. This method is simple in terms of terminal-oriented content, only exposes the connection IP and port, and has no web-server to allocate servers. There is no need to consider which gateway server the currently uniquely identified terminal is located on, and only needs to call any server interface in the gateway cluster to send data. There is no distinction in terminal access, no need to know the address of the target server, and no need to make any settings on the terminal, that is, a reverse proxy is used internally for load balancing strategy, with high fault handling and practicality.

[0034] As an optional implementation of the embodiment of the present invention, step S106 includes: when the server corresponding to the unique identification information is queried, the business data is sent to the middleware corresponding to the server; the business data is obtained from the middleware corresponding to the server, the corresponding terminal channel is queried in the memory, and the business data sent by the business call end is sent to the terminal through the terminal channel. Specifically, if the server corresponding to the unique identification information can be queried in the memory and the distributed cache, the management end will first send the received business data to the middleware corresponding to the server, that is, the message queue of the corresponding server. After receiving the business data, the message queue will query the corresponding terminal communication channel in the memory until the query is successful, and then send the business data to the corresponding terminal through the terminal communication channel obtained by the query.

[0035] As an optional implementation of an embodiment of the present invention, the method also includes: when the server corresponding to the unique identification information is not found in the memory and the distributed cache, it means that the current terminal is not online and is not connected to the server, then the business data received from the business call end is stored in the corresponding middleware for sending data to the terminal when the current terminal is online.

[0036] As an optional implementation mode of the embodiment of the present invention, after the terminal is connected to the management end, when the management end receives the business data sent by the terminal, the business data is verified on the management end. When the verification does not meet the requirements, the received business data is recorded through a log for subsequent analysis of the cause.

[0037] As an optional implementation mode of the embodiment of the present invention, after the terminal is connected to the management end, when the management end receives the business data sent by the terminal, the business data is verified on the management end. When the verification meets the requirements, that is, the business data received by the management end is complete and the data structure is consistent with the business logic requirements, the received business data is sent to the middleware for use by the business service.

[0038] The embodiment of the present invention further provides a vehicle networking terminal access device, which is applied to a terminal management system. The terminal management system includes multiple servers, one side of the server is connected to a service calling end, and the other side of the server is used to provide services to any accessed terminal; Figure 3 As shown, the device comprises:

[0039] The receiving module 301 is used to receive a channel connection request sent by a terminal until the channel connection is successful and receive a unique identifier sent by the terminal; for details, see the relevant description of step S101 in the above method embodiment.

[0040] The verification module 302 is used to verify the identity according to the unique identifier; for details, please refer to the relevant description of step S102 in the above method embodiment.

[0041] The storage module 303 is used to bind the channel to the terminal and store the binding information in the memory and distributed cache when the identity authentication is successful. The binding information includes the terminal unique identifier, the channel information corresponding to the terminal unique identifier, and the server corresponding to the terminal unique identifier; for details, please refer to the relevant description of step S103 in the above method embodiment.

[0042] The processing module 304 is used to verify the business data sent by the terminal when receiving the business data, and send the business data to the middleware when the verification result meets the preset conditions; for details, please refer to the relevant description of step S104 in the above method embodiment.

[0043] The query module 305 is used to query the server corresponding to the terminal unique identification information in the business data in the memory and distributed cache when the business data sent by the business call end received by the middleware is obtained; for details, please refer to the relevant description of step S105 in the above method embodiment.

[0044] The sending module 306 is used to send the business data to the terminal through the corresponding server when the server corresponding to the unique identification information is queried; for details, please refer to the relevant description of step S106 in the above method embodiment.

[0045] The vehicle networking terminal access device provided in an embodiment of the present invention is applied to a terminal management system, which includes multiple servers, one side of the server is connected to a service calling end, and the other side of the server is used to provide services to any connected terminal; receiving a channel connection request sent by the terminal until the channel connection is successful and receiving a unique identifier sent by the terminal; verifying the identity according to the unique identifier; when the identity authentication is successful, binding the channel with the terminal and storing the binding information in a memory and a distributed cache, the binding information including the terminal unique identifier, the channel information corresponding to the terminal unique identifier, and the server corresponding to the terminal unique identifier; when receiving the service data sent by the terminal, verifying the service data, and sending the service data to the middleware when the verification result meets the preset conditions; when obtaining the service data sent by the service calling end received by the middleware, querying the server corresponding to the terminal unique identification information in the service data in the memory and the distributed cache; when the server corresponding to the unique identification information is queried, sending the service data to the terminal through the corresponding server. The terminal-oriented content is simple, only the connection IP and port are exposed, and there is no web-server to allocate servers. There is no need to consider which gateway server the current uniquely identified terminal is located on, and you only need to call any server interface in the gateway cluster to send data. There is no distinction in terminal access, and there is no need to know the address of the target server, nor is there any need to make any settings on the terminal. That is, a reverse proxy is used internally for load balancing strategies, with high fault handling and practicality.

[0046] As an optional implementation of the embodiment of the present invention, the device also includes: a first sending module, which is used to send the business data to the middleware corresponding to the server when the server corresponding to the unique identification information is queried; a first processing module, which is used to obtain the business data from the middleware corresponding to the server, query the corresponding terminal channel in the memory and send the business data sent by the business calling end to the terminal through the terminal channel.

[0047] As an optional implementation of the embodiment of the present invention, the device further includes: a first storage module, which is used to store the business data sent by the business call end in the middleware when the server corresponding to the unique identification information is not queried.

[0048] As an optional implementation of the embodiment of the present invention, the device further includes: a recording module, which is used to record the business data through a log when the verification result does not meet the preset condition.

[0049] As an optional implementation of the embodiment of the present invention, the device further includes: a second sending module, configured to send the business data to the middleware when the business data is complete and the data structure is consistent with the business logic requirements.

[0050] For a detailed description of the functions of the vehicle networking terminal access device provided in the embodiment of the present invention, please refer to the description of the vehicle networking terminal access method in the above embodiment.

[0051] The embodiment of the present invention also provides a vehicle networking system, such as Figure 4 As shown, the Internet of Vehicles system 1 includes: a terminal management system 11, including multiple servers, one side of the server is connected to the service calling end, and the other side of the server is used to provide services to any connected terminal, and is used to execute the Internet of Vehicles terminal access method provided in the above embodiment; multiple terminals 12, connected to the servers in the terminal management system; multiple service calling ends 13, connected to the servers in the terminal management system, for obtaining Internet of Vehicles service data.

[0052] The embodiment of the present invention also provides a storage medium, such as Figure 5 As shown, a computer program 601 is stored thereon, and when the instruction is executed by the processor, the steps of the vehicle networking terminal access method in the above embodiment are implemented. The storage medium also stores audio and video stream data, feature frame data, interaction request signaling, encrypted data, and preset data size, etc. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, abbreviated: HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0053] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.

[0054] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, the electronic device may include a processor 51 and a memory 52, wherein the processor 51 and the memory 52 may be connected via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0055] The processor 51 may be a central processing unit (CPU). The processor 51 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0056] The memory 52 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as the corresponding program instructions / modules in the embodiment of the present invention. The processor 51 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory 52, that is, implements the vehicle networking terminal access method in the above method embodiment.

[0057] The memory 52 may include a program storage area and a data storage area, wherein the program storage area may store an application required for operating the device and at least one function; the data storage area may store data created by the processor 51, etc. In addition, the memory 52 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 52 may optionally include a memory remotely arranged relative to the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0058] The one or more modules are stored in the memory 52 and when executed by the processor 51, perform the following steps: Figure 2 The vehicle networking terminal access method in the illustrated embodiment.

[0059] For details of the above electronic equipment, please refer to Figure 2 The corresponding related descriptions and effects in the illustrated embodiments can be understood and will not be repeated here.

[0060] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A vehicle networking terminal access method, applied to a terminal management system, the terminal management system includes multiple servers, one side of the server is connected to a service call end, and the other side of the server is used to provide services to any accessed terminal; characterized in that: The steps include: Receive a channel connection request sent by a terminal until the channel connection is successful and a unique identifier sent by the terminal is received; Verifying identity based on the unique identifier; When the identity authentication is successful, the channel is bound to the terminal and the binding information is stored in the memory and the distributed cache, the binding information including the terminal unique identifier, the channel information corresponding to the terminal unique identifier and the server corresponding to the terminal unique identifier, the terminal unique identifier and the channel information corresponding to the terminal unique identifier are stored in the memory, and the server corresponding to the terminal unique identifier is stored in the distributed cache; When receiving the service data sent by the terminal, verifying the integrity and correctness of the service data, and when the verification result meets the preset conditions, sending the service data to the middleware; When the service data sent by the service calling end received by the middleware is obtained, the server corresponding to the terminal unique identification information in the service data is searched in the memory and the distributed cache, wherein when the service calling end sends the service data, the corresponding server is searched in the distributed cache and it is determined whether the terminal is online, if the terminal is online, the channel information required for the sent service data is searched in the memory, and the service data is sent to the terminal according to the found channel information; When the server corresponding to the unique identification information is found, the service data is sent to the terminal through the corresponding server.

2. The method according to claim 1, characterized in that When the server corresponding to the unique identification information is queried, sending the service data to the terminal through the corresponding server includes: When the server corresponding to the unique identification information is found, the business data is sent to the middleware corresponding to the server; The service data is obtained from the middleware corresponding to the server, the corresponding terminal channel is searched in the memory, and the service data sent by the service calling end is sent to the terminal through the terminal channel.

3. The method according to claim 1, characterized in that The method further comprises: When the server corresponding to the unique identification information is not found, the service data sent by the service calling end is stored in the middleware.

4. The method according to claim 1, characterized in that: When receiving the service data sent by the terminal, verifying the service data includes: when the verification result does not meet the preset conditions, recording the service data through a log.

5. The method according to claim 1, characterized in that When receiving the service data sent by the terminal, verifying the service data, and when the verification result meets the preset conditions, sending the service data to the middleware, includes: When the business data is complete and the data structure is consistent with the business logic requirements, the business data is sent to the middleware.

6. A vehicle networking terminal access device, applied to a terminal management system, the terminal management system includes multiple servers, one side of the server is connected to the service call end, and the other side of the server is used to provide services to any accessed terminal; characterized in that: include: A receiving module, used for receiving a channel connection request sent by a terminal until the channel connection is successful and receiving a unique identifier sent by the terminal; A verification module, used to verify the identity according to the unique identifier; A storage module, configured to bind the channel to the terminal and store the binding information in a memory and a distributed cache when the identity authentication succeeds, wherein the binding information includes a terminal unique identifier, channel information corresponding to the terminal unique identifier, and a server corresponding to the terminal unique identifier, the terminal unique identifier and the channel information corresponding to the terminal unique identifier are stored in the memory, and the server corresponding to the terminal unique identifier is stored in the distributed cache; A processing module, configured to verify the integrity and correctness of the service data when receiving the service data sent by the terminal, and send the service data to the middleware when the verification result meets the preset conditions; A query module, used for, when obtaining the service data sent by the service call end received by the middleware, querying the server corresponding to the terminal unique identification information in the service data in the memory and the distributed cache, wherein, when the service call end sends the service data, searching the corresponding server in the distributed cache and judging whether the terminal is online, if the terminal is online, searching the channel information required for the sent service data in the memory, and sending the service data to the terminal according to the found channel information; The sending module is used to send the business data to the terminal through the corresponding server when the server corresponding to the unique identification information is queried.

7. The device according to claim 6, characterized in that The device also includes: A first sending module, configured to send the business data to a middleware corresponding to the server when the server corresponding to the unique identification information is found; The first processing module is used to obtain the business data from the middleware corresponding to the server, query the corresponding terminal channel in the memory, and send the business data sent by the business call end to the terminal through the terminal channel.

8. A vehicle networking system, characterized in that: include: A terminal management system, the terminal management system includes a plurality of servers, one side of the server is connected to the service calling end, and the other side of the server is used to provide services to any connected terminal; The service calling end is used to obtain Internet of Vehicles service data; The terminal management system is used to execute the vehicle networking terminal access method according to any one of claims 1 to 5.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the vehicle networking terminal access method as described in any one of claims 1 to 5.

10. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the vehicle networking terminal access method as described in any one of claims 1 to 5 by executing the computer instructions.

Citation Information

Patent Citations

  • Large-scale interconnection cluster method for vehicle-mounted terminal

    CN108306955A