For data guard method, the equipment and system of iBeacon base station
Technical field
The present invention relates to the communications field, particularly a kind of data guard method for iBeacon base station, equipment and system.
Background technology
IBeacon is the upper new function configuring of mobile device (IOS7) that Apple issues in September, 2013.Its working method is, be equipped with the equipment of low-power consumption bluetooth (BLE) communication function can create the own distinctive id information of transmission in Bing Gai signal area, a signal area by BLE, in the time that equipment enters this region, corresponding application software can take some actions according to ID after receiving this ID.Such as, iBeacon communication module is set in shop, just can allow the upper application software of moving of iPhone and iPad that client is entered to this information exchange of shop and cross mobile communication notification server, or send coupons and enter shop integration to client by server.Can in the time that household electrical appliances break down or quit work, use iBeacon to send information to application software in addition, notice man electric fault.
BLE (Bluetooth Low Energy, low-power consumption bluetooth) technology is usually said Bluetooth4.0 or Bluetooth Smart.Its maximum feature is exactly low-power consumption, thereby makes equipment have longer cruising time, and in addition, Bluetooth4.0 also rises to 100 meters above (under low-power consumption modes) the transmission range of bluetooth.
IBeacon utilizes " notice frame " by name broadcast frame (Advertising) in BLE.Notice frame and regularly sent by the equipment that is equipped with BLE, as long as supporting the terminal of BLE, can receive signal.The payload portions of noticing frame, has write the data that defined by apple.
The data of iBeacon, mainly by four kinds of information structures, are respectively UUID, Major, Minor, Measured Power, wherein,
UUID (Universally Unique Identifier, universal unique identifier) be 128 bit identifiers that are used for identifying Beacon module that adopt " ISO/IEC11578:1996 " standard, UUID is as the unique identification of an iBeacon or one group of iBeacons equipment, be generally used for representing top layer mark, be used for identifying enterprise and tissue.
Major and Minor are the identifier of 16, can self-defining, can identify each independent iBeacon.For example, in the time that chain store is used iBeacon, UUID may be the same, Major can identified areas information, in Minor, can identify the ID of shops etc., embed Beacon module in household appliances time, if using Major as with the sequence number of product type hook, using Minor as error code, just can be to external notification failure condition.
Measured Power is by the reference received signal strength (RSSI:Received Singnal Strength Indicator) when the 1m between iBeacon module and receiver.Receiver is according to this distance that pushes sending module and receiver with reference to RSSI and the intensity that receives signal, and distance adopts (Immidiate) (proximity distance is approximately 10 centimetres), 1m with (Far) three kinds of distance state beyond interior (Near), 1m.For example, in shop when for Immidiate interval scale commodity in the offering, Near representative is just being located near shelf, Far representative near shop door or outside etc.
Due to the power consumption of iBeacon or other beacons technology less, wide coverage, communicator par and ios device or other support the feature such as equipment interconnection facility of Beacon to make iBeacon+ bluetooth in current location-based service, be better than the combination of GPS+WiFi far away.And in indoor navigation, iBeacon also has incomparable advantage, owing to having stopping of various barriers indoor, therefore gps signal is very faint, cannot realize navigation.And by multiple iBeacon transceivers are set at indoor periphery diverse location, just can form a mesh network, just can exchange id information between each Beacon, be very easy to and carry out triangle location by more than 3 or 3 Beacon, therefore, by the Beacon network position of consumer positioning accurately, thereby realize the object of navigating.
At present, some large-scale sales fields, chain store and some provide the company of position-based service to bring into use this technology, by the multiple beacons (being iBeacon base station) based on iBeacon of inner diverse location deployment in sales field, form an information service network, in the time that cellphone subscriber enters the signal area of sales field iBeacon beacon layout, on mobile phone, corresponding APP just can point out user whether to need to access this signal network, user selects access, will receive the sales promotion information of businessman or in APP, see the inner navigation map in sales field, and show the information such as user's current location and periphery retail shop, in the time that user approaches certain iBeacon, can also push this iBeacon neighbouring retail shop or commercial promotions information, by this deployment based on iBeacon, all provide a great convenience to user and businessman.
But, due to the opening of iBeacon agreement, its specification is easy to be known by people, the data that comprise in the actual iBeacon sending are also easy to obtain, therefore, the iBeacon beaconing nodes of oneself disposing is easy to be obtained, forge by the provider of competitive enterprise or other position-based services or freely uses, also there is certain cost and buy and dispose Beacon equipment, once the iBeacon beaconing nodes data of oneself disposing are obtained by other people or freely used, this has damaged deployer's interests undoubtedly.
Summary of the invention
In view of this, the present invention aims to provide a kind of data guard method for iBeacon base station, equipment and system, the problem of being falsely used to solve iBeacon data.
An aspect of of the present present invention provides a kind of data guard method for iBeacon base station, and described data guard method comprises:
After control appliance and described iBeacon base station establish a communications link, revise the identifying information of described iBeacon base station, and the amendment information including this amended identifying information is uploaded onto the server;
Described server upgrades the mapping table of the corresponding relation between positional information and the identifying information that stores described iBeacon base station according to described amendment information.
Preferably, the identifying information of the described iBeacon of described amendment base station specifically can comprise:
Described control appliance is according to the change directive that is received from described server, with specify lastest imformation revise the identifying information of described iBeacon base station, the lastest imformation of described appointment is selected from any one in following information: the lastest imformation that described change directive comprises, the lastest imformation of asking for to described server based on described change directive, the lastest imformation of user's input, the lastest imformation of described control appliance storage inside, and the lastest imformation being generated by pre-defined algorithm by described control appliance.
Preferably, the identifying information of the described iBeacon of described amendment base station specifically can comprise:
Described control appliance is initiatively revised the identifying information of described iBeacon base station by the lastest imformation of specifying, and the lastest imformation of described appointment is selected from any one in following information: the lastest imformation of initiatively asking for to described server, lastest imformation, the lastest imformation of described control appliance storage inside and the lastest imformation being generated by pre-defined algorithm by described control appliance of user's input.
Preferably, also comprise the former identifying information of described iBeacon base station in described amendment information, described server is searched described mapping table to carry out described renewal according to described former identifying information.
As selection, in described amendment information, also comprise the unique identification information of described iBeacon base station, described mapping table has been stored the corresponding relation between unique identification information, positional information and the identifying information of described iBeacon base station, and described server is searched described mapping table to carry out described renewal according to described unique identification information.
Preferably, described unique identification information is selected from following any one:
Unique sequence number of the Bluetooth chip of described iBeacon base station;
In UUID, the MajorID of described iBeacon base station and MinorID one, or wherein multinomial combination;
The identification information generating by random algorithm.
Preferably, the identifying information of described iBeacon base station comprises UUID and/or MajorID and/or the MinorID of described iBeacon base station.
Preferably, the positional information of described iBeacon base station is the three-dimensional coordinate information of described iBeacon base station on map.
Preferably, described communication connection is that the radio communication of setting up by bluetooth connects.
As selection, described communication connection is that the wire communication of setting up by interface connects, and described interface is the wherein a kind of interface in the physical interface including USB interface and serial ports.
The present invention provides a kind of control appliance of the data protection for iBeacon base station on the other hand, and described control appliance comprises:
Communication module, itself and described iBeacon base station and server establish a communications link respectively;
Operational module, it is configured to revise the identifying information of described iBeacon base station,
Wherein, described communication module is further configured to the amendment information including this amended identifying information is uploaded to described server, and described amendment information is upgraded the mapping table of the corresponding relation between positional information and the identifying information that stores described iBeacon base station according to this for described server.
Preferably, described operational module concrete configuration is initiatively amendment or revises the identifying information of described iBeacon base station according to the change directive that described communication module is received from described server.
As selection, described operational module can concrete configuration be that the identifying information of described iBeacon base station is revised in amendment automatically or the instruction based on user's input.
Preferably, described control appliance also comprises:
The first memory module, it stores for revising first of iBeacon base station identification information and upgrades list; And/or
Computing module, it is configured to generate for revising the lastest imformation of described iBeacon base station identification information according to pre-defined algorithm.
Preferably, described control appliance is PC, or has the mobile communication equipment of bluetooth communication.
Preferably, the identifying information of described iBeacon base station comprises UUID and/or MajorID and/or the MinorID of described iBeacon base station.
The present invention also provides a kind of data protection system for iBeacon base station, and described data protection system comprises server, above-mentioned control appliance and at least one iBeacon base station, and wherein, described server comprises:
The second memory module, it stores the mapping table of the corresponding relation between the described positional information and the identifying information that store described iBeacon base station;
Processing module, it is configured to according to upgrading described mapping table from the described amendment information of described control appliance.
Preferably, described processing module is also configured to regularly or the instruction automatically or based on user's input and issue change directive to described control appliance aperiodically.
Preferably, described change directive comprises the lastest imformation for revising iBeacon base station identification information.
Preferably, described the second memory module also stores for revising second of iBeacon base station identification information upgrades list, and described processing module is also configured to upgrade list according to the request of described control appliance by described second and sends to described control appliance.
Preferably, the positional information of described iBeacon base station is the three-dimensional coordinate information of described iBeacon base station on map.
Preferably, also comprise the former identifying information of described iBeacon base station in described amendment information, described processing module is configured to search described mapping table to carry out described renewal according to described former identifying information.
As selection, in described amendment information, can also comprise the unique identification information of described iBeacon base station, described the second memory module stores the mapping table of the corresponding relation between unique identification information, positional information and the identifying information of having stored described iBeacon base station, and described processing module is configured to search described mapping table to carry out described renewal according to described unique identification information.
Beneficial effect of the present invention is: by the identifying information of amendment iBeacon base station, and server update stores the mapping table of the corresponding relation between positional information and the identifying information of described iBeacon base station, make iBeacon base station data information in regular/irregularly variable condition, reduce the risk that Beacon data are falsely used, improve fail safe, ensured deployer's interests.
Brief description of the drawings
Fig. 1 is according to the schematic flow sheet of a kind of data guard method for iBeacon base station of the present invention.
Fig. 2 is according to the structural representation of the control appliance of a kind of data protection for iBeacon base station of the present invention.
Fig. 3 is according to the structural representation of a preferred implementation of the control appliance of a kind of data protection for iBeacon base station of the present invention.
Fig. 4 is according to the structural representation of a kind of data protection system server for iBeacon base station of the present invention.
Embodiment
For making object of the present invention, technical scheme and advantage clearer, referring to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
Embodiment 1
The application scenarios of the present embodiment is assumed to, diverse location in large-scale sales field is disposed 10 iBeacon equipment, in server, stored the sales field map of drawing according to inside, sales field outdoor scene, iBeacon base station placement location after measuring in map correspondence position there is three-dimensional coordinate mark.Corresponding relation between the positional information of iBeacon base station in map and the identifying information of this iBeacon base station (as identifying informations such as the UUID of iBeacon base station, MajorID, MinorID) is stored in mapping table.
The corresponding relation of storing in mapping table is not limited to this, in other embodiments, can also store the corresponding relation between the identification information of iBeacon base station location coordinate, iBeacon base station unique identification and iBeacon base station in mapping table.
In the present embodiment, iBeacon embedded in base station bluetooth 4.0 chips, 32 ARM CPU and 256KB flash memory, power by micro button cell.In the present embodiment, using unique the Bluetooth chip of iBeacon base station sequence number as iBeacon base station unique identification.Control appliance is the smart mobile phone with function of Bluetooth communication, has the APP that controls iBeacon base station in mobile phone.
In the present embodiment, stored the lastest imformation list of iBeacon Base Station Identification in server, server issues the change directive that comprises iBeacon Base Station Identification renewal list to control appliance automatically with fixed frequency (as two months).
According to one embodiment of present invention, the above-mentioned mapping table that stores the corresponding relation of iBeacon base station position information and this base station identification information by change is realized the protection of iBeacon data, and concrete steps comprise:
1, server issues iBeacon base station change directive with the fixed frequency of presetting to mobile phone A PP;
2, the change directive that mobile phone A PP reception server issues, sets up wireless connections by bluetooth approach and iBeacon base station;
3, the iBeacon base station that mobile phone A PP obtains in the change directive that server issues is upgraded list and revises the identifying information of corresponding iBeacon base station;
Here, obtain the mode of lastest imformation of the identifying information for revising iBeacon base station except obtaining from change directive, can also adopt and read the lastest imformation of storage from this mobile phone A PP inside, ask for lastest imformation or input lastest imformation by user from server based on this change directive, or mobile phone A PP generates the lastest imformation of iBeacon base station automatically by related algorithm.
The identifying information of amendment can be one or more in UUID, MajorID, MinorID.
4, revised, mobile phone A PP uploads onto the server amendment information;
This amendment information can comprise unique identification information and the amended identifying information of iBeacon base station.
5, server receives the amendment information that mobile phone A PP uploads, and searches mapping table and upgrade the corresponding identifying information in mapping table according to the unique identification information in amendment information.
In an optional embodiment, in amendment information, can only comprise former identifying information and the amended identifying information of iBeacon base station, server receives after amendment information, can search mapping table to upgrade according to the former identifying information of this iBeacon base station.
In the present embodiment, the iBeacon base station renewal list that server issues in change directive can also generate automatically by related algorithm.
Embodiment 2
The difference of the present embodiment and embodiment 1 is, mobile phone is initiatively connected and revises the identifying information of iBeacon base station with iBeacon base station, and amendment completes, and amendment information is uploaded onto the server, and server synchronously upgrades.
As shown in Figure 1, the method for protecting for iBeacon base station data described in the present embodiment, concrete steps comprise:
1, mobile phone initiatively passes through bluetooth approach wireless connections with iBeacon base station;
Mobile phone A PP can be regular or irregular automatic or manual mode be initiatively connected with iBeacon base station radio.
2, the identifying information of mobile phone A PP amendment iBeacon base station;
Mobile phone A PP can read from APP inside the lastest imformation of storage or initiatively ask for lastest imformation or automatically generate the lastest imformation of iBeacon base station by related algorithm from server.
Mobile phone A PP can also revise by user's input the identifying information of iBeacon base station.
3, revised, mobile phone A PP uploads onto the server amendment information;
4, server receives amendment information, and revise the corresponding identification record in the mapping table of the corresponding relation between the unique identification information, positional information that store iBeacon base station and identifying information according to the unique identification information of the iBeacon base station in amendment information, wherein positional information can be the three-dimensional coordinate on map.
Wherein, the unique identification information of iBeacon base station can be selected from following any one:
Unique sequence number of the Bluetooth chip of described iBeacon base station;
In UUID, the MajorID of described iBeacon base station and MinorID one, or wherein multinomial combination;
The identification information generating by random algorithm.
Embodiment 3
The difference of the present embodiment and embodiment 1 is, the control appliance of the present embodiment is PC computer, has the control software of controlling iBeacon base station in PC computer, and iBeacon base station is electrically connected with PC computer by USB interface, serial ports or other physical interfaces.IBeacon base station data guard method concrete steps in the present embodiment comprise:
1, iBeacon base station is electrically connected by interface with PC computer;
2, by the identifying information of the control software modification iBeacon base station in PC computer;
3, revised, amendment information is sent to server by PC computer;
4, server receives amendment information, and upgrades the corresponding identifying information in the mapping table that stores the corresponding relation between iBeacon base station position information and the identifying information of iBeacon base station according to amendment information.
The present invention can be regular or be irregularly changed the corresponding relation between the positional information of iBeacon base station and the identifying information of iBeacon base station by automatic or manual mode, make the identifying information of iBeacon base station position information and iBeacon base station in regular or irregular variable condition, can effectively prevent that iBeacon data from being falsely used, improve fail safe, ensure deployer's interests.
Embodiment 4
The present embodiment provides a kind of data protection system for iBeacon base station, and this data protection system comprises server, control appliance and at least one iBeacon base station.
As shown in Figure 2, in the data protection system of the present embodiment, control appliance comprises: communication module, and itself and iBeacon base station and server establish a communications link respectively; Operational module, it is configured to revise the identifying information of iBeacon base station; And wherein, communication module is further configured to the amendment information including this amended identifying information is uploaded onto the server, and amendment information is upgraded the mapping table of the corresponding relation between positional information and the identifying information that stores iBeacon base station according to this for server.
The identifying information of above-mentioned iBeacon base station can comprise UUID and/or MajorID and/or the MinorID of iBeacon base station.In addition, the positional information of above-mentioned iBeacon base station can be the three-dimensional coordinate information of iBeacon base station on map.
Particularly, operational module can be configured to initiatively revise the identifying information of iBeacon base station, or revises the identifying information of iBeacon base station according to the change directive that communication module is received from server.
No matter be that revising in the situation that initiatively modifying or according to change directive, operational module can be configured to automatically revise the identifying information of iBeacon base station, or the identifying information of iBeacon base station is revised in the instruction of inputting based on user.
As shown in Figure 3, as one preferred embodiment, control appliance can also comprise: the first memory module, and it stores for revising first of iBeacon base station identification information and upgrades list; And computing module, it is configured to generate for revising the lastest imformation of iBeacon base station identification information according to pre-defined algorithm.Control appliance also can only include the first memory module or only include computing module, thereby obtains the lastest imformation of the identifying information for revising iBeacon base station according to different modes.
As shown in Figure 4, in this data protection system, server comprises: the second memory module, and it stores the mapping table of the corresponding relation between the above-mentioned positional information and the identifying information that store iBeacon base station; And processing module, it is configured to according to upgrading mapping table from the amendment information of control appliance.
As an embodiment, processing module can be configured to regularly or automatically issue change directive to above-mentioned control appliance aperiodically, or instruction based on user input and issue change directive to above-mentioned control appliance, thereby realizes multiple more new model.
In different embodiment, can be to be included in change directive for the lastest imformation of revising iBeacon base station identification information, also can be stored in the second memory module so that described processing module sends to control appliance according to the request of control appliance by stored lastest imformation.
In one embodiment, the amendment information of control appliance that processing module is received from can comprise the former identifying information of iBeacon base station, and processing module is searched mapping table to carry out corresponding renewal according to this former identifying information.
In another embodiment, in the amendment information of control appliance that processing module is received from, can comprise the unique identification information of iBeacon base station, and the second memory module stores the mapping table of the corresponding relation between unique identification information, positional information and the identifying information of having stored iBeacon base station, processing module can be searched mapping table to carry out corresponding renewal according to this unique identification information.
These are only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment of doing, be equal to and replace and improvement etc., within all should being included in protection scope of the present invention.