CN114915656A - Internet of vehicles terminal access method, device, storage medium and electronic equipment - Google Patents

Internet of vehicles terminal access method, device, storage medium and electronic equipment Download PDF

Info

Publication number
CN114915656A
CN114915656A CN202111648530.3A CN202111648530A CN114915656A CN 114915656 A CN114915656 A CN 114915656A CN 202111648530 A CN202111648530 A CN 202111648530A CN 114915656 A CN114915656 A CN 114915656A
Authority
CN
China
Prior art keywords
terminal
service data
server
service
sent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111648530.3A
Other languages
Chinese (zh)
Inventor
李昕泽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Siwei Zhilian Technology Co ltd
Original Assignee
Nanjing Siwei Zhilian Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Siwei Zhilian Technology Co ltd filed Critical Nanjing Siwei Zhilian Technology Co ltd
Priority to CN202111648530.3A priority Critical patent/CN114915656A/en
Publication of CN114915656A publication Critical patent/CN114915656A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Abstract

The invention discloses a vehicle networking terminal access method, a device, a storage medium and electronic equipment, wherein the method comprises the following steps: 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 verification is successful, binding the channel and the terminal and storing the binding information in the memory and the distributed cache; when receiving service data sent by a terminal, verifying the service data, and when a verification result meets a preset condition, sending the service data to a middleware; when business data sent by a business calling end and received by the middleware are obtained, a server corresponding to the terminal unique identification information in the business data is inquired in a memory and a distributed cache; and when the server corresponding to the unique identification information is inquired, the service data is sent to the terminal through the corresponding server. The method is simple in content for the terminal, has no difference in access to the terminal, and is high in fault processing and practicability.

Description

