Summary of the invention
The disclosure provides the method, apparatus and readable storage medium storing program for executing of a kind of control of elastic lace device, can not depend on
Elastic lace device is controlled in the manual trigger action of user, the technical solution is as follows:
On the one hand, the disclosure provides a kind of control method of elastic lace device, the method includes:Obtain communications status
Information, the communications status information include and the state of the communication connection of the wireless telecom equipment of setting or the communication received
The intensity of signal, the signal of communication are that the wireless telecom equipment of the setting is sent;Based on the communications status information control
Elastic lace device processed carries out loose shoestring or the operation of tight shoestring.
Optionally, the wireless telecom equipment of the setting is one of following equipment:Bluetooth equipment, Wireless Fidelity
WIFI router or purple honeybee Zigbee equipment.
Optionally, the communications status information includes the state of the communication connection, described to be believed based on the communications status
Breath control elastic lace device carries out loose shoestring or the operation of tight shoestring, including:If the state of the communication connection connects from disconnection
The state of connecing becomes connected status, controls the elastic lace device and carries out loose shoestring operation;If the state of the communication connection
Connection status is gone off from connected status, the elastic lace device is controlled and carries out tight shoestring operation.
Optionally, the communications status information includes the intensity of the signal of communication received, described based on described logical
Believe that status information control elastic lace device carries out loose shoestring or the operation of tight shoestring, including:If the communication letter received
Number intensity be greater than the first signal strength threshold, control the elastic lace device and carry out loose shoestring operation;If described receive
The intensity of signal of communication be less than second signal intensity threshold, control the elastic lace device and carry out tight shoestring operation, it is described
First signal strength threshold is more than or equal to the second signal intensity threshold.
In one possible implementation, the method also includes:The wireless communication of the setting is determined by terminal
The authority information of equipment, the terminal include user interface;The acquisition communications status information, including:Based on the power
Limit information obtains the communications status information.
Optionally, the authority information includes at least one of following information:The wireless telecom equipment of the setting
The access pin of mark and the wireless telecom equipment of the setting.
On the other hand, the disclosure provides a kind of control device of elastic lace device, and described device includes:
Module is obtained, is configured as obtaining communications status information, the communications status information includes the channel radio with setting
Believe the state of the communication connection of equipment or the intensity of the signal of communication received, the signal of communication is the wireless of the setting
What communication equipment was sent;Control module is configured as the communications status information control got based on the acquisition module
Elastic lace device carries out loose shoestring or the operation of tight shoestring.
Optionally, the wireless telecom equipment of the setting is one of following equipment:Bluetooth equipment, Wireless Fidelity
WIFI router or purple honeybee Zigbee equipment.
Optionally, the communications status information includes the state of the communication connection, and the control module is configured as:
If the state of the communication connection becomes connected status from the state of disconnecting, controls the elastic lace device and carry out loose shoes
Band operation;If the state of the communication connection goes off connection status from connected status, the elastic lace device is controlled
Carry out tight shoestring operation.
Optionally, the communications status information includes the intensity of the signal of communication received, the control module, quilt
It is configured to:If the intensity of the signal of communication received is greater than the first signal strength threshold, the elastic lace device is controlled
Carry out loose shoestring operation;If the intensity of the signal of communication received is less than second signal intensity threshold, control described elastic
Lace device carries out tight shoestring operation, and first signal strength threshold is more than or equal to the second signal intensity threshold.
In a kind of possible embodiment, described device further includes:Authority module is configured as determining institute by terminal
The authority information of the wireless telecom equipment of setting is stated, the terminal includes user interface;The acquisition module, is configured
For:The communications status information is obtained based on the authority information.
Optionally, the authority information includes at least one of following information:The wireless telecom equipment of the setting
The access pin of mark and the wireless telecom equipment of the setting.
On the other hand, the disclosure provides a kind of control device of elastic lace device, and described device includes:
Processor;Memory for storage processor executable instruction;Wherein, the processor is configured to above-mentioned
Described in one side the step of any one method.
On the other hand, the disclosure provides a kind of computer readable storage medium, deposits on the computer readable storage medium
The step of containing instruction, any one method described in above-mentioned first aspect realized when described instruction is executed by processor.
Technical solution provided by the present disclosure is include at least the following beneficial effects:
Control of this method based on communications status information realization to elastic lace device, the communications status information include and set
The signal of communication that the state of the communication connection of fixed wireless telecom equipment or the wireless telecom equipment of the setting received are sent
Intensity bend over to operate without user independent of the manual trigger action of user, and make both hands extract user or
The user that individuals with disabilities etc. is not easy to trigger elastic lace device manually can control elastic lace device.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not
The disclosure can be limited.
Specific embodiment
To keep the purposes, technical schemes and advantages of the disclosure clearer, below in conjunction with attached drawing to disclosure embodiment party
Formula is described in further detail.
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Before carrying out detailed explanation to the embodiment of the present disclosure, application scenarios that first embodiment of the present disclosure is related to
It is introduced.
Currently, elastic lace device is applied in footwear, for example, sole has an electric motor, with shoes
Band is connected, and when electric motor rotates forward, shoestring can become tightly, and shoestring fluffs when electric motor inverts.In the related technology, had very
The operation that more elastic lace devices may be implemented loose shoestring and tie the shoelace.The operation that these devices carry out loose shoestring and tie the shoelace,
It can be controlled by trigger switch, user needs manual trigger switch to realize the control to the device of leisure tread shoes band.For example,
Elastic lace device is controlled by a button on shoes carries out loose shoestring or the operation of tight shoestring.Button is clicked, is carried out
Loose shoestring operation;Button is clicked again, carries out tight shoestring operation.Manual trigger switch realizes the control to the device of leisure tread shoes band
Method, need the trigger action of user, some special users cannot use, such as the user or disabled person of both hands extract
Scholar makes troubles to user.
In general, user needs control elastic lace device and realize the field of loose shoestring or tight shoestring
Scape is that comparison is fixed.For example, entrance or the place etc. for the sub- entrance that needs to take off one's shoes.Present disclose provides a kind of leisure tread shoes bands
The control method of device is to meet the demand carried out automatically controlling in this kind of place for needing to wear off shoes to elastic lace device.
Referring to Fig. 1, it illustrates a possible usage scenarios of the embodiment of the present disclosure.As shown in Figure 1, this use field
Jing Zhong is provided with wireless telecom equipment 11, which can send signal of communication.Aforementioned pine is configured on shoes 20
The control device 22 of tight lace device 21 and the elastic lace device 21.The control device 22 of elastic lace device 21 can be with
The wireless telecom equipment 11 carries out wireless communication, and obtains communications status information relevant to the wireless telecom equipment 11, and be based on
The communications status information, control elastic lace device 21 carry out loose shoestring or the operation of tight shoestring.
Optionally, which includes and the state of the communication connection of the wireless telecom equipment or receives
The intensity for the signal of communication that the wireless telecom equipment is sent.
Illustratively, the wireless telecom equipment based on wireless communication technique include but is not limited to the one of the following communication technology
Kind:
Bluetooth technology:For the wireless communication technique of short haul connection, generally, two devices have the bluetooth of Bluetooth chip
The initial connection of equipment needs the bluetooth equipment identified known to one of bluetooth equipment to another to send connection request, this is another
One bluetooth equipment receives the connection request, does not need access pin generally.After the completion of initial connection, when two bluetooth equipments
When being again close to, and meeting the connection standard of Bluetooth technology, then automatically into connection status.
Correspondingly, wireless telecom equipment is the bluetooth equipment for including Bluetooth chip;The communications status information includes and the indigo plant
Tooth equipment disconnect state and with the bluetooth equipment connected status.
Wireless Fidelity (Wireless Fidelity, WIFI) technology:For the communication technology of WLAN, generally
Ground, is arranged a WIFI router in WLAN, and device has the WIFI equipment of WIFI chip to obtain the WIFI router
The permission of the mark and access pin acquisition and the WIFI router based on the WIFI router sent;After obtaining permission,
When the WIFI equipment is close to the WIFI router, and meets the connection standard of WiFi technology, then automatically into connection status.
Correspondingly, the wireless telecom equipment of setting is WIFI equipment;The communications status information includes disconnected with the WIFI equipment
Open connection status and with the WIFI equipment connected status.Optionally, which includes that the WIFI received is set
The intensity for the signal of communication that preparation is sent, the intensity of the signal of communication can be the communication obtained after the permission for obtaining the WIFI equipment
Signal strength is also possible to the communication signal strength obtained when not obtaining the permission of the WIFI equipment.
Purple honeybee Zigbee communication technology:Suitable between the not high communication equipment of short, low in energy consumption and transmission rate into
The wireless communication technique of row data transmission, generally, two devices have the connection of the Zigbee equipment of Zigbee chip not need
Access pin;In order to obtain higher communications security, there are also the connections of the Zigbee equipment of some manufacturers to need access pin.
Correspondingly, the wireless telecom equipment of setting is Zigbee equipment;Communications status information includes and the Zigbee equipment
Communication connection state or the intensity of signal of communication that sends of the Zigbee equipment that receives.
Illustratively, the wireless telecom equipment that setting is arranged in usage scenario shown in Fig. 1 can one of as follows:
Setting includes the intelligent door lock of Bluetooth chip on door, which sends the communication letter based on Bluetooth technology
Number;
Alternatively, the WIFI router connecting with wide area network is arranged at home, which, which sends, is based on WiFi technology
Signal of communication, and provide covering family in region WLAN;
Alternatively, setting at home includes the Zigbee equipment of Zigbee chip, Zigbee equipment transmission is based on
The signal of communication of ZigBee technology.
Above-mentioned three kinds of wireless communication techniques are common wireless communication techniques, the channel radio with the above wireless communication technique
Letter equipment is the common communication equipment in the scene used in connection with of family or other disclosure;Scheme base provided by the disclosure
It, can be with other wireless telecom equipments in usage scenario in addition to the wireless telecom equipment of setting in above-mentioned wireless communication technique
The cordless communication network is shared, the implementation cost of the scheme of the disclosure is reduced.
Fig. 2 is a kind of flow chart of the control method of elastic lace device shown according to an exemplary embodiment, the control
Method processed can be executed by the control device of the elastic lace device in Fig. 1, as shown in Fig. 2, including the following steps.
In step s 201, communications status information is obtained.
Wherein, communications status information include with setting wireless telecom equipment communication connection state or receive
The intensity of signal of communication, the signal of communication are that the wireless telecom equipment of setting is sent.
Illustratively, which can pass through the wireless communication module in the control device of elastic lace device
Or the output interface of wireless communication chips obtains.
In step S202, loose shoestring or tight shoestring are carried out based on communications status information control elastic lace device
Operation.
In a kind of possible embodiment, step S202 includes:If the loose shoestring of communications status information and pre-configuration
Information matches then control elastic lace device and carry out loose shoestring operation;If the tight shoestring information of communications status information and pre-configuration
Matching then controls elastic lace device and carries out tight shoestring operation.
Illustratively, control elastic lace device carries out loose shoestring or the operation of tight shoestring, may include:Based on the communication
Status information generates electric signal, and the motor in electric signal triggering electric machine controller control elastic lace device makes corresponding behaviour
Make, such as rotates forward perhaps reversion to realize that control elastic lace device carries out loose shoestring or the operation of tight shoestring.
Optionally, the loose shoestring information of the pre-configuration and the tight shoestring information matches of pre-configuration are configurable, for example, logical
Cross the terminal configuration with user interface.
Control of this method based on communications status information realization to elastic lace device, the communications status information include and set
The signal of communication that the state of the communication connection of fixed wireless telecom equipment or the wireless telecom equipment of the setting received are sent
Intensity bend over to operate without user independent of the manual trigger action of user, and make both hands extract user or
The user that individuals with disabilities etc. is not easy to trigger elastic lace device manually can control elastic lace device.
Fig. 3 is a kind of flow chart of the control method of elastic lace device shown according to an exemplary embodiment, the control
Method processed can be executed by the control device of the elastic lace device in Fig. 1, as shown in figure 3, including the following steps.
In step S301, the authority information of the wireless telecom equipment of setting is determined by terminal.
Wherein, terminal includes user interface, for example, it may be mobile phone, tablet computer, desktop computer, smartwatch
Deng.
Due to being limited etc. cost and space, the leisure tread shoes with the device that control method is implemented usually do not include with
User carries out the interface of information exchange, such as display screen or key etc., therefore can be by including user interface
Terminal carries out setting relevant to the wireless telecom equipment of setting, and correlation setting includes the wireless telecom equipment obtained with setting
Authority information.
Optionally, authority information includes at least one of following information:
The access pin of the wireless telecom equipment of the mark and setting of the wireless telecom equipment of setting.
For a kind of wireless communication technique, which includes the mark of the wireless telecom equipment of setting, such as bluetooth
Technology.
For another kind of wireless communication technique, which includes the mark of the wireless telecom equipment of setting and accesses close
Code, such as WiFi technology.
In a kind of possible embodiment of the present embodiment, when the wireless telecom equipment of setting is bluetooth equipment:
The control device of elastic lace device scans Bluetooth signal, for example, by bluetooth module in the control device or
The scanning of person's Bluetooth chip;
The mark of bluetooth equipment corresponding to the Bluetooth signal scanned is sent to by the control device of elastic lace device
Terminal;
The mark for the bluetooth equipment that terminal displays reception arrives, for example, the application software in terminal shows the bluetooth equipment
The list of mark;
Terminal receives user to the selection information of the mark of shown bluetooth equipment, for example, receiving the selection of user's touch screen
A bluetooth equipment mark;
The mark for the bluetooth equipment that terminal is selected according to selection information acquisition user and the mark for sending the bluetooth equipment
To the control device of elastic lace device;
The control device of elastic lace device receives the mark of the bluetooth equipment of terminal transmission, and based on the indigo plant received
The mark of tooth equipment obtains the permission with the bluetooth devices.And then the initial connection of realization and the bluetooth equipment.Wherein, eventually
Holding bluetooth equipment indicated by the mark of the bluetooth equipment sent is the wireless telecom equipment of the setting in step 301.
In the alternatively possible embodiment of the present embodiment, when the wireless telecom equipment of setting is WIFI equipment:
The corresponding service set of one or more WIFI signal that the control device of elastic lace device will scan
(Service Set Identifier, SSID) list is sent to terminal;
But terminal shows the ssid list to user;
Terminal obtains the SSID of user's selection and the corresponding access pin of the SSID of user's input;
Terminal sends the SSID and access pin to the control device of elastic lace device;
The control device of elastic lace device receives the SSID and access pin, and is obtained based on the SSID and access pin
With the authority information of WIFI router corresponding to the SSID communicate.Wherein, which is in step 301
The wireless telecom equipment of setting.
It should be noted that step S301 is optional step.Step S301 is used to obtain the wireless telecom equipment of setting
Authority information, after obtaining the authority information, the acquisition communications status information carried out again does not need then to execute step S301.
In step s 302, communications status information is obtained.
The communications status information is referring to the related description in step S201, and details are not described herein.
In step S303, loose shoestring or tight shoestring behaviour are carried out based on communications status information control elastic lace device
Make.
In a kind of possible embodiment, communications status information includes connecting with the wireless device communication of setting
State, step S303 include:
If the state of communication connection becomes connected status from the state of disconnecting, control elastic lace device carries out loose shoes
Band operation;
If the state of communication connection goes off connection status from connected status, control elastic lace device carries out tight shoes
Band operation.
Illustratively, when the wireless telecom equipment of setting is WIFI equipment, the implementation of step S303 be can be:
If the connection with the WIFI equipment of setting becomes connected status from the state of disconnecting, control elastic lace device carries out loose shoes
Band operation;If the connection with the WIFI equipment of setting goes off connection status from connected status, elastic lace device is controlled
Carry out tight shoestring operation.Wherein, the connection status of WIFI equipment referring to aforementioned WiFi technology related description.
Elastic lace device is controlled by the variation of the state of communication connection and carries out loose shoestring or the operation of tight shoestring, is not necessarily to
Further sending or receive other interactive information by signal of communication can be realized control to elastic lace device, using more
Few network overhead, while reducing the power consumption of the control device of elastic lace device.
In alternatively possible embodiment, communications status information includes the intensity of the signal of communication received, step
S303 includes:
If the intensity of the signal of communication received is greater than the first signal strength threshold, control elastic lace device carries out loose shoes
Band operation;
If the intensity of the signal of communication received is less than second signal intensity threshold, controls the elastic lace device and carry out
Tight shoestring operation.
Wherein, the first signal strength threshold is more than or equal to second signal intensity threshold.
Illustratively, when the wireless telecom equipment of setting is WIFI router, the implementation of step S303 can be with
It is:When outside door close to entrance, the signal strength for receiving the WIFI signal of the WIFI router is greater than the first signal
Intensity threshold, control elastic lace device carry out loose shoestring operation;When from family close to doorway, the WIFI router is received
The signal strength of WIFI signal is less than second signal intensity threshold, and control elastic lace device carries out tight shoestring operation.
Control of this method based on communications status information realization to elastic lace device, the communications status information include and set
The signal of communication that the state of the communication connection of fixed wireless telecom equipment or the wireless telecom equipment of the setting received are sent
Intensity bend over to operate without user independent of the manual trigger action of user, and make both hands extract user or
The user that individuals with disabilities etc. is not easy to trigger elastic lace device manually can control elastic lace device.
Control elastic lace device by the variation of the connection status of the wireless telecom equipment with setting, can enter or
When leaving the place for needing leisure tread shoes band, it can quickly control elastic lace device and carry out loose shoestring or the operation of tight shoestring.
By setting signal intensity threshold, the control device of elastic lace device can be made to set in the wireless communication of setting
It is standby when being placed on positions different at a distance from the control device of the elastic lace device, it remains to obtain signal of communication.
Fig. 4 is a kind of block diagram of elastic lace device 400 shown according to an exemplary embodiment.Referring to Fig. 4, the device
Including obtaining module 410 and control module 420.
The acquisition module 410 is configured to obtain communications status information.
Wherein, communications status information include with setting wireless telecom equipment communication connection state or receive
The intensity of signal of communication, the signal of communication are that the wireless telecom equipment of setting is sent.
The control module 420 is configured as controlling leisure tread shoes band based on the communications status information that acquisition module 410 is got
Device carries out loose shoestring or the operation of tight shoestring.
Control of this method based on communications status information realization to elastic lace device, the communications status information include and set
The signal of communication that the state of the communication connection of fixed wireless telecom equipment or the wireless telecom equipment of the setting received are sent
Intensity bend over to operate without user independent of the manual trigger action of user, and make both hands extract user or
The user that individuals with disabilities etc. is not easy to trigger elastic lace device manually can control elastic lace device.
In a kind of optional embodiment, the control module 420, if the state for being configured as communication connection connects from disconnection
The state of connecing becomes connected status, and control elastic lace device carries out loose shoestring operation;If the state of communication connection is from having connected
State goes off connection status, and control elastic lace device carries out tight shoestring operation.
In another optional embodiment, the control module 420, if being configured as the strong of the signal of communication received
Degree is greater than the first signal strength threshold, and control elastic lace device carries out loose shoestring operation;If the signal of communication received is strong
Degree is less than second signal intensity threshold, and control elastic lace device carries out tight shoestring operation, the first signal strength threshold be greater than or
Person is equal to second signal intensity threshold.
In another optional embodiment, which further includes:Authority module 430, is configured as
The authority information of the wireless telecom equipment of setting is determined by terminal.Wherein, terminal includes user interface.
Wherein, authority information includes at least one of following information:The mark and setting of the wireless telecom equipment of setting
Wireless telecom equipment access pin.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Fig. 5 is a kind of block diagram of the control device 500 of elastic lace device shown according to an exemplary embodiment.Example
Such as, device 500 can be messaging devices, intelligentized Furniture articles etc..
Referring to Fig. 5, device 500 may include following one or more components:Processing component 501, memory 502, and
Communication component 503.
The integrated operation of the usual control device 500 of processing component 501.Processing component 501 may include one or more places
Device 510 is managed to execute instruction, to perform all or part of the steps of the methods described above.In addition, processing component 501 may include one
A or multiple modules, convenient for the interaction between processing component 501 and other assemblies.Memory 502 is configured as storing various types of
The data of type are to support the operation in device 500.The example of these data includes any application for operating on device 500
The instruction of program or method.Memory 502 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Communication component 503 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device
500 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation
In example, the communication component 503 further includes near-field communication (NFC) module, to promote short range communication.For example, NFC module can base
In radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and its
His technology is realized.
Optionally, which further includes:I/O interface 504 provides between processing component 501 and peripheral interface module
Interface.
Power supply module 505 provides electric power for the various assemblies of device 500.Power supply module 505 may include power management system
System, one or more power supplys and other with for device 500 generate, manage, and distribute the associated component of electric power.
In the exemplary embodiment, device 500 can be believed by one or more application specific integrated circuit (ASIC), number
Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided
It such as include the memory 502 of instruction, above-metioned instruction can be executed by the processor 510 of device 500 to complete the above method.For example,
The non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk
With optical data storage devices etc..
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium is additionally provided, when the storage is situated between
When instruction in matter is executed by the processor of mobile terminal, so that mobile terminal is able to carry out a kind of control of elastic lace device
Method, the method is as previously mentioned, details are not described herein.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.