Background technology
Along with the continuous development of software, network, mechanics of communication, interpersonal communication develops into videoconference of today, video conference from the single meet in past.People utilize computer technology to shift person to person's communication onto a higher level, are tending towards the continuous downward modulation of mobile communication rate, and now people at any time, can link up Anywhere easily.
Instant messaging is greater invention after mobile phone, and the advantage bigger than mobile communication arranged.The information source of obtaining is broader, content is abundanter, it is rapider to transmit.
Immediate communication tool with respect to the computer user is more and more, then for car owners, almost is at present not get in touch between automobile friend and the automobile friend.The present invention has just solved the instant communication difficult problem between automobile friend and the automobile friend.Interconnecting is a kind of trend of development, and no one is thought of as and is ill-informed main body.Society is an information age now, and the information of having grasped just is equivalent to grasp wealth.
Along with the continuous development of vehicle GPS, its function is also constantly perfect.At present the used gps system of user can only provide the navigation information in geographical position, and in fact the user need obtain be not only navigation information, more need to obtain other peripheral information that some are associated.
Please refer to Fig. 1, the Chinese invention patent specification that the patent No. is 03128374.8, name is called " based on wireless interconnected positioning service net " discloses a kind of wireless interconnected positioning service net, comprises wireless interconnected accesss partly (A), localization part (B); Described wireless interconnected access part (A) can support simultaneously that note inserts (3), Internet inserts (4) and WLAN (wireless local area network) inserts (5); Described localization part (B) is made up of position access service (7), LBS location-based service (8) and GPS location-based service (10); It is characterized in that: form by wireless interconnected access part (A), localization part (B), core drive part (C) and issuing service part (D); Described core drive part (C) is by SMS, LBS, GPS issuing interface (14), and GIS data, services (15) and database (16) are formed; Described issuing service part (D) by Location based service net (18), in love 100 (19), know way navigation (20), Surveillance center (21), WAP and use (22), use medium (23) and third party's plug-in units (24) such as MSN, ICQ are formed; Connected relation between above-mentioned four parts is: wireless interconnected access part (A) is communicated with localization part (B) by wired layer (17); Core drive part (C) is communicated with localization part (B) by the J2EE application server; Core drive part (C) is communicated with issuing service part (D) by SMS, LBS, GPS issuing interface (14); Mobile hand-held device (1) is communicated with note access (3) by sending short messages to Short Message Service Gateway (2) as mobile phone, PDA etc.; The application of positioning service net (6), its notebook computer (6.2), PDA (6.3) insert (3) by SMS, GPRS, CDMA with note and are communicated with, its PC (6.1), notebook computer (6.2) insert (4) by the Internet with Internet and are communicated with, and its PC (6.1), notebook computer (6.2), PDA (6.3), Java mobile phone (6.4), GPRS mobile phone (6.5), CDMA mobile phone (6.6) insert (5) by SMS, GPRS, CDMA with WLAN (wireless local area network) and be communicated with; Position access service (7) is communicated with LBS location-based service (8) by TCP/IP; LBS location-based service (8) is communicated with positioning service merchant (9) by the Internet; Positioning service merchant (9) is communicated with mobile hand-held device (1); Position access service (7) is communicated with GPS location-based service (10) by TCP/IP; GPS location-based service (10) comprises terminal container (11); GPS terminal container (11) is communicated with Short Message Service Gateway (2) by the Internet; Short Message Service Gateway (2) is communicated with GPS terminal (12) by wireless network; GPS terminal container (11) but the various GPS final drive of dynamic load (13).
Though above-mentioned patent provides wireless interconnected positioning service net, can not specific implementation to the support of the instant messaging of GPS terminal.
Summary of the invention
In order to solve prior art, the invention provides a kind of instant communicating system and method for the GPS of support terminal to the unsupported problem of the instant messaging of GPS terminal.
A kind of instant communicating system of supporting the GPS terminal comprises GIS server, access server, distributed service server and central server, and described GIS server is used for being responsible for user's geographical location information is analyzed and handled; Described access server is used for the server of being responsible for the system load balancing scheduling, managing other; Described distributed service server is used for being responsible for the processes user data business; Described central server is used for being responsible for all online users' internal document management.
A kind of instant communication method that is used for described instant communicating system comprises:
The terminal use is by sending log on command to described access server;
Described access server returns a redirect command for described terminal use according to distribution principle;
Described terminal use retransmits and send logging request to arrive service server after being redirected;
The described terminal use's of described service server judging logging request, success is logined the back and is upgraded user's online information memory table in the described service server, and described terminal use's session key and place business server information sent to described central server and group's server;
Described service server notifies the good friend to reach the standard grade, and wherein, directly notifies with the good friend under the professional server, and different server then sends good friend's notification line by described central server;
Described service server notifies described this terminal use of group's server to reach the standard grade, and wherein, described group's server is enumerated the group who has, and the notice that the terminal use reaches the standard grade is mass-sended to online group members;
The terminal use successfully logins the back transmission and obtains buddy list, group-list, deferred information order;
Realize linking up with other good friends after the good friend logins successfully, wherein, directly transmit with the good friend's message under the professional server, different server messages then arrives the terminal use through described central server to service server at last;
If not online or send unsuccessful message for the user, service server need be saved in raw information in the database, and the user sends to the terminal use after the login next time.
A kind of instant communication method that is used for described instant communicating system comprises:
The good friend that success is logined sends the request of the service of obtaining;
The request COS of the described terminal of described service server judging is directly obtained transaction results by accessing database at a data service; If the service that needs other types is then by service server and content server or third-party server communication, to obtain correlated results;
Described service server returns to terminal with the result;
Described terminal shows the user with the result.
A kind of instant communication method that is used for described instant communicating system comprises:
Login successful good friend and send group's message to described service server;
Described service server is forwarded to group server with content after receiving group's service business request of described terminal;
Described group's server sends on the service server according to the service server position at group members place, sends to the terminal use by service server;
Described group's server is in the process that sends message, if the good friend is online message is not kept in group message table, and the off-line ID of group members is labeled as current message id, the follow-up off-line Record ID when pre-group that has deferred information also can not revise offline user was revised as 0 with it again after the off-line record is obtained in user's login;
The transmission of described group's server is replied transaction and is arrived terminal through service server.
The present invention has following beneficial effect:
Instant communicating system of the present invention and method make between the terminal use or terminal use and WEB user between information interconnect.
Embodiment
Introduce an execution mode of instant communicating system of the present invention below.
Please refer to Fig. 2, the instant communicating system of present embodiment comprises GIS server, access server, distributed service server, central server, group's server, WEB load equalizer, concentrating type WEB server, database server, medium and content server, file transfer server, network memory and content management server.
Wherein, be used to realize having of GPS terminal network service:
Access server (ConnSrv) is used for being responsible for the server that system load balancing is dispatched, managed other, is first inlet of user;
Distributed service server (BusiSrv) is used for being responsible for the processes user data business, forms user's instant messaging network with central server;
Central server (CenterSrv) is used for being responsible for all online users' internal document management, and forms the instant messaging network as each distributed service server network bridge.
GIS server (GISTrackSrv) is used for being responsible for user's GIS information analysis and processing;
File transfer server (TransSrv), the file, the media data that are used for being responsible between the transparent forwarding client transmit, as file transfer bridge between the user;
Database server oracle is used to adopt principal and subordinate's database of backing up in realtime, and guarantees the stable service of database security;
Medium and content server (NAS) are used to support super large storage (T rank), as multimedia document and shared file storage;
Group's server, the group's memory management and the group's message that are used for the system that is responsible for are transmitted in real time;
Wherein, be used to realize having of Web network service:
Web load balancing (LVS) is used to adopt Linux Lvs to carry out the load balance scheduling of web request;
The web server increases as required;
Central database is used for the central database of sharing with Terminal Service;
Network memory is used for the network memory shared with Terminal Service, storage multimedia document and shared file;
Content management server is used for web operation website back-end data data management and editor.
The GPS terminal is distributed described distributed service server by described access server, connect with service server after the service of success registering service, described GPS terminal sends heartbeat every a ticket reserving time and reports that described distributed service server keeps link, described distributed service server is kept at user's online information in the internal memory, and user ID and place server info sent to described central server and described group's server, the described ticket reserving time of service server sends heartbeat and reports that described central server and described group's server keep the link of described distributed service server.
WEB user distributes described concentrating type WEB server by described WEB load equalizer, WEB user logins successfully back preservation user's online information in described concentrating type WEB server memory, and the described concentrating type WEB of user ID and place server info sent to described central server and described group server, described concentrating type WEB server sends the link that described concentrating type WEB server is kept in the heartbeat report every a ticket reserving time to described central server and described group's server.WEB user then adopts the mode of ajax repeating query database to obtain user-dependent information (at present that is that all right is ripe for the PUSH message technology of WEB, though it is more efficient to push this pattern efficient).
The WEB cluster server is used as service server in native system another one embodies, and is used as service server in principle in communication and treats.
The distribution situation of internal storage data is described below between each server:
Information and buddy list that ID, session KEY, User Status, the user of user under the described distributed service server preservation book server uses always;
Described central server is preserved the server ip at overall user's ID, session KEY, User Status and place;
Described group's server is preserved overall user ID, session KEY, User Status and place server ip, group's information and group members row column information.
Introduce the several embodiment that utilize instant communicating system of the present invention to realize instant messaging below.
One, the communication between the automobile friend user
1) terminal use is by sending log on command to access server;
2) access server returns a redirect command according to distribution principle to the user;
3) terminal use retransmits and to send logging request to arrive service server after being redirected;
4) service server judging terminal use's logging request.Success is logined the back and is upgraded user's online information memory table in the service server, and user's session key and place business server information sent to center and group's server;
5) service server notifies automobile friend's good friend to reach the standard grade, and directly notifies with the good friend's server under the professional server, and different server then sends good friend's notification line by central server;
6) this automobile friend of service server notice group server reaches the standard grade, and group's server is enumerated the group that the automobile friend has, and the notice that the automobile friend reaches the standard grade is mass-sended to online group members;
7) terminal is successfully logined the back transmission and is obtained buddy list, group-list, deferred information order;
8) automobile friend will realize linking up after logining success with other automobile friends:
Directly transmit with the automobile friend's message under the professional server
Different server messages then arrives the terminal use through central server to service server at last, and replying of terminal use then is above-mentioned reverse.
9) if not online or send unsuccessfully for some important messaging service server users, then service server need be saved in raw information in the database, and the user sends to the terminal use after the login next time.
Two, the communication of automobile friend's acquisition request service
1) automobile friend of success login sends the request of the service of obtaining;
2) the request COS of service server judging terminal is directly obtained transaction results by accessing database at a data service; If need the service of other types such as map is relevant, content service or third party's service be then by service server and content server or third-party server communication, to obtain correlated results;
3) service server returns to terminal with the result;
4) terminal shows the user with the result.
Three, the communication between automobile friend and the automobile friend group
1) automobile friend that login is successful sends group's message to service server;
2) service server will receive that group's service business request package content of terminal is forwarded to group server;
3) group's server sends on the service server one by one according to the service server position at group members place, sends to the terminal use by service server;
4) group's server is in the process that sends message, if the automobile friend is online message is not kept in group message table, and the off-line ID of group members is labeled as current message id, the follow-up off-line Record ID when pre-group that has deferred information also can not revise offline user was revised as 0 with it again after the off-line record is obtained in user's login;
5) transmission of group's server is replied transaction and is arrived terminal through service server.
Instant communicating system of the present invention and method make between the terminal use or terminal use and WEB user between information interconnect.For example, the terminal use can and an other station terminal user between add as a friend, share the geographical position of oneself, and WEB user can initiate the self-driving travel activity, organizes the terminal use, successfully takes the terminal use to destination by navigation system.The automobile friend can increase or delete good friend operation, to the good friend classify, free cohort and interconnect with WEB user.
Above-mentioned embodiment has been described in realization in order to demonstrate the invention.But other variations of the present invention and modification are conspicuous for those skilled in the art, and any modification/variation in essence disclosed in this invention and basic principle scope or imitation conversion all belong to claim protection range of the present invention.