Internet of vehicles terminal access method, device, storage medium and electronic equipment
Technical Field
The invention relates to the technical field of data terminal access, in particular to a vehicle networking terminal access method, a device, a storage medium and electronic equipment.
Background
With the rapid development and wide application of the car networking technology, the volume of data generated by the car networking becomes larger and larger, and the requirements on the reliability and the real-time performance of the data start to become higher, which leads to higher and higher requirements on the access of the car networking terminal, so that how to quickly, efficiently and stably access the data collected by the car networking terminal to the car networking system faces a severe challenge. In the prior art, a terminal acquires the information of an allocated tcp server by calling a web-server service, and then is connected with the server through the information of the allocated tcp server; and the calling terminal acquires the information of the tcp server distributed by the corresponding terminal through the web-server, and then sends the information to the corresponding tcp server and then sends the information to the terminal. However, the method distributes the server information through the web-server, so that the management is difficult in process, and the calling logic is too much, so that the method is not friendly to the terminal. In the case of failure of a tcp server, the terminal cannot rapidly implement failover.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a storage medium, and an electronic device for accessing a car networking terminal, so as to solve the technical problem in the prior art that when a terminal accesses, server information is distributed through a web-server, which is not only difficult to manage in a process, but also a terminal cannot rapidly implement a failover under a failure of a tcp server.
The technical scheme provided by the invention is as follows:
the first aspect of the embodiment of the invention provides an access method of a car networking terminal, which is applied to a terminal management system, wherein the terminal management system comprises a plurality of servers, one side of each server is connected with a service calling end, and the other side of each server is used for providing service for any accessed terminal; the access method of the Internet of vehicles terminal comprises the following steps: 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 identification; when the identity verification is successful, the channel and the terminal are bound, and binding information is stored in a memory and a distributed cache, wherein the binding information comprises a terminal unique identifier, channel information corresponding to the terminal unique identifier and a server corresponding to the terminal unique identifier; when the service data sent by the terminal are received, the service data are verified, and when the verification result meets a preset condition, the service data are sent to a middleware; when the service data sent by the service calling terminal received by the middleware is obtained, a server corresponding to the terminal unique identification information in the service data is inquired in the memory and the distributed cache; and when the server corresponding to the unique identification information is inquired, the service data is sent to the terminal through the corresponding server.
Optionally, when the server corresponding to the unique identifier information is queried, sending the service data to the terminal through the corresponding server includes: when a server corresponding to the unique identification information is inquired, the service data is sent to the middleware corresponding to the server; and acquiring the service data from the middleware corresponding to the server, inquiring a corresponding terminal channel in the memory, and sending the service data sent by the service calling end to the terminal through the terminal channel.
Optionally, the method further comprises: and when the server corresponding to the unique identification information is not inquired, storing the service data sent by the service calling end into the middleware.
Optionally, the verifying the service data when the service data sent by the terminal is received includes: and when the verification result does not meet the preset condition, recording the service data through the log.
Optionally, the verifying the service data when the service data sent by the terminal is received, and sending the service data to the middleware when a verification result meets a preset condition includes: and when the service data is complete and the data structure and the service logic requirements are consistent, sending the service data to the middleware.
A second aspect of the embodiments of the present invention provides an access device for a terminal in a car networking, which is applied to a terminal management system, where the terminal management system includes a plurality of servers, one side of each server is connected to a service invoking terminal, and the other side of each server is used to provide a service for any accessed terminal; this car networking terminal access device includes: the receiving module is used for receiving the channel connection request sent by the terminal until the channel connection is successful and receiving the unique identifier sent by the terminal; the verification module is used for verifying the identity according to the unique identifier; the storage module is used for binding the channel with the terminal and storing binding information in a memory and a distributed cache when the identity authentication is successful, wherein the binding information comprises a terminal unique identifier, channel information corresponding to the terminal unique identifier and a server corresponding to the terminal unique identifier; the processing module is used for verifying the service data when the service data sent by the terminal is received, and sending the service data to the middleware when a verification result meets a preset condition; the query module is used for querying a server corresponding to the terminal unique identification information in the service data in the memory and the distributed cache when the service data sent by the service calling terminal received by the middleware is acquired; and the sending module is used for sending the service data to the terminal through the corresponding server when the server corresponding to the unique identification information is inquired.
Optionally, the apparatus further comprises: the first sending module is used for sending the service data to the middleware corresponding to the server when the server corresponding to the unique identification information is inquired; and the first processing module is used for acquiring the service data from the middleware corresponding to the server, inquiring a corresponding terminal channel in the memory and sending the service data sent by the service calling end to the terminal through the terminal channel.
A third aspect of an embodiment of the present invention provides an internet of vehicles system, including: the terminal management system comprises a plurality of servers, one side of each server is connected with a service calling end, and the other side of each server is used for providing service for any accessed terminal; the service calling terminal is used for acquiring the service data of the Internet of vehicles; the terminal management system is used for executing the vehicle networking terminal access method in the first aspect and any one of the first aspect.
A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause a computer to execute the car networking terminal access method according to any one of the first aspect and the first aspect of the embodiments of the present invention.
A fifth aspect of an embodiment of the present invention provides an electronic device, including: the vehicle networking terminal access method comprises a memory and a processor, wherein the memory and the processor are connected with each other in a communication mode, the memory stores computer instructions, and the processor executes the computer instructions so as to execute the vehicle networking terminal access method according to the first aspect and any one of the first aspect.
The technical scheme provided by the invention has the following effects:
the car networking terminal access method provided by the embodiment of the invention is applied to a terminal management system, the terminal management system comprises a plurality of servers, one side of each server is connected with a service calling end, and the other side of each server is used for providing service for any accessed terminal; the method comprises the following steps: 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 identification; when the identity verification is successful, the channel and the terminal are bound, and binding information is stored in a memory and a distributed cache, wherein the binding information comprises a terminal unique identifier, channel information corresponding to the terminal unique identifier and a server corresponding to the terminal unique identifier; when the service data sent by the terminal is received, the service data is verified, and when the verification result meets a preset condition, the service data is sent to a middleware; when the service data sent by the service calling terminal received by the middleware is obtained, a server corresponding to the terminal unique identification information in the service data is inquired in the memory and the distributed cache; and when the server corresponding to the unique identification information is inquired, the service data is sent to the terminal through the corresponding server. The method is simple in terminal-oriented content, only exposes the connection ip and the port, and does not have a web-server distribution server; the gateway server where the terminal with the unique identifier is located at present does not need to be considered, and only any server interface in the gateway cluster needs to be called to send data; the method has no difference access to the terminal, does not need to know the address of the target server, does not need to make any setting at the terminal, namely, uses a reverse proxy to carry out a load balancing strategy, and has high fault processing and practicability.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of a terminal management system according to an embodiment of the present invention;
FIG. 2 is a flow chart of a vehicle networking terminal access method according to an embodiment of the invention;
FIG. 3 is a block diagram of an embodiment of an Internet of vehicles terminal access device;
FIG. 4 is a schematic structural diagram of a vehicle networking system provided according to an embodiment of the invention;
FIG. 5 is a schematic structural diagram of a computer-readable storage medium provided according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The embodiment of the invention provides an access method of a terminal of an internet of vehicles, which is applied to a terminal management system, wherein the terminal management system comprises a plurality of servers, each server is connected with a plurality of terminals, the other side of each server is connected with a service calling end, and the servers are used for providing services for any accessed terminal; as shown in fig. 2, the method comprises the steps of:
step S101: and receiving the channel connection request sent by the terminal until the channel connection is successful and receiving the unique identifier sent by the terminal. Specifically, before the terminal connects to the management terminal, a long connection communication pipe, i.e., a channel, implemented based on a TCP protocol is established, then the management terminal receives a channel connection request sent by the terminal, and after the TCP connection communication pipe is successfully connected, the management terminal 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 terminal continuously receives the channel connection request sent by the terminal until the connection is successful.
Step S102: and verifying the identity according to the unique identifier. Specifically, after receiving the unique identifier sent by the receiving terminal, the management terminal may verify, at the management terminal, the identity of the terminal connected to the current management terminal according to the received unique identifier of the terminal. The unique identifier may be some encrypted data or some specific terminal information data. Such as the frame number vin, serial number iccid, etc.
Step S103: and when the identity verification is successful, binding the channel with the terminal and storing binding information in a memory and a distributed cache, wherein the binding information comprises a terminal unique identifier, channel information corresponding to the terminal unique identifier and a server corresponding to the terminal unique identifier. Specifically, when the identity authentication of the terminal connected with the current management terminal is successfully verified at the management terminal, the currently connected communication pipeline and the current terminal are bound at the current management terminal, and meanwhile, the binding information is stored in the memory and the distributed cache, and the current connection state is maintained for subsequent services. The binding information comprises a terminal unique identifier, channel information corresponding to the terminal unique identifier and a server corresponding to the terminal unique identifier; the subsequent services comprise vehicle networking remote control communication, vehicle data reporting communication, terminal connection channel management and the like.
Specifically, the terminal unique identifier and the channel information corresponding to the terminal unique identifier are stored in a memory, and a server corresponding to the terminal unique identifier is stored in a distributed cache. When data is sent, a corresponding server is directly searched in the distributed cache, and whether the current terminal is on line or not can be directly judged; if the terminal is on line, the channel information required by data transmission is continuously searched in the memory, the processing process of data transmission is accelerated by the separate storage mode, and the interaction between the terminal and the management terminal is simpler and quicker.
Step S104: and when the service data sent by the terminal is received, verifying the service data, and when a verification result meets a preset condition, sending the service data to the middleware. Specifically, after the terminal is connected with the management end, when the management end receives the service data sent by the terminal, the service data is verified at the management end, including verifying the integrity and correctness of the service data, and if the service data meets the requirements, the received service data is sent to the middleware for service use. The service data comprises remote control data of the Internet of vehicles, data reported by the vehicle data and the like; the middleware can be a message queue used for the user end to obtain data.
Step S105: and when the service data sent by the service calling terminal received by the middleware is obtained, the server corresponding to the terminal unique identification information in the service data is inquired in the memory and the distributed cache. Specifically, when the management end sends data to the terminal, the service calling end sends the service data to the middleware for consumption and use by the management end service cluster. After the management terminal receives the service data, the information of the server corresponding to the terminal unique identification information in the received service data is inquired in the memory and the distributed cache by identifying the unique identification.
Step S106: and when the server corresponding to the unique identification information is inquired, the service data is sent to the terminal through the corresponding server. Specifically, if the server corresponding to the unique identification information can be queried in the memory and the distributed cache, the management terminal sends the received service data to the terminal through the corresponding server.
The car networking terminal access method provided by the embodiment of the invention is applied to a terminal management system, the terminal management system comprises a plurality of servers, one side of each server is connected with a service calling end, and the other side of each server is used for providing service for any accessed terminal; 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 identification; when the identity verification is successful, the channel and the terminal are bound, and binding information is stored in a memory and a distributed cache, wherein the binding information comprises a terminal unique identifier, channel information corresponding to the terminal unique identifier and a server corresponding to the terminal unique identifier; when the service data sent by the terminal is received, the service data is verified, and when the verification result meets a preset condition, the service data is sent to a middleware; when the service data sent by the service calling terminal received by the middleware is obtained, a server corresponding to the terminal unique identification information in the service data is inquired in the memory and the distributed cache; and when the server corresponding to the unique identification information is inquired, the service data is sent to the terminal through the corresponding server. The method is simple in terminal-oriented content, only exposes the connection ip and the port, and does not have a web-server distribution server; the gateway server where the terminal with the unique identifier is located at present does not need to be considered, and only any server interface in the gateway cluster needs to be called to send data; the terminal is accessed indiscriminately, the address of the target server does not need to be known, and the terminal does not need to be set at all, namely a reverse proxy is used inside to carry out a load balancing strategy, so that the fault handling and the practicability are high.
As an optional implementation manner of the embodiment of the present invention, step S106 includes: when a server corresponding to the unique identification information is inquired, the service data is sent to the middleware corresponding to the server; and acquiring the service data from the middleware corresponding to the server, inquiring a corresponding terminal channel in the memory, and sending the service data sent by the service calling end to the terminal through the terminal channel. Specifically, if a server corresponding to the unique identification information can be queried in the memory and the distributed cache, the management terminal first sends the received service data to a middleware corresponding to the server, that is, a message queue corresponding to the server, and after the message queue receives the service data, queries a corresponding terminal communication channel in the memory until the query is successful, and then sends the service data to the corresponding terminal through the terminal communication channel obtained by the query.
As an optional implementation manner of the embodiment of the present invention, the method further includes: when the server corresponding to the unique identification information is not inquired in the memory and the distributed cache, the fact that the current terminal is not on line is indicated, and the current terminal is not connected with the server, the received service data sent by the service calling end is stored in the corresponding middleware, and the data is sent to the terminal when the current terminal is on line.
As an optional implementation manner of the embodiment of the present invention, after the terminal is connected to the management end, when the management end receives the service data sent by the terminal, the service data is verified at the management end, and when the verification does not meet the requirement, the received service data is recorded by a log for subsequent reason analysis.
As an optional implementation manner of the embodiment of the present invention, after the terminal is connected to the management end, when the management end receives the service data sent by the terminal, the service data is verified at the management end, and when the verification meets the requirement, that is, the service data received by the management end is complete and the data structure and service logic requirements are consistent, the received service data is sent to the middleware for service use.
The embodiment of the invention also provides a terminal access device of the Internet of vehicles, which is applied to a terminal management system, wherein the terminal management system comprises a plurality of servers, one side of each server is connected with the service calling end, and the other side of each server is used for providing service for any accessed terminal; as shown in fig. 3, the apparatus includes:
a receiving module 301, configured to receive a channel connection request sent by a terminal until a channel connection is successful and receive a unique identifier sent by the terminal; for details, refer to the related description of step S101 in the above method embodiment.
A verification module 302 for verifying an identity according to the unique identifier; for details, refer to the related description of step S102 in the above method embodiment.
The storage module 303 is configured to, when the identity authentication is successful, bind the channel with the terminal and store binding information in a memory and a distributed cache, where the binding information includes a unique terminal identifier, channel information corresponding to the unique terminal identifier, and a server corresponding to the unique terminal identifier; for details, refer to the related description of step S103 in the above method embodiment.
The processing module 304 is configured to verify the service data when receiving the service data sent by the terminal, and send the service data to the middleware when a verification result meets a preset condition; for details, refer to the related description of step S104 in the above method embodiment.
The query module 305 is configured to, when acquiring the service data sent by the service invoking end received by the middleware, query, in the memory and the distributed cache, a server corresponding to the terminal unique identification information in the service data; for details, refer to the related description of step S105 in the above method embodiment.
A sending module 306, configured to send the service data to the terminal through a corresponding server when the server corresponding to the unique identification information is queried; for details, refer to the related description of step S106 in the above method embodiment.
The terminal access device of the internet of vehicles is applied to a terminal management system, the terminal management system comprises a plurality of servers, one side of each server is connected with a service calling end, and the other side of each server is used for providing service for any accessed terminal; 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 identification; when the identity verification is successful, the channel and the terminal are bound, and binding information is stored in a memory and a distributed cache, wherein the binding information comprises a terminal unique identifier, channel information corresponding to the terminal unique identifier and a server corresponding to the terminal unique identifier; when the service data sent by the terminal are received, the service data are verified, and when the verification result meets a preset condition, the service data are sent to a middleware; when the service data sent by the service calling terminal received by the middleware is obtained, a server corresponding to the terminal unique identification information in the service data is inquired in the memory and the distributed cache; and when the server corresponding to the unique identification information is inquired, the service data is sent to the terminal through the corresponding server. The content facing the terminal is simple, only the connection ip and the port are exposed, and a web-server distribution server is not used; the gateway server where the terminal with the unique identifier is located at present does not need to be considered, and only any server interface in the gateway cluster needs to be called to send data; the terminal is accessed indiscriminately, the address of the target server does not need to be known, and the terminal does not need to be set at all, namely a reverse proxy is used inside to carry out a load balancing strategy, so that the fault handling and the practicability are high.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes: the first sending module is used for sending the service data to the middleware corresponding to the server when the server corresponding to the unique identification information is inquired; and the first processing module is used for acquiring the service data from the middleware corresponding to the server, inquiring a corresponding terminal channel in the memory and sending the service data sent by the service calling end to the terminal through the terminal channel.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes: and the first storage module is used for storing the service data sent by the service calling end into the middleware when the server corresponding to the unique identification information is not inquired.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes: and the recording module is used for recording the service data through the log when the verification result does not meet the preset condition.
As an optional implementation manner of the embodiment of the present invention, the apparatus further includes: and the second sending module is used for sending the service data to the middleware when the service data is complete and the data structure and the service logic requirements are consistent.
The function description of the car networking terminal access device provided by the embodiment of the invention refers to the description of the car networking terminal access method in the embodiment in detail.
An embodiment of the present invention further provides a car networking system, and as shown in fig. 4, the car networking system 1 includes: the terminal management system 11 comprises a plurality of servers, wherein one side of each server is connected with a service calling end, and the other side of each server is used for providing service for any accessed terminal and executing the vehicle networking terminal access method provided by the embodiment; a plurality of terminals 12 connected to a server in the terminal management system; and the service calling terminals 13 are connected with the server in the terminal management system and are used for acquiring the service data of the Internet of vehicles.
An embodiment of the present invention further provides a storage medium, as shown in fig. 5, on which a computer program 601 is stored, where the instructions, when executed by a processor, implement the steps of the access method for the car networking terminal in the foregoing embodiment. The storage medium is also stored with audio and video stream data, characteristic frame data, an interactive request signaling, encrypted data, preset data size and the like. The storage medium may be a magnetic 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 as HDD) or a Solid State Drive (SSD), etc.; the storage medium may also comprise a combination of memories of the kind described above.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic 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 as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
An embodiment of the present invention further provides an electronic device, as shown in fig. 6, the electronic device may include a processor 51 and a memory 52, where the processor 51 and the memory 52 may be connected by a bus or in another manner, and fig. 6 takes the connection by the bus as an example.
The processor 51 may be a Central Processing Unit (CPU). The Processor 51 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 52, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as the corresponding program instructions/modules in the embodiments of the present invention. The processor 51 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 52, that is, the car networking terminal access method in the above method embodiment is implemented.
The memory 52 may include a storage program area and a storage data area, wherein the storage program area may store an operating device, an application program required for at least one function; the storage data area may store data created by the processor 51, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 52 may optionally include memory located remotely from the processor 51, and these remote memories may be connected to the processor 51 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 52 and, when executed by the processor 51, perform the car networking terminal access method in the embodiment shown in fig. 2.
The details of the electronic device may be understood with reference to the corresponding related description and effects in the embodiment shown in fig. 2, and are not described herein again.
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 invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A terminal access method of the Internet of vehicles is applied to a terminal management system, the terminal management system comprises a plurality of servers, one side of each server is connected with a service calling end, and the other side of each server is used for providing service for any accessed terminal; the method is characterized by comprising the following steps:
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 identification;
when the identity verification is successful, the channel and the terminal are bound, and binding information is stored in a memory and a distributed cache, wherein the binding information comprises a terminal unique identifier, channel information corresponding to the terminal unique identifier and a server corresponding to the terminal unique identifier;
when the service data sent by the terminal are received, the service data are verified, and when the verification result meets a preset condition, the service data are sent to a middleware;
when the service data sent by the service calling terminal received by the middleware is obtained, a server corresponding to the terminal unique identification information in the service data is inquired in the memory and the distributed cache;
and when the server corresponding to the unique identification information is inquired, the service data is sent to the terminal through the corresponding server.
2. The method according to claim 1, wherein when the server corresponding to the unique identification information is queried, the sending the service data to the terminal through the corresponding server includes:
when a server corresponding to the unique identification information is inquired, the service data is sent to the middleware corresponding to the server;
and acquiring the service data from the middleware corresponding to the server, inquiring a corresponding terminal channel in the memory, and sending the service data sent by the service calling end to the terminal through the terminal channel.
3. The method of claim 1, further comprising:
and when the server corresponding to the unique identification information is not inquired, storing the service data sent by the service calling end into the middleware.
4. The method of claim 1, wherein the verifying the service data when receiving the service data sent by the terminal comprises: and when the verification result does not meet the preset condition, recording the service data through the log.
5. The method of claim 1, wherein the verifying the service data when the service data sent by the terminal is received, and sending the service data to a middleware when a verification result meets a preset condition comprises:
and when the service data is complete and the data structure and the service logic requirements are consistent, sending the service data to the middleware.
6. A terminal access device of the Internet of vehicles is applied to a terminal management system, the terminal management system comprises a plurality of servers, one side of each server is connected with a service calling end, and the other side of each server is used for providing service for any accessed terminal; it is characterized by comprising:
the receiving module is used for receiving the channel connection request sent by the terminal until the channel connection is successful and receiving the unique identifier sent by the terminal;
the verification module is used for verifying the identity according to the unique identifier;
the storage module is used for binding the channel with the terminal and storing binding information in a memory and a distributed cache when the identity authentication is successful, wherein the binding information comprises a terminal unique identifier, channel information corresponding to the terminal unique identifier and a server corresponding to the terminal unique identifier;
the processing module is used for verifying the service data when the service data sent by the terminal is received, and sending the service data to the middleware when a verification result meets a preset condition;
the query module is used for querying a server corresponding to the terminal unique identification information in the service data in the memory and the distributed cache when the service data sent by the service calling terminal received by the middleware is acquired;
and the sending module is used for sending the service data to the terminal through the corresponding server when the server corresponding to the unique identification information is inquired.
7. The apparatus of claim 6, further comprising:
the first sending module is used for sending the service data to the middleware corresponding to the server when the server corresponding to the unique identification information is inquired;
and the first processing module is used for acquiring the service data from the middleware corresponding to the server, inquiring a corresponding terminal channel in the memory and sending the service data sent by the service calling end to the terminal through the terminal channel.
8. A vehicle networking system, comprising:
the terminal management system comprises a plurality of servers, one side of each server is connected with a service calling end, and the other side of each server is used for providing service for any accessed terminal;
the service calling terminal is used for acquiring the service data of the Internet of vehicles;
the terminal management system is used for executing the vehicle networking terminal access method according to any one of claims 1-5.
9. A computer-readable storage medium storing computer instructions for causing a computer to perform the car networking terminal access method according to any one of claims 1 to 5.
10. An electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to perform the car networking terminal access method according to any one of claims 1 to 5.
CN202111648530.3A 2021-12-29 2021-12-29 Internet of vehicles terminal access method, device, storage medium and electronic equipment Pending CN114915656A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111648530.3A CN114915656A (en) 2021-12-29 2021-12-29 Internet of vehicles terminal access method, device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111648530.3A CN114915656A (en) 2021-12-29 2021-12-29 Internet of vehicles terminal access method, device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN114915656A true CN114915656A (en) 2022-08-16

Family

ID=82762953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111648530.3A Pending CN114915656A (en) 2021-12-29 2021-12-29 Internet of vehicles terminal access method, device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN114915656A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079630A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Business server side load balancing method, client side, server side and system
CN105471931A (en) * 2014-08-06 2016-04-06 腾讯科技(北京)有限公司 Method, device and system for querying service data
CN108306955A (en) * 2018-01-24 2018-07-20 北京万得嘉瑞汽车技术有限公司 A kind of car-mounted terminal interconnects cluster method on a large scale
CN109413032A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 A kind of single-point logging method, computer readable storage medium and gateway
CN111787125A (en) * 2020-08-05 2020-10-16 安徽江淮汽车集团股份有限公司 Information interaction system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079630A (en) * 2014-06-09 2014-10-01 中国建设银行股份有限公司 Business server side load balancing method, client side, server side and system
CN105471931A (en) * 2014-08-06 2016-04-06 腾讯科技(北京)有限公司 Method, device and system for querying service data
CN108306955A (en) * 2018-01-24 2018-07-20 北京万得嘉瑞汽车技术有限公司 A kind of car-mounted terminal interconnects cluster method on a large scale
CN109413032A (en) * 2018-09-03 2019-03-01 中国平安人寿保险股份有限公司 A kind of single-point logging method, computer readable storage medium and gateway
CN111787125A (en) * 2020-08-05 2020-10-16 安徽江淮汽车集团股份有限公司 Information interaction system and method

