Summary of the invention
The objective of the invention is to address the above problem, a kind of vehicle-mounted time synchronized service system is provided, make the time of mobile unit client proofread and correct, adjust to comparatively accurate state through the time synchronized function.
Another object of the present invention is to provide a kind of vehicle-mounted time synchronized method of servicing.
Technical scheme of the present invention is: the present invention has disclosed a kind of vehicle-mounted time synchronized service system, comprises time synchronized client, the full-time on-line system of vehicle, time server, wherein:
The time synchronized client is set up with the full-time on-line system of vehicle and to be connected in real time, will with throw to the time server in high in the clouds of the network event that the full-time on-line system of vehicle connects;
The full-time on-line system of vehicle is set up communication with time server and is connected;
Time server is synchronized to the time synchronized client with temporal information after receiving the network event that connects that the time synchronized client dishes out.
According to an embodiment of vehicle-mounted time synchronized service system of the present invention, the standard time server on time server and the Internet carries out regularly synchronously.
Embodiment according to vehicle-mounted time synchronized service system of the present invention; The time synchronized client receives user's time synchronized request; And be transmitted to time server through the full-time on-line system of vehicle, when time server receives the time synchronized request of time synchronized client temporal information is synchronized to the time synchronized client.
According to an embodiment of vehicle-mounted time synchronized service system of the present invention, the time synchronized client is every spontaneous to time server transmitting time synchronization request at a distance from setting cycle.
According to an embodiment of vehicle-mounted time synchronized service system of the present invention, the full-time on-line system of vehicle comprises:
Load-balancing device connects the communication of time synchronized client and is assigned on many Connection Service devices, to realize the cluster of Connection Service device;
The Connection Service device; Setting up communication with load-balancing device is connected; Reception distributes the connection request of coming from the time synchronized client through load-balancing device; Information with each connection when connecting completion is registered to the metamessage server; When connecting disconnection, nullify the connection on the metamessage server, the packet from the time synchronized client that receives is sent to corresponding external application servers through signal repeater, the information that receives from message recipient pushes and is pushed to the time corresponding sync client;
The metamessage server is set up communication with the Connection Service device and is connected, and the registration and unregistration service of connection is provided, the annexation between record Connection Service device and the time synchronized client, and the connection pool on the management server is inquired about link information;
The network event transmitter is subscribed to device with the network event that the network event between time synchronized client and the Connection Service device sends to;
Signal repeater is set up communication with the Connection Service device and is connected, the packets of information that the time of reception sync client is sent through the Connection Service device, and the application service under the identifying information bag is transmitted to packets of information the application server of corresponding outside;
Message recipient; Setting up communication respectively with Connection Service device and metamessage server is connected; Receive the packets of information of outside application server,, send to the time corresponding sync client by the Connection Service device again through the corresponding Connection Service device of metamessage server lookup.
According to an embodiment of vehicle-mounted time synchronized service system of the present invention, the Connection Service device also carries out resource through the connection pool on the management server to overtime connection and discharges.
According to an embodiment of vehicle-mounted time synchronized service system of the present invention, the metamessage server is according to the process and the hyphen information of the Connection Service device under the connection of the identification number query time sync client of time synchronized client.
According to an embodiment of vehicle-mounted time synchronized service system of the present invention, the full-time on-line system of vehicle also comprises:
The authorization control device is set up communication with the Connection Service device with outside single logging-on server and is connected, and whether the authorization information sync client is legal.
According to an embodiment of vehicle-mounted time synchronized service system of the present invention, the time synchronized client keeps and being connected of Connection Service device through the mode of sending heartbeat packet.
Embodiment according to vehicle-mounted time synchronized service system of the present invention; When the time sync client with after the current Connection Service device that is connected breaks off, when the time synchronized client connects once more, make the time synchronized client still set up the communication connection with the preceding Connection Service device that once is connected through the strategy of on load-balancing device, setting.
Embodiment according to vehicle-mounted time synchronized service system of the present invention; When the time sync client with after the current Connection Service device that is connected breaks off; The time synchronized client and the corresponding relation of Connection Service device through writing down on the inquiry metamessage server when the time synchronized client connects once more make the time synchronized client still set up the communication connection with the preceding Connection Service device that once is connected.
According to an embodiment of vehicle-mounted time synchronized service system of the present invention, after authorization control device proving time sync client is legal, in the metamessage server, write down the annexation between Connection Service device and the time synchronized client again.
Embodiment according to vehicle-mounted time synchronized service system of the present invention; In the metamessage server, write down the annexation between Connection Service device and the time synchronized client earlier; Whether legal through authorization control device proving time sync client again, corresponding record in verifying out the illegal back deletion of time synchronized client metamessage server.
The present invention has also disclosed a kind of vehicle-mounted time synchronized method of servicing, comprising:
The time synchronized client is set up with the full-time on-line system of vehicle and is connected in real time;
The time synchronized client will with throw to the time server in high in the clouds of the network event that the full-time on-line system of vehicle connects;
Time server is synchronized to the time synchronized client with temporal information after receiving the network event that connects that the time synchronized client dishes out.
According to an embodiment of vehicle-mounted time synchronized method of servicing of the present invention, the standard time server on time server and the Internet carries out regularly synchronously.
According to an embodiment of vehicle-mounted time synchronized method of servicing of the present invention, method also comprises:
The time synchronized request of the time synchronized client being sent through the full-time on-line system of vehicle is transmitted to time server;
When time server receives the time synchronized request of time synchronized client temporal information is synchronized to the time synchronized client.
According to an embodiment of vehicle-mounted time synchronized method of servicing of the present invention, the time synchronized request is every at a distance from spontaneous the sending of setting of cycle by the time synchronized client, or sends after receiving user's request.
According to an embodiment of vehicle-mounted time synchronized method of servicing of the present invention, the full-time on-line system of time synchronized client and vehicle is set up real-time step of connecting and is further comprised:
The information synchronization client is initiated to connect;
The load-balancing device scheduling connects;
The Connection Service device receives and connects;
The information synchronization client is sent login authentication information;
The Connection Service device is transmitted to the authorization control device with the login authentication information request;
Whether the login of authorization control device authorization information sync client is passed through; If do not pass through then connection closed; If through the Connection Service device, information synchronization client and the user profile that connect would be registered to the metamessage server; And the network event of successful connection issued the network event transmitter, and the network event transmitter sends to the event subscription device and connects the incident of setting up, and the Connection Service device is replied successful connection to the information synchronization client and is set up.
According to an embodiment of vehicle-mounted time synchronized method of servicing of the present invention, the full-time on-line system of time synchronized client and vehicle is set up real-time step of connecting and is further comprised:
The time synchronized client is initiated to connect;
The load-balancing device scheduling connects;
The Connection Service device receives and connects;
At Connection Service device, the time synchronized client-side information of metamessage server registration connection, and mark not login authentication state;
The time synchronized client is sent login authentication information;
The Connection Service device is transmitted to the authorization control device with the login authentication information request;
Whether the login of authorization control device proving time sync client is passed through; If do not pass through then connection closed; If through the user profile that would connect to the metamessage server update, mark login authentication and is issued the network event transmitter with the network event of successful connection through state; The network event transmitter sends to the event subscription device and connects the incident of setting up, and the Connection Service device is replied successful connection to the time synchronized client and set up.
The present invention contrasts prior art has following beneficial effect: technical scheme of the present invention is a time synchronized client time of reception synchronization request; And the time synchronized request is transmitted to time server; Also but self initiates the time synchronized request to time server; After the response of receiving, upgrade the local device time from time server.The time server of standard carries out regularly synchronously on time server and the network, and when receiving the time synchronized request from client, the up-to-date time is sent to client.
Embodiment
Below in conjunction with accompanying drawing and embodiment the present invention is done further description.
The embodiment of vehicle-mounted time synchronized service system
Fig. 1 shows the structure of the embodiment of vehicle-mounted time synchronized service system of the present invention.See also Fig. 1, the system of present embodiment comprises: the full-time on-line system of time synchronized client 10, vehicle 20, time server 30.
Communication relation between these devices: time synchronized client 10 is set up real-time communication with vehicle-mounted full-time on-line system 20 and is connected, and time server 30 is set up communication with vehicle-mounted full-time on-line system 20 and is connected.
The operation logic of the system of present embodiment is following.
Time synchronized client 10 will with throw to the time server 30 in high in the clouds of the network event that the full-time on-line system 20 of vehicle connects.
Time server 30 is synchronized to time synchronized client 10 with temporal information after receiving the network event that connects that time synchronized client 10 dishes out.The time server of the standard on time server 30 and the Internet carries out regularly synchronously.
Time synchronized client 10 receives user's time synchronized request; And be transmitted to time server 30 through the full-time on-line system 20 of vehicle, when time server 30 receives the time synchronized request of time synchronized client 10 temporal information is synchronized to time synchronized client 10.This is the method for synchronization that receives user's request.
Time synchronized client 10 is every spontaneous to time server 30 transmitting time synchronization request at a distance from setting cycle.This is the method for synchronization of the spontaneous completion of client.
The refined structure of the full-time on-line system 20 of vehicle is as shown in Figure 2, comprises time synchronized client 10, load-balancing device 201, a plurality of Connection Service device 202, network event transmitter 203, signal repeater 204, metamessage server 205, message recipient 206, authorization control device 207.
Communication annexation between these equipment is: time synchronized client 10 is set up data communication through load-balancing device 201 with Connection Service device 202 and is connected; Network event transmitter 203 is set up data communication with Connection Service device 202 and is connected; Authorization control device 207 is set up data communication with Connection Service device 202 and is connected; Signal repeater 204 is set up data communication with Connection Service device 202 and is connected; Message recipient 206 and metamessage server 205 and Connection Service device 202 are set up data communication respectively and are connected, and set up data communication between metamessage server 205 and the Connection Service device 202 and connect.
It below is the operation logic of each device in the full-time on-line system 20 of vehicle of present embodiment.
Load-balancing device 201 is assigned to the strategy that the communication of time synchronized client 10 connects according to load balancing on many Connection Service devices, to realize the cluster of Connection Service device.Time synchronized client 10 keeps and being connected of Connection Service device 202 through the mode of sending heartbeat packet.
Connection Service device 202 is realized multiple function: receive from time synchronized client 10 and distribute the connection request of coming through load-balancing device 201; When connect accomplishing, the information of each connection (is comprised IP and the port of equipment or user's unique identification, client, the IP and the port of Connection Service device; The inside end slogan of Connection Service device and hyphen etc.) be registered to metamessage server 205; When connecting disconnection, nullify the connection on the metamessage server 205; The packet from time synchronized client 10 that receives is sent to corresponding external application servers (being instant communication server 210 and synchronization server 211 in the present embodiment) through signal repeater 204, and the information that receives from message recipient pushes and is pushed to time corresponding sync client 10.In addition, Connection Service device 202 also carries out resource release through the connection pool on the management server to overtime connection.
Authorization control device 207 is set up data communication with outside single logging-on server 208 and is connected, and whether proving time sync client 10 is legal.
Metamessage server 204 provides the registration and unregistration service of connection, the annexation between record Connection Service device 202 and the information synchronization client 10, and the connection pool on the management server provides the query function to link information.Metamessage server 204 can be connected in which process of which Connection Service device according to the identification number query time sync client 10 of device clients and the relevant information of hyphen.
There are two kinds of technological means to handle the processing procedure of checking and metamessage server 205 records.First kind of technological means is after authorization control device 207 verifies out that time synchronized client 10 is legal, again the annexation between record Connection Service device 202 and the time synchronized client 10 in metamessage server 205.Second kind of technological means is the annexation that in metamessage server 205, writes down earlier between Connection Service device 202 and the time synchronized client 10; Whether legal through 207 proving time of authorization control device sync client 10 again, verifying out that time synchronized client 10 deletes the record of correspondence in the metamessage server 205 after illegal again.
Network event transmitter 203 sends to outside network event with the network event between time synchronized client 10 and the Connection Service device 202 and subscribes to device 30.
The packets of information that signal repeater 204 time of reception sync client 10 are sent through Connection Service device 202; Application service under the identifying information bag is transmitted to packets of information the application server (being instant communication server 210 and synchronization server 211 in the present embodiment) of corresponding outside.
Message recipient 206 receives the packets of information of outside application server (being instant communication server 210 and synchronization server 211 in the present embodiment); Through the corresponding Connection Service device 202 of metamessage server 205 inquiries, send to time corresponding sync client 10 by Connection Service device 202 again.
When time sync client 10 with after the current Connection Service device that is connected 202 breaks off, time synchronized client 10 can connect once more and goes up the cloud platform, need connect the Connection Service device 202 that the last time connects again this moment with time synchronized client 10.Present embodiment can adopt two kinds of technological means to reach this purpose, and first kind of technological means is that the strategy through design on load-balancing device 201 makes time synchronized client 10 still set up the communication connection with the preceding Connection Service device 202 that once is connected when time synchronized client 10 connects once more.Second kind of technological means is when time synchronized client 10 connects once more, to pass through the time synchronized client 10 of record on the inquiry metamessage server 205 and the corresponding relation between the Connection Service device 202, makes time synchronized client 10 still set up communication with the preceding Connection Service device 202 that once is connected and connects.
First embodiment of vehicle-mounted time synchronized method of servicing
Fig. 3 shows the flow process of first embodiment of vehicle-mounted time synchronized method of servicing of the present invention.See also Fig. 3, details are as follows for each step of the method for present embodiment.
Step S10: the time synchronized client is set up with the full-time on-line system of vehicle and is connected in real time.
This step can have two kinds of implementations, and first kind of implementation is as shown in Figure 6:
Step S100: the time synchronized client is initiated to connect.
Step S101: the load-balancing device scheduling connects.
The connection that load-balancing device is initiated the time synchronized client according to the load balancing strategy on it is assigned to corresponding Connection Service device.
Step S102: the Connection Service device receives and connects, if can receive connection, then gets into step S103, if can't receive connection, then gets into step S112.
Step S103: the time synchronized client is sent login authentication information.
Step S104: the time synchronized client is transmitted to the authorization control device with the login authentication information request.
Step S105: the authorization control device judges whether to allow login authentication information to pass through, if allow through get into step S106, if do not allow through get into step S112.
Step S106: whether logon server (single logging-on server) checking login is passed through, if the checking login through get into step S107, if the checking login can't through get into step S112.
Step S107: Connection Service device, time synchronized client and user profile are registered to the metamessage server.
Step S108: judge whether metamessage succeeds in registration.If succeed in registration then get into step S109, if registration failure then get into step S112.
Step S109: the network event of successful connection is transmitted to the network event transmitter.
Step S110: the network event transmitter sends to the event subscription device and connects the incident of setting up.
Step S111: the Connection Service device is replied the information that successful connection is set up to the time synchronized client.
Step S112: connection closed, login stops.
Second kind of implementation is as shown in Figure 7.
Step S200: the time synchronized client is initiated to connect.
Step S201: the load-balancing device scheduling connects.
The connection that load-balancing device is initiated the time synchronized client according to the load balancing strategy on it is assigned to corresponding Connection Service device.
Step S202: the Connection Service device receives and connects, if can receive connection, then gets into step S203, if can't receive connection, then gets into step S213.
Step S203: the Connection Service device, the time synchronized client-side information that connect at the metamessage server registration, and mark login authentication state not.
Step S204: judge whether metamessage succeeds in registration, if succeed in registration then get into step S205, if registration failure then get into step S213.
Step S205: the time synchronized client is sent login authentication information.
Step S206: the Connection Service device is transmitted to the authorization control device with logging request.
Step S207: the authorization control device judges whether to allow login authentication information to pass through, if allow then get into step S208, if do not allow then get into step S213.
Step S208: judge whether logon server checking login is passed through, if through would get into step S209, if not through get into step S213.
Step S209: the user profile that connects to the metamessage server update, and mark login authentication pass through state.
Step S210: the network event of successful connection is transmitted to the network event transmitter.
Step S211: the network event transmitter sends to the event subscription device and connects the incident of setting up.
Step S212: the Connection Service device is replied successful connection to the time synchronized client and is set up.
Step S213: connection closed, login stops.
Step S12: the time synchronized client will with throw to the time server in high in the clouds of the network event that the full-time on-line system of vehicle connects.
Step S14: time server is synchronized to the time synchronized client with temporal information after receiving the network event that connects that the time synchronized client dishes out.
Can find out that from this embodiment time synchronized client one connects the upward full-time on-line system of vehicle, will carry out the operation of time synchronized.The time server of the standard on time server and the Internet carries out regularly synchronously.
Second embodiment of vehicle-mounted time synchronized method of servicing
Fig. 4 shows the flow process of second embodiment of vehicle-mounted time synchronized method of servicing of the present invention.See also Fig. 4, details are as follows for each step of the method for present embodiment.
Step S20: the time synchronized client is set up with the full-time on-line system of vehicle and is connected in real time.
This step can have two kinds of implementations, and first kind of implementation is as shown in Figure 6:
Step S100: the time synchronized client is initiated to connect.
Step S101: the load-balancing device scheduling connects.
The connection that load-balancing device is initiated the time synchronized client according to the load balancing strategy on it is assigned to corresponding Connection Service device.
Step S102: the Connection Service device receives and connects, if can receive connection, then gets into step S103, if can't receive connection, then gets into step S112.
Step S103: the time synchronized client is sent login authentication information.
Step S104: the time synchronized client is transmitted to the authorization control device with the login authentication information request.
Step S105: the authorization control device judges whether to allow login authentication information to pass through, if allow through get into step S106, if do not allow through get into step S112.
Step S106: whether logon server (single logging-on server) checking login is passed through, if the checking login through get into step S107, if the checking login can't through get into step S112.
Step S107: Connection Service device, time synchronized client and user profile are registered to the metamessage server.
Step S108: judge whether metamessage succeeds in registration.If succeed in registration then get into step S109, if registration failure then get into step S112.
Step S109: the network event of successful connection is transmitted to the network event transmitter.
Step S110: the network event transmitter sends to the event subscription device and connects the incident of setting up.
Step S111: the Connection Service device is replied the information that successful connection is set up to the time synchronized client.
Step S112: connection closed, login stops.
Second kind of implementation is as shown in Figure 7.
Step S200: the time synchronized client is initiated to connect.
Step S201: the load-balancing device scheduling connects.
The connection that load-balancing device is initiated the time synchronized client according to the load balancing strategy on it is assigned to corresponding Connection Service device.
Step S202: the Connection Service device receives and connects, if can receive connection, then gets into step S203, if can't receive connection, then gets into step S213.
Step S203: the Connection Service device, the time synchronized client-side information that connect at the metamessage server registration, and mark login authentication state not.
Step S204: judge whether metamessage succeeds in registration, if succeed in registration then get into step S205, if registration failure then get into step S213.
Step S205: the time synchronized client is sent login authentication information.
Step S206: the Connection Service device is transmitted to the authorization control device with logging request.
Step S207: the authorization control device judges whether to allow login authentication information to pass through, if allow then get into step S208, if do not allow then get into step S213.
Step S208: judge whether logon server checking login is passed through, if through would get into step S209, if not through get into step S213.
Step S209: the user profile that connects to the metamessage server update, and mark login authentication pass through state.
Step S210: the network event of successful connection is transmitted to the network event transmitter.
Step S211: the network event transmitter sends to the event subscription device and connects the incident of setting up.
Step S212: the Connection Service device is replied successful connection to the time synchronized client and is set up.
Step S213: connection closed, login stops.
Step S22: the time synchronized client receives the time synchronized request that the user sends.
Step S24: the time synchronized request that the full-time on-line system of vehicle sends the time synchronized client is transmitted to time server.
Step S26: time server is synchronized to the time synchronized client with temporal information after receiving the time synchronized request of time synchronized client.
The 3rd embodiment of vehicle-mounted time synchronized method of servicing
Fig. 5 shows the flow process of the 3rd embodiment of vehicle-mounted time synchronized method of servicing of the present invention.See also Fig. 5, details are as follows for each step of the method for present embodiment.
Step S30: the time synchronized client is set up with the full-time on-line system of vehicle and is connected in real time.
This step can have two kinds of implementations, and first kind of implementation is as shown in Figure 6:
Step S100: the time synchronized client is initiated to connect.
Step S101: the load-balancing device scheduling connects.
The connection that load-balancing device is initiated the time synchronized client according to the load balancing strategy on it is assigned to corresponding Connection Service device.
Step S102: the Connection Service device receives and connects, if can receive connection, then gets into step S103, if can't receive connection, then gets into step S112.
Step S103: the time synchronized client is sent login authentication information.
Step S104: the time synchronized client is transmitted to the authorization control device with the login authentication information request.
Step S105: the authorization control device judges whether to allow login authentication information to pass through, if allow through get into step S106, if do not allow through get into step S112.
Step S106: whether logon server (single logging-on server) checking login is passed through, if the checking login through get into step S107, if the checking login can't through get into step S112.
Step S107: Connection Service device, time synchronized client and user profile are registered to the metamessage server.
Step S108: judge whether metamessage succeeds in registration.If succeed in registration then get into step S109, if registration failure then get into step S112.
Step S109: the network event of successful connection is transmitted to the network event transmitter.
Step S110: the network event transmitter sends to the event subscription device and connects the incident of setting up.
Step S111: the Connection Service device is replied the information that successful connection is set up to the time synchronized client.
Step S112: connection closed, login stops.
Second kind of implementation is as shown in Figure 7.
Step S200: the time synchronized client is initiated to connect.
Step S201: the load-balancing device scheduling connects.
The connection that load-balancing device is initiated the time synchronized client according to the load balancing strategy on it is assigned to corresponding Connection Service device.
Step S202: the Connection Service device receives and connects, if can receive connection, then gets into step S203, if can't receive connection, then gets into step S213.
Step S203: the Connection Service device, the time synchronized client-side information that connect at the metamessage server registration, and mark login authentication state not.
Step S204: judge whether metamessage succeeds in registration, if succeed in registration then get into step S205, if registration failure then get into step S213.
Step S205: the time synchronized client is sent login authentication information.
Step S206: the Connection Service device is transmitted to the authorization control device with logging request.
Step S207: the authorization control device judges whether to allow login authentication information to pass through, if allow then get into step S208, if do not allow then get into step S213.
Step S208: judge whether logon server checking login is passed through, if through would get into step S209, if not through get into step S213.
Step S209: the user profile that connects to the metamessage server update, and mark login authentication pass through state.
Step S210: the network event of successful connection is transmitted to the network event transmitter.
Step S211: the network event transmitter sends to the event subscription device and connects the incident of setting up.
Step S212: the Connection Service device is replied successful connection to the time synchronized client and is set up.
Step S213: connection closed, login stops.
Step S32: the time synchronized client is every spontaneously sends the time synchronized request at a distance from the cycle of setting.
Step S34: the full-time on-line system of vehicle is transmitted to time server with the time synchronized request of the spontaneous initiation of time synchronized client.
Step S36: time server is synchronized to the time synchronized client with temporal information after receiving the time synchronized request of time synchronized client.
The foregoing description provides to those of ordinary skills and realizes or use of the present invention; Those of ordinary skills can be under the situation that does not break away from invention thought of the present invention; The foregoing description is made various modifications or variation; Thereby protection scope of the present invention do not limit by the foregoing description, and should be the maximum magnitude that meets the inventive features that claims mention.