Summary of the invention
The technical problem to be solved in the present invention is that above-mentioned requirements for the prior art it is higher, it is complicated for operation, cannot be simultaneouslyRow operation defect, provide a kind of pair of Intelligent storage cabinet itself require it is lower, easy to operate, can multi-user grasp parallel at the sceneThe method and device of the storage space of the acquirement or occupancy Intelligent storage cabinet of work.
The technical solution adopted by the present invention to solve the technical problems is: construct it is a kind of acquirement or occupancy Intelligent storage cabinetThe method of storage space, the Intelligent storage cabinet include at least one wireless transmission channel and Intelligent storage cabinetThe near radio transmission module of control unit connection;Described method includes following steps:
A) application program run on user's communication terminal passes through the wireless transmission channel and the Intelligent storageCabinet establishes connection;
B the unique identities identification information of the Intelligent storage cabinet) is obtained by the wireless transmission channel, and by describedThe data communication channel of user's communication terminal is sent to server;
C) according to the unique identities identification information of the Intelligent storage cabinet, the use information of the Intelligent storage cabinet is searched,One is selected in its idle storage space, the storage space case number (CN) chosen;
D unlocking instruction) is generated according to obtained storage space case number (CN) and is sent to by the wireless transmission channel describedIntelligent storage cabinet.
Further, the step A) further comprise:
A1 the application program) is run, the clothes are logged in by the data communication channel of user's communication terminalBusiness device;
A2 the broadcast singal that the near radio transmission module of the Intelligent storage cabinet issues) is received, to the serviceDevice requires to connect the key of the near radio transmission module;
A3) the key issued using the server, by the near radio transmission module wireless transmission channel withThe module establishes connection.
Further, the step C) further comprise:
C11) by the Intelligent storage cabinet information of the unique identities identification information of obtained Intelligent storage cabinet and server storageIt compares, obtains the corresponding storage space use information of the corresponding Intelligent storage cabinet of the identity identification information;
C12 an idle storage space) is selected in the storage space use information, by the volume of the storage spaceNumber it is sent to user's communication terminal;Meanwhile the storage space use information is labeled and is stored.
Further, the step C) further comprise:
C21) by the Intelligent storage cabinet information of the unique identities identification information of obtained Intelligent storage cabinet and server storageIt compares, obtains the corresponding storage space use information of the corresponding Intelligent storage cabinet of the identity identification information;
C22) the storage space use information is sent by the data communication channel of user's communication terminalThe application program onto user's communication terminal chooses an idle storage space, obtains its number;MeanwhileBy the storage space number upload server of selection, the storage space use information is labeled and is stored.
Further, the step C22) further comprise:
By storage space idle in the storage space use information received or the storage space of free time and its number byIt is shown on Application Program Interface according to its physical location in the Intelligent storage cabinet, clicks and select for user.
Further, the storage space use information is labeled empty including this selected storing to expressionBetween data be labeled, i.e., the setting specific bit in the data being revised as setting, indicating the storage space and usedValue.
Further, the step D) further comprise:
D1 the application program) is obtained respectively using the unique identities identification information of the Intelligent storage cabinet and is receivedThe number information of storage space;
D2 unlocking instruction) is generated according to setting rule using above- mentioned information, and sends the intelligence for the unlocking instructionEnergy locker makes corresponding electric control lock opening thereon.
The invention further relates to a kind of device for realizing the above method, the Intelligent storage cabinet includes having at least one wirelessTransmission channel, the near radio transmission module that is connect with the control unit of the Intelligent storage cabinet;Described device includes:
Connection unit: application program for will be run on user's communication terminal by the wireless transmission channel withThe Intelligent storage cabinet establishes connection;
Server connection unit: the unique identities for obtaining the Intelligent storage cabinet by the wireless transmission channel are knownOther information, and server is sent to by the data communication channel of user's communication terminal;
Storage space selecting unit: for the unique identities identification information according to the Intelligent storage cabinet, the intelligence is searchedThe use information of locker selects one in its idle storage space, the storage space case number (CN) chosen;
Unlocking instruction generates unit: for generating unlocking instruction according to obtained storage space case number (CN) and by described wirelessTransmission channel is sent to the Intelligent storage cabinet.
Further, the storage space selecting unit further comprises:
Use information obtains module: for storing the unique identities identification information of obtained Intelligent storage cabinet and serverIntelligent storage cabinet information compare, obtaining the corresponding storage space of the corresponding Intelligent storage cabinet of the identity identification information makesUse information;
Storage space selection and labeling module: for selecting an idle storing in the storage space use informationThe number of the storage space is sent user's communication terminal by space;Meanwhile letter is used to the storage spaceBreath is labeled and stores.
Further, the unlocking instruction generation unit further comprises:
Information obtains module: using the unique identities identification of the Intelligent storage cabinet for acquired application program of stating respectivelyThe number information of information and the storage space received;
Unlocking instruction generation module: it for generating unlocking instruction according to setting rule using above- mentioned information, and is opened describedLock instruction is sent to the Intelligent storage cabinet, makes corresponding electric control lock opening thereon.
The method and device for implementing acquirement or the storage space for occupying Intelligent storage cabinet of the invention, has below beneficial to effectFruit: it is run due to being provided near radio transmission module in Intelligent storage cabinet, while on the communication terminal of userApplication program, so that the transmission that the communication terminal of user and the Intelligent storage cabinet pass through above-mentioned near radio transmission moduleChannel connection, carries out the transmission of data;And being stored on the server in cloud using data for the Intelligent storage cabinet, it is above-mentioned to answerIt is connected by communication terminal with server with program, obtains these data and generate unlocking instruction;In this way, for intelligent storageIt for object cabinet, only needs to connect the communication terminal of user, store the identity code of its own and receives and execute outLock instruction, therefore the requirement to Intelligent storage cabinet itself is lower, operate it is relatively simple, at the scene can multi-user it is right simultaneouslyThe Intelligent storage cabinet is operated.
Specific embodiment
Below in conjunction with attached drawing, embodiments of the present invention is further illustrated.
As shown in Figure 1, the method and device in a kind of acquirement of the invention or the storage space for occupying Intelligent storage cabinet is realIt applies in example, the Intelligent storage cabinet includes control unit at least one wireless transmission channel, with the Intelligent storage cabinetThe near radio transmission module of connection;By above-mentioned near radio transmission module, which specifies with operationUser's communication terminal of application program connects, and specifies between above-mentioned Intelligent storage cabinet and user's communication terminalThe transmission of data, meanwhile, wireless communication data channel (the i.e. mobile communication end which passes through its ownThe Internet channel at end, for example, the common channel 3G, 4G or 5G), connection is in the server in cloud, in above-mentioned server and intelligenceForwarding information between energy locker;Specifically, in the present invention, in addition to the identity code of its own in Intelligent storage cabinetOutside, any data are not stored;The use information of storage space in Intelligent storage cabinet is stored in above-mentioned server;TogetherWhen, also without the distribution of storage space and its generation of unlocking instruction, which only connects above-mentioned Intelligent storage cabinetThe unlocking instruction transmitted by its near radio transmission module is received, the case of the storage space of designated opening in these instructionsNumber, as long as Intelligent storage cabinet executes instruction the electric control lock opened on corresponding position.In other words, in the present embodiment, instituteThe structure for stating the control unit of Intelligent storage cabinet is very simple, and without judgement relevant to unlocking and its production of unlocking instructionIt is raw.As shown in Figure 1, in the present embodiment, the method for the idle storage space of the acquirement or occupancy Intelligent storage cabinet, including it is as followsStep:
Step S11 connection Intelligent storage cabinet: it in the present embodiment, is passed due to being provided near radio in Intelligent storage cabinetDefeated module, the module regularly or incessantly can nearby send signal to it in the way of setting, which works asSo there is certain or limited sphere of action, when the communication terminal of user enters the range and operation application program (shouldApplication program is dedicated storage or the program for taking object) when, the above-mentioned signal that above-mentioned Intelligent storage cabinet issues is received, then shouldApplication program can be by being arranged in the mould corresponding with above-mentioned near radio transmission module of user's communication terminalBlock and above-mentioned Intelligent storage cabinet establish connection.In the present invention, above-mentioned near radio transmission module include bluetooth module,ZigBee module or radio frequency identification module, and it is again provided with corresponding module in the communication terminal of user, it enables it toIt is enough to be attached with the above-mentioned near radio transmission module being arranged in Intelligent storage cabinet.When being attached, it certainly pressesIt is attached according to the regulation of the near radio transmission module of setting.In the present embodiment, with above-mentioned near radio biographyDefeated module is illustrated for bluetooth module.From a security standpoint, above-mentioned application program and Intelligent storage cabinet itBetween data transmission be encrypted transmission.For this purpose, the application program and Intelligent storage cabinet on user's communication terminal carry outWhen connection, need key that can just be attached, and the key is issued by above-mentioned server.Specifically, this step is at thisIt can be further refined as in embodiment: run the application program, pass through the data communication of user's communication terminalChannel logs in the server;The broadcast singal that the near radio transmission module of the Intelligent storage cabinet issues is received, toThe server requirement connects the key of the near radio transmission module;The key issued using the server, is passed throughThe near radio transmission module wireless transmission channel and the module establish connection.
I.e. in the present embodiment, in the connection procedure of above-mentioned application program and Intelligent storage cabinet, it is necessary first to user's operation(can be on backstage or foreground) application program, login service device establish connection with server, are then receiving Intelligent storage cabinetNear radio transmission module (bluetooth module) issue broadcast singal when, Xiang Shangshu server requirement connects the close of the moduleKey, and connection is established using the key that the server returns.The benefit being arranged in this way is not only that can guarantee data transmissionSafety, for another angle, can obtain some in this step indicates the Intelligent storage cabinet or short range transmissionIt is mutually tested in the step of information of the identity of module, which can be below with the identity information of the Intelligent storage cabinet of acquirementCard.
Step S12 obtains the unique identities identification information of Intelligent storage cabinet and is sent to server: in this step, passing throughThe wireless transmission channel obtains the unique identities identification information of the Intelligent storage cabinet, and whole by user's mobile communicationThe data communication channel at end is sent to server.It is noted that unique body of the Intelligent storage cabinet obtained in this stepBy the identity information that the broadcast singal of bluetooth module obtains be in part identification information and previous step it is corresponding, can be identical, it is also possible to different information.In the case where the two difference, it should store in above-mentioned server and be closed by the corresponding of the twoSystem, this corresponding relationship is determined that in Intelligent storage cabinet manufacturing process, is stored when in advance or Intelligent storage cabinet initializesOr it is written in the database of above-mentioned server.
Step S13 selects one in the idle storage space in the Intelligent storage cabinet: in this step, according to described inThe unique identities identification information of Intelligent storage cabinet, searches the use information of the Intelligent storage cabinet, in its idle storage spaceSelection one, the storage space case number (CN) chosen;It is noted that in the present embodiment, above-mentioned selection Intelligent storage cabinetIdle storage space can be it is any on the server or according to setting rule selection, then by the volume for the storage space chosenNumber or case number (CN) be sent on the communication terminal of above-mentioned user;It is also possible to send out the above-mentioned use information obtained on serverIt is sent to user's communication terminal, is then shown idle storage space on the interface of application program, voluntarily by userSelection.
Step S14 generates unlocking instruction and by near radio transmission to the Intelligent storage cabinet: in this step,Unlocking instruction is generated according to obtained storage space case number (CN) and the Intelligent storage cabinet is sent to by the wireless transmission channel.In the present embodiment, no matter idle storage space is selected still to select on user's communication terminal on the server,Unlocking instruction is generated in application program.Specifically, in the present embodiment, the application program is obtained respectively to useThe number information of the unique identities identification information of the Intelligent storage cabinet and the storage space received;Then above- mentioned information are usedUnlocking instruction is generated according to setting rule, and sends the Intelligent storage cabinet for the unlocking instruction, makes corresponding electricity thereonControl lock is opened.The benefit being arranged in this way is can to reduce the complexity of the control system of server and Intelligent storage cabinet, maximumLimit time-consuming operation or transformation are distributed in independent terminal, shorten the occupancy to server and Intelligent storage cabinet as far as possibleTime, to realize that multi-user is parallel or standard concurrently operates.
Fig. 2 shows idle storage space is confirmed and selected specific in a kind of situation in the present embodimentStep, in this case, what when selection of idle storage space, was realized on the server, server is by the idle storing of selectionThe case number (CN) or number in space are sent to user's communication terminal, although having certain want to the performance of server in this caseAsk, still, benefit is that the volume of transmitted data between server and customer mobile terminal is smaller, more be suitble to network speed compared withSlow environment or situation.Include the following steps: in Fig. 2
Step S21 searches the unique identities identification information of the Intelligent storage cabinet on server, and it is corresponding using letter to obtain itsBreath: in this step, the Intelligent storage cabinet of the unique identities identification information of obtained Intelligent storage cabinet and server storage is believedBreath compares, and obtains the corresponding storage space use information of the corresponding Intelligent storage cabinet of the identity identification information.
Step S22 selects an idle storage space, and is numbered and be sent to user's communication terminal: in this stepIn rapid, an idle storage space is selected in the storage space use information, and the number of the storage space is sentTo user's communication terminal.
Step S23 updates the use information of the Intelligent storage cabinet: in this step, to the storage space use information intoRower note and storage.In the present embodiment, the storage space use information is labeled including selected to this is indicatedThe data of storage space be labeled, i.e., by the specific bit in the data be revised as setting, indicate that the storage space is madeSetting value.
What Fig. 3 was confirmed and was selected for idle storage space in the case of another in having shown the present embodiment nextSpecific steps.In this case, the selection of idle storage space is realized on user's communication terminal.Although needingData will be used to be issued by server, while the number by the storage space of selection also being needed to upload to service upon selectionDevice, still, since time-consuming work to be assigned on different user's communication terminals, so as to the system resource of serverConsumption it is smaller, therefore improve multiple users in this case and use parallel or the performance of parallel work-flow.In Fig. 3, packetInclude following steps:
Step S31 searches the unique identities identification information of the Intelligent storage cabinet on server, and it is corresponding using letter to obtain itsBreath: in this step, the Intelligent storage cabinet of the unique identities identification information of obtained Intelligent storage cabinet and server storage is believedBreath compares, and obtains the corresponding storage space use information of the corresponding Intelligent storage cabinet of the identity identification information.
Step S32 sends the use information to the mobile logical terminal of user: in this step, the storage space use informationIt is sent to by the data communication channel of user's communication terminal described using journey on user's communication terminalSequence.
The idle storage space of step S33 display, obtains that storage space is selected to number: in this step, will receiveStorage space use information in idle storage space or the storage space of free time and its number according to it in the Intelligent storagePhysical location on cabinet is shown on Application Program Interface, is clicked and is selected for user;When user selection after, obtain byThe number for the storage space chosen.In other words, on display interface can not no storage space number, but the number is practicalOn be transmitted to application program, convenient for determine storage space.
The idle storage space that step S34 sends selection is numbered to server, and updates the use letter of the Intelligent storage cabinetBreath: in this step, by the storage space number upload server of selection, to the storage space use information be labeled withStorage.In the present embodiment, the storage space use information is labeled empty including this selected storing to expressionBetween data be labeled, i.e., the setting specific bit in the data being revised as setting, indicating the storage space and usedValue.
It is noted that in the present embodiment, the selecting party of usual above-mentioned Fig. 2 and idle storage space shown in Fig. 3What formula excluded each other.I.e. if free space selection mode in Systematic selection Fig. 2, in same time and same equipmentThe mode of Fig. 3 would not occur.But in some cases, it can be possible to a system exists simultaneously above two mode, and according toEnvironment locating for system is selected automatically, for example, may use and service in the case where network signal or bad speedThe mode selected on device, to reduce volume of transmitted data;And it preferably or in the case where fast speed, then can choose in network signalThe mode (i.e. mode in Fig. 3) of selection is carried out in customer mobile terminal, in the hope of preferable parallel work-flow performance.This modeConversion can be by monitoring some parameter, for example, network signal intensity, if reach some given threshold decide whether intoRow switching.It can also be switched over according to the result of operation or time.One more typical example is to be firstly used in useFamily communication terminal carries out the mode of selection, but finds that data transmission period is longer, the bit error rate is high or cannot in implementation procedureAfter the problems such as transmission, original selection mode is abandoned, is changed to be selected on the server, to realize in poor network environmentLower realization operation.
The invention further relates to a kind of device for realizing the above method, Fig. 4 shows the structural schematic diagram of the device.EquallyGround, the Intelligent storage cabinet include it is at least one wireless transmission channel, connect with the control unit of the Intelligent storage cabinetNear radio transmission module;In the present embodiment, which is a bluetooth module.In Fig. 4, described device includes connectingOrder member 41, server connection unit 42, storage space selecting unit 43 and unlocking instruction generate unit 44.Wherein, connection is singleMember 41 is for passing through the wireless transmission channel and the Intelligent storage for the application program run on user's communication terminalCabinet establishes connection;Server connection unit 42 is used to obtain unique body of the Intelligent storage cabinet by the wireless transmission channelPart identification information, and server is sent to by the data communication channel of user's communication terminal;Storage space selectionUnit 43 searches the use information of the Intelligent storage cabinet for the unique identities identification information according to the Intelligent storage cabinet,One is selected in its idle storage space, the storage space case number (CN) chosen;
Unlocking instruction generates unit 44 and is used to generate unlocking instruction according to obtained storage space case number (CN) and by the nothingLine transmission channel is sent to the Intelligent storage cabinet.
In addition, the storage space selecting unit 43 further comprises that use information obtains module 431 and storage space choosingIt selects and labeling module 432.Use information obtain the unique identities identification information of Intelligent storage cabinet of the module 431 for that will obtain withThe Intelligent storage cabinet information of server storage compares, and it is corresponding to obtain the corresponding Intelligent storage cabinet of the identity identification informationStorage space use information;Storage space selection and labeling module 432 are for selecting one in the storage space use informationThe number of the storage space is sent user's communication terminal by the storage space of a free time;Meanwhile to the storageObject space use information is labeled and stores.
It further comprises that information obtains module 441 and unlocking instruction generation module 442 that the unlocking instruction, which generates unit 44,.Wherein, information obtains module 441 for the acquired unique identities identification for stating application program using the Intelligent storage cabinet respectivelyThe number information of information and the storage space received;Unlocking instruction generation module 442 is used for using above- mentioned information according to settingRule generates unlocking instruction, and sends the Intelligent storage cabinet for the unlocking instruction, makes corresponding electric control lock opening thereon.
It is noted that in the present embodiment, above-mentioned each unit or module, can by realizing that the code of its function is constitutedIt, can also be on different physical terminals on the same physical terminal.For example, a unit, possible part of it codeOr component part is on customer mobile terminal, and another part code or component part are on the server or in Intelligent storage cabinet.But functionally, regardless of which kind of situation, it is able to achieve the function of its definition or the function of realizing its definition can be cooperated.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneouslyLimitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the artFor, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the inventionProtect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.