Summary of the invention
The object of the invention is to for problems of the prior art, a kind of method of close range information exchanging is provided, by comprehensively using various localization method of the prior art, realize carrying out unpaired message exchange to the closely interior personnel carrying various handheld device.
For achieving the above object, the present invention adopts following technical scheme:
A method for close range information exchanging, its step comprises:
1) information exchange each side makes the electronic installation held separately produce a position sudden change simultaneously;
2), after described electronic installation detects the sudden change of described position, a common server is connected;
3) described electronic installation is by described common server exchange message.
Further, described information exchange each side is both sides or in many ways.
Further, described electronic installation comprises: mobile phone, panel computer, notebook computer.
Further, describedly to refer at one time or one preset time period simultaneously.
Further, by rock or swinging way produce described position sudden change.
Further, described detection is carried out by acceleration transducer.
Further, step 2) also comprise: self poisoning information is uploaded to described common server by described electronic installation; Described common server obtains the range information between described information exchange each side by this locating information, and judges effective information exchange side according to a distance threshold values preset.Described locating information comprises: mac address information, the cell id information of mobile operator base station, the LAC information of mobile operator network of GPS location latitude and longitude information, connection WIFI.
Further, information exchange is carried out by operating the client software that described electronic installation is installed.
Compared with the prior art short-distance and medium-distance information transmission technology (as Bluetooth transfer techniques), the method for short distance exchange message of the present invention is easy and simple to handle, without the need to study, only needs to rock mobile device and selects equipment connection to complete; Under simultaneously can being used in multiple different sight, as exchanged visiting cards, data transmission etc., the scope of application is wide.
Embodiment
For making object of the present invention, feature and advantage become apparent, hereafter by specific embodiment also by reference to the accompanying drawings, the present invention is described in detail.
The method of the close range information exchanging of the present embodiment, needs, by using the service provider of the method to provide an Internet Server, for receiving the information that each electronic installation sends, and to process the information received.Model and the performance of this server there is no specific requirement.Meanwhile, each electronic installation is installed corresponding client software.Electronic installation can be mobile phone, panel computer, notebook computer etc., is mobile phone in the present embodiment.
Fig. 1 is the flow chart of the method for the close range information exchanging of the present embodiment, is described as follows:
1) information exchange each side opens the client software being applicable to the inventive method that mobile phone is installed, make to hold separately simultaneously mobile phone produce a position sudden change.As shown in Figure 2, be that information exchange rocks the schematic diagram that mobile phone carries out information exchange in opposite on both side.
It can be same time point while of described, also in a preset time period, can set in the client software that user can install at mobile phone, such as can according to the difference using sight, this time difference is set to 3-10 second, and the position sudden change being about to occur within 3-10 second can be considered simultaneously.
The sudden change of described position can by rocking, the mode such as whipping realizes.Fig. 2 is that information exchange rocks the schematic diagram of mobile phone in opposite on both side.Mobile phone domestic demand is provided with acceleration transducer (gravity sensor) etc. can detect the device that mobile phone location changes.By the fluctuation situation of client software monitoring acceleration transducer, then think that creating a position suddenlys change when continuing to reach certain threshold value, otherwise think that the general position of mobile phone changes.Judge whether that the principle producing position sudden change is as follows:
The acceleration transducer of embedded in mobile phone can transmit the acceleration of current point in time mobile phone on all around, up and down (being called x, y, z) three directions.When mobile phone location changes, acceleration can sharply change at short notice, the change weighted sum namely accelerated, if current acceleration is x1, y1, z1, the acceleration that the last time is got is x2, y2, z3, then by the change weighted sum of formulae discovery acceleration below:
By judging whether this weighted sum is greater than a predetermined threshold value, can judge whether this mobile phone produces a position sudden change.According to the difference of use scenes, different threshold values can be set voluntarily by client software.
2) after each mobile phone detects position sudden change, initiate network and connect, be connected to an Internet Server shared.The equipment such as other mobile phone of occurrence positions sudden change simultaneously now can be shown on mobile phone client software.As equipment does not have network to connect, then inapplicable the method.This network connects also to be arranged to from being dynamically connected by cell phone software.
The inventive method is mainly applicable to carry out information exchange face-to-face, as face-to-face electronic name card exchanging etc.; Also be applicable to any visual range, namely information exchange side can illustrate mutually to make the electronic installations such as held mobile phone produce a position sudden change simultaneously.But also there is such a case: originally do not have two people being in diverse location of wish exchange message to make respective mobile phone create position sudden change simultaneously.
In this case, mobile phone holder is by manually selecting at client software the personnel wanting exchange message.
The present invention also provides another method to solve this problem further.Namely, in this step, after each mobile phone is connected to Internet Server, also self poisoning information can be uploaded onto the server.Then, server obtains the range information of information exchange each side according to locating information, and judges to have a mind to each side of exchange message by these range informations, can be called " effective information exchange side ", and be back on mobile phone.Because the inventive method is mainly applicable to the in-plant information exchanges such as face-to-face, server can using each mobile phone holder of distance in a pre-set threshold value as " effective information exchange side ".
It should be noted that, the step of above-mentioned judgement " effective information exchange side " is optional step, because the probability that above-mentioned situation occurs is smaller, client software can be arranged to not carry out this judge, and directly enter step 3 below) and carry out information exchanging process, the speed of information exchange can be improved like this.
Described locating information can be GPS (Global Position System, global positioning system) positional information, connect WIFI (Wireless Fidelity, Wireless Fidelity) MAC (machine address code, encode in device address) address information, cell ID (base station equipment numbering) information of mobile operator base station, mobile operator network LAC (location area code, geographic location area coding) information etc.As shown in Figure 1, be explained respectively below:
A) when selecting gps satellite locate mode, then skipping this step as there is no GPS device or GPS geography information cannot being got in the short time, otherwise the GPS position information got to be uploaded onto the server end by the Internet.
For the equipment having GPS positioning function also can obtain corresponding position longitude and latitude, the positional information of longitude and latitude as this equipment of acquisition can be used.Concrete precision depends on precision and the present position of GPS device, and in general precision is 5 meters to 1 kilometer.
B) when by WiFi technology connecting Internet, then the MAC Address of connection WIFI is uploaded to server end.MAC Address is unique to different WIFI network.
Because the coverage restriction of a WIFI hot spot is generally 50 meters, can think that to have the physical distance of the equipment room of identical WIFI MAC Address close.Calculate the positional information of this equipment by the WIFI facility information of history simultaneously, as uploaded before using and be kept at the historical record of the same WIFI MAC Address (can other geographical location information be contained) on this equipment, calculate the positional information of this equipment.
If c) this equipment can connect the base station of mobile operator, then uploaded onto the server by the cell ID in base station information, this cell ID is the ID of unique identification base station information.
For the equipment having cell id information, the positional information of this equipment of approximate calculation can be carried out by the physical location of base station and history base station information.Because the physical location of base station can not change, the geographical location information of base station can be collected, and use the geographical location information of base station to be similar to geographical location information as this equipment.
If d) this equipment can be connected to the network of mobile operator, then uploaded onto the server by the LAC of Network Capture, LAC field is Location Area Code, identifies the unique positions district of this equipment place mobile network.
For the equipment having LAC field, for the lane place that scope is smaller, the positional information of central point as this equipment of this lane place can be used.The lane place larger to scope, can retain the border of this lane place for judging the confidence level of other geographical location information.Lane place is fixing, and border can be obtained by inquiry LAC location area planning document query, and the central point of lane place can be obtained by the central point calculating each LAC lane place.
The present invention is not limited to above-mentioned four kinds of modes, and the locator data that other can also be used for obtaining positional information is uploaded onto the server.For the locator data of a certain UNKNOWN TYPE, other position data that the equipment that server can search the locator data transmitting this UNKNOWN TYPE is uploaded simultaneously, if last all devices determines position all within the scope of another, then this positional information can be processed as a known position data.If other user uploads same unknown message again, then can carry out location position by other position data in historical data to this unknown message.
And then server can carry out the calculating between two of positional information to all devices, to obtain the range information between each handheld device, specifically describe as follows:
For the data can getting particular geographic location latitude and longitude information, longitude and latitude is used to carry out geographical location information calculating.
For can geographical position be marked but cannot calculate the data of particular geographic location information, as WIFI MAC Address, cellID, LAC etc., by judging whether two equipment have identical mark and judge that whether geographical position is close.
Same equipment is had to the situation of different positional informations.Different positional informations can be used to be weighted based on confidence level, or to different position calculation repeatedly.For example, the scope of these Location Area Identification such as WIFI MAC Address, cell ID, LAC is substantially constant, if the latitude and longitude value obtained by GPS device is not in the scope of Location Area Identification, then need to revise according to GPS point from the distance at the edge of lane place, modification method is: if GPS point distance and position area edge is comparatively near, then the positional information of the intersection point using GPS point and lane place central point line and edge, lane place equipment for this reason.Think that the positional information of GPS is incredible when the positional information distance and position district that GPS device is got is far.
Different equipment is had to the situation of different positional informations.Such as an equipment is WIFI MAC Address, another equipment is cell ID, if once there was the same WIFI MAC Address of equipment use to connect server, and the positional information of longitude and latitude can be converted to containing other, this WIFI can be identified with this longitude and latitude, and calculate with the base station geographic position information of cell ID.If do not have historical information, then WIFI MAC Address cannot carry out mixing with cell ID and calculates.
3) information exchange side operates the mobile phone held separately and by common server exchange message.
After the mobile phone held separately when information exchange side is connected to common server, by client software identification that mobile phone is installed, other is connected to the equipment of server, select after wanting the equipment of exchange message, namely by server sync data, exchange message, as shown in Figure 2, information exchange both sides hold mobile phone A and mobile phone B respectively, and by server C exchange message.The information exchanged can be the multiple different information such as document, audio frequency, video, contact method.Without the need to disconnecting after exchange completing, only need exit synchrodata interface, can disconnect.
Above-described embodiment is only illustrate for convenience of explanation, and protection scope of the present invention should be as the criterion with described in claims, but not is only limitted to above-described embodiment.