WO2017067221A1 - 一种门锁状态的监控方法及装置 - Google Patents

一种门锁状态的监控方法及装置 Download PDF

Info

Publication number
WO2017067221A1
WO2017067221A1 PCT/CN2016/088402 CN2016088402W WO2017067221A1 WO 2017067221 A1 WO2017067221 A1 WO 2017067221A1 CN 2016088402 W CN2016088402 W CN 2016088402W WO 2017067221 A1 WO2017067221 A1 WO 2017067221A1
Authority
WO
WIPO (PCT)
Prior art keywords
door lock
service
window
characteristic value
value corresponding
Prior art date
Application number
PCT/CN2016/088402
Other languages
English (en)
French (fr)
Inventor
黄钦
于海兰
Original Assignee
乐视控股(北京)有限公司
乐视移动智能信息技术(北京)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN201510694421.3A external-priority patent/CN105991757A/zh
Priority claimed from CN201510694422.8A external-priority patent/CN105979471A/zh
Application filed by 乐视控股(北京)有限公司, 乐视移动智能信息技术(北京)有限公司 filed Critical 乐视控股(北京)有限公司
Priority to US15/236,322 priority Critical patent/US20170116841A1/en
Publication of WO2017067221A1 publication Critical patent/WO2017067221A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B21/00Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
    • G08B21/18Status alarms
    • G08B21/24Reminder alarms, e.g. anti-loss alarms
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/02Mechanical actuation
    • G08B13/08Mechanical actuation by opening, e.g. of door, of window, of drawer, of shutter, of curtain, of blind
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B47/00Operating or controlling locks or other fastening devices by electric or magnetic means
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B81/00Power-actuated vehicle locks
    • E05B81/54Electrical circuits
    • E05B81/64Monitoring or sensing, e.g. by using switches or sensors
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B13/00Burglar, theft or intruder alarms
    • G08B13/02Mechanical actuation
    • G08B13/14Mechanical actuation by lifting or attempted removal of hand-portable articles
    • G08B13/1427Mechanical actuation by lifting or attempted removal of hand-portable articles with transmitter-receiver for distance detection
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B47/00Operating or controlling locks or other fastening devices by electric or magnetic means
    • E05B2047/0048Circuits, feeding, monitoring
    • E05B2047/0067Monitoring

