Communication method and system between devices, wearable device and storage medium
By detecting function button operations on wearable devices and sending emergency instructions, the problem of being unable to call the police in emergencies is solved, timely rescue and safe information transmission are achieved, and personal safety is improved.
Patent Information
- Application Number
- CN202410767593.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-08-30
AI Technical Summary
In an emergency, especially when a mobile phone is not around or using a mobile phone to call the police may pose a threat to personal safety, there is a lack of simple and reliable ways to call the police.
By detecting the operation of function buttons on the wearable device, it can determine whether the wearer is in an emergency state, send emergency instructions to the corresponding electronic device, and perform emergency events, such as sending call for help instructions, collecting and sending audio or video information, obtaining and transmitting location information and even forward instructions through third-party devices when communications are interrupted.
It provides timely rescue in emergency situations to ensure the safety of the wearer, and performs different emergency events through different operations, accurately transmits on-site information, and improves personal safety.
Smart Images

Figure CN118574103A
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of wearable devices, and in particular, relates to a method and system for communication between devices, a wearable device, and a storage medium. Background Art
[0002] When you need to call the police in an emergency, the mobile phone is the most commonly used alarm device. However, in some emergency situations, if the mobile phone is not with you, you cannot call the police through the mobile phone; or when personal safety is threatened, using the mobile phone to call the police is easy to be discovered. For example, when an elderly person is alone at home, if he suddenly falls and cannot get up, but the mobile phone is not with him, in this case, other simple and feasible alarm methods are needed. Summary of the invention
[0003] The embodiments of the present application provide a method, system, wearable device and storage medium for communication between devices, which can solve the problem that in some emergency scenarios, it is impossible to report an emergency through a mobile phone, which may pose a threat to personal safety.
[0004] In a first aspect, an embodiment of the present application provides a method for communication between devices, which is applied to a wearable device, and the method includes:
[0005] Detecting a first operation on a first function button on the wearable device;
[0006] If the first operation is a first preset operation, in response to the first operation, a first instruction is sent to a first electronic device that is communicatively connected to the wearable device, wherein the first instruction is used to instruct the first electronic device to execute a first emergency event;
[0007] If the first operation is a second preset operation, a second instruction is sent to the first electronic device in response to the first operation, where the second instruction is used to instruct the first electronic device to execute a second emergency event.
[0008] In a possible implementation manner of the first aspect, the first emergency event is sending a help instruction to a second electronic device, and contact information of the second electronic device is stored in the first electronic device;
[0009] The second emergency event is indicating audio information or video information collected by the first electronic device, and sending the audio information or video information to the second electronic device; or
[0010] If the first operation is a second preset operation, then in response to the first operation, the recording function of the wearable device is turned on to collect audio information; correspondingly, the second emergency event is to send the audio information collected by the wearable device to the second electronic device.
[0011] In a possible implementation manner of the first aspect, after sending the second instruction to the first electronic device, the method further includes:
[0012] A third instruction is received, where the third instruction is used to instruct the wearable device to turn on a recording function of the wearable device; wherein the third instruction is issued when the first electronic device detects that the voice of the wearer of the wearable device is less than a preset volume.
[0013] In a possible implementation manner of the first aspect, if the first operation is a first preset operation, then in response to the first operation, the method further includes:
[0014] The wearable device uses a positioning sensor in the wearable device to obtain location information of the wearable device; accordingly, the first instruction also includes the location information of the wearable device, and the first instruction is also used to instruct the first electronic device to send the location information of the wearable device to the second electronic device;
[0015] Alternatively, the first electronic device obtains the location information of the first electronic device; accordingly, the first instruction also includes the location information of the first electronic device, and the first instruction is also used to instruct the first electronic device to send the location information of the first electronic device to the second electronic device.
[0016] In a possible implementation manner of the first aspect, if the first operation is a first preset operation, in response to the first operation, sending a first instruction to a first electronic device that is communicatively connected to the wearable device includes:
[0017] If it is detected that the first preset operation is performed multiple times within a preset time, a first instruction is sent to a first electronic device that is communicatively connected to the wearable device in response to the first operation.
[0018] In a possible implementation manner of the first aspect, the first preset operation is at least one of single-click, double-click, and long press; the second preset operation is at least one of single-click, double-click, and long press.
[0019] In a possible implementation manner of the first aspect, the method further includes:
[0020] The wearable device obtains the posture information of the wearable device by using the motion sensor in the wearable device;
[0021] Determining, based on the posture information, whether the wearer of the wearable device has fallen;
[0022] If it is determined that the wearer of the wearable device falls, and it is detected that the wearer of the wearable device has been in a falling state within a preset time, a first instruction is sent to the first electronic device that is communicatively connected to the wearable device.
[0023] In a possible implementation manner of the first aspect, after sending the first instruction to the first electronic device that is communicatively connected to the wearable device, the method further includes:
[0024] If it is detected that the communication connection between the wearable device and the first electronic device is interrupted, or the wearable device does not receive the first response within a preset time, a fourth instruction is sent to a third electronic device that is communicatively connected to the wearable device; the fourth instruction is used to instruct the third electronic device to execute the first emergency event; the first response is a response sent by the first electronic device to the wearable device to receive the first instruction,
[0025] After sending the second instruction to the first electronic device, the method further includes:
[0026] If it is detected that the communication connection between the wearable device and the first electronic device is interrupted, or the wearable device does not receive the second response within a preset time, a fifth instruction is sent to a third electronic device that is communicatively connected to the wearable device; the fifth instruction is used to instruct the third electronic device to execute the second emergency event; the second response is a response sent by the first electronic device to the wearable device to receive the second instruction.
[0027] In a second aspect, an embodiment of the present application provides a wearable device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements a method as described in any one of the first aspects when executing the computer program.
[0028] In a third aspect, an embodiment of the present application provides an inter-device communication system, including a first electronic device, a second electronic device, a wearable device, and a third electronic device;
[0029] The wearable device is used to execute the method as described in any one of the first aspects.
[0030] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method as described in any one of the first aspects is implemented.
[0031] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a wearable device, enables the wearable device to execute any of the methods described in the first aspect.
[0032] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0033] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the embodiments of the present application can determine whether the wearer of the wearable device is in an emergency state by detecting the operation on the function keys of the wearable device, and when in an emergency state, the first electronic device can execute an emergency event to help the wearer of the wearable device get timely rescue. Moreover, by performing different operations on the function keys of the wearable device, the first electronic device can execute different emergency events, thereby accurately transmitting the on-site information of the wearer of the wearable device. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0035] Figure 1 is a schematic diagram of the structure of an inter-device communication system provided by an embodiment of the present application;
[0036] Figure 2 It is a schematic diagram of the interaction flow of the inter-device communication method provided in one embodiment of the present application;
[0037] Figure 3 It is a structural block diagram of an inter-device communication apparatus provided in one embodiment of the present application. DETAILED DESCRIPTION
[0038] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0039] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0040] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0041] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0042] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0043] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0044] Figure 1 A structural block diagram of an inter-device communication system disclosed in an embodiment of the present application is shown, and the system includes: a wearable device 10, a first electronic device 11, and a second electronic device 12.
[0045] The wearable device 10 of the embodiment of the present application may be a bracelet, a finger ring, a brooch, an earphone, a hearing aid or a watch, etc. A microprocessor and a first function key are provided in the wearable device 10. The first function key may be a physical key, such as a press key, a knob key, a wave key, a push key, etc.; it may also be a virtual key; or it may be a touch key.
[0046] The first electronic device 11 of the embodiment of the present application may be a mobile phone of the wearer of the wearable device, the second electronic device 12 may be a mobile phone of an emergency contact, and the contact information of the second electronic device 12 is stored in the first electronic device 11. Specifically, the contact information may be a phone number, an email address, a communication friend, etc.
[0047] The first electronic device 11 and the wearable device 10 are communicatively connected, for example, the first electronic device 11 and the wearable device 10 are connected via Bluetooth or WIFI.
[0048] The wearable device 10 is equipped with a pressure sensor and / or a capacitive sensor, etc., for capturing various operations of the wearer of the wearable device, including key operations. These sensors can detect physical changes or electrical signal changes when the key is pressed. Therefore, the wearable device 10 can detect the first operation acting on the first function key on the smart ring. If the first operation is a first preset operation, in response to the first operation, a first instruction is sent to a first electronic device that is communicatively connected to the wearable device 10, and the first instruction is used to instruct the first electronic device 11 to execute a first emergency event; if the first operation is a second preset operation, in response to the first operation, a second instruction is sent to the first electronic device 11, and the second instruction is used to instruct the first electronic device 11 to execute a second emergency event.
[0049] The first preset operation may be at least one of a single click, a double click, and a long press; the second preset operation may be at least one of a single click, a double click, and a long press. It is worth noting that the first function button may refer to a single button or two or more buttons. Exemplarily, if a long press of button A is used as the first preset operation, the wearable device sends a first instruction to the first electronic device, and if a double click of button A or button B is used as the second preset operation, the wearable device 10 sends a second instruction to the first electronic device 11. In order to prevent accidental touches, long pressing button A and button B at the same time may be used as the first preset operation, and single clicking button A and button B at the same time may be used as the second preset operation. There are many preset operations for buttons, which are not limited in this embodiment.
[0050] For example, the wearable device 10 takes a smart ring as an example. In one possible scenario, since the smart ring is very small, the operation of the first function button on the smart ring is not easy to be discovered, so when personal safety is threatened, the command can be sent to the emergency contact without being noticed. In another possible scenario, if an elderly person wears a smart ring, when the elderly person falls and cannot pick up the mobile phone or the mobile phone is not around, the elderly person only needs to press a button on the smart ring to send a call for help to the elderly person's children, so as to achieve the purpose of timely treatment.
[0051] This embodiment determines whether the wearer of the wearable device is in an emergency state by detecting the operation on the function button of the wearable device. When in an emergency state, the first electronic device executes an emergency event to help the wearer of the wearable device get timely rescue. In addition, by performing different operations on the function button of the wearable device, the first electronic device can execute different emergency events, thereby accurately transmitting the on-site information of the wearer of the wearable device.
[0052] The first emergency event may be sending a distress call instruction to the second electronic device 12, thereby notifying the emergency contact that the wearer of the wearable device has encountered an emergency.
[0053] In some optional embodiments, the second emergency event is audio information or video information collected by the first electronic device 11, and the sending of audio information or video information to the second electronic device 12. That is, the first electronic device 11 starts recording or video recording, and sends the recording or video recording to the second electronic device 12. In other optional embodiments, a recording module is provided in the wearable device 10. If the first operation is the second preset operation, then in response to the first operation, the microprocessor turns on the recording module of the wearable device 10 to collect audio information; accordingly, the second emergency event is sending the audio information collected by the wearable device 10 to the second electronic device 12. That is, the wearable device 10 starts recording, and the first electronic device 11 sends the recording collected by the wearable device to the second electronic device 12.
[0054] This embodiment sends audio information or video information to the emergency contact, so that the emergency contact can know the sound or video of the environment where the wearer of the wearable device is located, and then make a more accurate judgment. For example, if an elderly person falls, the wearable device or the first electronic device can collect the elderly person's voice or groaning, thereby helping the emergency contact know the elderly person's real-time condition.
[0055] In some optional implementations, a positioning sensor is provided in the wearable device 10, and the wearable device 10 uses the positioning sensor in the wearable device to obtain the position information of the wearable device; accordingly, the first instruction also includes the position information of the wearable device 10, and the first instruction is also used to instruct the first electronic device 11 to send the position information of the wearable device to the second electronic device 12. In some other optional implementations, the first electronic device 11 obtains the position information of the first electronic device 11; accordingly, the first instruction also includes the position information of the first electronic device 11, and the first instruction is also used to instruct the first electronic device 11 to send the position information of the first electronic device 11 to the second electronic device 12.
[0056] This embodiment sends the location information to the emergency contact, so that the emergency contact can quickly find the wearer of the wearable device 10, so that the wearer of the wearable device 10 can escape from danger as soon as possible.
[0057] In some optional implementations, a motion sensor is provided in the wearable device 10, and the motion sensor may be a six-axis sensor or a nine-axis sensor. The motion sensor in the wearable device 10 is used to obtain the posture information of the wearable device; according to the posture information, it is determined whether the wearer of the wearable device falls; if it is determined that the wearer of the wearable device falls, and it is detected that the wearer of the wearable device has been in a falling state within a preset time, a first instruction is sent to the first electronic device 11 that is communicatively connected to the wearable device 10.
[0058] Taking into account that the elderly may temporarily lose their ability to move after falling, this embodiment obtains the posture information of the wearable device 10 through a motion sensor, and then obtains the posture of the elderly. If the elderly is found to have fallen and the duration exceeds a preset time, the elderly does not need to operate the buttons, and the first instruction is directly sent to the second electronic device 12.
[0059] In some optional implementations, the inter-device communication system of the embodiment of the present application further includes: a third electronic device 13. The third electronic device 13 is in communication connection with the second electronic device 12. When it is detected that the communication connection between the wearable device 10 and the first electronic device 11 is interrupted, or the wearable device 10 does not receive the first response within a preset time, the wearable device 10 sends a fourth instruction to the third electronic device 13; the fourth instruction is used to instruct the third electronic device 13 to execute the first emergency event; the first response is a response sent by the first electronic device 11 to the wearable device 10 to receive the first instruction.
[0060] Exemplarily, if the first electronic device 11 is turned off or the first instruction sent by the wearable device 10 to the first electronic device 11 is lost, the first electronic device 11 will not receive the first instruction, so that the first electronic device 11 cannot execute the first emergency event, and the second electronic device 12 cannot receive the call for help instruction. In order to reduce the situation where the wearer of the wearable device 10 performs the first preset operation on the first function button, but the second electronic device 12 does not receive the call instruction, the third electronic device 13 is provided in this embodiment. The third electronic device 13 can be a computer or a home monitoring device. Taking the third electronic device 13 as an example, when it is detected that the communication connection between the wearable device 10 and the first electronic device 11 is interrupted, or the wearable device 10 does not receive the first response within the preset time, the wearable device 10 sends a fourth instruction to the computer; the fourth instruction is used to instruct the computer to send a call for help instruction to the mobile phone of the emergency contact. The computer can send a distress call to the emergency contact's mobile phone through chat software, such as WeChat, QQ, etc.; it can also be sent through third-party SMS software, such as Handy SMS, PC SMS, TeslaSMS, etc. These software can send SMS to mobile phones through Internet connection; in addition, it can also be sent through mobile phone simulators, web version SMS platforms, mailboxes, etc.; when using these software / platforms, it is necessary to ensure that both the computer and the mobile phone are connected to the Internet, and the corresponding software or application needs to be installed on the mobile phone. The third electronic device takes the monitoring device as an example. The monitoring device must at least include: front-end equipment, transmission equipment and back-end equipment. Front-end equipment camera, lens, pan / tilt, etc. The transmission part is responsible for transmitting the video / audio signals and control and alarm signals collected by the front-end device to the back-end device. The transmission media includes wired, wireless or optical fiber, etc. The back-end device is the command center that realizes the functions of the entire monitoring device. It is used to process the video / audio data and send the distress call to the emergency contact's mobile phone in case of emergency situations such as the elderly falling. The emergency contact needs to install the mobile phone APP that matches the monitoring device in advance and complete the relevant settings. When an alarm message is received, the mobile phone APP will send a notification, such as a push message, vibration or ringtone, to remind the emergency contact to check.
[0061] Similarly, if it is detected that the communication connection between the wearable device 10 and the first electronic device 11 is interrupted, or the wearable device 10 does not receive the second response within the preset time, a fifth instruction is sent to the third electronic device 13; the fifth instruction is used to instruct the third electronic device 13 to execute the second emergency event; the second response is a response sent by the first electronic device 11 to the wearable device 10 to receive the second instruction.
[0062] By setting up a third electronic device 13, this embodiment can send the emergency instruction / audio information or video information of the wearer of the wearable device to the second electronic device 12 through the third electronic device 13 when the first electronic device 11 is turned off or the first instruction / second instruction is lost, thereby improving the stability and practicality of the system.
[0063] Figure 2 A schematic flow chart of the inter-device communication method provided by the present application is shown. As an example but not a limitation, the method can be applied to the above-mentioned wearable device. The method includes:
[0064] S110: Detecting a first operation on a first function button on the wearable device.
[0065] Exemplarily, the wearable device may be a bracelet, a finger ring, a brooch or a watch, etc. The wearable device is equipped with a pressure sensor and / or a capacitive sensor, etc., for capturing various operations of the wearer of the wearable device, including key operations, and these sensors can detect physical changes or electrical signal changes when a key is pressed.
[0066] S121: If the first operation is a first preset operation, in response to the first operation, a first instruction is sent to a first electronic device that is communicatively connected to the wearable device.
[0067] Exemplarily, the first preset operation is at least one of single click, double click, and long press. In order to avoid accidental touch as much as possible, single click, double click, and long press can be combined as the first preset operation, or the first preset operation can be performed multiple times.
[0068] Exemplarily, the first electronic device may be a mobile phone of a wearer of the wearable device.
[0069] S122: The first electronic device executes the first emergency event according to the first instruction, and the contact information of the second electronic device is stored in the first electronic device.
[0070] Exemplarily, the second electronic device may be a mobile phone of an emergency contact. The contact information may be a phone number, an email address, a communication friend, etc. The first emergency event may be sending a call for help instruction to the second electronic device.
[0071] S131: If the first operation is a second preset operation, sending a second instruction to the first electronic device in response to the first operation.
[0072] Exemplarily, the second preset operation is at least one of single-click, double-click, and long press.
[0073] S132: The first electronic device executes a second emergency event according to the second instruction.
[0074] Exemplarily, the second emergency event is to indicate the audio information or video information collected by the first electronic device, and to send the audio information or video information to the second electronic device; or, if the first operation is the second preset operation, then in response to the first operation, the recording function of the wearable device is turned on to collect audio information; accordingly, the second emergency event is to send the audio information collected by the wearable device to the second electronic device. In other words, the audio information can be collected by both the first electronic device and the wearable device, and who collects it can be selected according to the actual situation.
[0075] In emergency scenarios, instructions can be sent to emergency contacts by simply operating the wearable device, thereby improving the safety of the wearer of the wearable device.
[0076] In some optional implementations, whether the audio information is collected by the first electronic device or by the wearable device is determined in the following manner:
[0077] S141: The first electronic device collects the voice of the wearer of the wearable device according to the second instruction, and determines whether the voice of the wearer of the wearable device collected by the first electronic device is greater than a preset volume. If so, the audio information collected by the first electronic device is sent to the second electronic device; if the voice of the wearer of the wearable device collected by the first electronic device is less than the preset volume, the first electronic device issues a third instruction to the wearable device.
[0078] S142: The wearable device receives the third instruction, and the wearable device turns on the recording function of the wearable device according to the third instruction.
[0079] S143: The wearable device sends the collected audio information to the first electronic device, and the first electronic device sends the audio information collected by the wearable device to the second electronic device.
[0080] In a possible scenario, if the first electronic device is placed in the living room, and the elderly person falls in the bathroom, the elderly person performs the second preset operation on the first function button on the smart ring, and the first electronic device collects audio information and sends it to the second electronic device. At this time, since the elderly person is far away from the first electronic device, the emergency contact person cannot hear the elderly person's voice clearly, and the emergency contact person cannot immediately understand what happened to the elderly person. For this scenario, in this embodiment, when the first electronic device collects the elderly person's voice less than the preset volume, the first electronic device sends a third instruction to the smart ring, and the smart ring turns on its own recording function according to the third instruction. The smart ring then sends the elderly person's voice to the first electronic device, and the first electronic device sends the elderly person's voice to the second electronic device, so that the emergency contact person can hear the elderly person's voice more clearly.
[0081] In some optional implementations, after S120, the method further includes:
[0082] S150: The wearable device obtains location information of the wearable device using a positioning sensor in the wearable device; accordingly, the first instruction also includes the location information of the wearable device, and the first instruction is further used to instruct the first electronic device to send the location information of the wearable device to the second electronic device;
[0083] Alternatively, the first electronic device obtains the location information of the first electronic device; accordingly, the first instruction also includes the location information of the first electronic device, and the first instruction is also used to instruct the first electronic device to send the location information of the first electronic device to the second electronic device.
[0084] In a possible scenario, an elderly person is lost outside and cannot clearly tell where he is, nor can he use the positioning function. At this time, after the elderly person performs the first preset operation on the smart ring, the smart ring or the first electronic device obtains his location, and the first electronic device sends the location information to the second electronic device, so that the emergency contact can know the location of the elderly person.
[0085] In some optional implementations, the method further includes S161 and S162, which are specifically as follows:
[0086] S161: The wearable device uses a motion sensor in the wearable device to obtain posture information of the wearable device, and determines whether the wearer of the wearable device falls according to the posture information.
[0087] S162: If it is determined that the wearer of the wearable device falls, and it is detected that the wearer of the wearable device has been in a falling state for a preset time, a first instruction is sent to a first electronic device that is communicatively connected to the wearable device.
[0088] In a possible scenario, an elderly person falls down at home and cannot make phone calls or operate buttons on the smart ring. At this time, the six-axis sensor in the smart ring can be used to obtain the posture information of the smart ring. According to the posture information of the smart ring, the posture of the elderly person can be known, so as to determine whether the elderly person has fallen down. If the elderly person falls down and does not stand up or does not move within a preset time period, the smart ring sends a first instruction to the first electronic device, and the first electronic device sends a call for help instruction to the second electronic device according to the first instruction, so that the emergency contact knows that the elderly person has encountered an emergency.
[0089] In some optional implementations, in S120, after sending the first instruction to the first electronic device that is communicatively connected to the wearable device, the method further includes S171-S173, which are specifically as follows:
[0090] S171: The first electronic device sends a first response to the wearable device upon receipt of the first instruction.
[0091] S172: If it is detected that the communication connection between the wearable device and the first electronic device is interrupted, or the wearable device does not receive the first response within a preset time, a fourth instruction is sent to a third electronic device that is communicatively connected to the wearable device.
[0092] S173: The third electronic device executes the first emergency event according to the fourth instruction.
[0093] In S130, after sending the second instruction to the first electronic device, the method further includes S174-S176, which are specifically as follows:
[0094] S174: The first electronic device sends a second response to the wearable device indicating receipt of the second instruction.
[0095] S175: If it is detected that the communication connection between the wearable device and the first electronic device is interrupted, or the wearable device does not receive the second response within a preset time, a fifth instruction is sent to a third electronic device that is communicatively connected to the wearable device.
[0096] S176: The third electronic device executes the second emergency event according to the fifth instruction.
[0097] In a possible scenario, if the first electronic device is powered off and shut down, causing the Bluetooth connection between the smart ring and the first electronic device to be disconnected, or after the smart ring sends the first instruction / second instruction to the first electronic device, the smart ring does not receive a response from the first electronic device, indicating that packet loss may occur. When Bluetooth is disconnected or packet loss occurs, the smart ring sends a command to the home computer to let the home computer execute an emergency event.
[0098] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0099] A wearable device disclosed in an embodiment of the present application includes a communication module, a positioning sensor, a recording module, a first function button, a motion sensor, a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the inter-device communication method as described above is implemented.
[0100] Corresponding to the inter-device communication method described in the above embodiment, Figure 3 A structural block diagram of an inter-device communication apparatus 300 provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0101] Reference Figure 3 , the device comprises:
[0102] The detection module 310 is used to detect a first operation on a first function button on the wearable device.
[0103] The execution module 320 is used to, when the first operation is a first preset operation, send a first instruction to a first electronic device that is communicatively connected to the wearable device in response to the first operation, wherein the first instruction is used to instruct the first electronic device to execute a first emergency event. When the first operation is a second preset operation, send a second instruction to the first electronic device in response to the first operation, wherein the second instruction is used to instruct the first electronic device to execute a second emergency event.
[0104] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0105] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0106] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0107] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0108] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the wearable device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0109] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0110] The computer program code for performing the operation of the embodiment of the application can be written with one or more programming languages or their combination, and the programming language includes object-oriented programming languages, such as python, Java, Smalltalk, C++, and also includes conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed completely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on the remote computer, or executed completely on the remote computer or server. In the case of a remote computer, the remote computer can include a local area network (LAN) or a wide area network (WAN)--connected to the user's computer through any type of network, or, can be connected to an external computer (for example, utilizing an Internet service provider to connect through the Internet).
[0111] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0112] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0113] In the embodiments provided in the present application, it should be understood that the disclosed apparatus / wearable device and method can be implemented in other ways. For example, the apparatus / wearable device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of the apparatus or unit, which can be electrical, mechanical or other forms.
[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0115] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for communication between devices, characterized in that: Applied to a wearable device, the method comprises: Detecting a first operation on a first function button on the wearable device; If the first operation is a first preset operation, in response to the first operation, a first instruction is sent to a first electronic device that is communicatively connected to the wearable device, wherein the first instruction is used to instruct the first electronic device to execute a first emergency event; If the first operation is a second preset operation, a second instruction is sent to the first electronic device in response to the first operation, where the second instruction is used to instruct the first electronic device to execute a second emergency event.
2. The device communication method according to claim 1, wherein: The first emergency event is sending a help instruction to a second electronic device, and the contact information of the second electronic device is stored in the first electronic device; The second emergency event is indicating audio information or video information collected by the first electronic device, and sending the audio information or video information to the second electronic device; or If the first operation is a second preset operation, then in response to the first operation, the recording function of the wearable device is turned on to collect audio information; correspondingly, the second emergency event is to send the audio information collected by the wearable device to the second electronic device.
3. The device communication method according to claim 2, wherein: After sending the second instruction to the first electronic device, the method further includes: A third instruction is received, where the third instruction is used to instruct the wearable device to turn on a recording function of the wearable device; wherein the third instruction is issued when the first electronic device detects that the voice of the wearer of the wearable device is less than a preset volume.
4. The device communication method according to claim 2, wherein: If the first operation is a first preset operation, then in response to the first operation, the method further includes: The wearable device uses a positioning sensor in the wearable device to obtain location information of the wearable device; accordingly, the first instruction also includes the location information of the wearable device, and the first instruction is also used to instruct the first electronic device to send the location information of the wearable device to the second electronic device; Alternatively, the first electronic device obtains the location information of the first electronic device; accordingly, the first instruction also includes the location information of the first electronic device, and the first instruction is also used to instruct the first electronic device to send the location information of the first electronic device to the second electronic device.
5. The method for communication between devices according to claim 1, wherein: If the first operation is a first preset operation, in response to the first operation, sending a first instruction to a first electronic device that is communicatively connected to the wearable device includes: If it is detected that the first preset operation is performed multiple times within a preset time, a first instruction is sent to a first electronic device that is communicatively connected to the wearable device in response to the first operation.
6. The method for communication between devices according to any one of claims 1 to 5, characterized in that: The first preset operation is at least one of single click, double click, and long press; the second preset operation is at least one of single click, double click, and long press.
7. The device communication method according to any one of claims 1 to 5, characterized in that: The method further comprises: The wearable device obtains the posture information of the wearable device by using the motion sensor in the wearable device; Determining, based on the posture information, whether the wearer of the wearable device has fallen; If it is determined that the wearer of the wearable device falls, and it is detected that the wearer of the wearable device has been in a falling state within a preset time, a first instruction is sent to the first electronic device that is communicatively connected to the wearable device.
8. The method for communication between devices as described in any one of claims 1 to 5, characterized in that: After sending the first instruction to the first electronic device that is communicatively connected to the wearable device, the method further includes: If it is detected that the communication connection between the wearable device and the first electronic device is interrupted, or the wearable device does not receive the first response within a preset time, a fourth instruction is sent to a third electronic device that is communicatively connected to the wearable device; the fourth instruction is used to instruct the third electronic device to execute the first emergency event; the first response is a response sent by the first electronic device to the wearable device to receive the first instruction, After sending the second instruction to the first electronic device, the method further includes: If it is detected that the communication connection between the wearable device and the first electronic device is interrupted, or the wearable device does not receive the second response within a preset time, a fifth instruction is sent to a third electronic device that is communicatively connected to the wearable device; the fifth instruction is used to instruct the third electronic device to execute the second emergency event; the second response is a response sent by the first electronic device to the wearable device to receive the second instruction.
9. A wearable device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 8 when executing the computer program.
10. A device-to-device communication system, characterized in that: comprising a first electronic device, a second electronic device and a wearable device; The wearable device is used to execute the method as described in any one of claims 1-8.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Smart alarm bracelet and system
CN107680333A
