Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.It should be apparent, however, to those skilled in the art that there is no these specific thin
The present invention also may be implemented in the other embodiments of section.In other cases, it omits to well-known system, device, circuit
And the detailed description of method, in case unnecessary details interferes description of the invention.
Illustrate technical solution of the present invention below by specific embodiment.
Referring to Fig.1, a kind of step flow diagram of the localization method of key chain of one embodiment of the invention is shown,
It can specifically include following steps:
S101, when detecting that key chain leaves key locker, the positioning unit of the key chain, the positioning are opened in control
Unit is for acquiring location data;
It should be noted that this method can be applied in intelligent key chain.
Intelligent key chain in the present embodiment is configured with positioning unit and communication unit.Wherein, positioning unit can be real-time
Ground acquires location data, and location data is sent to specific terminal device or management platform by communication unit, to realize
Positioning to key chain position.
Certainly, it in addition to positioning unit and communication unit, can be configured with can be realized to key chain in intelligent key chain
Carry out other units of intelligent management.For example, control unit, sensing unit, Power Management Unit, etc..The present embodiment pair
This is not construed as limiting.
The executing subject of the present embodiment is the control unit in intelligent key chain.Control unit can be regarded as entire intelligence
The core of energy key chain, major function are interconnection, the control completed with other each units, realize the correlation of key chain
Application function.
In general, in the occasion that the keys such as second-hand house transaction and rent leasing market need to manage concentratedly, in order to guarantee key
Safety, realize to the intelligence of key, procedure and the management that objectifies, key can be placed in key chain, and
Key chain is put into key locker and is taken care of.
When needing using key, user can take out key chain from key locker.At this point, the control unit of key chain can
To control positioning unit unlatching, the track after leaving key locker to key chain in real time is positioned.
In embodiments of the present invention, the positioning unit configured in key chain can be Beidou satellite navigation positioning unit, GPS
(Global Positioning System, global positioning system) satellite navigation and positioning unit, Glonass (GLONASS) are defended
Star navigation positioning unit, Galileo (Galileo) satellite navigation and positioning unit, QZSS (Quasi-Zenith Satellite
At least one of System, quasi- zenith) satellite navigation and positioning unit.Wherein, made using Beidou satellite navigation positioning unit
Station-keeping mode is Beidou RNSS (Radio Navigation Satellite System, radionavigation-satellite service)
Single mode positioning.Certainly, according to actual needs, other kinds of positioning unit, this implementation can also be used in intelligent key chain
Example is not construed as limiting this.
Communication connection between S102, the communication unit for establishing the key chain and preset management platform;
In embodiments of the present invention, management platform can be one to key locker, key chain and be placed in key chain
The platform managed concentratedly of key.According to specific business demand, managing platform may include having multiple servers, and energy
User interface is externally enough provided by terminal device, above-mentioned key locker, key chain and key are managed for administrative staff.
In embodiments of the present invention, key chain can be realized and be managed the communication between platform by the communication unit of itself
Connection.
It should be noted that above-mentioned communication unit may include Landline communication unit and wireless communication unit.For example, working as key
When key ring is placed in key locker, key chain can carry out data interaction by Landline communication unit and key locker;And work as key
For button after taking out in key locker, key chain unit and management platform can carry out data interaction by wireless communication.
S103, it is based on the communication connection, the location data is sent to the management platform.
In embodiments of the present invention, it is flat can be sent to management by communication unit for the location data of positioning unit acquisition
Platform enables management platform to understand the position that the key chain is presently in time, realizes the overall process to key chain and key
Monitoring.Even if key chain and key loss, also can help rapidly to give key for change by positioning key chain.
In embodiments of the present invention, by configuring positioning unit and communication unit in key chain, can key chain from
After opening key locker, opens positioning unit acquisition location data and be sent to management platform, management platform is facilitated to understand key in time
The position being presently in is detained, realizes the intelligent management to key.The case where in case of key chain and key loss, also can
Key position is locked by location data in time, helps rapidly to give key for change, ensure that the use of key chain and key
Safety.
Referring to Fig. 2, the step process signal of the localization method of another key chain of one embodiment of the invention is shown
Figure, can specifically include following steps:
Communication connection between S201, the communication unit for establishing the key chain and preset management platform, the communication
Unit includes wireless communication unit;
In embodiments of the present invention, management platform can be one to key locker, key chain and be placed in key chain
The platform managed concentratedly of key.According to specific business demand, managing platform may include having multiple servers, and energy
User interface is externally enough provided by terminal device, above-mentioned key locker, key chain and key are managed for administrative staff.
In the concrete realization, it can be realized between key chain and management platform by the communication unit configured in key chain
Communication connection.
In embodiments of the present invention, above-mentioned communication unit may include Landline communication unit and wireless communication unit.For example,
When key chain is placed in key locker, key chain can carry out data interaction by Landline communication unit and key locker;And work as
For key chain after taking out in key locker, key chain unit and management platform can carry out data interaction by wireless communication.
Wherein, the communication mode of wireless communication unit can also be used using the communication of the public networks such as 2G, 3G, 4G, 5G
NB-IOT (Narrow Band Internet of Things, narrowband Internet of Things) Internet of Things Network Communication, (a kind of low-power consumption is remote by LORA
Journey wireless communication technique) communication, bluetooth, a kind of ZigBee (wireless network protocol of low speed short-distance transmission) communication, Beidou
It is any one in RDSS (Radio Determination Satellite Service, radiodetermination-satellite service) communication
Kind is a variety of, and the present embodiment is not construed as limiting this.
S202, when receive it is described management platform key chain trace instruction when, determine in the key chain trace instruction
Positioning frequency;
In embodiments of the present invention, key chain can realize different functions according to the instruction of management platform.For example, management
Platform can send trace instruction to key chain, and instruction key chain acquires location data, realizes the positioning to key chain.
It may include the information for positioning frequency in the key chain trace instruction that management platform is sent.That is, passing through positioning frequency
Degree, instruction key chain acquire location data according to which kind of frequency.For example, the location data of acquisition in every 3 seconds, alternatively, every 10 seconds
A location data is acquired, alternatively, acquisition location data, etc. in real time.
S203, according to the positioning frequency, control opens or closes the positioning unit of the key chain, the positioning unit
For acquiring location data;
In embodiments of the present invention, the control unit of key chain can receive the trace instruction for managing platform and issuing
Afterwards, according to the positioning frequency in trace instruction, opening or closing for positioning unit is controlled.When positioning unit is opened, can adopt
Collect location data;When positioning unit is closed, then stop acquiring location data.
For positioning frequency and be 10 seconds, control unit can at a time control positioning unit unlatching first, and adopt
Collect location data.After collecting location data, positioning unit is closed, it is fixed from new unlatching positioning unit acquisition after 10 seconds
Position data, and press this interval circle collection data.In this way, the location data of key chain can either be obtained in time, control is also saved
The overhead of unit processed, the electrical source consumption for saving key chain.
S204, based on the communication connection between the wireless communication unit and the management platform, frequently according to the positioning
The location data is sent to the management platform by degree, and the management platform is used to generate the key according to the location data
The tracing path of key ring;
In embodiments of the present invention, positioning unit can acquire location data according to certain frequency.Correspondingly, communication unit
Above-mentioned location data can also be sent to management platform according to identical frequency by member, be determined by management platform according to what is received
Position data, draw out the tracing path of key chain, realize the whole process supervision to key chain.
If S205, the key chain are in the key locker, the positioning unit for closing the key chain is controlled.
In embodiments of the present invention, the occasion for needing to manage concentratedly for key only can leave key locker in key chain
Afterwards, the positioning unit of ability unlocking key button acquires location data.And when key chain is in key locker, then without executing above-mentioned behaviour
Make.
It therefore, can be by detecting whether key chain is in key locker, to determine the need for closing determining for key chain
Bit location.
In embodiments of the present invention, three contacts can be set on key chain surface.These three contacts can be used for key
The charging and communication of button.For example, DC positive power, the second contact can be connect by the first contact when charging to key chain
Then it is grounded.And when key chain is communicated with key locker, then it can be completed by the first contact and third contact.I.e., it is possible to by
First contact connects data line, and third contact connects clock line, realizes the I2C (Inter- between key chain and key locker
Integrated Circuit, twin wire universal serial bus) communication.
Therefore, it can detecte above-mentioned key chain and whether pass through Landline communication unit and communicated with key locker.If detecting key
Button is communicated by Landline communication unit with key locker, then can be determined that the key chain is in key locker.At this point it is possible to by controlling
Positioning unit is closed in unit control.
In embodiments of the present invention, by the key chain trace instruction of reception pipe platform, so as to according to specific
Frequency acquires location data, and draws out the tracing path of key chain, realizes to the monitoring of the mobile overall process of key chain, ensure that
Key and key chain using safe.
It should be noted that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment,
The execution sequence of each process should be determined by its function and internal logic, and the implementation process without coping with the embodiment of the present invention, which is constituted, appoints
What is limited.
Referring to Fig. 3, a kind of schematic diagram of the positioning device of key chain of one embodiment of the invention, the key are shown
Snap fit is equipped with positioning unit and communication unit, and described device can specifically include following module:
Opening module 301, for when detecting that key chain leaves key locker, the positioning list of the key chain to be opened in control
Member, the positioning unit is for acquiring location data;
Module 302 is established, the communication link for establishing between the communication unit of the key chain and preset management platform
It connects;
The location data is sent to the management platform for being based on the communication connection by sending module 303.
In embodiments of the present invention, described device can also include following module:
Frequency determining module is positioned, described in determining when receiving the key chain trace instruction of the management platform
Positioning frequency in key chain trace instruction;
Positioning unit control module, for according to the positioning frequency, control to open or close the positioning of the key chain
Unit.
In embodiments of the present invention, the communication unit may include wireless communication unit, and the sending module 303 is specific
May include following submodule:
Location data sending submodule, for based on the communication link between the wireless communication unit and the management platform
It connects, the location data is sent to the management platform according to the positioning frequency, the management platform is used for according to described in
Location data generates the tracing path of the key chain.
In embodiments of the present invention, the communication mode of the wireless communication unit may include following at least one:
2G communication, 3G communication, 4G communication, 5G communication, NB-IOT Internet of Things Network Communication, LORA communication, bluetooth, ZigBee are logical
Letter, Beidou RDSS communication.
In embodiments of the present invention, described device can also include following module:
Key chain detection module, for detecting whether the key chain is in the key locker;
Positioning unit closedown module controls if being in the key locker for the key chain and closes the key
The positioning unit of button.
In embodiments of the present invention, the communication unit may include Landline communication unit, the key chain detection module
It can specifically include following submodule:
Wire communication detection sub-module, for detecting whether the key chain passes through Landline communication unit and the key locker
Communication;
Key chain decision sub-module, if for detecting that the key chain passes through the Landline communication unit and the key
Case communication, then determine that the key chain is in the key locker.
In embodiments of the present invention, the positioning unit may include Beidou satellite navigation positioning unit, GPS satellite navigation
Positioning unit, Glonass satellite navigation and positioning unit, Galileo satellite navigation positioning unit, QZSS satellite navigation and positioning unit
At least one of.The station-keeping mode of the Beidou satellite navigation positioning unit is the positioning of Beidou RNSS single mode.
For device embodiment, since it is basically similar to the method embodiment, related so describing fairly simple
Place referring to embodiment of the method part explanation.
Referring to Fig. 4, a kind of schematic diagram of key chain of one embodiment of the invention is shown.As shown in figure 4, the present embodiment
Key chain 400 include: processor 410, memory 420 and be stored in the memory 420 and can be in the processor
The computer program 421 run on 410.The processor 410 realizes above-mentioned key chain when executing the computer program 421
Step in each embodiment of localization method, such as step S101 to S103 shown in FIG. 1, step S201 shown in Fig. 2 are extremely
S205.Alternatively, the processor 410 realizes each module in above-mentioned each Installation practice/mono- when executing the computer program 421
The function of member, such as the function of module 301 to 303 shown in Fig. 3.
Illustratively, the computer program 421 can be divided into one or more module/units, it is one or
Multiple module/the units of person are stored in the memory 420, and are executed by the processor 410, to complete the present invention.Institute
Stating one or more module/units can be the series of computation machine program instruction section that can complete specific function, the instruction segment
It can be used for describing implementation procedure of the computer program 421 in the key chain 400.For example, the computer program
421 can be divided into opening module, establish module and sending module, and each module concrete function is as follows:
Opening module, for controlling the positioning unit for opening the key chain when detecting that key chain leaves key locker,
The positioning unit is for acquiring location data;
Module is established, the communication connection for establishing between the communication unit of the key chain and preset management platform;
The location data is sent to the management platform for being based on the communication connection by sending module.
The key chain 400 may include, but be not limited only to, processor 410, memory 420.Those skilled in the art can be with
Understand, Fig. 4 is only a kind of example of key chain 400, does not constitute the restriction to key chain 400, may include than illustrating more
More or less component perhaps combines certain components or different components, such as the key chain 400 can also include defeated
Enter output equipment, network access equipment, bus etc..
The processor 410 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 420 can be the internal storage unit of the key chain 400, for example, key chain 400 hard disk or
Memory.The memory 420 is also possible to the External memory equipment of the key chain 400, such as is equipped on the key chain 400
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card,
Flash card (Flash Card) etc..Further, the memory 420 can also both include the inside of the key chain 400
Storage unit also includes External memory equipment.The memory 420 is for storing the computer program 421 and the key
Other programs and data needed for button 400.The memory 420, which can be also used for temporarily storing, have been exported or will be defeated
Data out.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations.Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.