Definitions

  • the embodiments of the present invention relate to the field of wireless communications technologies, and in particular, to a method and an apparatus for monitoring a door lock state.
  • the embodiment of the invention provides a method and a device for monitoring the state of the door lock, which is used to solve the problem that the user in the prior art suspects that the door is locked when the door is unlocked, thereby causing waste of time or economic loss. .
  • Embodiments of the present invention provide a method for monitoring a door lock state, including:
  • the door lock status characteristic value corresponding to the door lock service is read by the door lock service identifier according to the door lock service identifier; wherein the door lock status characteristic value corresponding to the door lock service includes opening or closing.
  • a method for monitoring a door lock state including:
  • the door lock service identification code has a corresponding relationship with the door lock service
  • a monitoring device for a door lock state including:
  • a service search module configured to search for a door lock service provided by the server according to the door lock service identifier broadcasted by the server; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • a first connection establishing module configured to establish a Bluetooth connection corresponding to the door lock service with the server
  • a first state reading module configured to read, according to the door lock service identification code, a door lock state characteristic value corresponding to the door lock service by using the Bluetooth connection; wherein the door lock service corresponds to a door lock Status attribute values include on or off.
  • a monitoring device for a door lock state including:
  • a status monitoring module configured to monitor a real-time status of the door lock, and update a door lock state characteristic value corresponding to the door lock service according to the real-time status of the door lock;
  • a broadcast module configured to broadcast a door lock service identifier; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • the second connection establishing module is configured to establish a Bluetooth connection corresponding to the door lock service with the client.
  • Embodiments of the present invention provide a computing device, including: one or more processors; a memory; and one or more modules, the one or more modules being stored in the memory and configured to be configured by the one or The plurality of processors are executed, wherein the one or more modules are configured to perform the method of the embodiments of the present invention.
  • An embodiment of the present invention provides a method for performing the method according to the embodiment of the present invention.
  • a computer readable storage medium for a program for a program.
  • the mobile terminal searches for the door lock service corresponding to the door lock service identification code according to the door lock service identification code broadcasted by the server, and provides the door lock service and service for the door lock service.
  • the Bluetooth connection is used to obtain the door lock status characteristic value corresponding to the door lock service, that is, the real-time status of the door lock can be viewed by using the mobile terminal, and the user needs to return to the home for viewing, which can be Users save time and avoid unnecessary economic losses.
  • FIG. 1 is a flow chart showing the steps of an embodiment of a method for monitoring a door lock state of the present invention
  • FIG. 2 is a flow chart showing the steps of another embodiment of the method for monitoring the state of the door lock of the present invention
  • FIG. 3 is a flow chart showing the steps of the second embodiment of the method for monitoring the state of the door lock according to the present invention
  • FIG. 4 is a flow chart showing the steps of a preferred embodiment of the monitoring method for another door lock state of the present invention.
  • FIG. 5 is a flow chart showing the steps of another embodiment of the method for monitoring the state of the door lock according to the present invention.
  • FIG. 6 is a flow chart showing the steps of the server in the embodiment of the method for monitoring the state of the door lock according to the present invention.
  • FIG. 7 is a flow chart showing steps of a server in another embodiment of a method for monitoring a door lock state according to the present invention.
  • Figure 8 is a block diagram showing the structure of an embodiment of a monitoring apparatus for a door lock state according to the present invention.
  • FIG. 9 is a structural block diagram showing another embodiment of a monitoring apparatus for a door lock state according to the present invention.
  • Figure 10 is a block diagram showing the structure of a preferred embodiment of the monitoring device for another door lock state of the present invention.
  • Figure 11 shows a block diagram of a computing device for performing the method according to the invention
  • Figure 12 shows a storage unit for holding or carrying program code implementing the method according to the invention.
  • the embodiment of the present invention can use the mobile terminal to obtain the real-time status of the monitored device through the Bluetooth connection.
  • a monitoring device with Bluetooth function can be set on the monitored device to monitor and record the real-time status of the monitored device (eg, open or
  • the device to be monitored may include a home door, a door, a window, etc., and the present invention is not limited to a specific monitored device.
  • the mobile terminal can acquire the real-time status of the monitored device through a Bluetooth connection established with the monitored device.
  • the mobile terminal may include a cellular phone, a smart phone, a laptop computer, a PC (personal computer), an e-book terminal, a digital broadcast terminal, a PDA (Personal Digital Assistant), a portable multimedia player, or
  • the navigation system and the like can be understood that the embodiment of the present invention does not limit a specific mobile terminal.
  • the mobile phone is used as the mobile terminal, and the automobile and the home door are taken as the monitored device as an example, and other application scenarios may be referred to each other.
  • the BLE (Bluetooth Low Energy) protocol is introduced to solve the problem of large power consumption of the conventional Bluetooth.
  • the embodiment of the present invention utilizes BLE for fast search, fast connection, and ultra-low power.
  • the consumption and other features enable the monitoring of the door lock status. Compared with the traditional Bluetooth, the efficiency of the monitoring process can be improved and the energy consumption of the monitoring process can be saved.
  • the BLE protocol may specifically include a GATT client and a GATT server.
  • the GATT server may provide data services for the GATT client, and the GATT client may read and write application data from the GATT server.
  • the GATT client performs the operation of finding the GATT server. After the GATT server is found and the connection is successfully established, the two parties can send and receive data.
  • the home door can provide the door lock status data service as the GATT server, and the mobile phone can receive the home door status data from the server as the GATT client.
  • FIG. 1 a flow chart of steps of a method for monitoring a door lock state according to the present invention is shown, which may specifically include:
  • Step 101 Search for a door lock service provided by the server according to the door lock service identifier broadcasted by the server; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • the door lock service identifier may be specifically identified by a UUID (Universally Unique Identifier), and the UUID may be used to uniquely identify the GATT service.
  • UUID Universally Unique Identifier
  • the GATT server can include multiple profile profiles.
  • the profile can be understood as a specification, a standard communication protocol, and a profile can contain one or more GATT services.
  • Each GATT service indicates that the server can implement A function; each GATT service can contain one or more GATT features, and a GATT feature is an atomic data that can be passed through BLE.
  • a GATT feature can contain arbitrary data, with a type identifier representing the type of arbitrary data; each GATT feature can contain zero or more GATT descriptors.
  • UUID Universally Unique Identifier
  • the UUID name represents, the UUID is a simple and unique identifier used to find the GATT service, the GATT feature, and the GATT descriptor.
  • the home door as a GATT server may provide a House door Service, and the feature supported by the service may include a House door Lock State Record.
  • the client After the client establishes a Bluetooth connection with the server, the client can obtain the door lock service according to the UUID of the door lock service, and read the door lock state characteristic value corresponding to the door lock service.
  • the service discovery operation and the feature discovery operation are first performed before the client establishes a Bluetooth connection with the server.
  • the home will broadcast the UUID of the service service it supports, that is, the home will broadcast the UUID of the House door Service.
  • the mobile phone searches for the corresponding House door Service service based on the UUID of the service.
  • the mobile phone also finds the characteristic character (the House door Lock State Record feature) supported by the service according to the UUID of the House door Service, and the descriptor of this feature.
  • the characteristic character the House door Lock State Record feature
  • Step 102 Establish a Bluetooth connection corresponding to the door lock service with the server.
  • the step of establishing a Bluetooth connection between the client and the server may specifically include:
  • Step S11 detecting whether the Bluetooth is turned on, if the Bluetooth is not turned on, the system box may pop up prompting to open the Bluetooth;
  • Step S12 scanning a BLE Bluetooth device (for example, a home door);
  • the scanning operation can be stopped immediately when scanning the Bluetooth device corresponding to the home door.
  • Step S13 performing a service discovery operation
  • the service discovery operation can be performed by calling the BluetoothGatt.discoverServices method, which is an asynchronous operation.
  • the search status status can be obtained, and the service discovery operation can be judged by judging whether the status value is equal to BluetoothGatt.GATT_SUCCESS. Whether it is successful, if successful, after establishing Bluetooth with the server, you can get the service BluetoothGattService through BluetoothGatt.getService.
  • Step S14 performing a feature discovery operation
  • the feature discovery operation can be performed to know which features are available for the discovered service, and after establishing the Bluetooth establishment with the server, the BluetoothGattService.getCharacteristic gets the feature corresponding to the service BluetoothGattCharacteristic.
  • Step S15 Establish a Bluetooth connection with the server.
  • the client may establish a Bluetooth connection corresponding to the door lock service with the server, and the client may connect the door lock corresponding to the door lock service through the Bluetooth connection.
  • the status attribute value is read and written.
  • Step 103 Read, according to the door lock service identification code, a door lock state characteristic value corresponding to the door lock service by using the Bluetooth connection; and the door lock state characteristic value corresponding to the door lock service includes opening or closing.
  • the corresponding function can be called to obtain the door lock service of the server, and the value of the House door Lock State Record state characteristic value in the service is read and written.
  • the door lock state characteristic value corresponding to the door lock service can be read by the following steps:
  • the polling reads the door lock state characteristic value corresponding to the door lock service.
  • the embodiment of the present invention can poll and read and record the door lock state characteristic value corresponding to the door lock service according to the first time period.
  • the first time period may be set according to actual needs, for example, may be set to 5 seconds, and the present invention does not limit the range of the first time period. In this way, the mobile phone has acquired and recorded the door lock status characteristic value within a short time when the user leaves the home door. Even if the Bluetooth connection is disconnected, the user can still check whether the home door is locked through the mobile phone to ensure the monitoring of the door lock state. Timeliness.
  • the mobile terminal searches for the door lock service corresponding to the door lock service identification code according to the door lock service identification code broadcasted by the server, and establishes a Bluetooth connection with the server for the door lock service, that is,
  • the door lock status characteristic value corresponding to the door lock service can be obtained through the Bluetooth connection, that is, the real-time status of the door lock can be viewed through the mobile terminal, and the user needs to return to the home for viewing, which can save time and avoid the user.
  • the necessary economic loss is possible economic loss.
  • the embodiment of the present invention polls and reads the corresponding corresponding to the door lock service according to the first time period.
  • the value of the door lock state characteristic value to avoid the problem that the door lock state characteristic value cannot be obtained due to the disconnection of the Bluetooth connection, thereby ensuring the timeliness of monitoring the door lock state.
  • the car can provide the door lock status data service as the GATT server, and the mobile phone can receive the door state data from the server as the GATT client. Therefore, the following steps may be adopted in the embodiment of the present invention:
  • FIG. 2 a flow chart of the steps of the method for monitoring the state of the door lock of the present invention is shown in the following.
  • Step 201 Search for a door lock service provided by the server according to the door lock service identifier broadcasted by the server; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • the car as a GATT server may provide a House door Service, and the feature supported by the service may include a House door Lock State Record.
  • the client After the client establishes a Bluetooth connection with the server, the client can obtain the door lock service according to the UUID of the door lock service, and read the door lock state characteristic value corresponding to the door lock service.
  • the service discovery operation and the feature discovery operation are first performed before the client establishes a Bluetooth connection with the server.
  • the server Bluetooth device on the car
  • the mobile phone searches for the corresponding Vehicle door Service door lock service, the Vehicle window Service window service, and the Vehicle trunk Service trunk service according to the UUID of the above service.
  • the mobile phone In the stage of Characteristic Discovery, the mobile phone also discovers the status of the Vehicle door State Record state supported by the service according to the UUID of the Vehicle Door Service, and finds the UUID of the window service according to the Vehicle window Service.
  • Step 202 Establish a Bluetooth connection corresponding to the door lock service with the server.
  • the step 202 is similar to the step 102 in the foregoing embodiment of the present invention. Therefore, in the embodiment, the step of establishing a Bluetooth connection between the client and the server also includes the step S11 to the step S15. No longer.
  • Step 203 According to the first time period, using the door lock service identification code, by using the Bluetooth connection, polling and reading a door lock state characteristic value corresponding to the door lock service; wherein, the door lock service corresponds to The door lock status property value includes on or off.
  • the corresponding function can be called to obtain the door lock service of the server, and the value of the House door Lock State Record state characteristic value in the service is read and written.
  • the embodiment of the present invention can poll and read and record the door lock state characteristic value corresponding to the door lock service according to the first time period.
  • the first time period may be set according to actual needs, for example, may be set to 5 seconds, and the present invention does not limit the range of the first time period. In this way, when the user leaves the car for a short period of time, the mobile phone has acquired and recorded the status of the door lock state. Even if the Bluetooth connection is disconnected, the user can still check whether the door is locked through the mobile phone to ensure the state of the door lock is monitored. Timeliness.
  • the mobile terminal searches for the door lock service corresponding to the door lock service identification code according to the door lock service identification code broadcasted by the server, and is directed to the door lock service and the server end.
  • the client can periodically acquire the door lock state characteristic value corresponding to the door lock service by using the Bluetooth connection, so as to obtain the real-time state of the door in time, and the user needs to return to view according to the prior art, which can save time for the user. And avoid unnecessary economic losses.
  • the embodiment of the present invention polls and reads the door lock state characteristic value corresponding to the door lock service according to the first time period, so as to avoid the problem that the door lock state characteristic value cannot be obtained due to the disconnection of the Bluetooth connection, thereby Ensure the timeliness of monitoring the status of the door lock.
  • This embodiment may further include the following optional technical solutions on the basis of the foregoing first embodiment.
  • the distance between the client and the server may be monitored.
  • the prompt message is sent. In order to prompt the user to unlock the door, to prevent the user's economic loss.
  • FIG. 3 a flow chart of the steps of a preferred embodiment of the method for monitoring the state of the door lock of the present invention is shown.
  • Step 301 Search for a door lock service provided by the server according to the door lock service identifier broadcasted by the server; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • Step 302 Establish a Bluetooth connection corresponding to the door lock service with the server.
  • Step 303 Read, according to the door lock service identification code, a door lock state characteristic value corresponding to the door lock service by using the Bluetooth connection; and the door lock state characteristic value corresponding to the door lock service includes opening or closing;
  • Step 304 Monitor a distance between the server and the server.
  • Step 305 When the distance is greater than the first threshold, reading a door lock state characteristic value corresponding to the door lock service;
  • Step 306 When the door lock state characteristic value is on, issue a prompt message.
  • the distance from the user to the home door can be known. If the distance is greater than the first threshold, the user has left the home farther distance, if the locked door lock status is obtained. If the attribute value is on, you can send a message to the user to inform the user that the door is unlocked.
  • the first threshold may be set to be greater than zero and less than the distance corresponding to the maximum range of the Bluetooth connection, for example, may be set to 20 meters, etc., and the present invention does not limit the value range of the first threshold.
  • the above steps 304-306 can also be replaced by the following steps. Transmitting: monitoring a signal strength of the Bluetooth connection, and determining a path loss of the Bluetooth connection according to the signal strength; and reading a door lock state characteristic corresponding to the door lock service when the path loss is greater than a second threshold Value; when the door lock state property value is on, a prompt message is issued.
  • the determination may be made according to the path loss of the Bluetooth connection.
  • the mobile phone can monitor the RSSI (Received Signal Strength Indicator) of the Bluetooth connection, and read the transmit power from the server, and calculate the path loss by subtracting the RSSI from the transmit power.
  • the path loss is greater than the second threshold, indicating that the user has left the home farther distance, if the read door lock state characteristic value is on, the prompt information may be sent to the user.
  • the second threshold may be set to be greater than zero than the path loss value corresponding to the maximum range of the Bluetooth connection. The value range of the second threshold is not limited by the present invention.
  • the above method may further include:
  • the door lock is closed by the Bluetooth connection, and the door lock state characteristic value corresponding to the door lock service is modified to be closed.
  • the embodiment of the present invention may further monitor the distance between the client and the server according to the first embodiment, and when the distance is greater than the first threshold and the door lock state characteristic value is open,
  • the prompt information can prompt the user that the home door is unlocked when the user is not far from home, thereby preventing the user from losing economic.
  • the following optional technical solutions may also be included.
  • the distance between the client and the server may be monitored.
  • the prompt message is sent.
  • the user's economic loss is prevented.
  • FIG. 4 a flow chart of the steps of a preferred embodiment of the method for monitoring the state of the door lock of the present invention is shown.
  • Step 401 Search for a door lock service provided by the server according to the door lock service identifier broadcasted by the server; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • Step 402 Establish a Bluetooth connection corresponding to the door lock service with the server.
  • Step 403 According to the first time period, using the door lock service identification code, by using the Bluetooth connection, polling and reading a door lock state characteristic value corresponding to the door lock service; wherein, the door lock service corresponds to The door lock status characteristic value includes opening or closing;
  • Step 404 Monitor a distance between the server and the server.
  • Step 405 When the distance is greater than the first threshold, reading a door lock state characteristic value corresponding to the door lock service;
  • Step 406 When the door lock state characteristic value is on, issue a door lock prompt message.
  • the distance from the user to the car can be known. If the distance is greater than the first threshold, the user has left the car far away, if reading When the obtained door lock state characteristic value is on, the door lock prompt information may be sent to the user to notify the user that the door is unlocked.
  • the first threshold may be set to be greater than zero and less than the distance corresponding to the maximum range of the Bluetooth connection, for example, may be set to 20 meters, etc., and the present invention does not limit the value range of the first threshold.
  • the above steps 404-406 may be further replaced by: monitoring signal strength of the Bluetooth connection, and determining a path loss of the Bluetooth connection according to the signal strength; When the path loss is greater than the second threshold, the door lock state characteristic value corresponding to the door lock service is read; when the door lock state characteristic value is open, the door lock prompt information is issued.
  • the determination may be made according to the path loss of the Bluetooth connection.
  • the mobile phone can monitor the RSSI (Received Signal Strength Indicator) of the Bluetooth connection, and read the transmit power from the server, and calculate the path loss by subtracting the RSSI from the transmit power.
  • the path loss is greater than the second threshold, it indicates that the user has left the vehicle farther away. If the read door lock state characteristic value is on, the door lock prompt information may be sent to the user.
  • the second threshold may be set to be greater than zero than the path loss value corresponding to the maximum range of the Bluetooth connection. The value range of the second threshold is not limited by the present invention.
  • the above method may further include:
  • the door lock is closed by the Bluetooth connection, and the door lock state characteristic value corresponding to the door lock service is modified to be closed.
  • the embodiment of the present invention may further monitor the distance between the client and the server according to the first embodiment, and when the distance is greater than the first threshold and the door lock state characteristic value is open,
  • the prompt message can prompt the user that the door is unlocked when the user leaves the car, preventing the user from being economically damaged.
  • the embodiment may further include the following optional technologies on the basis of the foregoing Embodiment 1 or Embodiment 2. Program.
  • the state of the window can be further monitored.
  • FIG. 5 a flow chart of the steps of the method for monitoring the state of the door lock state of the present invention is shown.
  • Step 501 Search for a door lock service provided by the server according to the door lock service identifier broadcasted by the server; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • Step 502 Search for a window service provided by the server according to the window service identification code broadcasted by the server; wherein the window service identifier has a corresponding relationship with the window service;
  • Step 503 Establish a Bluetooth connection corresponding to the door lock service with the server.
  • Step 504 According to the first time period, using the door lock service identification code, by using the Bluetooth connection, polling and reading a door lock state characteristic value corresponding to the door lock service; wherein, the door lock service corresponds to The door lock status characteristic value includes opening or closing;
  • Step 505 When the locked door lock state characteristic value corresponding to the read door lock service is off, read the window state characteristic value corresponding to the window service through the Bluetooth connection according to the window service identification code.
  • the window state characteristic value corresponding to the window service includes opening or closing;
  • Step 506 When the window state characteristic value is turned on, issue a window prompt message
  • the method may further include:
  • Step 507 Perform a window closing operation through the Bluetooth connection according to a window closing operation performed by the user for the window prompt information, and modify a window state characteristic value corresponding to the window service to be closed.
  • the real-time status of the trunk of the car can be monitored after the user locks the door.
  • the process can refer to the process of monitoring the window, and details are not described herein.
  • the read door lock state characteristic value when the read door lock state characteristic value is off, it can be known that the user closes the door and is ready to leave.
  • the mobile phone uses the mobile phone to read the window state characteristic value through the Bluetooth connection. If the window state characteristic value is on, the window prompt message is sent to the user to remind the user to close the window, thereby avoiding the economic loss of the user.
  • the first embodiment and the second embodiment are described by taking the client side as an example.
  • the monitoring method of the door lock state of the present invention is described below on the server side.
  • FIG. 6 a flow chart of the steps of the server in the method for monitoring the state of the door lock of the present invention is shown in the following.
  • Step 601 Monitor a real-time status of the door lock, and update a door lock state characteristic value corresponding to the door lock service according to the real-time status of the door lock;
  • the step of monitoring the real-time status of the door lock and updating the door lock state characteristic value corresponding to the door lock service according to the real-time status of the door lock may specifically include: monitoring a real-time status of the door lock, The real-time status of the door lock is changed from open to closed, or from closed to open, and the door lock state characteristic value corresponding to the door lock service is updated.
  • Step 602 Broadcast a door lock service identification code, where the door lock service identification code has a corresponding relationship with the door lock service;
  • the server (home) can broadcast a door lock service identifier, so that the client can search for the door lock service according to the door lock identification code, and obtain the door lock state characteristic value corresponding to the door lock service.
  • Step 603 Establish a Bluetooth connection corresponding to the door lock service with the client.
  • the client After establishing a Bluetooth connection with the client, the client can read the door lock state characteristic value corresponding to the door lock service through the Bluetooth connection according to the door lock service identifier.
  • the method may further include: sending, according to the second time period, a door lock state characteristic value corresponding to the door lock service to the client by using the Bluetooth connection.
  • the server may periodically send the door lock status characteristic value to the client by means of a notification. In this manner, the server may periodically poll the server to read data.
  • Step S21 The server (home door) monitors the real-time state of the door lock, and at this time, the door lock is in an open state, and therefore, the door lock state characteristic value corresponding to the door lock service is updated to be open;
  • Step S22 The client (mobile phone) monitors the distance from the server. When the distance is greater than 5 meters, the door lock state characteristic value corresponding to the door lock service is read, and the characteristic value is turned on.
  • Step S23 The mobile phone sends a prompt message to the user to remind the user to lock the door.
  • the mobile phone and the home have been connected via Bluetooth low energy, and the user walks out of the house and closes the home.
  • Step S31 The server (home) monitors the real-time status of the door lock, and the door lock is in the closed state. Therefore, the door lock state characteristic value corresponding to the door lock service is updated to be closed;
  • Step S32 After the user quickly walks out of the cell, he suspects that he has forgotten to lock the door, and the home door lock state information is viewed through the mobile phone. Specifically, the client (mobile phone) reads the door lock state characteristic value corresponding to the door lock service through the Bluetooth connection, and the characteristic value is shut down.
  • the server of the embodiment of the present invention can monitor and record the real-time status of the door lock, and broadcast the door lock service identification code, so that the client can discover the door lock service according to the door lock service identification code and establish a Bluetooth connection. Thereby acquiring the door lock state characteristic value. That is, the real-time status of the door lock can be viewed through the mobile terminal, and the user needs to return to the home for viewing compared with the prior art, which can save time for the user and avoid unnecessary economic loss.
  • the server in this embodiment may also adopt the process shown in FIG. 7.
  • FIG. 7 a flow chart of steps of a server in another embodiment of the method for monitoring a door lock state of the present invention is shown.
  • Step 701 Monitor a real-time status of the door lock, and update a door lock state characteristic value corresponding to the door lock service according to the real-time status of the door lock;
  • the step of monitoring the real-time status of the door lock and updating the door lock state characteristic value corresponding to the door lock service according to the real-time status of the door lock may specifically include: monitoring a real-time status of the door lock, The real-time status of the door lock is changed from open to closed, or from closed to open, and the door lock state characteristic value corresponding to the door lock service is updated.
  • Step 702 Broadcast a door lock service identification code, where the door lock service identification code has a corresponding relationship with the door lock service.
  • the server may broadcast a door lock service identifier, so that the client can search for the door lock service according to the door lock identification code, and obtain a door lock state characteristic value corresponding to the door lock service.
  • Step 703 Establish a Bluetooth connection corresponding to the door lock service with the client.
  • the client After establishing a Bluetooth connection with the client, the client can read the door lock state characteristic value corresponding to the door lock service through the Bluetooth connection according to the door lock service identifier.
  • Step 704 Send, according to the second time period, a door lock state characteristic value corresponding to the door lock service to the client by using the Bluetooth connection.
  • the server may periodically send the door lock status characteristic value to the client by means of a notification. In this manner, the server may periodically poll the server to read data.
  • the method may further include: monitoring a real-time status of the window, and updating a window state characteristic value corresponding to the window service according to the real-time status of the window; the broadcast window service identification a code; wherein the window service identification code has a corresponding relationship with the window service.
  • the phone and the car have been connected via Bluetooth low energy. The user leaves the seat, closes and locks the door, but forgets to close the driver's window.
  • Step S41 The server (the Bluetooth device on the car) monitors the real-time status of the door lock, and the door lock is in the closed state. Therefore, the door lock state characteristic value corresponding to the door lock service is updated to be closed;
  • Step S42 The server (the Bluetooth device on the car) monitors the real-time state of the window, and at this time, the window is opened, and therefore, the window state characteristic value corresponding to the window service is updated to be open;
  • Step S43 the client (mobile phone) according to the door lock service identification code, through the Bluetooth connection, the read door lock state characteristic value is off;
  • Step S44 The client reads, according to the window service identification code, a window state characteristic value corresponding to the window service through a Bluetooth connection, and the window state characteristic value is turned on;
  • Step S45 The client sends a window prompt message to the user to remind the user to close the window.
  • the server of the embodiment of the present invention can monitor and record the real-time status of the door lock, and broadcast the door lock service identification code, so that the client can discover the door lock service according to the door lock service identification code and establish a Bluetooth connection. Therefore, the door lock state characteristic value is obtained, and the embodiment of the present invention sends the door lock state characteristic value corresponding to the door lock service to the client by using the Bluetooth connection according to the second time period. That is, the real-time status of the door lock can be obtained in time through the mobile terminal, and the user needs to return to view compared with the prior art, which can save time for the user and avoid unnecessary economic loss.
  • FIG. 8 a block diagram showing the structure of an embodiment of a monitoring apparatus for a door lock state according to the present invention is shown. Specifically, it may include:
  • the first service search module 810 is configured to search for a door lock service provided by the server according to the door lock service identifier broadcasted by the server; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • a first connection establishing module 820 configured to establish, by the server, a Bluetooth connection corresponding to the door lock service
  • a first status reading module 830 configured to read, according to the door lock service identification code, a door lock state characteristic value corresponding to the door lock service by using the Bluetooth connection; wherein the door corresponding to the door lock service
  • the lock status property value includes on or off.
  • the first state reading module 530 is configured to use the door lock service identifier to perform, by using the Bluetooth connection, to poll and read the corresponding door lock service according to the first time period.
  • the apparatus may further include:
  • a first distance monitoring module for monitoring a distance from the server
  • a second state reading module configured to read a door lock state characteristic value corresponding to the door lock service when the distance is greater than a first threshold
  • the first prompting module is configured to issue a prompt message when the door lock state characteristic value is on.
  • the prompt information includes the door lock prompt information, that is, the first prompt module, configured to issue the door lock prompt information when the door lock state characteristic value is on.
  • the apparatus may further include:
  • a second distance monitoring module configured to monitor a signal strength of the Bluetooth connection, and determine a path loss of the Bluetooth connection according to the signal strength
  • a third state reading module configured to read a door lock state characteristic value corresponding to the door lock service when the path loss is greater than a second threshold
  • the second prompting module is configured to issue a prompt message when the door lock state characteristic value is on. And a second prompting module, configured to issue the door lock prompt information when the door lock state characteristic value is on.
  • the first state reading module 430 may specifically include:
  • the first state reading submodule is configured to poll and read the door lock state characteristic value corresponding to the door lock service according to the first time period.
  • the apparatus may further include:
  • the first state modifying module is configured to perform a close door lock operation through the Bluetooth connection according to a door closing operation performed by the user for the prompt information, and modify a door lock state characteristic value corresponding to the door lock service to be closed.
  • a first state modifying module configured to perform a close door lock operation by the Bluetooth connection according to a door closing operation performed by the user for the door lock prompt information, and modify a door lock state characteristic value corresponding to the door lock service To close.
  • the apparatus may further include:
  • a second service search module configured to search for a window service provided by the server according to the window service identification code broadcasted by the server; wherein the window service identifier has a corresponding relationship with the window service;
  • a fourth state reading module configured to read, according to the window service identification code, the window service corresponding to the window lock service according to the window service identification code when the read door lock service corresponding value is closed a window state characteristic value; wherein the window state characteristic value corresponding to the window service includes opening or closing;
  • the third prompting module is configured to issue the window prompting information when the window state characteristic value is open.
  • the apparatus may further include:
  • a second state modifying module configured to perform a window closing operation through the Bluetooth connection according to a window closing operation performed by the user for the window prompt information, and modify a window state characteristic value corresponding to the window service to shut down.
  • FIG. 9 it is a structural block diagram of another embodiment of a monitoring apparatus for a door lock state according to the present invention, which may specifically include:
  • the status monitoring module 910 is configured to monitor a real-time status of the door lock, and update a door lock state characteristic value corresponding to the door lock service according to the real-time status of the door lock;
  • a broadcast module 920 configured to broadcast a door lock service identifier; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • a second connection establishing module 930 configured to establish a blue corresponding to the door lock service with the client Teeth connection.
  • the status monitoring module 510 may specifically include:
  • the status monitoring sub-module is configured to monitor the real-time status of the door lock, and update the door lock status characteristic value corresponding to the door lock service when the real-time status of the door lock changes from open to closed or from closed to open.
  • the method may include:
  • the first state monitoring module 910 is configured to monitor a real-time state of the door lock, and update a door lock state characteristic value corresponding to the door lock service according to the real-time state of the door lock;
  • a first broadcast module 920 configured to broadcast a door lock service identifier; wherein the door lock service identifier has a corresponding relationship with the door lock service;
  • a second connection establishing module 930 configured to establish a Bluetooth connection corresponding to the door lock service with the client
  • the state pushing module 940 is configured to send, by using the Bluetooth connection, a door lock state characteristic value corresponding to the door lock service according to the second time period.
  • the apparatus may further include:
  • a second state monitoring module configured to monitor a real-time state of the window, and update a window state characteristic value corresponding to the window service according to the real-time state of the window;
  • a second broadcast module configured to broadcast a window service identification code; wherein the window service identification code has a corresponding relationship with the window service.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without deliberate labor.
  • the various device embodiments of the present invention may be implemented in hardware, or in a software module running on one or more processors, or in a combination thereof.
  • a microprocessor or digital signal processor can be used in practice to implement Some or all of the functions of some or all of the components of the communication processing device of the embodiments of the present invention.
  • the invention can also be implemented as a device or device program (e.g., a computer program and a computer program product) for performing some or all of the methods described herein.
  • a program implementing the invention may be stored on a computer readable medium or may be in the form of one or more signals.
  • Such signals may be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
  • the apparatus of the present invention can be applied to a server, which can conventionally include a processor and a computer program product or computer readable medium in the form of a memory.
  • the memory may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, a hard disk, or a ROM.
  • the memory has a memory space for program code for performing any of the method steps described above.
  • the storage space for the program code may include various program codes for implementing the various steps in the above methods, respectively.
  • the program code can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks.
  • Such computer program products are typically portable or fixed storage units, which may have storage segments, storage spaces, and the like that are similarly arranged to the memory in the server described above.
  • the program code can be compressed in an appropriate form.
  • the storage unit includes computer readable code, i.e., code that can be read by, for example, the processor described above, which when executed by the server causes the server to perform various steps in the methods described above.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
  • FIG. 11 illustrates a computing device in which a video transcoding method in accordance with the present invention can be implemented.
  • the computing device eg, mobile terminal, server, monitored device, etc.
  • the computing device conventionally includes a processor 1110 and a program (program program) product or readable medium in the form of a memory 1120.
  • the memory 1120 may be an electronic memory such as a flash memory, an EEPROM (Electrically Erasable Programmable Read Only Memory), an EPROM, or a ROM.
  • Memory 1120 has a memory space 1130 for program code 1131 for performing any of the method steps described above.
  • the storage space 1130 for program code can be packaged
  • Each program code 1131 for implementing various steps in the above method is included.
  • program codes can be read from or written to one or more program products.
  • program products include program code carriers such as memory cards.
  • Such a program product is typically a portable or fixed storage unit as described with reference to FIG.
  • the storage unit may have a storage segment, a storage space, and the like that are similarly arranged to the storage 1120 in the computing device of FIG.
  • the program code can be compressed, for example, in an appropriate form.
  • the storage unit includes readable code 1131 ', ie, code that can be read by a processor, such as, for example, 1110, which when executed by a processor of the computing device causes the processor of the computing device to perform the operations described above The various steps in the method.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Lock And Its Accessories (AREA)
  • Telephonic Communication Services (AREA)
  • Alarm Systems (AREA)

Abstract

本发明实施例提供一种门锁状态的监控方法及装置,其中的方法具体包括:根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;与所述服务端建立所述门锁服务对应的蓝牙连接;根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭。本发明实施例通过使用移动终端即可查看门锁的实时状态,相对于现有技术需要用户返回家进行查看,可以为用户节省时间以及避免不必要的经济损失。

Description

一种门锁状态的监控方法及装置
本申请要求享有于2015年10月22日提交中国专利局、申请号为201510694422.8、名称为“一种门锁状态的监控方法及装置”的中国专利申请的全部优先权,其全部内容通过引用结合在本申请中;以及要求享有于2015年10月22日提交中国专利局、申请号为201510694421.3、名称为“一种门锁状态的监控方法及装置”的中国专利申请的全部优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及无线通信技术领域,尤其涉及一种门锁状态的监控方法及装置。
背景技术
随着经济的不断发展,人们的生活水平不断提高,安全防范意识也得到更多的重视,然而有时因为自己失误,往往造成不必要的麻烦,甚至造成巨大的损失。
在人们的日常生活中,经常会出现如下情况:在离开家一段时间后,忘记了是否将家门锁好,如果此时再返回家查看家门是否已锁,会为人们带来不必要的麻烦并且造成时间的浪费,如果不回家查看,又有可能造成经济上的损失。
发明内容
本发明实施例提供一种门锁状态的监控方法及装置,用以解决现有技术中用户怀疑家门没锁时需要返回查看门是否已锁,从而造成时间上的浪费或者经济上的损失的问题。
本发明实施例提供一种门锁状态的监控方法,包括:
根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
与所述服务端建立所述门锁服务对应的蓝牙连接;
根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭。
依据本发明的另一个方面,提供了一种门锁状态的监控方法,包括:
监测门锁的实时状态,以及根据所述门锁的实时状态更新门锁服务对应的门锁状态特性值;
广播门锁服务识别码;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
与所述客户端建立所述门锁服务对应的蓝牙连接。
依据本发明的再一个方面,提供了一种门锁状态的监控装置,包括:
服务搜索模块,用于根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
第一连接建立模块,用于与所述服务端建立所述门锁服务对应的蓝牙连接;及
第一状态读取模块,用于根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭。
依据本发明的又一个方面,提供了一种门锁状态的监控装置,包括:
状态监测模块,用于监测门锁的实时状态,以及根据所述门锁的实时状态更新门锁服务对应的门锁状态特性值;
广播模块,用于广播门锁服务识别码;其中,所述门锁服务识别码与所述门锁服务具有对应关系;及
第二连接建立模块,用于与所述客户端建立所述门锁服务对应的蓝牙连接。
本发明实施例提供一种计算设备,包括:一个或多个处理器;存储器;和一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,其中,所述一个或多个模块配置用于执行本发明实施例所述的方法。
本发明实施例提供一种在其上记录有用于执行本发明实施例所述方法的 程序的计算机可读存储介质。
本发明实施例提供的门锁状态的监控方法及装置,通过移动终端根据服务端广播的门锁服务识别码,搜索所述门锁服务识别码对应的门锁服务,并针对门锁服务与服务端建立蓝牙连接,即可利用蓝牙连接获取门锁服务对应的门锁状态特性值,也即使用移动终端即可查看门锁的实时状态,相对于现有技术需要用户返回家进行查看,可以为用户节省时间以及避免不必要的经济损失。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1示出了本发明的一种门锁状态的监控方法实施例的步骤流程图;
图2示出了本发明的另一种门锁状态的监控方法实施例的步骤流程图;
图3示出了本发明的一种门锁状态的监控方法实施例二的步骤流程图;
图4示出了本发明的另一种门锁状态的监控方法优选实施例的步骤流程图;
图5示出了本发明的又一种门锁状态的监控方法实施例的步骤流程图;
图6示出了本发明的一种门锁状态的监控方法实施例中服务端的步骤流程图;
图7示出了本发明的另一种门锁状态的监控方法实施例中服务端的步骤流程图;
图8示出了本发明的一种门锁状态的监控装置实施例的结构框图;
图9示出了本发明的另一种门锁状态的监控装置实施例的结构框图;
图10示出了本发明的另一种门锁状态的监控装置优选实施例的结构框图;
图11示出了用于执行根据本发明的方法的计算设备的框图;
图12示出了用于保持或者携带实现根据本发明的方法的程序代码的存储单元。
具体实施方式
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
实施例一
本发明实施例可以利用移动终端通过蓝牙连接获取被监控设备的实时状态,首先,可以在被监控设备上设置具有蓝牙功能的监控装置,以监控并记录该被监控设备的实时状态(例如打开或者关闭),其中,所述被监控设备可以包括家门、车门、窗户等等,本发明对于具体的被监控设备不加以限制。然后,移动终端通过与被监控设备建立的蓝牙连接,可以获取被监控设备的实时状态。其中,移动终端可以包括蜂窝电话、智能电话、膝上型计算机、PC(personal computer,个人电脑)、电子书终端、数字广播终端、PDA(Personal Digital Assistant,个人电子助理)、便携式多媒体播放器或导航系统等,可以理解,本发明实施例对于具体的移动终端不加以限制。为了便于说明,本发明实施例中均以手机作为移动终端,汽车、家门作为被监控设备为例进行说明,其它应用场景相互参照即可。
BLE(Bluetooth Low Energy,低功耗蓝牙)协议,作为蓝牙4.0规范的一部分,为解决传统蓝牙耗电量大的问题而被引入,本发明实施例利用BLE的快速搜索、快速连接、超低功耗等特点,实现门锁状态的监控,相对于使用传统蓝牙,可以提高监控过程的效率以及节省监控过程的能耗。
在BLE协议中,所有的通信都发生在GATT(Generic Attribute Profile,通用属性配置文件)层。BLE协议具体可以包括GATT客户端和GATT服务端,其中,GATT服务端可以为GATT客户端提供数据服务,GATT客户端可以从GATT服务端读写应用数据。在通信时,GATT客户端执行查找GATT服务端的操作,在查找到GATT服务端并且连接建立成功后,双方即可收发数据。在本发明实施例中,家门可以作为GATT服务端提供门锁状态数据服务,手机可以作为GATT客户端从服务端接收家门状态数据。
参照图1,示出了本发明的一种门锁状态的监控方法实施例的步骤流程图,具体可以包括:
步骤101、根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
其中,所述门锁服务识别码具体可以用UUID(Universally Unique Identifier,全球唯一标识符)来标识,该UUID可以用来唯一标识GATT服务。
在具体应用中,GATT服务端可以包括多个配置文件Profile,profile可以理解为一种规范,一个标准的通信协议,一个Profile可以包含一个或多个GATT服务,每个GATT服务表示服务端可以实现的一种功能;每个GATT服务可以包含一个或多个GATT特性,一个GATT特性是一个可以通过BLE进行传递的原子数据。一个GATT特性可以包含任意的数据,用一个类型标识符表示任意数据的类型;每个GATT特性可包含零个或更多个GATT描述符。GATT服务、GATT特性以及GATT描述符的一个共同点是他们都是使用一个通用唯一标识符(UUID)标识。正如UUID名称所表现的那样,UUID是一个简单且唯一的标识符,用来找到GATT服务、GATT特性以及GATT描述符。
在本发明的一种应用示例中,家门作为GATT服务端可以提供门锁服务(House door Service),该服务支持的特性(characteristic)可以包括门锁状态(House door Lock State Record)。在客户端与服务端建立蓝牙连接之后,客户端即可根据门锁服务的UUID获取门锁服务,以及读取门锁服务对应的门锁状态特性值。
参照表1,示出了本发明的一种GATT服务端的配置文件结构示意。其中,M表示强制的,O表示可选的,当然,在实际应用中,可以根据需要来设置对其中的服务和特性的支持性。
Profile Requirement Support
Service Discovery M
-House door Service Discovery M
-Device Information Service Discovery O
Characteristic Discovery M
-House door Service Characteristic Discovery M
-Device Information Service Characteristic Discovery O
House door Lock State Record M
表1
本发明实施例中,客户端与服务端建立蓝牙连接之前,首先执行服务发现操作和特性发现操作。在服务发现(Service Discovery)的阶段中,家门会把自身所支持的服务Service的UUID广播出去,即家门会广播House door Service的UUID。手机根据此服务的UUID来搜寻相对应的House door Service服务。
在特性发现(Characteristic Discovery)的阶段中,手机同样会根据House door Service的UUID来发现此服务所支持的特性characteristic(即House door Lock State Record特性),以及此特性的描述符。
步骤102、与所述服务端建立所述门锁服务对应的蓝牙连接;
在本发明实施例中,客户端与服务端建立蓝牙连接的步骤,具体可以包括:
步骤S11、检测蓝牙是否打开,如果蓝牙未打开,可以弹出系统框提示打开蓝牙;
步骤S12、扫描BLE蓝牙设备(例如家门);
优选地,为了节省能耗,可以在扫描到家门对应的蓝牙设备时,立即停止扫描操作。
步骤S13、执行服务发现操作;
在具体应用中,可以通过调用BluetoothGatt.discoverServices方法来执行服务发现操作,该方法是异步操作,在回调函数onServicesDiscovered中可以得到查找状态status,通过判断status的值是否等于BluetoothGatt.GATT_SUCCESS来判断服务发现操作是否成功,如果成功了,在与服务端建立蓝牙建立之后,即可通过BluetoothGatt.getService获取服务BluetoothGattService。
步骤S14、执行特性发现操作;
在服务发现成功后,可以执行特性发现操作,以得知上述发现的服务具有哪些可用的特性,在与服务端建立蓝牙建立之后,即可通过 BluetoothGattService.getCharacteristic获取服务对应的特性BluetoothGattCharacteristic。
步骤S15、与服务端建立蓝牙连接。
在本发明实施例中,在执行完服务发现和特性发现操作后,客户端可以与服务端建立所述门锁服务对应的蓝牙连接,客户端即可通过该蓝牙连接对门锁服务对应的门锁状态特性值进行读写操作。
步骤103、根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值;所述门锁服务对应的门锁状态特性值包括打开或者关闭。
在客户端与服务端的蓝牙连接成功后,即可调用对应的函数来获得服务端的门锁服务(House door Service),并对该服务中的House door Lock State Record门锁状态特性值进行读写。
在本发明的一种优选实施例中,可以通过如下步骤读取上述门锁服务对应的门锁状态特性值:
根据第一时间周期,轮询读取所述门锁服务对应的门锁状态特性值。
在实际应用中,用户离开家门的距离大于蓝牙连接的最大距离后,手机与家门之间的蓝牙连接则会断开,此时无法通过手机获取门锁状态特性值。此时,用户无法通过手机查看家门是否已锁,为了解决上述问题,本发明实施例可以根据第一时间周期,轮询读取并记录所述门锁服务对应的门锁状态特性值。其中,第一时间周期可以根据实际需要进行设置,例如可以设置为5秒,本发明对于第一时间周期的范围不加以限制。这样一来,在用户离开家门很短的时间内,手机已经获取并记录了门锁状态特性值,即使蓝牙连接断开,用户仍然可以通过手机查看家门是否已锁,以保证监控门锁状态的及时性。
综上,在本发明实施例中,移动终端根据服务端广播的门锁服务识别码,搜索所述门锁服务识别码对应的门锁服务,并针对门锁服务与服务端建立蓝牙连接,即可通过蓝牙连接获取门锁服务对应的门锁状态特性值,也即通过移动终端即可查看门锁的实时状态,相对于现有技术需要用户返回家进行查看,可以为用户节省时间以及避免不必要的经济损失。
此外,本发明实施例根据第一时间周期,轮询读取所述门锁服务对应的 门锁状态特性值,以避免由于蓝牙连接断开导致无法获取门锁状态特性值的问题,从而可以保证监控门锁状态的及时性。
在本发明实施例中,汽车可以作为GATT服务端提供门锁状态数据服务,手机可以作为GATT客户端从服务端接收车门状态数据。因此,本发明实施例还可以采用如下步骤流程:
参照图2,示出了本发明的另一种门锁状态的监控方法实施例的步骤流程图,具体可以包括:
步骤201、根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
在本发明的另一种应用示例中,汽车作为GATT服务端可以提供门锁服务(House door Service),该服务支持的特性(characteristic)可以包括门锁状态(House door Lock State Record)。在客户端与服务端建立蓝牙连接之后,客户端即可根据门锁服务的UUID获取门锁服务,以及读取门锁服务对应的门锁状态特性值。
参照表2,示出了本发明的一种GATT服务端的配置文件结构示意。其中,M表示强制的,O表示可选的,当然,在实际应用中,可以根据需要来设置对其中的服务和特性的支持性。
Figure PCTCN2016088402-appb-000001
表2
本发明实施例中,客户端与服务端建立蓝牙连接之前,首先执行服务发现操作和特性发现操作。在服务发现(Service Discovery)的阶段中,服务端(汽车上的蓝牙装置)会把自身所支持的服务Service的UUID广播出去,具体可以包括Vehicle door Service门锁服务的UUID,Vehicle window Service  车窗服务的UUID,以及Vehicle trunk Service后备箱服务的UUID。手机根据上述服务的UUID来搜寻相对应的Vehicle door Service门锁服务、Vehicle window Service车窗服务以及Vehicle trunk Service后备箱服务。
在特性发现(Characteristic Discovery)的阶段中,手机同样会根据Vehicle door Service门锁服务的UUID来发现该服务所支持的Vehicle door State Record门锁状态特性,根据Vehicle window Service车窗服务的UUID发现该服务所支持的Vehicle window State Record车窗状态特性,以及根据Vehicle trunk Service后备箱服务的UUID发现该服务所支持的Vehicle trunk State Record后备箱状态特性,以及上述特性对应的描述符。
步骤202、与所述服务端建立所述门锁服务对应的蓝牙连接;
步骤202与上述图1对应实施例中步骤102类似,因此在本实施例中,客户端与服务端建立蓝牙连接的步骤也包括步骤S11-步骤S15,具体参见上述实施例即可,本实施例不再赘述。
步骤203、根据第一时间周期,利用所述门锁服务识别码,通过所述蓝牙连接,轮询读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭。
在客户端与服务端的蓝牙连接成功后,即可调用对应的函数来获得服务端的门锁服务(House door Service),并对该服务中的House door Lock State Record门锁状态特性值进行读写。
在实际应用中,用户离开车门的距离大于蓝牙连接的最大距离后,手机与汽车之间的蓝牙连接则会断开,此时无法通过手机获取门锁状态特性值。此时,用户无法通过手机查看车门是否已锁,为了解决上述问题,本发明实施例可以根据第一时间周期,轮询读取并记录所述门锁服务对应的门锁状态特性值。其中,第一时间周期可以根据实际需要进行设置,例如可以设置为5秒,本发明对于第一时间周期的范围不加以限制。这样一来,在用户离开汽车很短的时间内,手机已经获取并记录了门锁状态特性值,即使蓝牙连接断开,用户仍然可以通过手机查看车门是否已锁,以保证监控门锁状态的及时性。
综上,在本发明实施例中,通过移动终端根据服务端广播的门锁服务识别码,搜索所述门锁服务识别码对应的门锁服务,并针对门锁服务与服务端 建立蓝牙连接,即可在客户端利用蓝牙连接周期性地获取门锁服务对应的门锁状态特性值,从而及时获取车门的实时状态,相对于现有技术需要用户返回查看,可以为用户节省时间以及避免不必要的经济损失。进一步地,本发明实施例根据第一时间周期,轮询读取所述门锁服务对应的门锁状态特性值,以避免由于蓝牙连接断开导致无法获取门锁状态特性值的问题,从而可以保证监控门锁状态的及时性。
实施例二
本实施例在上述实施例一的基础上,还可以包括如下可选技术方案。本实施例在客户端与服务端建立蓝牙连接之后,可以监测客户端与服务端之间的距离,在所述距离大于第一阈值并且所述门锁状态特性值为打开时,发出提示信息,以提示用户家门未锁,防止造成用户的经济损失。
参照图3,示出了本发明的一种门锁状态的监控方法优选实施例的步骤流程图,具体可以包括:
步骤301、根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
步骤302、与所述服务端建立所述门锁服务对应的蓝牙连接;
步骤303、根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值;所述门锁服务对应的门锁状态特性值包括打开或者关闭;
步骤304、监测与所述服务端之间的距离;
步骤305、在所述距离大于第一阈值时,读取所述门锁服务对应的门锁状态特性值;
步骤306、在所述门锁状态特性值为打开时,发出提示信息。
在具体应用中,通过监测与服务端之间的距离,可以得知用户离开家门的距离,如果该距离大于第一阈值,说明用户已经离开家较远的距离,如果读取得到的门锁状态特性值为打开,则可以向用户发送提示信息,以通知用户家门未锁。其中,第一阈值可以设置为大于零小于蓝牙连接最大范围对应的距离值,例如可以设置为20米等,本发明对于第一阈值的取值范围不加以限制。
在本发明的一种优选实施例中,上述步骤304-306还可以用如下步骤代 替:监测所述蓝牙连接的信号强度,以及根据所述信号强度确定所述蓝牙连接的路径损耗;在所述路径损耗大于第二阈值时,读取所述门锁服务对应的门锁状态特性值;在所述门锁状态特性值为打开时,发出提示信息。
在具体应用中,除了通过上述监测距离的方法判断客户端和服务器之间的距离外,还可以根据蓝牙连接的路径损耗进行判断。具体地,在客户端和服务端建立蓝牙连接之后,手机可以监测该蓝牙连接的RSSI(接收信号强度指示器),并且从服务端读取发射功率,通过该发射功率减去RSSI计算出路径损耗,当路径损耗大于第二阈值时,说明用户已经离开家较远的距离,如果读取得到的门锁状态特性值为打开,则可以向用户发送提示信息。其中,第二阈值可以设置为大于零小于蓝牙连接最大范围对应的路径损耗值,本发明对于第二阈值的取值范围不加以限制。
在本发明的另一种优选实施例中,上述方法还可以包括:
针对用户对所述提示信息执行的关门操作,通过所述蓝牙连接关闭门锁,以及将所述门锁服务对应的门锁状态特性值修改为关闭。
综上,本发明实施例在上述实施例一的基础上,还可以监测客户端与服务端之间的距离,在所述距离大于第一阈值并且所述门锁状态特性值为打开时,发出提示信息,以在用户离家不远时可以提示用户家门未锁,防止造成用户的经济损失。
在上述实施例的基础上,还可以包括如下可选技术方案。本实施例在客户端与服务端建立蓝牙连接之后,可以监测客户端与服务端之间的距离,在所述距离大于第一阈值并且所述门锁状态特性值为打开时,发出提示信息,以提示用户车门未锁,防止造成用户的经济损失。
参照图4,示出了本发明的另一种门锁状态的监控方法优选实施例的步骤流程图,具体可以包括:
步骤401、根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
步骤402、与所述服务端建立所述门锁服务对应的蓝牙连接;
步骤403、根据第一时间周期,利用所述门锁服务识别码,通过所述蓝牙连接,轮询读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭;
步骤404、监测与所述服务端之间的距离;
步骤405、在所述距离大于第一阈值时,读取所述门锁服务对应的门锁状态特性值;
步骤406、在所述门锁状态特性值为打开时,发出门锁提示信息。
与上述实施例类似,在具体应用中,通过监测与服务端之间的距离,可以得知用户离开汽车的距离,如果该距离大于第一阈值,说明用户已经离开汽车较远的距离,如果读取得到的门锁状态特性值为打开,则可以向用户发送门锁提示信息,以通知用户车门未锁。其中,第一阈值可以设置为大于零小于蓝牙连接最大范围对应的距离值,例如可以设置为20米等,本发明对于第一阈值的取值范围不加以限制。
在本发明的一种优选实施例中,上述步骤404-406还可以用如下步骤代替:监测所述蓝牙连接的信号强度,以及根据所述信号强度确定所述蓝牙连接的路径损耗;在所述路径损耗大于第二阈值时,读取所述门锁服务对应的门锁状态特性值;在所述门锁状态特性值为打开时,发出门锁提示信息。
在具体应用中,除了通过上述监测距离的方法判断客户端和服务器之间的距离外,还可以根据蓝牙连接的路径损耗进行判断。具体地,在客户端和服务端建立蓝牙连接之后,手机可以监测该蓝牙连接的RSSI(接收信号强度指示器),并且从服务端读取发射功率,通过该发射功率减去RSSI计算出路径损耗,当路径损耗大于第二阈值时,说明用户已经离开汽车较远的距离,如果读取得到的门锁状态特性值为打开,则可以向用户发送门锁提示信息。其中,第二阈值可以设置为大于零小于蓝牙连接最大范围对应的路径损耗值,本发明对于第二阈值的取值范围不加以限制。
在本发明的另一种优选实施例中,上述方法还可以包括:
针对用户对所述门锁提示信息执行的关门操作,通过所述蓝牙连接关闭门锁,以及将所述门锁服务对应的门锁状态特性值修改为关闭。
综上,本发明实施例在上述实施例一的基础上,还可以监测客户端与服务端之间的距离,在所述距离大于第一阈值并且所述门锁状态特性值为打开时,发出提示信息,以在用户离开汽车不远时可以提示用户车门未锁,防止造成用户的经济损失。
本实施例在上述实施例一或实施例二的基础上,还可以包括如下可选技 术方案。本实施例还在检测到车门已锁时,还可以进一步对车窗的状态进行监控。
参照图5,示出了本发明的又一种门锁状态的监控方法实施例的步骤流程图,具体可以包括:
步骤501、根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
步骤502、根据服务端广播的车窗服务识别码,搜索服务端提供的车窗服务;其中,所述车窗服务识别码与所述车窗服务具有对应关系;
步骤503、与所述服务端建立所述门锁服务对应的蓝牙连接;
步骤504、根据第一时间周期,利用所述门锁服务识别码,通过所述蓝牙连接,轮询读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭;
步骤505、在读取的门锁服务对应的门锁状态特性值为关闭时,根据所述车窗服务识别码,通过所述蓝牙连接,读取所述车窗服务对应的车窗状态特性值;其中,所述车窗服务对应的车窗状态特性值包括打开或者关闭;
步骤506、在所述车窗状态特性值为打开时,发出车窗提示信息;
在本发明的一种优选实施例中,所述方法还可以包括:
步骤507、根据用户针对所述车窗提示信息执行的关窗操作,通过所述蓝牙连接执行关闭车窗操作,以及将所述车窗服务对应的车窗状态特性值修改为关闭。
采用类似的方法,还可以在用户锁车门后,监控汽车后备箱的实时状态,该过程可参照监控车窗的过程,此处不再进行赘述。
在实际应用中,经常出现用户锁车门后,有可能忘记关闭某个车窗的情况,本发明实施例在读取到门锁状态特性值为关闭时,可以得知用户关闭车门准备离开,此时利用手机通过蓝牙连接读取车窗状态特性值,如果车窗状态特性值为打开,则向用户发出车窗提示信息,以提醒用户关闭车窗,从而可以避免造成用户的经济损失。
实施例三
上述实施例一和实施例二均以客户端侧为例进行说明,下面以服务端侧说明本发明的门锁状态的监控方法。
参照图6,示出了本发明的一种门锁状态的监控方法实施例中服务端的步骤流程图,具体可以包括:
步骤601、监测门锁的实时状态,以及根据所述门锁的实时状态更新所述门锁服务对应的门锁状态特性值;
具体地,所述监测门锁的实时状态,以及根据所述门锁的实时状态更新所述门锁服务对应的门锁状态特性值的步骤,具体可以包括:监测门锁的实时状态,在所述门锁的实时状态从打开变为关闭,或者从关闭变为打开时,更新所述门锁服务对应的门锁状态特性值。
步骤602、广播门锁服务识别码;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
在实际应用中,服务端(家门)可以广播门锁服务识别码,以使客户端可以根据所述门锁识别码搜索门锁服务,以及获取所述门锁服务对应的门锁状态特性值。
步骤603、与所述客户端建立所述门锁服务对应的蓝牙连接。
在与客户端建立蓝牙连接之后,客户端即可根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值。
在本发明的一种优选实施例中,上述方法还可以包括:根据第二时间周期,通过所述蓝牙连接,向所述客户端发送所述门锁服务对应的门锁状态特性值。在具体应用中,服务端可以通过通知(notification)的方式,周期性地将门锁状态特性值发送给客户端,采用该方式,可以不用客户端周期性地轮询去服务端读取数据。
应用示例1:
前提条件:手机与家门已通过低功耗蓝牙建立连接,用户走出家门并且忘记锁门。
步骤S21、服务端(家门)监测门锁的实时状态,此时门锁为打开状态,因此,将门锁服务对应的门锁状态特性值更新为打开;
步骤S22、客户端(手机)监测与服务端的距离,在该距离大于5米时,读取门锁服务对应的门锁状态特性值,该特性值为打开;
步骤S23、手机向用户发送提示信息,以提醒用户锁门。
应用示例2:
前提条件:手机与家门已通过低功耗蓝牙建立连接,用户走出家门并且关闭家门。
步骤S31、服务端(家门)监测门锁的实时状态,此时门锁为关闭状态,因此,将门锁服务对应的门锁状态特性值更新为关闭;;
步骤S32、用户快走出小区后怀疑自己忘记锁门,通过手机查看家门锁状态信息,具体地,客户端(手机)通过蓝牙连接读取门锁服务对应的门锁状态特性值,该特性值为关闭。
综上,本发明实施例的服务端可以监测并记录门锁的实时状态,并广播门锁服务识别码,以使客户端可以根据该门锁服务识别码发现门锁服务,以及建立蓝牙连接,从而获取门锁状态特性值。也即通过移动终端即可查看门锁的实时状态,相对于现有技术需要用户返回家进行查看,可以为用户节省时间以及避免不必要的经济损失。
在上述实施例的基础上,本实施例中服务端还可以采用如图7所示的流程。
参照图7,示出了本发明的另一种门锁状态的监控方法实施例中服务端的步骤流程图,具体可以包括:
步骤701、监测门锁的实时状态,以及根据所述门锁的实时状态更新所述门锁服务对应的门锁状态特性值;
具体地,所述监测门锁的实时状态,以及根据所述门锁的实时状态更新所述门锁服务对应的门锁状态特性值的步骤,具体可以包括:监测门锁的实时状态,在所述门锁的实时状态从打开变为关闭,或者从关闭变为打开时,更新所述门锁服务对应的门锁状态特性值。
步骤702、广播门锁服务识别码;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
在实际应用中,服务端可以广播门锁服务识别码,以使客户端可以根据所述门锁识别码搜索门锁服务,以及获取所述门锁服务对应的门锁状态特性值。
步骤703、与所述客户端建立所述门锁服务对应的蓝牙连接;
在与客户端建立蓝牙连接之后,客户端即可根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值。
步骤704、根据第二时间周期,通过所述蓝牙连接,向所述客户端发送所述门锁服务对应的门锁状态特性值。
在具体应用中,服务端可以通过通知(notification)的方式,周期性地将门锁状态特性值发送给客户端,采用该方式,可以不用客户端周期性地轮询去服务端读取数据。
在本发明的一种优选实施例中,上述方法还可以包括:监测车窗的实时状态,以及根据所述车窗的实时状态更新车窗服务对应的车窗状态特性值;广播车窗服务识别码;其中,所述车窗服务识别码与所述车窗服务具有对应关系。
应用示例3:
前提条件:手机与汽车已通过低功耗蓝牙建立连接,用户离开座椅,关闭并锁上车门,但忘记关闭副驾车窗。
步骤S41、服务端(汽车上的蓝牙装置)监测门锁的实时状态,此时门锁为关闭状态,因此,将门锁服务对应的门锁状态特性值更新为关闭;
步骤S42、服务端(汽车上的蓝牙装置)监测车窗的实时状态,此时车窗为打开状态,因此,将车窗服务对应的车窗状态特性值更新为打开;
步骤S43、客户端(手机)根据门锁服务识别码,通过蓝牙连接,读取到门锁状态特性值为关闭;
步骤S44、客户端根据车窗服务识别码,通过蓝牙连接,读取车窗服务对应的车窗状态特性值,该车窗状态特性值为打开;
步骤S45、客户端向用户发送车窗提示信息,以提醒用户关闭车窗。
综上,本发明实施例的服务端可以监测并记录门锁的实时状态,并广播门锁服务识别码,以使客户端可以根据该门锁服务识别码发现门锁服务,以及建立蓝牙连接,从而获取门锁状态特性值,并且,本发明实施例根据第二时间周期,通过所述蓝牙连接,向所述客户端发送所述门锁服务对应的门锁状态特性值。也即通过移动终端即可及时获取门锁的实时状态,相对于现有技术需要用户返回去进行查看,可以为用户节省时间以及避免不必要的经济损失。
装置实施例一
参照图8,示出了本发明的一种门锁状态的监控装置实施例的结构框图, 具体可以包括:
第一服务搜索模块810,用于根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
第一连接建立模块820,用于与所述服务端建立所述门锁服务对应的蓝牙连接;及
第一状态读取模块830,用于根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭。
另一个可选实施例中,第一状态读取模块530,用于根据第一时间周期,利用所述门锁服务识别码,通过所述蓝牙连接,轮询读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭。
在本发明的一种优选实施例中,所述装置还可以包括:
第一距离监测模块,用于监测与所述服务端之间的距离;
第二状态读取模块,用于在所述距离大于第一阈值时,读取所述门锁服务对应的门锁状态特性值;
第一提示模块,用于在所述门锁状态特性值为打开时,发出提示信息。其中,所述提示信息包括门锁提示信息,即第一提示模块,用于在所述门锁状态特性值为打开时,发出门锁提示信息。
在本发明的另一种优选实施例中,所述装置还可以包括:
第二距离监测模块,用于监测所述蓝牙连接的信号强度,以及根据所述信号强度确定所述蓝牙连接的路径损耗;
第三状态读取模块,用于在所述路径损耗大于第二阈值时,读取所述门锁服务对应的门锁状态特性值;
第二提示模块,用于在所述门锁状态特性值为打开时,发出提示信息。以及,第二提示模块,用于在所述门锁状态特性值为打开时,发出门锁提示信息。
在本发明的又一种优选实施例中,所述第一状态读取模块430,具体可以包括:
第一状态读取子模块,用于根据第一时间周期,轮询读取所述门锁服务对应的门锁状态特性值。
在本发明的再一种优选实施例中,所述装置还可以包括:
第一状态修改模块,用于根据用户针对所述提示信息执行的关门操作,通过所述蓝牙连接执行关闭门锁操作,以及将所述门锁服务对应的门锁状态特性值修改为关闭。以及,第一状态修改模块,用于根据用户针对所述门锁提示信息执行的关门操作,通过所述蓝牙连接执行关闭门锁操作,以及将所述门锁服务对应的门锁状态特性值修改为关闭。
在本发明的再一种优选实施例中,所述装置还可以包括:
第二服务搜索模块,用于根据服务端广播的车窗服务识别码,搜索服务端提供的车窗服务;其中,所述车窗服务识别码与所述车窗服务具有对应关系;
第四状态读取模块,用于在读取的门锁服务对应的门锁状态特性值为关闭时,根据所述车窗服务识别码,通过所述蓝牙连接,读取所述车窗服务对应的车窗状态特性值;其中,所述车窗服务对应的车窗状态特性值包括打开或者关闭;
第三提示模块,用于在所述车窗状态特性值为打开时,发出车窗提示信息。
在本发明的再一种优选实施例中,所述装置还可以包括:
第二状态修改模块,用于根据用户针对所述车窗提示信息执行的关窗操作,通过所述蓝牙连接执行关闭车窗操作,以及将所述车窗服务对应的车窗状态特性值修改为关闭。
装置实施例二
参照图9,示出了本发明的另一种门锁状态的监控装置实施例的结构框图,具体可以包括:
状态监测模块910,用于监测门锁的实时状态,以及根据所述门锁的实时状态更新门锁服务对应的门锁状态特性值;
广播模块920,用于广播门锁服务识别码;其中,所述门锁服务识别码与所述门锁服务具有对应关系;及
第二连接建立模块930,用于与所述客户端建立所述门锁服务对应的蓝 牙连接。
在本发明的一种优选实施例中,所述状态监测模块510,具体可以包括:
状态监测子模块,用于监测门锁的实时状态,在所述门锁的实时状态从打开变为关闭,或者从关闭变为打开时,更新所述门锁服务对应的门锁状态特性值。
在本发明的另一种优选实施例中,如图10所示,可以包括:
第一状态监测模块910,用于监测门锁的实时状态,以及根据所述门锁的实时状态更新门锁服务对应的门锁状态特性值;
第一广播模块920,用于广播门锁服务识别码;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
第二连接建立模块930,用于与所述客户端建立所述门锁服务对应的蓝牙连接;及
状态推送模块940,用于根据第二时间周期,通过所述蓝牙连接,向所述客户端发送所述门锁服务对应的门锁状态特性值。
在本发明的另一种优选实施例中,所述装置还可以包括:
第二状态监测模块,用于监测车窗的实时状态,以及根据所述车窗的实时状态更新车窗服务对应的车窗状态特性值;
第二广播模块,用于广播车窗服务识别码;其中,所述车窗服务识别码与所述车窗服务具有对应关系。
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。
本发明的各个装置实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据 本发明实施例的通信处理设备中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本发明的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
例如,本发明的装置可以应用于服务器中,该服务器传统上可以包括处理器和以存储器形式的计算机程序产品或者计算机可读介质。存储器可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器具有用于执行上述方法中的任何方法步骤的程序代码的存储空间。例如,用于程序代码的存储空间可以包括分别用于实现上面的方法中的各种步骤的各个程序代码。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为便携式或者固定存储单元,该存储单元可以具有与上述服务器中的存储器类似布置的存储段、存储空间等。程序代码可以以适当形式进行压缩。通常,存储单元包括计算机可读代码,即可以由例如上述处理器读取的代码,这些代码当由服务器运行时,导致该服务器执行上面所描述的方法中的各个步骤。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
图11示出了可以实现根据本发明的视频转码方法的计算设备。该计算设备(如移动终端、服务器、被监控设备等)传统上包括处理器1110和以存储器1120形式的模块(program程序)产品或者可读介质。存储器1120可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM或者ROM之类的电子存储器。存储器1120具有用于执行上述方法中的任何方法步骤的程序代码1131的存储空间1130。例如,用于程序代码的存储空间1130可以包 括分别用于实现上面的方法中的各种步骤的各个程序代码1131。这些程序代码可以从一个或者多个程序产品中读出或者写入到这一个或者多个程序产品中。这些程序产品包括诸如存储卡之类的程序代码载体。这样的程序产品通常为如参考图12所述的便携式或者固定存储单元。该存储单元可以具有与图11的计算设备中的存储器1120类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括可读代码1131’,即可以由例如诸如1110之类的处理器读取的代码,这些代码当由计算设备的处理器运行时,导致该计算设备的处理器执行上面所描述的方法中的各个步骤。
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims (24)

  1. 一种门锁状态的监控方法,其特征在于,包括:
    根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
    与所述服务端建立所述门锁服务对应的蓝牙连接;
    根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    监测与所述服务端之间的距离;
    在所述距离大于第一阈值时,读取所述门锁服务对应的门锁状态特性值;
    在所述门锁状态特性值为打开时,发出提示信息。
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    监测所述蓝牙连接的信号强度,以及根据所述信号强度确定所述蓝牙连接的路径损耗;
    在所述路径损耗大于第二阈值时,读取所述门锁服务对应的门锁状态特性值;
    在所述门锁状态特性值为打开时,发出提示信息。
  4. 根据权利要求1所述的方法,其特征在于,通过如下步骤所述读取所述门锁服务对应的门锁状态特性值的步骤,包括:
    根据第一时间周期,轮询读取所述门锁服务对应的门锁状态特性值。
  5. 根据权利要求2或3所述的方法,其特征在于,所述方法还包括:
    根据用户针对所述提示信息执行的关门操作,通过所述蓝牙连接执行关闭门锁操作,以及将所述门锁服务对应的门锁状态特性值修改为关闭。
  6. 根据权利要求4所述的方法,其特征在于,所述方法还包括:
    根据服务端广播的车窗服务识别码,搜索服务端提供的车窗服务;其中,所述车窗服务识别码与所述车窗服务具有对应关系;
    在读取的门锁服务对应的门锁状态特性值为关闭时,根据所述车窗服务 识别码,通过所述蓝牙连接,读取所述车窗服务对应的车窗状态特性值;其中,所述车窗服务对应的车窗状态特性值包括打开或者关闭;
    在所述车窗状态特性值为打开时,发出车窗提示信息。
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:
    根据用户针对所述车窗提示信息执行的关窗操作,通过所述蓝牙连接执行关闭车窗操作,以及将所述车窗服务对应的车窗状态特性值修改为关闭。
  8. 一种门锁状态的监控方法,其特征在于,包括:
    监测门锁的实时状态,以及根据所述门锁的实时状态更新门锁服务对应的门锁状态特性值;
    广播门锁服务识别码;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
    与所述客户端建立所述门锁服务对应的蓝牙连接。
  9. 根据权利要求8所述的方法,其特征在于,所述监测门锁的实时状态,以及根据所述门锁的实时状态更新所述门锁服务对应的门锁状态特性值的步骤,包括:
    监测门锁的实时状态,在所述门锁的实时状态从打开变为关闭,或者从关闭变为打开时,更新所述门锁服务对应的门锁状态特性值。
  10. 根据权利要求8所述的方法,其特征在于,所述方法还包括:
    根据第二时间周期,通过所述蓝牙连接,向所述客户端发送所述门锁服务对应的门锁状态特性值。
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:
    监测车窗的实时状态,以及根据所述车窗的实时状态更新车窗服务对应的车窗状态特性值;
    广播车窗服务识别码;其中,所述车窗服务识别码与所述车窗服务具有对应关系。
  12. 一种门锁状态的监控装置,其特征在于,包括:
    第一服务搜索模块,用于根据服务端广播的门锁服务识别码,搜索服务端提供的门锁服务;其中,所述门锁服务识别码与所述门锁服务具有对应关系;
    第一连接建立模块,用于与所述服务端建立所述门锁服务对应的蓝牙连 接;及
    第一状态读取模块,用于根据所述门锁服务识别码,通过所述蓝牙连接,读取所述门锁服务对应的门锁状态特性值;其中,所述门锁服务对应的门锁状态特性值包括打开或者关闭。
  13. 根据权利要求12所述的装置,其特征在于,所述装置还包括:
    第一距离监测模块,用于监测与所述服务端之间的距离;
    第二状态读取模块,用于在所述距离大于第一阈值时,读取所述门锁服务对应的门锁状态特性值;
    第一提示模块,用于在所述门锁状态特性值为打开时,发出提示信息。
  14. 根据权利要求12所述的装置,其特征在于,所述装置还包括:
    第二距离监测模块,用于监测所述蓝牙连接的信号强度,以及根据所述信号强度确定所述蓝牙连接的路径损耗;
    第三状态读取模块,用于在所述路径损耗大于第二阈值时,读取所述门锁服务对应的门锁状态特性值;
    第二提示模块,用于在所述门锁状态特性值为打开时,发出提示信息。
  15. 根据权利要求12所述的装置,其特征在于,所述第一状态读取模块,包括:
    第一状态读取子模块,用于根据第一时间周期,轮询读取所述门锁服务对应的门锁状态特性值。
  16. 根据权利要求13或14所述的装置,其特征在于,所述装置还包括:
    第一状态修改模块,用于根据用户针对所述提示信息执行的关门操作,通过所述蓝牙连接执行关闭门锁操作,以及将所述门锁服务对应的门锁状态特性值修改为关闭。
  17. 根据权利要求15所述的装置,其特征在于,所述装置还包括:
    第二服务搜索模块,用于根据服务端广播的车窗服务识别码,搜索服务端提供的车窗服务;其中,所述车窗服务识别码与所述车窗服务具有对应关系;
    第四状态读取模块,用于在读取的门锁服务对应的门锁状态特性值为关闭时,根据所述车窗服务识别码,通过所述蓝牙连接,读取所述车窗服务对应的车窗状态特性值;其中,所述车窗服务对应的车窗状态特性值包括打开 或者关闭;
    第三提示模块,用于在所述车窗状态特性值为打开时,发出车窗提示信息。
  18. 根据权利要求17所述的装置,其特征在于,所述装置还包括:
    第二状态修改模块,用于根据用户针对所述车窗提示信息执行的关窗操作,通过所述蓝牙连接执行关闭车窗操作,以及将所述车窗服务对应的车窗状态特性值修改为关闭。
  19. 一种门锁状态的监控装置,其特征在于,包括:
    状态监测模块,用于监测门锁的实时状态,以及根据所述门锁的实时状态更新门锁服务对应的门锁状态特性值;
    广播模块,用于广播门锁服务识别码;其中,所述门锁服务识别码与所述门锁服务具有对应关系;及
    第二连接建立模块,用于与所述客户端建立所述门锁服务对应的蓝牙连接。
  20. 根据权利要求19所述的装置,其特征在于,所述状态监测模块,包括:
    状态监测子模块,用于监测门锁的实时状态,在所述门锁的实时状态从打开变为关闭,或者从关闭变为打开时,更新所述门锁服务对应的门锁状态特性值。
  21. 根据权利要求19所述的方法,其特征在于,所述装置还包括:
    状态推送模块,用于根据第二时间周期,通过所述蓝牙连接,向所述客户端发送所述门锁服务对应的门锁状态特性值。
  22. 根据权利要求21所述的装置,其特征在于,所述装置还包括:
    第二状态监测模块,用于监测车窗的实时状态,以及根据所述车窗的实时状态更新车窗服务对应的车窗状态特性值;
    第二广播模块,用于广播车窗服务识别码;其中,所述车窗服务识别码与所述车窗服务具有对应关系。
  23. 一种计算设备,包括:
    一个或多个处理器;
    存储器;和
    一个或多个模块,所述一个或多个模块存储于所述存储器中并被配置成由所述一个或多个处理器执行,其中,所述一个或多个模块配置用于执行上述权利要求1-11任一所述的方法。
  24. 一种在其上记录有用于执行权利要求1-11所述方法的程序的计算机可读存储介质。
PCT/CN2016/088402 2015-10-22 2016-07-04 一种门锁状态的监控方法及装置 WO2017067221A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/236,322 US20170116841A1 (en) 2015-10-22 2016-08-12 Method and device for monitoring door lock state

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201510694421.3A CN105991757A (zh) 2015-10-22 2015-10-22 一种门锁状态的监控方法及装置
CN201510694421.3 2015-10-22
CN201510694422.8 2015-10-22
CN201510694422.8A CN105979471A (zh) 2015-10-22 2015-10-22 一种门锁状态的监控方法及装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/236,322 Continuation US20170116841A1 (en) 2015-10-22 2016-08-12 Method and device for monitoring door lock state

Publications (1)

Publication Number Publication Date
WO2017067221A1 true WO2017067221A1 (zh) 2017-04-27

Family

ID=58556618

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/088402 WO2017067221A1 (zh) 2015-10-22 2016-07-04 一种门锁状态的监控方法及装置

Country Status (2)

Country Link
US (1) US20170116841A1 (zh)
WO (1) WO2017067221A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055183A (zh) * 2020-09-11 2020-12-08 移康智能科技(上海)股份有限公司 一种利用智能猫眼进行未关门提醒的方法
CN112135275A (zh) * 2020-09-24 2020-12-25 Oppo广东移动通信有限公司 蓝牙扫描方法、装置、电子设备和可读存储介质
CN115331367A (zh) * 2022-08-11 2022-11-11 深圳市金安科技有限公司 一种无线智能门磁报警系统

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6792209B2 (ja) * 2017-09-11 2020-11-25 三菱自動車工業株式会社 車両用通信装置
CN109033254A (zh) * 2018-07-06 2018-12-18 北京摩室科技有限公司 可移动卫生间的管理方法、装置和系统
CN113764998B (zh) * 2021-08-18 2023-07-04 安徽祥能电力科技有限公司 一种带忘锁门远程提醒功能的配电柜及其使用方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203444541U (zh) * 2013-08-23 2014-02-19 上海闻泰电子科技有限公司 一种门锁监控系统
CN104401271A (zh) * 2014-10-31 2015-03-11 惠州华阳通用电子有限公司 一种车门未锁自动提醒与锁闭方法及装置
CN104754530A (zh) * 2015-03-02 2015-07-01 惠州Tcl移动通信有限公司 用于智能检测门锁的移动终端、系统及其方法
CN204557609U (zh) * 2015-04-13 2015-08-12 威普国际(德国)股份有限公司 一种智能监控的蓝牙门锁

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203444541U (zh) * 2013-08-23 2014-02-19 上海闻泰电子科技有限公司 一种门锁监控系统
CN104401271A (zh) * 2014-10-31 2015-03-11 惠州华阳通用电子有限公司 一种车门未锁自动提醒与锁闭方法及装置
CN104754530A (zh) * 2015-03-02 2015-07-01 惠州Tcl移动通信有限公司 用于智能检测门锁的移动终端、系统及其方法
CN204557609U (zh) * 2015-04-13 2015-08-12 威普国际(德国)股份有限公司 一种智能监控的蓝牙门锁

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112055183A (zh) * 2020-09-11 2020-12-08 移康智能科技(上海)股份有限公司 一种利用智能猫眼进行未关门提醒的方法
CN112135275A (zh) * 2020-09-24 2020-12-25 Oppo广东移动通信有限公司 蓝牙扫描方法、装置、电子设备和可读存储介质
CN112135275B (zh) * 2020-09-24 2023-08-18 Oppo广东移动通信有限公司 蓝牙扫描方法、装置、电子设备和可读存储介质
CN115331367A (zh) * 2022-08-11 2022-11-11 深圳市金安科技有限公司 一种无线智能门磁报警系统
CN115331367B (zh) * 2022-08-11 2024-02-20 深圳市金安科技有限公司 一种无线智能门磁报警系统

Also Published As

Publication number Publication date
US20170116841A1 (en) 2017-04-27

Similar Documents

Publication Publication Date Title
WO2017067221A1 (zh) 一种门锁状态的监控方法及装置
US11452153B2 (en) Pairing and gateway connection using sonic tones
US9002344B2 (en) Phone content service
US8095112B2 (en) Adjusting security level of mobile device based on presence or absence of other mobile devices nearby
US9449154B2 (en) Method and apparatus for granting rights for content on a network service
US9413704B2 (en) Presenting messages associated with locations
US20120089675A1 (en) Systems and methods for user interaction based on license or other identification information
US7924158B2 (en) Dynamic updating of product profiles for active lifestyles
US20110047237A1 (en) Proximity based matchmaking using communications devices
US20180034772A1 (en) Method and apparatus for bluetooth-based identity recognition
US20100194896A1 (en) Automatically tagging images with nearby short range communication device information
CN103209247B (zh) 一种信息显示的方法和系统以及终端和服务器
US9867028B2 (en) Electronically binding to a lost mobile device
CN102750433A (zh) 用于会议系统位置知晓和供应的技术
CN103581441B (zh) 移动终端追踪防盗系统和方法
US9628567B2 (en) Methods and systems for efficient discovery of devices in a peer-to-peer network
US9977646B2 (en) Broadcast control and accrued history of media
CN105979471A (zh) 一种门锁状态的监控方法及装置
US20130174219A1 (en) Dynamically Updating Current Communication Information
CN111428150A (zh) 信息展示方法、装置、电子设备、服务器及存储介质
US20140119356A1 (en) Nfc server and nfc service method of communication devices using wifi direct
WO2008107437A1 (fr) Procede d'echange de donnees entre une borne de communication sans contact et un terminal de telephonie mobile
CN101808160A (zh) 一种应用于移动终端的文件处理方法及移动终端
US10616766B2 (en) Facilitation of seamless security data transfer for wireless network devices
US9922094B1 (en) Sharing data based on user ranking

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16856660

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16856660

Country of ref document: EP

Kind code of ref document: A1