Similar Documents

Publication Publication Date Title
KR102167613B1 (en) Message push method and device
CN112118315A (en) Data processing system, method, device, electronic equipment and storage medium
CN108055311B (en) HTTP asynchronous request method, device, server, terminal and storage medium
CN112187903B (en) Message pushing method and device and message service system
CN112600924B (en) IoT terminal data storage system, method, computer device and storage medium
CN113225339B (en) Network security monitoring method and device, computer equipment and storage medium
CN111147310A (en) Log tracking processing method, device, server and medium
CN114124929A (en) Cross-network data processing method and device
CN112511366A (en) Test system, method, device, equipment and storage medium
CN106612263B (en) Method and equipment for processing application access request
CN110661673A (en) Heartbeat detection method and device
CN113965628A (en) Message scheduling method, server and storage medium
CN110784510A (en) Method for accessing target service node to bus and information interaction method of service node
CN114915656A (en) Internet of vehicles terminal access method, device, storage medium and electronic equipment
CN113612811B (en) Method, system, equipment and medium for client mounting in multiple channels
CN113904847B (en) Cloud platform binding method, system, equipment and medium of Internet of things card
CN113746851B (en) Proxy system and method supporting real-time analysis of GRPC request
CN107483637B (en) NFS-based client link management method and device
CN110582090A (en) CDN scheduling method, scheduling system and MEC network element
CN114338477B (en) Communication link monitoring method, device, equipment and storage medium
CN112788054B (en) Internet of things data processing method, system and equipment
CN105939278B (en) Traffic processing method and device
CN114363204A (en) Request monitoring method, network device and storage medium
CN115412588B (en) Method and device for remotely updating configuration file and electronic equipment
CN111901366A (en) Data pushing method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination