CN105357108B - A kind of method that instant communication client state is presented - Google Patents
A kind of method that instant communication client state is presented Download PDFInfo
- Publication number
- CN105357108B CN105357108B CN201510881555.6A CN201510881555A CN105357108B CN 105357108 B CN105357108 B CN 105357108B CN 201510881555 A CN201510881555 A CN 201510881555A CN 105357108 B CN105357108 B CN 105357108B
- Authority
- CN
- China
- Prior art keywords
- client
- state
- bluetooth
- presented
- instant communication
- 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.)
- Active
Links
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a kind of method that instant communication client state is presented.The change of connection signal strength values between bluetooth equipment more can truly reflect the distance change of equipment room.The present invention passes through its bluetooth connection situation with corresponding mobile phone of instant messaging computer client monitors, when user holds mobile phone and leaves office station, bluetooth connection signal gradually weakens, at this moment automatic triggering logs in cell-phone customer terminal, and the state of computer client is presented and is automatically updated into " leaving ", to realize the automatic accurate presentation of subscription client seamless switching and state, Consumer's Experience is lifted.
Description
Technical field
The invention belongs to computer network communication field, and in particular to the side that a kind of instant communication client state is presented
Method.
Background technology
Instant messaging services IM, i.e. Instant Messaging, is a kind of communication service based on internet.Nearest
Rapidly developed within several years, user can reach the mesh of communication whenever and wherever possible and acquisition of information using instant messaging service
, increasingly become one of not retrievable critical services in enterprise-level office cooperation field.
Instant communication client is generally divided into computer client and cell-phone customer terminal, to adapt to different office scenes.When
User after being logged in using the computer client of desk tops, if due to have a meeting or it is outgoing leave office station when, often
Need manual entry cell-phone customer terminal that oneself moment can just be in the connection of instant messaging, and automated log on hand can not be realized
Machine client.
User Status, it is that in instant messaging, user is shown on instant communication server client and server
State, typically have it is online, offline, stealthy, leave etc. it is a variety of.User can issue the shape of oneself by instant communication client
State, and check the state of its good friend.The change of instant communication user status, actively selected often by user at client
A certain state options are manually entered state content, or whether computer client makes according to user in certain time threshold value
The input equipments such as used keyboard and mouse, automatic User Status of changing is " online " or " leaving ".If actual user is in office station
When place sits down and write or handled the affairs unrelated with computer, instant messaging computer client can be also mistaken for " leaving ", and worked as and used
When family is temporarily away from station, " leaving " time threshold for being assert by being not up to client, and be unable to reach real-time release " from
Open " purpose of state, cause its good friend can not truly judge the logging status of user, communication has blindness.
These limitations obviously can not meet the needs of user is to real-time seamless communication, and the present invention complies with development trend, solution
Certainly this kind of confinement problems.
The content of the invention
It is an object of the invention to provide a kind of simple method realized instant communication client state exactly and presented.Mesh
Preceding smart mobile phone and notebook computer can generally use embedded with bluetooth to carry out wireless connection, and desktop computer is being mounted with indigo plant
After tooth adapter, it can also be connected using bluetooth connection mode with mobile phone wireless.It is blue used in the mobile devices such as general mobile phone
Tooth transmission range is 10 meters or so, it is contemplated that the interference of environmental factor and channel frequency, at (such as 2-3 rice) closer to the distance, and profit
Come judging distance it is feasible with signal intensity of bluetooth connection value.Using this feature, instant messaging computer client can supervise
Its bluetooth connection situation with corresponding mobile phone is surveyed, when bluetooth connection signal gradually weakens, automatic triggering logs in cell-phone customer terminal,
The state of computer client is presented afterwards and is automatically updated into " leaving ", to realize subscription client seamless switching and state
Automatic accurate presentation, lift Consumer's Experience.
The present invention adopts the following technical scheme that realization:A kind of method that instant communication client state is presented, including
Following steps:
(1) bluetooth connection established between different terminal equipment;
After (2) first clients log in, when second the first client of client distance is less than or equal to setpoint distance value, the
The current signal intensity of bluetooth connection value of one client records, is designated as initial intensity value;
(3) first clients send login account to the second client by bluetooth and password, the second client storage are stepped on
Record account and password;
(4) first clients monitor bluetooth connection situation in real time, when connection signal strength values are reduced to the of initial intensity value
During one setting ratio, the first client sends the order for starting the second client by bluetooth to the second client;
(5) second clients receive startup order after, open instant communication client software, and the second client with
The login account and password of storage are logged in;
After (6) second client Successful logins, the state of the first client is switched to " leaving ".
Wherein, setpoint distance value is less than or equal to 0.5 meter in described step (2).
Wherein, the first setting ratio is 20%-10% in described step (4).
Wherein, also include between described step (3) and step (4):First client monitors bluetooth connection situation in real time,
When connecting signal strength values and being reduced to the second setting ratio of initial intensity value, the first client is by bluetooth to the second client
Send the instruction of the login account and password that take out storage.
Wherein, the second described setting ratio is 60%-40%.
Wherein, described step (6) specifically includes step:
After (601) second client Successful logins, server is according to the first client and the second client login time
Successively, the state of the first client is changed to " leaving ", and by the state of the state of the first client and the second client to
The terminal device of other login accounts in server is issued;
When (602) first clients receive the state of the second client of the same login account that server is sent, by
The state of one client switches to " leaving ".
The present invention is relative to the advantages of background technology:
The present invention utilizes existing ripe Bluetooth technology, and the change of the connection signal strength values between bluetooth equipment can be more
Truly reflect the distance change of equipment room, when in scene of handle official business, when user holds mobile phone and leaves office station, automatic realization
Instant messaging cell-phone customer terminal logs in and accurately presents and issue the real leave state of user, without increasing the manual behaviour of user
Make.Meanwhile by Bluetooth transmission user login account and password, decrease the memory burden of user and input the several of error
Rate.The present invention makes cellphone subscriber when using instant messaging with higher ageing, and more true and accurate is presented also in state.
Brief description of the drawings
Fig. 1 is the relation schematic diagram of the bluetooth signal intensity and distance utilized in the present invention;
Fig. 2 is the key step schematic diagram realized instant communication client state and presented of the present invention;
Fig. 3 is the instant messaging cell-phone customer terminal automated log on detailed step schematic diagram of the present invention;
Fig. 4 is that the present invention is that computer client logging status changes into detailed step schematic diagram when leaving.
Embodiment
Below with reference to accompanying drawing, clear, complete description is carried out to the technical scheme in the embodiment of the present invention.The present invention exists
Instant communication client software is respectively mounted at computer terminal and mobile phone terminal before use, and ensures that terminal device has had
It is standby and open Bluetooth function, need that Bluetooth adapter and driving are installed if no Bluetooth function.
In periodical《Computer application》O. 11th of volume 31 in 2011《Bluetooth cellular phone indoor locating system》In one text, to room
Interior bluetooth transmitting-receiving model is tested, as shown in figure 1, show apart from bluetooth source it is closest when, signal strength values are maximum,
At 0-0.5 rice, signal intensity value changes are little;In 0.5-3 rice distance, as distance increases, the decay of bluetooth signal intensity value
Substantially;At for 1 meter, bluetooth signal intensity about drops to 50%, and at for 2 meters, bluetooth signal intensity about declines
To 15%, at for 3 meters, bluetooth signal intensity about drops to 1%.At a distance of it is farther apart from when, because indoor environment is more multiple
It is miscellaneous, wave phenomenon in attenuation process be present.
Therefore in the present invention, the unstability of numerical value during change in signal strength is considered, in two terminals at a distance of 0-0.5
In the range of rice, initial intensity value is taken.When bluetooth signal intensity drops to 60%-40%, it is believed that two terminals are at a distance of 1 meter or so.
When bluetooth signal intensity drops to 20%-10%, it is believed that at this moment two terminals judge user to leave at a distance of 2 meters or so.
The present invention comprises the following steps (as shown in Figure 2):
A, the bluetooth connection of different terminal equipment is established;
Step 1:Start office computer, open its Bluetooth function;
Step 2:User mobile phone is started shooting, and opens its Bluetooth function;
Step 3:User mobile phone and office computer are subjected to bluetooth equipment pairing;
B, bluetooth connection signal initial intensity value is obtained;
Step 1:Instant communication client is respectively mounted on office computer and mobile phone, is then turned on simultaneously log-in instant communication
Computer client;
Step 2:Ensure that office computer and mobile phone terminal equipment distance are less than 0.5 meter, the current indigo plant of computer client records
Tooth connects signal strength values, is designated as initial intensity value (unit dbm);
C, encrypted transmission log-on message;
Login account and password after computer client sends encryption by bluetooth to cell-phone customer terminal, will after mobile phone receives
It is stored in the SQLite database user tables of data of cell-phone customer terminal;
D, Bluetooth signal is decayed, and is judged that user leaves, is logged in cell-phone customer terminal, as shown in Figure 3;
Step 1:Computer client monitors bluetooth connection situation in real time, when connection signal strength values are reduced to initial intensity value
50% when, computer client sends the login account taken out SQLite data place and stored to corresponding mobile phone terminal by bluetooth approach
Number and password instruction;
Step 2:When computer client monitors signal intensity of bluetooth connection value is reduced to the 15% of initial intensity value, then sentence
Break and left for user, computer client sends the order for starting cell-phone customer terminal by bluetooth to mobile phone terminal;
Step 3:After mobile phone terminal receives startup order, instant messaging cell-phone customer terminal, and the account to store before are opened
Number password is logged in;
E, computer client state is changed to " leaving ".As shown in Figure 4.
Step 1:After instant messaging cell-phone customer terminal Successful login, instant communication server can find same login number
Have login in computer client and cell-phone customer terminal, according to the priority of login time, by the logging status of computer client from
It is dynamic to be changed to " leaving ";
Step 2:The status display of this terminal is " leaving " by computer client;
Step 3:Instant communication server is by the computer client state of jack per line and cell-phone customer terminal state to this clothes
The registration terminal of all login accounts in business device is issued.
After the present invention program can quickly and easily realize that user truly leaves computer client, automated log on cell phone customer
End, and computer client state is switched into " leaving " automatically, to ensure that other users obtain the real SOT state of termination, so as to root
Different instant messaging business is initiated according to different terminals.
Finally it should be noted that:The above embodiments are merely illustrative of the technical scheme of the present invention and are not intended to be limiting thereof, to the greatest extent
The present invention is described in detail with reference to above-described embodiment for pipe, those of ordinary skills in the art should understand that:Still
Detail modifications or equivalent substitution can be carried out to the embodiment of the present invention, and without departing from spirit and scope of the invention
Any modification or equivalent substitution, it all should cover among scope of the presently claimed invention.
Claims (6)
1. a kind of method that instant communication client state is presented, it is characterised in that comprise the following steps:
(1) bluetooth connection established between different clients;
After (2) first clients log in, when second the first client of client distance is less than or equal to setpoint distance value, the first visitor
Family end records current signal intensity of bluetooth connection value, is designated as initial intensity value;
(3) first clients send login account and password by bluetooth to the second client, and the storage of the second client logs in account
Number and password;
(4) first clients monitor bluetooth connection situation in real time, are set when connection signal strength values are reduced to the first of initial intensity value
During certainty ratio, the first client sends the order for starting the second client by bluetooth to the second client;
After (5) second clients receive startup order, instant communication client software is opened, and the second client is to store
Login account and password logged in;
After (6) second client Successful logins, the state of the first client is switched to " leaving ".
2. the method that a kind of instant communication client state according to claim 1 is presented, it is characterised in that described step
Suddenly setpoint distance value is less than or equal to 0.5 meter in (2).
3. the method that a kind of instant communication client state according to claim 1 is presented, it is characterised in that described step
Suddenly the first setting ratio is 20%-10% in (4).
4. the method that a kind of instant communication client state according to claim 1 is presented, it is characterised in that described step
Suddenly also include between (3) and step (4):First client monitors bluetooth connection situation in real time, when connection signal strength values are reduced to
During the second setting ratio of initial intensity value, the first client sends the login account for taking out storage by bluetooth to the second client
Number and password instruction.
5. the method that a kind of instant communication client state according to claim 4 is presented, it is characterised in that described the
Two setting ratios are 60%-40%.
6. the method that a kind of instant communication client state according to claim 1 or 4 is presented, it is characterised in that:It is described
The step of (6) specifically include step:
After (601) second client Successful logins, server according to the first client and the priority of the second client login time,
The state of first client is changed to " leaving ", and by the state of the state of the first client and the second client to server
The client of interior all login accounts is issued;
When (602) first clients receive the state of the second client of the same login account that server is sent, by the first visitor
The state at family end switches to " leaving ".
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510881555.6A CN105357108B (en) | 2015-12-03 | 2015-12-03 | A kind of method that instant communication client state is presented |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510881555.6A CN105357108B (en) | 2015-12-03 | 2015-12-03 | A kind of method that instant communication client state is presented |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105357108A CN105357108A (en) | 2016-02-24 |
CN105357108B true CN105357108B (en) | 2018-03-02 |
Family
ID=55332981
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510881555.6A Active CN105357108B (en) | 2015-12-03 | 2015-12-03 | A kind of method that instant communication client state is presented |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105357108B (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106059901A (en) * | 2016-06-24 | 2016-10-26 | 张水成 | Method and system for notifying usage status of instant messaging terminal |
CN107104878B (en) * | 2017-03-24 | 2020-07-03 | 北京小米移动软件有限公司 | User state changing method and device |
CN108881929B (en) * | 2017-05-10 | 2021-04-27 | 武汉斗鱼网络科技有限公司 | Method and device for setting login prompt of live broadcast room |
CN108156311B (en) * | 2017-12-05 | 2021-04-13 | 北京小米移动软件有限公司 | Message reminding method and device |
CN108989328B (en) * | 2018-08-07 | 2021-07-02 | 阿里巴巴(中国)有限公司 | Account sharing method, client and server |
CN109814949B (en) * | 2019-01-07 | 2022-04-22 | 平安科技(深圳)有限公司 | Virtual telephone state switching method and device, computer equipment and storage medium |
CN111918019B (en) * | 2020-07-30 | 2022-03-22 | 随锐科技集团股份有限公司 | Video conference method and system, and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101854598A (en) * | 2009-04-01 | 2010-10-06 | 中国电信股份有限公司 | Method and system for switching instant messaging service between clients |
CN101964039A (en) * | 2009-07-23 | 2011-02-02 | 中兴通讯股份有限公司 | Encryption protection method and system of copyright object |
CN102685025A (en) * | 2011-03-17 | 2012-09-19 | 深圳市同洲软件有限公司 | Multi-terminal service switching method, terminal and system |
CN103729982A (en) * | 2014-01-08 | 2014-04-16 | 杭州晟元芯片技术有限公司 | Implementation method for multifunctional anti-loss apparatus |
CN104104414A (en) * | 2014-06-18 | 2014-10-15 | 深圳市警豹电子科技有限公司 | Communication method for multiple bluetooth devices and forwarding method for bluetooth device matching information |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060101116A1 (en) * | 2004-10-28 | 2006-05-11 | Danny Rittman | Multifunctional telephone, walkie talkie, instant messenger, video-phone computer, based on WiFi (Wireless Fidelity) and WiMax technology, for establishing global wireless communication, network and video conferencing via the internet |
-
2015
- 2015-12-03 CN CN201510881555.6A patent/CN105357108B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101854598A (en) * | 2009-04-01 | 2010-10-06 | 中国电信股份有限公司 | Method and system for switching instant messaging service between clients |
CN101964039A (en) * | 2009-07-23 | 2011-02-02 | 中兴通讯股份有限公司 | Encryption protection method and system of copyright object |
CN102685025A (en) * | 2011-03-17 | 2012-09-19 | 深圳市同洲软件有限公司 | Multi-terminal service switching method, terminal and system |
CN103729982A (en) * | 2014-01-08 | 2014-04-16 | 杭州晟元芯片技术有限公司 | Implementation method for multifunctional anti-loss apparatus |
CN104104414A (en) * | 2014-06-18 | 2014-10-15 | 深圳市警豹电子科技有限公司 | Communication method for multiple bluetooth devices and forwarding method for bluetooth device matching information |
Also Published As
Publication number | Publication date |
---|---|
CN105357108A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105357108B (en) | A kind of method that instant communication client state is presented | |
EP2814276B1 (en) | Access authentication method and device for wireless local area network hotspot | |
US20090287783A1 (en) | Method of social interaction between communication device users | |
CN113438355B (en) | Communication method, device, equipment and storage medium based on cloud mobile phone | |
CN101272358B (en) | Method, device and system for showing user group communication ability in instant communication | |
CN102291693B (en) | A kind of converged message service implementation method and device based on terminal | |
CN109508527A (en) | A kind of method that realizing that different terminals account is unified, terminal and server | |
CN107404634A (en) | Computer room remote monitoring call method, device and storage medium based on Internet of Things | |
CN111510564A (en) | Data processing method, device and medium based on interactive voice response system | |
US20140122616A1 (en) | Method and apparatus for realizing community federation | |
CN105262881A (en) | Communication control method and electronic equipment | |
CN103970814A (en) | Indicating Organization Of Visitor On User Interface Of User Engaged In Collaborative Activity With Visitor | |
CN102891921A (en) | Automatic updating system of electronic address list | |
CN104144105B (en) | A kind of information transferring method, device and system | |
CN106658376A (en) | Event sharing method and device | |
KR101987114B1 (en) | Hybrid chat providing method using predefined conversation flow and hybrid chat service server | |
CN102244695A (en) | Contact person grouping system and method | |
CN107294839A (en) | The method and mobile terminal of session are quickly set up in mobile terminal | |
CN107425994A (en) | A kind of method, terminal and server for realizing parameters remote management | |
CN104767880A (en) | Communication number management method | |
CN107592258A (en) | A kind of IM softwares group chat sessions method and device | |
CN102238088A (en) | Priority-based module assess control method and server | |
CN107317741A (en) | It is a kind of to support while connecting the instant communication client of multiserver | |
CN108965255A (en) | Multiple terminals account management method, platform, equipment and computer readable storage medium | |
CN110446214A (en) | Manage method, device and equipment, the storage medium of network access process |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |