WO2019061877A1 - Shared device, service terminal, and networking system and method for shared device - Google Patents

Shared device, service terminal, and networking system and method for shared device Download PDF

Info

Publication number
WO2019061877A1
WO2019061877A1 PCT/CN2017/117184 CN2017117184W WO2019061877A1 WO 2019061877 A1 WO2019061877 A1 WO 2019061877A1 CN 2017117184 W CN2017117184 W CN 2017117184W WO 2019061877 A1 WO2019061877 A1 WO 2019061877A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
target
communication connection
communication
shared
Prior art date
Application number
PCT/CN2017/117184
Other languages
French (fr)
Chinese (zh)
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
Application filed by 柠创控股有限公司 filed Critical 柠创控股有限公司
Priority to PCT/CN2018/109076 priority Critical patent/WO2019063011A1/en
Publication of WO2019061877A1 publication Critical patent/WO2019061877A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F17/00Coin-freed apparatus for hiring articles; Coin-freed facilities or services
    • G07F17/0042Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects
    • G07F17/0057Coin-freed apparatus for hiring articles; Coin-freed facilities or services for hiring of objects for the hiring or rent of vehicles, e.g. cars, bicycles or wheelchairs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/04Terminal devices adapted for relaying to or from another terminal or user

Definitions

  • the present disclosure relates to the field of shared device technologies, for example, to a sharing device, a service terminal, a networking system and a method for sharing a device.
  • pileless bicycles In order to facilitate people's daily life, many public places have set up shared equipment, such as no pile bicycles.
  • the use of pileless bicycles is convenient and can effectively solve short-distance travel problems. It can not only relieve traffic pressure to a certain extent, but also its green energy saving, which can effectively reduce carbon emissions and also encourage users to exercise.
  • the shared device establishes a communication connection with the remote server and performs data interaction.
  • the shared device cannot be used normally.
  • the existence of the above problems usually leads to poor user experience, and also because the shared device cannot be used normally, resulting in waste of shared device resources.
  • the embodiment of the invention provides a networking system and method for a shared device, a service terminal, and a shared device, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids sharing device resources. waste.
  • An embodiment of the present invention provides a networking system for a shared device, where the system includes: a target shared device, an intermediate device, and a target service terminal, where
  • the target sharing device communicates with the target service terminal through a first communication connection, the intermediate device communicates with the target shared device through a second communication connection, and the intermediate device and the target service terminal are connected through a third communication Communication
  • the intermediate device includes at least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system;
  • the target sharing device communicates with the target service terminal through the second communication connection, the intermediate device, and the third communication connection communication when a communication failure occurs in the first communication connection.
  • An embodiment of the present invention provides a networking method for a shared device, where the method includes:
  • the target sharing device communicates with the target service terminal through the intermediate device;
  • the target sharing device communicates with the intermediate device through a second communication connection, and the intermediate device communicates with the target service terminal through a third communication connection, where the intermediate device includes a network system in which the shared device is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal.
  • An embodiment of the present invention provides a networking system for a shared device, including: a target shared device, an intermediate shared device, and a target public terminal, where
  • the target sharing device communicates with the target public terminal through a first communication connection
  • the intermediate shared device communicates with the target shared device by using a second communication connection
  • the intermediate sharing device communicates with the target public terminal through a third communication connection
  • the intermediate shared device includes at least one of the shared devices other than the target shared device in the networking system;
  • the target sharing device communicates with the target public terminal through the second communication connection, the intermediate sharing device, and the third communication connection when a communication failure occurs in the first communication connection.
  • the embodiment of the present invention provides a service terminal, which includes at least a second storage unit, where the second storage unit stores at least a terminal identifier of each shared device and other service terminals in the shared terminal networking system of the first aspect. At least one.
  • the embodiment of the invention provides a sharing device, including:
  • a detecting module configured to detect a first communication connection with the target service terminal
  • a communication module configured to communicate with the target service terminal through the intermediate device when detecting that a communication failure occurs in the first communication connection
  • the sharing device communicates with the intermediate device through a second communication connection, and the intermediate device communicates with the target service terminal through a third communication connection, where the intermediate device includes a network system in which the shared device is located. At least one of a shared device other than the shared device, a public terminal, and other service terminals other than the target service terminal.
  • the embodiment of the invention provides a service terminal, including:
  • a detecting module configured to detect a first communication connection with the target sharing device
  • a communication module configured to communicate with the target shared device through the intermediate device when detecting that the first communication connection has a communication failure
  • the intermediate device establishes a second communication connection communication with the target shared device, and the intermediate device establishes a third communication connection communication with the service terminal, where the intermediate device includes a network system in which the service terminal is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the service terminal.
  • the embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, the computer executable instructions being configured to perform the method of any of the above.
  • the networking system and method for the shared device, the service terminal, and the shared device provided by the embodiment of the present invention enable the communication connection between the target shared device and the target service terminal by setting an intermediate device between the target shared device and the target service terminal.
  • the target shared device can communicate with the target service terminal through the intermediate device, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids waste of shared device resources.
  • FIG. 1 is a schematic structural diagram of a networking system of a shared device according to an embodiment
  • FIG. 2 is a schematic structural diagram of a networking system of a shared device according to another embodiment
  • FIG. 3 is a schematic structural diagram of a networking system of a shared device according to another embodiment
  • FIG. 4 is a flowchart of a networking method of a shared device according to an embodiment
  • FIG. 5A is a flowchart of a networking method of a shared device according to an embodiment
  • FIG. 5B is a signaling flowchart of a networking method of a shared device according to an embodiment
  • FIG. 6A is a flowchart of a networking method of a shared device according to an embodiment
  • FIG. 6B is a signaling flowchart of a networking method of a shared device according to an embodiment
  • FIG. 7A is a flowchart of a networking method of a shared device according to an embodiment
  • FIG. 7B is a signaling flowchart of a networking method of a shared device according to an embodiment
  • FIG. 8A is a flowchart of a networking method of a shared device according to an embodiment
  • FIG. 8B is a signaling flowchart of a networking method of a shared device according to an embodiment
  • FIG. 9 is a schematic structural diagram of a networking system of a shared device according to an embodiment.
  • FIG. 10 is a schematic structural diagram of a service terminal according to an embodiment
  • FIG. 11 is a schematic structural diagram of a shared device according to an embodiment
  • FIG. 12 is a schematic structural diagram of a service terminal according to an embodiment
  • FIG. 13 is a schematic structural diagram of hardware of an electronic device according to an embodiment.
  • a remote server that establishes a communication connection with it and performs data interaction.
  • the centralization dependency is serious.
  • the shared device cannot use.
  • there is also a technical solution for setting a cloud between the shared device and the cloud operation policy center for the technical solution, once the unique cloud and the unique cloud operation policy center have any problem, the corresponding shared device is also caused. Not working properly.
  • FIG. 1 is a schematic structural diagram of a networking system of a shared device according to an embodiment. As shown in FIG. 1, the system includes a target sharing device 110, an intermediate device 120, and a target service terminal 130.
  • the shared device networking system in this embodiment may include multiple shared devices, multiple public terminals, and multiple service terminals.
  • the intermediate device shown in FIG. 1 may be any one of a shared device, any one of the public terminals, or any one of the service terminals.
  • Each shared device, public terminal, and service terminal in the networking system has the same status, and can communicate with each other under certain conditions.
  • one or more of the following embodiments are described by taking a target shared device, an intermediate device, and a target service terminal as an example.
  • the target sharing device 110 and the target service terminal 130 communicate via the first communication connection, wherein the first communication connection may be a remote communication connection.
  • the target service terminal 130 is configured to manage and control the target shared device 110 through the first communication connection, and specifically, may include providing a decision for event triggering such as blocking, unlocking, and alarming of the target shared device 110, and provisioning for the target shared device 110.
  • the policy is provided, the geographic location information of the target shared device 110 is managed, and the advertisement information of the target shared device 110 is managed. For example, when the target sharing device 110 has the locking function, the target service terminal 130 can control the target sharing device 110 to unlock.
  • the specific sharing device 110 is a pileless bicycle, and the communication connection between the pileless bicycle and the target service terminal 130 is a first communication connection as an example.
  • the target service terminal 130 can generate the unlocking information according to the request of the user, and send the unlocking information to the unstacked bicycle through the first communication connection, and the unloaded bicycle performs the corresponding unlocking action after receiving the unlocking information. For the user to use.
  • the target sharing device 110 can communicate indirectly by establishing the first communication connection with the target service terminal 130, and indirectly through the intermediate device 120 in the networking system.
  • the intermediate device 120 communicates with the target shared device 110 through a second communication connection
  • the intermediate device 120 communicates with the target service terminal 130 through a third communication connection.
  • the intermediate device 120 may be at least one of a shared device other than the target shared device, a public terminal, and other service terminals except the target serving terminal in the networking system, that is, in a networking system. Any two devices can communicate when there is a communication need.
  • the shared device may include a pile-free bicycle such as a shared bicycle or a shared electric vehicle, and may also be used for other resource sharing devices such as a shared charging treasure.
  • the public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, or a fixed device or a movable device in a smart city.
  • the electronic vehicle pile in this embodiment may be an outdoor public device, for example, may be a virtual parking area based on electronic identification. Equipped with electronic vehicle piles in public places is one of the measures to regulate the current management of pileless bicycles. Since the electronic vehicle pile is a fixed device, it can be equipped with a stable and sufficient power, for example, powered by a commercial power source, or powered by solar energy.
  • the function module of the electronic vehicle pile is similar to the function module in the pileless bicycle. For example, it also has a short-range communication module, a long-distance communication module, and a GPS positioning module. The communication function is good, and information transfer can be provided to the non-pile bicycles having communication failures with the target service terminal 130 nearby.
  • the target service terminal 130 in this embodiment may be a server, which may be a server that processes single-line services, for example, may provide a decision for event triggering such as unlocking and alarming of the target shared device 110, and provide a policy for provisioning of the target shared device 110.
  • the target service terminal 130 can also be a server that handles the integrated service.
  • the target service terminal 130 can be understood as a service point that provides processing, databases, and communication facilities.
  • target service terminal 130 can refer to a single physical processor with associated communication and data storage and database facilities, or it can refer to a networked or aggregated processor, a collection of related networks and storage devices, and to software and One or more database systems and application software that support the services provided by the server operate.
  • the target kiosk 130 may vary greatly in configuration or performance, but the target kiosk 130 may generally include one or more central processing units and memory.
  • Target kiosk 130 may also include one or more mass storage devices, one or more power sources, one or more wired or wireless network interfaces, one or more input/output interfaces, or one or more operating systems, such as , Windows Server, Windows Operating System X (Mac OS X), Eunice Operating System (Unix), Linux, Open Berkeley Software Distribution (FreeBSD), etc. .
  • the target service terminal 130 can be a monolithic server or a decentralized server that spans multiple computers or computer data centers.
  • the target service terminal 130 may be of various types, such as, but not limited to, a web server, a news server, a mail server, a message server, an advertisement server, a file server, an application server, an interactive server, a database server, or a proxy server.
  • each server may comprise hardware, software, or an embedded logic component or a combination of two or more such components for performing the appropriate functions supported or implemented by the target kiosk.
  • the target kiosk 130 can be configured to provide all of the functionality necessary to support the management of the target sharing device 110.
  • the target sharing device 110 can communicate with the target service terminal 130 through the second communication connection, the intermediate device 120, and the third communication connection communication. .
  • the communication link may be faulty.
  • the base station may not be registered, the socket connection may not be connected (if the shared device is connected to the service terminal through the socket), and the communication failure may occur due to failure of other links.
  • the socket is a port number for establishing at least one pair of network communication connections, and the two programs on the network can exchange data through a two-way communication connection, and each end of the connection is called a socket.
  • the second communication connection established between the target shared device 110 and the intermediate device 120 may be a close range.
  • the communication connection, the third communication connection established between the intermediate device 120 and the target service terminal 130, may be a remote communication connection. Then, the target sharing device 110 communicates with the target service terminal 130 through the short-range communication connection, the intermediate device 120, and the remote communication connection.
  • the second communication connection established between the target sharing device 110 and the intermediate device 120 is a remote communication connection
  • the third device is established between the intermediate device 120 and the target service terminal 130.
  • the communication connection is a cloud communication connection. Then, the target sharing device 110 communicates with the target service terminal 130 through the remote communication connection, the intermediate device 120, and the cloud communication connection.
  • the networking system of the shared device provides an intermediate device between the target shared device and the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device may
  • the intermediate device communicates with the target service terminal, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids waste of shared device resources.
  • FIG. 2 is a schematic structural diagram of a networking system of a shared device according to an embodiment. As shown in FIG. 2, the system specifically includes: a target sharing device 110, a first communication module 111, a second communication module 112, an intermediate device 120, a third communication module 121, a fourth communication module 122, and a target service terminal 130.
  • the target sharing device 110 includes a first communication module 111 and a second communication module 112
  • the intermediate device 120 includes a third communication module 121 and a fourth communication module 122
  • the target service terminal 130 includes a first network interface.
  • the second communication module 112 and the third communication module 121 are configured to establish a short-range communication connection with other devices except the self in the networking system, and the first communication module 111, the fourth communication module 122, and the first network interface are set to be combined with the group.
  • the network system establishes a remote communication connection with other devices except itself.
  • the first communication module 111 of the target sharing device 110 and the first network interface of the target service terminal 130 establish a first communication connection, and the information communication can be directly performed by using the remote communication connection.
  • the target sharing device 110 can communicate with the target service terminal 130 through the intermediate device 120 in the networking system.
  • the second communication module 112 of the target sharing device 110 and the third communication module 121 of the intermediate device 120 establish a second communication connection, and the first communication interface of the fourth communication module 122 and the target service terminal 130 of the intermediate device 120
  • a third communication connection is established such that the target sharing device 110 can indirectly exchange information with the target service terminal 130 through the intermediate device 120.
  • the intermediate device 120 may include any public terminal or other shared device in the networking system, the second communication connection is a short-range communication connection, and the third communication connection is a remote communication connection.
  • the intermediate device 120 may be a public terminal, which may include a third communication module 121 configured as a short-range communication connection and a fourth communication module 122 configured as a remote communication connection;
  • the target sharing device 110 may include settings A first communication module 111 connected for remote communication and a second communication module 112 configured as a short-range communication connection;
  • the target service terminal 130 may include a first network interface configured as a remote communication connection.
  • the target sharing device 110 may establish a first communication connection with the first network interface of the target service terminal 130 through the first communication module 111, for example, may be a remote communication connection.
  • the target sharing device 110 can communicate with the target service terminal 130 through the public terminal 120.
  • the second communication module 112 in the target sharing device 110 may establish a second communication connection with the third communication module 121 in the public terminal 120, where the second communication connection may be a short-range communication connection, in the public terminal 120.
  • the fourth communication module 122 can establish a third communication connection with the first network interface in the target service terminal 130, and the third communication connection can be a remote communication connection, for example, the target sharing terminal 110 can be connected through the short-range communication, and the public terminal 120 The remote communication connection communicates with the target service terminal 130.
  • the shared device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be other devices used for resource sharing, such as a shared charging treasure.
  • the public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, or a fixed device or a movable device in a smart city.
  • the electronic vehicle pile in the embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again.
  • the target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
  • the networking system of the shared device provides an intermediate device including a public terminal or another shared device in the networking system between the target shared device and the target service terminal, so that the target shared device and the target service terminal are When there is a communication failure in the communication connection, the short-distance communication connection established by the target shared device with the intermediate device and the remote communication connection established by the intermediate device with the target service terminal can communicate, thereby improving the information transmission between the shared device and the service terminal.
  • the success rate improves the user experience while avoiding the waste of shared device resources.
  • FIG. 3 is a schematic structural diagram of a networking system of a shared device according to an embodiment. As shown in FIG. 3, the system specifically includes: a target sharing device 110, a first communication module 111, an intermediate device 120, a fourth communication module 122, a fifth communication module 123, and a target service terminal 130.
  • the target sharing device 110 may include a first communication module 111
  • the intermediate device 120 may include a fourth communication module 122 and a fifth communication module 123
  • the target service terminal 130 may include a first network interface and a second network interface.
  • the first communication module 111, the fourth communication module 122, and the first network interface may be configured to establish a remote communication connection with other devices except the self in the networking system, and the fifth communication module 123 and the second network interface may be set to be associated with the group.
  • Other service terminals in the network system establish a cloud communication connection.
  • the first communication module 111 of the target sharing device 110 can establish a first communication connection with the first network interface in the target service terminal 130, for example, can directly perform information interaction using the remote communication connection.
  • the target sharing device 110 can communicate with the target service terminal 130 through the intermediate device 120 in the networking system.
  • the first communication module 111 of the target sharing device 110 may establish a second communication connection with the fourth communication module 122 of the intermediate device 120, and the fifth communication module 123 of the intermediate device 120 may be the second one of the target service terminals 130.
  • the network interface establishes a third communication connection such that the target sharing device 110 can indirectly interact with the target service terminal 130 via the intermediate device 120.
  • the intermediate device 120 may include other service terminals, the second communication connection may be a remote communication connection, and the third communication connection may be a cloud communication connection.
  • the intermediate device 120 may be any one of other service terminals, and the service terminal 120 may include a fourth communication module 122 configured as a remote communication connection and a fifth communication module 123 configured as a cloud communication connection; the target sharing device 110 may A first communication module 111 configured as a remote communication connection is included; the target service terminal 130 may include a first network interface configured as a remote communication connection and a second network interface configured as a cloud communication connection.
  • the target sharing device 110 can establish a first communication connection with the first network interface in the target service terminal 130 through the first communication module 111, when there is a communication failure in the first communication connection between the target sharing device 110 and the target service terminal 130.
  • the target sharing device 110 can communicate with the target service terminal 130 through the service terminal 120.
  • the first communication module 111 in the target sharing device 110 may establish a second communication connection with the fourth communication module 122 in the service terminal 120, where the second communication connection may be a remote communication connection, and the service terminal 120
  • the fifth communication module 123 can establish a third communication connection with the second network interface in the target service terminal, and the third communication connection can be a cloud communication connection, for example, the target sharing terminal 110 can communicate through the remote communication, the service terminal 120, and the cloud communication.
  • the connection communicates with the target kiosk 130.
  • the shared device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be other devices used for resource sharing, such as a shared charging treasure.
  • the public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, or a fixed device or a movable device in a smart city.
  • the electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again.
  • the target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
  • the networking system of the shared device provides an intermediate device including other service terminals between the target shared device and the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal
  • the remote communication connection established by the target shared device and the intermediate device and the cloud communication connection established by the intermediate device and the target service terminal can communicate, thereby improving the information transmission success rate between the shared device and the service terminal, thereby improving the user experience and improving the user experience. Avoid wasting shared device resources.
  • the target sharing device 110 or the target service terminal 130 may be further configured to: when determining that the first communication connection communication is faulty, query the stored terminal identification list, and send the query request to the terminal in the terminal identification list.
  • each terminal in the networking system may be provided with a storage unit, and each terminal has a unique terminal identifier corresponding thereto, wherein each storage unit may store terminal identifiers of all other terminals in the networking system, and may The terminal identifiers of all other terminals in the preset communication distance range of the corresponding terminal are stored, or each terminal has its own unique terminal identifier, and each terminal can pre-store the terminal identifiers of other terminals as needed.
  • the terminal identifier may include device physical information or other non-physical meaning preset identification identifier, where the device physical information may include an Internet Protocol Address (IP) address, VPN (Virtual Private network), routing label, port number, etc.; when the terminal is a shared device or an intermediate device, the terminal identifier may be an International Mobile Equipment Identity (IMEI) number of the device or Bluetooth. Name and so on.
  • IP Internet Protocol Address
  • VPN Virtual Private network
  • IMEI International Mobile Equipment Identity
  • the target sharing device 110 or the target service terminal 130 may determine that the terminal that sent the query request response is the intermediate device 120.
  • the intermediate device may respond to the corresponding terminal in response to the first query request, or may select one terminal in the terminal that sends the query request response, for example, the terminal with the highest weight may be selected as the intermediate device.
  • the terminal having the highest weight may be, for example, a terminal having at least one of the power amount information and the communication state information in each terminal being optimal or having the best comprehensive condition.
  • the query request response may be sent by a terminal capable of establishing a second communication connection with the target sharing device 110 and capable of establishing a third communication connection with the target service terminal 130.
  • the terminal may include one of a shared device other than the target shared device, a public terminal, and other service terminals except the target service terminal in the networking system.
  • the target sharing device 110 may include a first storage unit, and the target service terminal 130 may include a second storage unit, when it is determined that the first communication connection between the target sharing device 110 and the target service terminal 130 has a communication failure, and the target is shared.
  • the target sharing device 110 may be configured to query the terminal identifier list stored therein by using the first storage unit, and after obtaining the terminal identifier list, sequentially identify each terminal in the terminal identification list.
  • the target sharing device 110 may determine that the terminal that sends the query request response is the intermediate device 120; or when it is determined that the first communication connection between the target sharing device 110 and the target service terminal 130 has a communication failure, and
  • the target service terminal 130 may be configured to query the terminal identifier list stored therein by using the second storage unit, and after obtaining the terminal identifier list, sequentially identify the terminal identifier list.
  • the terminal sends a query request And receiving the query request response, the target service terminal 130 determines that the terminal that sends the query request response is the intermediate device 120.
  • the target sharing device 110 or the target service terminal 130 may be further configured to: when determining that the first communication connection communication is faulty, broadcast a query request and receive at least one query request response, and select one of the terminals that send the query request response.
  • the intermediate device 120, the query request ring may be sent by a terminal capable of establishing a second communication connection with the target sharing device and capable of establishing a third communication connection with the target service terminal.
  • the terminal includes one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system.
  • the target sharing device 110 may include a first broadcast unit, when it is determined that the first communication connection between the target sharing device 110 and the target service terminal 130 has a communication failure, and the target sharing device 110 needs to send an uplink to the target service terminal 130.
  • the target sharing device 110 may be configured to broadcast a query request by the first broadcast unit and receive at least one query request response, and the target sharing device 110 may determine that the terminal that sends the query request response is the intermediate device 120, such as other shared devices, public terminals. , other service terminals.
  • the query request response may be sent by a terminal capable of establishing a second communication connection with the target sharing device 110 and capable of establishing a third communication connection with the target service terminal 130.
  • the target sharing device 110 may receive multiple query request responses after the broadcast query request, and the target sharing device 110 may select one of the terminals that send the query request response as the intermediate device 120, or may receive the same.
  • the first query request responds to the corresponding terminal as the intermediate device 120.
  • the query request broadcast by the target sharing device 110 may further include ballot information, and when receiving the terminal including the query request capable of establishing a second communication connection with the target sharing device 110 and being able to establish a third communication connection with the target service terminal 130, sharing with the target
  • the query request response sent by the device includes voting information, and the voting information may include weight information of the device.
  • the target sharing device 110 can determine the weight of each terminal that sends the query request response according to the voting information in all the query request responses received.
  • the terminal with the highest weight can be selected as the intermediate device 120.
  • the terminal having the highest weight may be, for example, a terminal having at least one of the power amount information and the communication state information in each terminal being optimal or having the best comprehensive condition.
  • the target sharing device 110 can better forward the data by using the terminal device 120 selected according to the weight information as the forwarding device between the target shared device 110 and the target serving terminal 130.
  • the networking system of the shared device provided in this embodiment can set a storage unit or a broadcast unit in the target shared device or the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, Querying a list of terminal identifiers in the storage unit, and sequentially sending a query request to the terminal in the terminal identifier list, or determining an intermediate device for assisting communication by means of a broadcast unit broadcasting the query request and receiving at least one query request response, so that the middle
  • the selection of devices is diversified, and the success rate of information transmission between the shared device and the service terminal is improved, the user experience is improved, and the waste of shared device resources is avoided.
  • FIG. 4 is a flowchart of a networking method of a shared device according to an embodiment.
  • the method can be applied to a networking system of a shared device, and the communication cannot be performed due to a communication failure between the target shared device and the target service terminal, and the method can be performed by the networking system of the shared device.
  • the specific steps of the method are as follows:
  • the first communication connection is a remote communication connection
  • the target service terminal is configured to manage and control the target shared device.
  • a first communication connection may be established between the target shared device and the target service terminal, where The first communication connection can be a remote communication connection.
  • the target service terminal can implement at least one of management and control of the target shared device through the first communication connection.
  • the target service terminal may provide a decision for event triggering such as blocking, unlocking, and alarming of the target shared device, may provide a policy for provisioning of the target shared device, manage geographic location information of the target shared device, and manage the target shared device. Advertising information management, etc.
  • the target service terminal can control the target sharing device to unlock.
  • the target shared device is a pileless bicycle, and the communication connection between the pileless bicycle and the target service terminal is specifically described as an example of the first communication connection.
  • the target service terminal can generate the request according to the user's request.
  • the information is unlocked and sent to the unstacked bicycle through the first communication connection. After receiving the unlocking information, the unstacked bicycle can perform a corresponding unlocking action for the user to use.
  • detecting the first communication connection between the target sharing device and the target service terminal may determine whether the first communication connection has a communication failure, and if normal, directly interacting information between the target shared device and the target service terminal.
  • the target sharing device communicates with the target service terminal through the intermediate device.
  • the target shared device communicates with the intermediate device by using a second communication connection, and the intermediate device communicates with the target service terminal by using a third communication connection, where the intermediate device includes other than the target shared device in the networking system where the shared device is located. At least one of a shared device, a public terminal, and other service terminals other than the target service terminal.
  • the networking system of the shared device may include a public terminal in addition to the shared device and the service terminal, wherein the public terminal may establish a short-range communication connection with the shared device, and may establish a remote communication connection with the service terminal. Any two of the shared device, the public terminal, and the service terminal in the networking system can communicate when there is communication demand.
  • the shared device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be used for other resources sharing devices such as a shared charging treasure; the public terminal may include a virtual vehicle pile, a street light, a bus stop sign, a park road sign, A fixed device or a movable device in a smart city.
  • the electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again.
  • the target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
  • information interaction may be performed by using an intermediate device other than the target shared device and the target service terminal in the networking system.
  • the target sharing device can communicate with the target service terminal through one or more of other shared devices, public terminals, and other service terminals in the networking system of the shared device.
  • the target shared device can communicate with the intermediate device through the second communication connection, and the intermediate device can communicate with the target service terminal through the third communication connection, for example, the target shared device can communicate with the target through the second communication connection, the intermediate device, and the third communication connection. Communication between service terminals.
  • the second communication connection established between the target shared device and the intermediate device may be a short-range communication connection
  • the third communication connection established with the target service terminal may be a remote communication connection
  • the target shared device may communicate with the target service terminal through the short-range communication connection, the intermediate device and the remote communication connection;
  • the second communication connection established between the target shared device and the intermediate device may be a remote communication connection
  • the third communication connection established between the intermediate device and the target service terminal may be a cloud communication connection
  • the target shared device may pass The telecommunication connection, the intermediate device, and the cloud communication connection communicate with the target service terminal.
  • the networking method of the shared device provides an intermediate device between the target shared device and the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device may
  • the intermediate device communicates with the target service terminal, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids waste of shared device resources.
  • FIG. 5A is a flowchart of a networking method of a shared device according to an embodiment. As shown in FIG. 5A, the method specifically includes:
  • the target sharing device when it is detected that there is a communication failure in the first communication connection between the target sharing device and the target service terminal, the target sharing device may implement an indirect connection with the target service terminal by searching for an intermediate device in the networking system. Communication.
  • the target service terminal can implement indirect communication with the target shared device by searching for an intermediate device in the networking system.
  • the target shared device may search for an intermediate device in the networking system to implement communication with the target service terminal; when the target service terminal needs to send to the target shared device, During downlink information, the target service terminal can search for intermediate devices in the networking system to implement communication with the target shared device.
  • the searched device is capable of establishing the second communication connection with the target shared device, and the searched device is capable of establishing the third communication connection with the target service terminal, determining to search The device is the intermediate device.
  • the device searched by the target sharing device when the device searched by the target sharing device can establish a second communication connection with the target sharing device and establish a third communication connection with the target service terminal, the device can be used as an intermediate device.
  • the search may be stopped, and the target shared device and the target service terminal respectively establish a corresponding communication connection with the intermediate device; otherwise, the target shared device needs to return to the search again.
  • the device searched by the target service terminal can establish a second communication connection with the target shared device and establish a third communication connection with the target service terminal
  • the device can be used as an intermediate device.
  • the search may be stopped, and the target service terminal respectively establishes a corresponding communication connection with the intermediate device; otherwise, the target service terminal needs to return to the search again.
  • the sharing device may include a first communication module and a second communication module
  • the intermediate device may include a third communication module and a fourth communication module
  • the target service terminal may include a first network interface.
  • the second communication module and the third communication module can establish a short-distance communication connection with other devices in the networking system except the self, and the first communication module, the fourth communication module, and the first network interface can be separated from the networking system.
  • Other devices outside establish a remote communication connection.
  • the intermediate device may include at least one of a shared device other than the target shared device and a public terminal in the networking system.
  • the target sharing device may establish a second communication connection with the third communication module of the intermediate device through the second communication module, where the second communication connection may be a short-range communication connection; the intermediate device may pass through the fourth communication module and the service terminal A network interface establishes a third communication connection, wherein the third communication connection can be a remote communication connection.
  • the target shared device communicates with the target service terminal through the intermediate device.
  • the communication failure occurs in the first communication connection between the target shared device and the target service terminal, and the target shared device needs to send the uplink information to the target service terminal as an example, and the foregoing steps are specifically described:
  • the second communication module in the target shared device can search in the networking system to be able to establish the same If the third communication module in the searched device cannot establish a second communication connection with the device, the target shared device returns to re-search; if the third communication module in the searched device can establish a second communication with the device Connect, continue to determine whether the searched device can establish a third communication connection with the target service terminal, and if the fourth communication module in the searched device cannot establish a third communication connection with the first network interface in the target service terminal, The target shared device returns a re-search; if the fourth communication module in the searched device can establish a third communication connection with the first network interface in the target service terminal, it can be determined that the searched device is an intermediate device, and the target shared device Service to the target through the second communication connection, the intermediate device, and the third communication connection Sends upstream information. As shown in FIG. 5B,
  • FIG. 5A illustrates a case where the target shared device searches for the intermediate device. It can be understood that there may also be a case where the target service terminal searches for the intermediate device, because the process is similar to the target shared device searching for the intermediate device. Therefore, it is not shown in the figure.
  • the sharing device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be other devices for resource sharing such as a shared charging treasure.
  • the public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, a fixed device in a smart city, or a movable device.
  • the electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again.
  • the target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
  • the networking method of the shared device is to search for and determine that a second communication connection can be established with the target shared device in the networking system of the shared device, and can establish a third communication connection with the target service terminal, including other Sharing an intermediate device of one or more of the device and the public terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device can communicate with the target service terminal through the intermediate device, thereby improving The success rate of information transmission between the shared device and the service terminal improves the user experience while avoiding waste of shared device resources.
  • FIG. 6A is a flowchart of a networking method of a shared device according to an embodiment. As shown in FIG. 6A, the method specifically includes:
  • the searched device can establish a second communication connection with the target shared device, and the searched device can establish a third communication connection with the target service terminal, it is determined that the searched device is an intermediate device.
  • the intermediate device includes another service terminal, the second communication connection is a remote communication connection, and the third communication connection is a cloud communication connection.
  • the device searched by the target sharing device when the device searched by the target sharing device can establish a second communication connection with the target sharing device and establish a third communication connection with the target service terminal, the device can serve as an intermediate device.
  • the search is stopped, and the target shared device and the target service terminal respectively establish corresponding communication connections with the intermediate device; otherwise, the target shared device needs to return to the search again.
  • the device searched by the target service terminal can establish a second communication connection with the target shared device and establish a third communication connection with the target service terminal
  • the device can serve as an intermediate device.
  • the search is stopped, and the target shared device and the target service terminal respectively establish corresponding communication connections with the intermediate device; otherwise, the target service terminal needs to return to the search again.
  • the sharing device may include a first communication module
  • the intermediate device may include a fourth communication module and a fifth communication module
  • the target service terminal may include a first network interface and a second network interface.
  • the first communication module, the fourth communication module, and the first network interface may establish a remote communication connection with other devices in the networking system except the self, and the fifth communication module and the second network interface may be in addition to the networking system.
  • Other service terminals establish cloud communication connections.
  • the intermediate device may include at least one of service terminals other than the target service terminal in the networking system.
  • the target sharing device may establish a second communication connection with the fourth communication module of the intermediate device through the first communication module, where the second communication connection may be a remote communication connection; the intermediate device may establish a third communication with the service terminal through the fifth communication module The connection, wherein the third communication connection is a cloud communication connection.
  • the target shared device communicates with the target service terminal through the intermediate device.
  • a communication failure occurs in the first communication connection between the target shared device and the target service terminal, and the target service terminal needs to send the downlink information to the target shared device as an example, and the foregoing steps are specifically described:
  • the second network interface in the target service terminal can search in the networking system to be able to establish the same
  • the third communication connection device if the fifth communication module in the searched device cannot establish a third communication connection with the target communication terminal, the target service terminal returns to re-search; if the fifth communication module in the searched device can establish the third communication with the third communication module
  • the connection may continue to determine whether the searched device can establish a second communication connection with the target shared device, and if the fourth communication module in the searched device cannot establish a second communication connection with the first communication module in the target shared device, Then, the target service terminal returns to re-search; if the fourth communication module in the searched device can establish a second communication connection with the first communication module in the target shared device, it can be determined that the searched device is an intermediate device, and the target service is The terminal can reach the target through the third communication module, the intermediate device, and the second communication
  • FIG. 6A illustrates a case where the target service terminal searches for the intermediate device. It can be understood that there is also a case where the target shared device searches for the intermediate device, since the process is similar to the scheme in which the target service terminal searches for the intermediate device, Therefore, it is not shown in the figure.
  • the sharing device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be other devices for resource sharing such as a shared charging treasure.
  • the public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, a fixed device in a smart city, or a movable device.
  • the electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again.
  • the target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
  • the networking method of the shared device is to search for and determine that a second communication connection can be established with the target shared device in the networking system of the shared device, and can establish a third communication connection with the target service terminal, including other
  • the intermediate device of the service terminal enables the target shared device to communicate with the target service terminal through the intermediate device when the communication connection between the target shared device and the target service terminal has a communication failure, thereby improving information between the shared device and the service terminal.
  • the success rate of delivery improves the user experience while avoiding the waste of shared device resources.
  • FIG. 7A is a flowchart of a networking method of a shared device according to an embodiment. As shown in FIG. 7A, the method specifically includes:
  • the terminal includes one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system.
  • the target sharing device may include a first storage unit
  • the target service terminal may include a second storage unit, wherein the first storage unit and the second storage unit may store terminal identifiers of respective devices in the networking system of the shared device, that is, each The terminal can have its own unique terminal identifier, and each terminal can pre-store the terminal identifier of other terminals as needed.
  • the terminal identifier may include device physical information or other preset identification identifiers without physical meaning, where the device physical information may include an IP address, a VPL routing label, a ports interface number, and the like;
  • the terminal identifier may be an IMEI number or a Bluetooth name of the device.
  • the first storage unit may store the terminal identifier of each device in the communication range of the shared device preset distance, and if there is other need, the download may be performed by sending a download request to the service terminal;
  • the unit may store the terminal identifiers of the respective devices related to the role of the service terminal, and may request calls to other service terminals if other needs exist.
  • the target sharing device may query the terminal identification list through the corresponding storage unit, and sequentially identify the terminal identification list.
  • Each terminal sends a query request and receives a query request response, wherein the query request response may be sent by a terminal capable of establishing a second communication connection with the target shared device and capable of establishing a third communication connection with the target service terminal.
  • the target sharing device may determine that the terminal that sends the query request response is an intermediate device, and if there are multiple terminals that send the query request response, the first terminal that sends the query request response may be selected as the middle.
  • the device may also select the terminal with the shortest route between the target shared device and the target service terminal as the intermediate device.
  • the target service terminal may query the terminal identification list through the corresponding storage unit, and sequentially send the query to each terminal in the terminal identification list. At least one query request response is requested and received, and one terminal is selected as the intermediate device in the terminal that sends the query request response.
  • the query request response may be sent by a terminal that can establish a second communication connection with the target shared device and can establish a third communication connection with the target service terminal. For example, after receiving the first query request response, the target service terminal may determine that the terminal that sent the first query request response is an intermediate device.
  • the first terminal that sends the query request response may be selected as the intermediate device, or the terminal with the shortest route between the target shared device and the target service terminal may be selected as the intermediate device.
  • the query request response includes voting information, where the voting information may include weight information of the device.
  • the target sharing device or the target service terminal may determine the weight of each terminal that sends the query request response according to the voting information in all the query request responses received.
  • the terminal with the highest weight may be selected as the intermediate device.
  • the terminal having the highest weight may be, for example, a terminal having at least one of the power amount information and the communication state information in each terminal being optimal or having the best comprehensive condition.
  • the target sharing device may send a query request to other shared devices (cars or stubs) in the vicinity one by one when detecting that there is a failure in the first communication connection.
  • the target shared device broadcasts information (including basic information, such as terminal identification information, which can be recognized by other shared devices) to other shared devices in the vicinity regardless of whether there is a communication failure. Therefore, when the target shared device communicates with the background abnormally, the target shared device sends a query request to the surrounding shared device one by one.
  • the target sharing device may send a query request to the surrounding shared device by means of Bluetooth communication, and after receiving the query request response from the neighboring shared devices, the target shared device may select the shared device with the highest weight as the middle. device.
  • the terminal includes one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system.
  • the target shared device communicates with the target service terminal through the intermediate device.
  • the target shared device may query the terminal identifier list by using the first storage unit, where the identifier list includes other shared devices in the networking system, Identification information of public terminals and other service terminals. After obtaining the terminal identifier list, the target sharing device may sequentially send a query request to each terminal in the terminal identifier list and receive a query request response. After obtaining the response to the query request, the target shared device may select one of the terminals that send the query request response as the intermediate device according to the principle of the shortest response time or the shortest route length.
  • the target shared device can send uplink information to the target service terminal through the intermediate device, wherein if the intermediate device is one or more of other shared devices and public terminals in the networking system, the target shared device and the intermediate device can establish near a distance communication connection, the target service terminal and the intermediate device may establish a remote communication connection; if the intermediate device is at least one of the service terminals other than the target service terminal in the networking system, the target shared device and the intermediate device A remote communication connection can be established, and the target service terminal and the intermediate device can establish a cloud communication connection.
  • the target service terminal needs to send downlink information to the target shared device as an example, and the foregoing steps are specifically described:
  • the target service terminal may query the identifier list of other shared devices, public terminals, and other service terminals in the networking system through the second storage unit. Send a query request and receive a query request response. After obtaining the response to the query request, the target service terminal may select one of the terminals that send the query request response as the intermediate device according to the principle of the shortest response time or the shortest route length. The target service terminal can send the uplink and downlink information to the target shared device through the intermediate device, where the target shared device and the intermediate device can be established if the intermediate device is one or more of other shared devices and public terminals in the networking system.
  • the short-range communication connection, the target service terminal and the intermediate device can establish a remote communication connection; if the intermediate device is another service terminal in the networking system, the target shared device and the intermediate device can establish a remote communication connection, and the target service terminal and the intermediate device can Establish a cloud communication connection.
  • the location information of the target shared device may be used to obtain the identifier list of each device within the set distance range near the location. And sequentially sending a query request to each terminal in the identifier list and receiving a query request response to obtain an intermediate device for communication.
  • the target service terminal may first establish a communication connection with another service terminal storing the target shared device location information to obtain the location near the location. After obtaining the identifier list, the target service terminal may sequentially send a query request to each terminal in the identifier list and receive a query request response to obtain an intermediate device for communication.
  • FIG. 7B is a flowchart of still another method for networking a shared device according to the embodiment, where the interaction between the target shared device, the intermediate device, and the target service terminal in this embodiment is illustrated. relationship.
  • FIG. 7A illustrates a case where the target sharing device determines the intermediate device, and it can be understood that there is also a case where the target serving terminal determines the intermediate device, since the process is similar to the scenario in which the target shared device determines the intermediate device, Therefore, it is not shown in the figure.
  • the shared device may include a shared bicycle or a shared electric vehicle, such as a shared bicycle, and may also be used for other resource sharing devices such as a shared charging treasure;
  • the public terminal may include an electronic vehicle pile, a street light, and a bus stop. , park signposts or a fixed device or movable device in a smart city.
  • the electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again.
  • the target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
  • the networking method of the shared device may be configured by setting a storage unit in the target shared device or the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the storage unit may be queried.
  • the terminal identifier list is in turn, and the method for sending the query request to the terminal in the terminal identifier list is used to determine the intermediate device, so that the selection manner of the intermediate device is diversified, and the success rate of information transmission between the shared device and the service terminal is improved. Improve user experience and avoid waste of shared device resources.
  • FIG. 8A is a flowchart of a networking method of a shared device according to an embodiment. As shown in FIG. 8A, the method specifically includes:
  • the query request is broadcasted and at least one query request response is received, and one terminal is selected as an intermediate device in the terminal that sends the query request response, and the query request response is established with the target shared device.
  • the second communication connection and can be sent by the terminal that establishes the third communication connection with the target service terminal.
  • the terminal includes one of a service terminal other than the target service terminal, a public terminal, and other shared devices except the target shared device in the networking system.
  • the target sharing device may include a first broadcast unit, wherein the first broadcast unit may broadcast query request information.
  • the target sharing device may broadcast the query request through the first broadcast unit and receive at least one query request response, wherein the query request response may be capable of A terminal that establishes a second communication connection with the target sharing device and is capable of establishing a third communication connection with the target service terminal.
  • the target sharing device may determine that the terminal that sends the query request response is an intermediate device, and if there are multiple terminals that send the query request response, the first terminal that sends the query request response may be selected as the middle.
  • the device may also select the terminal with the shortest route between the target shared device and the target service terminal as an intermediate device, such as other shared devices, public terminals, and other service terminals.
  • the terminal includes one of a service terminal other than the target service terminal, a public terminal, and other shared devices other than the target shared device in the networking system.
  • the target serving terminal may include a second broadcast unit, wherein the second broadcast unit may broadcast query request information.
  • the target service terminal broadcasts the query request and receives at least one query request response, and selects one of the terminals that send the query request response as the intermediate device, and the query request response is
  • the target shared device establishes a second communication connection and is capable of establishing a third communication connection with the target service terminal.
  • the terminal includes one of a service terminal other than the target service terminal, a public terminal, and other shared devices other than the target shared device in the networking system.
  • the target shared device communicates with the target service terminal through the intermediate device.
  • the target sharing device may broadcast the query request through the first broadcast unit and receive at least one query request response. After obtaining the response to the query request, the target shared device may select one of the terminals that send the query request response as the intermediate device according to the principle of the shortest response time or the shortest route length.
  • the target shared device can send uplink information to the target service terminal through the intermediate device, wherein if the intermediate device is one or more of other shared devices and public terminals in the networking system, the target shared device and the intermediate device can establish near The distance communication connection, the target service terminal and the intermediate device can establish a remote communication connection; if the intermediate device is another service terminal in the networking system, the target shared device and the intermediate device can establish a remote communication connection, and the target service terminal and the intermediate device can be established. Cloud communication connection.
  • FIG. 8B is a flowchart of another networking method of a shared device according to the embodiment, where the interaction between the target shared device, the intermediate device, and the target service terminal in this embodiment may be illustrated. relationship.
  • FIG. 8A illustrates a case where the target sharing device determines the intermediate device, and it can be understood that there is also a case where the target serving terminal determines the intermediate device, since the process is similar to the scenario in which the target shared device determines the intermediate device, Therefore, it is not shown in the figure.
  • the shared device may include a shared bicycle or a shared electric vehicle, such as a shared bicycle, and may also be used for other resource sharing devices such as a shared charging treasure;
  • the public terminal may include an electronic vehicle pile, a street light, and a bus stop. , park signposts or a fixed device or movable device in a smart city.
  • the electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again.
  • the target service terminal in this embodiment may be a server, and the specific implementation and structure thereof are similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
  • the networking method of the shared device provided by the embodiment, by setting a broadcast unit in the target shared device or the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the broadcast unit can broadcast Querying the request and receiving the at least one query request response manner to determine the intermediate device, so that the selection mode of the intermediate device is diversified, and the information transmission success rate between the shared device and the service terminal is improved, the user experience is improved, and the shared device is avoided. Waste of resources.
  • FIG. 9 is a schematic structural diagram of a networking system of a shared device according to an embodiment. As shown in FIG. 9, the system includes a target shared device 910, an intermediate shared device 920, and a target public terminal 930.
  • the target shared device 910 communicates with the target public terminal 930 via the fourth communication connection, and the fourth communication connection is a short-range communication connection.
  • the public terminal instead of the service terminal is used as the target device, so the fourth communication connection mentioned in this embodiment also serves as the first communication connection between the target shared device 910 and the target public terminal 930.
  • the target public terminal 930 is set to at least one of management and control of the target shared device 910.
  • the target public terminal 930 can provide a decision for event triggering such as blocking, unlocking, and alarming of the target sharing device 910, provide a policy for provisioning of the target shared device 910, manage geographic location information of the target shared device 910, and manage the target shared device.
  • the target public terminal 930 can control the target sharing device 910 to unlock.
  • the target sharing device 910 is a pileless bicycle
  • the target public terminal 930 is an electronic vehicle pile
  • the communication connection between the pileless bicycle and the electronic vehicle pile is a fourth communication connection as an example, when the user needs to use no pile.
  • the electronic vehicle pile can generate the unlocking information according to the request of the user, and send the unlocking information to the non-pile bicycle through the fourth communication connection, and after receiving the unlocking information, the non-pile bicycle performs the corresponding unlocking action for the user to use. That is, the electronic vehicle pile can provide management and control services for the pile-free bicycles within the communication range.
  • the target sharing device 910 can communicate with the target public terminal 930 by directly establishing a fourth communication connection, and can also communicate indirectly through the intermediate shared device 920 in the networking system.
  • the intermediate sharing device 920 and the target sharing device 910 can communicate through the fifth communication connection
  • the intermediate sharing device 920 and the target public terminal 930 can communicate through the sixth communication connection, wherein the intermediate sharing device 920 can be a network.
  • the fifth communication connection and the sixth communication connection are both short-range communication connections.
  • the fifth communication connection also serves as a second communication connection between the intermediate shared device 920 and the target shared device 910
  • the sixth communication connection also serves as the third communication between the intermediate shared device 920 and the target public terminal 930.
  • the shared device may include a shared bicycle or a shared electric vehicle, such as a shared bicycle, and may also be used for other resource sharing devices such as a shared charging treasure;
  • the public terminal may include an electronic vehicle pile, a street light, and a bus stop. , park signposts, a fixed device or a movable device in a smart city.
  • the electronic vehicle pile in the embodiment may be an outdoor public device, for example, may be a virtual parking area based on electronic identification, and the electronic vehicle pile in a public place is one of the measures for standard management of the current pile-free bicycle. . Since the electronic vehicle pile is a fixed device, it can be equipped with a stable and sufficient power, for example, can be powered by a commercial power source or solar power.
  • the function module is similar to the function module in the pileless bicycle. For example, it also has a short-range communication module, a long-distance communication module, and a GPS positioning module. The communication function is good, and at least one of the control and management function modules is provided.
  • At least one of the control and management function modules may be a server that processes the single-line service or a module that implements the function, for example, may provide a decision for event triggering such as unlocking of the target shared device and an alarm, and may provide a policy for the deployment of the target shared device,
  • the target sharing device 910 can communicate with the target public terminal 930 through the second communication connection, the intermediate sharing device 920, and the third communication connection. If there is a communication failure in the fourth communication connection, the communication link may be faulty. For example, the Bluetooth connection is interrupted, the socket connection is not connected (if the shared device is connected to the public terminal through the socket), and the communication failure may occur due to the failure of other links. kind of result.
  • the target sharing device 910 can communicate with the target public terminal 930 through the fourth communication connection, the intermediate shared device 920, and the fifth communication connection.
  • the target public terminal provides management and control for the target shared terminal
  • the intermediate shared device is set between the target shared device and the target public terminal, so that the target shared device and the target public terminal are
  • the target shared device can communicate with the target public terminal through the intermediate shared device, which improves the information transmission success rate between the shared device and the public terminal, improves the user experience, and avoids the shared device. Waste of resources.
  • FIG. 10 is a schematic structural diagram of a service terminal according to an embodiment. As shown in FIG. 10, the service terminal includes a second storage unit 1100 and a sixth communication module 1200.
  • the service terminal in this embodiment may be any one of the foregoing service terminals or any one of the target service terminals.
  • the second storage unit 1100 stores at least one of the shared device and the terminal identifier of the other service terminal in the shared terminal networking system where the service terminal is located.
  • the second storage unit 1100 may further store a terminal identifier of each public terminal in the shared terminal networking system.
  • the sixth communication module 1200 can be configured to communicate with other service terminals, shared terminals, and public terminals in the shared terminal networking system where the service terminal is located, for example, it can be a network interface.
  • the service terminal is located in the cloud, its storage capacity is very strong. Therefore, all the service terminals in the network can store the identifiers of all the terminals in the network, so that the service terminal can control and manage each terminal in the network, and is also convenient for the network.
  • the service terminal in the middle performs at least one of backup management and control in the event of a failure.
  • FIG. 11 is a schematic structural diagram of a shared device according to an embodiment. As shown in FIG. 11 , the shared device includes a detecting module 1101 and a communication module 1102.
  • the detecting module 1101 is configured to detect a first communication connection with the target service terminal
  • the communication module 1102 is configured to communicate with the target service terminal through the intermediate device when detecting that the first communication connection has a communication failure;
  • the sharing device communicates with the intermediate device by using a second communication connection, and the intermediate device communicates with the target service terminal by using a third communication connection, where the intermediate device includes a networking system where the shared device is located. At least one of a shared device other than the shared device, a public terminal, and other service terminals other than the target service terminal.
  • the sharing device further includes: a searching module 1103.
  • the searching module 1103 is configured to: after detecting that a communication failure occurs in the first communication connection, searching for the intermediate device before the intermediate device communicates with the target service terminal; if the searched device is capable of The shared device establishes the second communication connection, and the searched device is capable of establishing the third communication connection with the target service terminal, and then determining that the searched device is the intermediate device.
  • the first communication connection is a remote communication connection
  • the second communication connection is a short-range communication connection
  • the third The communication connection is a remote communication connection
  • the second communication connection is a remote communication connection
  • the third communication connection is Cloud communication connection
  • the search module 1103 includes: a storage unit 1104 and a query determining unit 1105.
  • the storage unit 1104 is configured to store other shared devices in the networking system, a public terminal, and a terminal identifier of the service terminal;
  • the query determining unit 1105 is configured to: query the stored terminal identifier list, send a query request to the terminal in the terminal identifier list, and receive at least one query request response, and select a terminal in the terminal that sends the query request response.
  • the query request response is sent by a terminal capable of establishing the second communication connection with the shared device and capable of establishing the third communication connection with the target service terminal; wherein the terminal And including one of the shared device other than the shared device, the public terminal, and other service terminals other than the target service terminal in the networking system.
  • the searching module 1103 further includes: a broadcasting unit 1106.
  • the broadcast unit 1106 is configured to: broadcast a query request and receive at least one query request response, select one terminal as the intermediate device in the terminal that sends the query request response, and the query request response is capable of establishing with the shared device
  • the second communication connection and can be sent by the terminal that establishes the third communication connection with the target service terminal; wherein the terminal includes other shared devices other than the shared device in the networking system.
  • the embodiment provides a sharing device, which can search for and establish a second communication connection with the target shared device in the networking system of the shared device, and can establish a third communication connection with the target service terminal, including other shared devices. And an intermediate device of one or more of the public terminals, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device can communicate with the target service terminal through the intermediate device, thereby improving the shared device.
  • the success rate of information transmission with the service terminal improves the user experience while avoiding the waste of shared device resources.
  • FIG. 12 is a schematic structural diagram of a service terminal according to an embodiment. As shown in FIG. 12, the service terminal includes a detection module 1201 and a communication module 1202.
  • the detecting module 1201 is configured to detect a first communication connection with the target sharing device
  • the communication module 1202 is configured to communicate with the target shared device through the intermediate device when detecting that the first communication connection has a communication failure;
  • the intermediate device establishes a second communication connection communication with the target shared device, and the intermediate device establishes a third communication connection communication with the service terminal, where the intermediate device includes a network system in which the service terminal is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the service terminal.
  • the embodiment provides a service terminal that searches for and determines that a second communication connection can be established with the target shared device in the networking system of the shared device, and can establish a third communication connection with the target service terminal, including other shared devices. And an intermediate device of one or more of the public terminals, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device can communicate with the target service terminal through the intermediate device, thereby improving the shared device.
  • the success rate of information transmission with the service terminal improves the user experience while avoiding the waste of shared device resources.
  • the embodiment further provides a storage medium comprising computer executable instructions, which when executed by a computer processor, are configured to perform a networking method of a shared device, the method comprising:
  • the target shared device communicates with the target service terminal through the intermediate device;
  • the target sharing device communicates with the intermediate device through a second communication connection, and the intermediate device communicates with the target service terminal through a third communication connection, where the intermediate device includes a network system in which the shared device is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal
  • the computer executable instructions when executed by the computer processor, may also be configured to perform the technical solution of the networking method of the shared device provided by any embodiment of the present invention.
  • FIG. 13 it is a hardware structure diagram of an electronic device provided by this embodiment.
  • the electronic device includes: a processor 1310 and a memory 1320. (Communications Interface) 1330 and bus 1340.
  • a processor 1310 and a memory 1320.
  • (Communications Interface) 1330 and bus 1340.
  • the processor 1310, the memory 1320, and the communication interface 1330 can complete communication with each other through the bus 1340. Communication interface 1330 can be used for information transfer.
  • the processor 1310 can call logic instructions in the memory 1320.
  • the memory 1320 may include a storage program area and a storage data area, and the storage program area may store an operating system and an application required for at least one function.
  • the storage data area can store data and the like created according to the use of the electronic device.
  • the memory may include, for example, a volatile memory of a random access memory, and may also include a non-volatile memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid state storage device.
  • the logic instructions in the memory 1320 described above can be implemented in the form of software functional units and sold or used as separate products, the logic instructions can be stored in a computer readable storage medium.
  • the technical solution of the present disclosure may be embodied in the form of a computer software product, which may be stored in a storage medium, and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) All or part of the steps of the method described in this embodiment are performed.
  • the storage medium may be a non-transitory storage medium or a transitory storage medium.
  • the non-transitory storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
  • the embodiments of the present invention can be implemented by using software and necessary general hardware, and can also be implemented by hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a computer readable storage medium such as a computer. Floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to make a computer device (may be A personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
  • the networking device of the shared device provided by the embodiment of the present invention, by setting an intermediate device between the target shared device and the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device
  • the intermediate device can communicate with the target service terminal, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids waste of shared device resources.

Abstract

Disclosed are a shared device, a service terminal, and a networking system and method for a shared device. The networking system for a shared device comprises: a target shared device, an intermediate device and a target service terminal, wherein the target shared device communicates with the target service terminal via a first communication connection; the intermediate device communicates with the target shared device via a second communication connection; the intermediate device communicates with the target service terminal via a third communication connection; and when the communication of the first communication connection fails, the target shared device communicates with the target service terminal via the intermediate device.

Description

共享设备、服务终端、共享设备的组网系统及方法Networking system and method for sharing device, service terminal and shared device 技术领域Technical field
本公开涉及共享设备技术领域,例如涉及一种共享设备、服务终端、共享设备的组网系统及方法。The present disclosure relates to the field of shared device technologies, for example, to a sharing device, a service terminal, a networking system and a method for sharing a device.
背景技术Background technique
为了方便人们的日常生活,很多公共场所都设置了共享设备,比如无桩单车。无桩单车使用便捷,能有效解决短距离的出行问题,不仅能够在一定程度上缓解交通压力,而且其绿色节能,能有效减少碳排量同时还可以促使用户锻炼身体。In order to facilitate people's daily life, many public places have set up shared equipment, such as no pile bicycles. The use of pileless bicycles is convenient and can effectively solve short-distance travel problems. It can not only relieve traffic pressure to a certain extent, but also its green energy saving, which can effectively reduce carbon emissions and also encourage users to exercise.
在相关技术中,共享设备与远端服务器建立通信连接,并进行数据交互,但是,当共享设备与远端服务器之间的通信出现问题时,共享设备将无法正常使用。上述问题的存在通常会导致用户体验不佳,同时也由于共享设备无法正常使用,造成共享设备资源的浪费。In the related art, the shared device establishes a communication connection with the remote server and performs data interaction. However, when there is a problem in communication between the shared device and the remote server, the shared device cannot be used normally. The existence of the above problems usually leads to poor user experience, and also because the shared device cannot be used normally, resulting in waste of shared device resources.
发明内容Summary of the invention
本发明实施例提供了一种共享设备、服务终端、共享设备的组网系统及方法,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The embodiment of the invention provides a networking system and method for a shared device, a service terminal, and a shared device, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids sharing device resources. waste.
本发明实施例提供了一种共享设备的组网系统,该系统包括:目标共享设备,中间设备和目标服务终端,其中,An embodiment of the present invention provides a networking system for a shared device, where the system includes: a target shared device, an intermediate device, and a target service terminal, where
所述目标共享设备与所述目标服务终端通过第一通信连接通信,所述中间设备与所述目标共享设备通过第二通信连接通信,所述中间设备与所述目标服务终端通过第三通信连接通信;The target sharing device communicates with the target service terminal through a first communication connection, the intermediate device communicates with the target shared device through a second communication connection, and the intermediate device and the target service terminal are connected through a third communication Communication
所述中间设备包括所述组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的至少一个;The intermediate device includes at least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system;
当所述第一通信连接发生通信故障时,所述目标共享设备通过所述第二通信连接、所述中间设备以及所述第三通信连接通信与所述目标服务终端通信。The target sharing device communicates with the target service terminal through the second communication connection, the intermediate device, and the third communication connection communication when a communication failure occurs in the first communication connection.
本发明实施例提供了一种共享设备的组网方法,该方法包括:An embodiment of the present invention provides a networking method for a shared device, where the method includes:
检测目标共享设备与所述目标服务终端之间的第一通信连接;Detecting a first communication connection between the target shared device and the target service terminal;
当确定所述第一通信连接发生通信故障时,所述目标共享设备通过所述中间设备与所述目标服务终端通信;When it is determined that the first communication connection has a communication failure, the target sharing device communicates with the target service terminal through the intermediate device;
其中,所述目标共享设备与所述中间设备通过第二通信连接通信,所述中间设备与所述目标服务终端通过第三通信连接通信,所述中间设备包括共享设备所在的组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端、以及除了所述目标服务终端之外的其他服务终端中的至少一个。The target sharing device communicates with the intermediate device through a second communication connection, and the intermediate device communicates with the target service terminal through a third communication connection, where the intermediate device includes a network system in which the shared device is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal.
本发明实施例提供了一种共享设备的组网系统,包括:目标共享设备,中间共享设备和目标公共终端,其中,An embodiment of the present invention provides a networking system for a shared device, including: a target shared device, an intermediate shared device, and a target public terminal, where
所述目标共享设备与所述目标公共终端通过第一通信连接通信;The target sharing device communicates with the target public terminal through a first communication connection;
所述中间共享设备与所述目标共享设备通过第二通信连接通信;The intermediate shared device communicates with the target shared device by using a second communication connection;
所述中间共享设备与所述目标公共终端通过第三通信连接通信;The intermediate sharing device communicates with the target public terminal through a third communication connection;
其中,所述中间共享设备包括所述组网系统中的除了所述目标共享设备之外的其他共享设备中的至少一个;The intermediate shared device includes at least one of the shared devices other than the target shared device in the networking system;
当所述第一通信连接的发生通信故障时,所述目标共享设备通过所述第二通信连接、所述中间共享设备以及所述第三通信连接与所述目标公共终端通信。The target sharing device communicates with the target public terminal through the second communication connection, the intermediate sharing device, and the third communication connection when a communication failure occurs in the first communication connection.
本发明实施例提供了一种服务终端,至少包括第二存储单元,所述第二存储单元至少存储有第一方面所述共享终端组网系统中各共享设备和其他服务终端的终端标识中的至少一项。The embodiment of the present invention provides a service terminal, which includes at least a second storage unit, where the second storage unit stores at least a terminal identifier of each shared device and other service terminals in the shared terminal networking system of the first aspect. At least one.
本发明实施例提供了一种共享设备,包括:The embodiment of the invention provides a sharing device, including:
检测模块,设置为检测与所述目标服务终端之间的第一通信连接;a detecting module, configured to detect a first communication connection with the target service terminal;
通信模块,设置为当检测到所述第一通信连接发生通信故障时,通过所述中间设备与所述目标服务终端通信;a communication module, configured to communicate with the target service terminal through the intermediate device when detecting that a communication failure occurs in the first communication connection;
其中,所述共享设备与所述中间设备通过第二通信连接通信,所述中间设备与所述目标服务终端通过第三通信连接通信,所述中间设备包括共享设备所在的组网系统中的除了所述共享设备之外的其他共享设备、公共终端、以及除了所述目标服务终端之外的其他服务终端中的至少一个。The sharing device communicates with the intermediate device through a second communication connection, and the intermediate device communicates with the target service terminal through a third communication connection, where the intermediate device includes a network system in which the shared device is located. At least one of a shared device other than the shared device, a public terminal, and other service terminals other than the target service terminal.
本发明实施例提供了一种服务终端,包括:The embodiment of the invention provides a service terminal, including:
检测模块,设置为检测与目标共享设备之间的第一通信连接;a detecting module configured to detect a first communication connection with the target sharing device;
通信模块,设置为当检测到所述第一通信连接发生通信故障时,通过中间设备与目标共享设备通信;a communication module, configured to communicate with the target shared device through the intermediate device when detecting that the first communication connection has a communication failure;
其中,所述中间设备与所述目标共享设备建立第二通信连接通信,所述中间设备与所述服务终端建立第三通信连接通信,所述中间设备包括所述服务终端所在的组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端以及除了所述服务终端之外的其他服务终端中的至少一个。The intermediate device establishes a second communication connection communication with the target shared device, and the intermediate device establishes a third communication connection communication with the service terminal, where the intermediate device includes a network system in which the service terminal is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the service terminal.
本发明实施例还提供了一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令设置为执行上述任一项所述的方法。The embodiment of the present invention further provides a computer readable storage medium storing computer executable instructions, the computer executable instructions being configured to perform the method of any of the above.
本发明实施例提供的共享设备、服务终端、共享设备的组网系统及方法,通过在目标共享设备与目标服务终端之间设置中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,目标共享设备可以通过中间设备与目标服务终端进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The networking system and method for the shared device, the service terminal, and the shared device provided by the embodiment of the present invention enable the communication connection between the target shared device and the target service terminal by setting an intermediate device between the target shared device and the target service terminal. When there is a communication failure, the target shared device can communicate with the target service terminal through the intermediate device, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids waste of shared device resources.
附图说明DRAWINGS
图1是一实施例提供的一种共享设备的组网系统的结构示意图;1 is a schematic structural diagram of a networking system of a shared device according to an embodiment;
图2是另一实施例提供的一种共享设备的组网系统的结构示意图;2 is a schematic structural diagram of a networking system of a shared device according to another embodiment;
图3是又一实施例提供的一种共享设备的组网系统的结构示意图;3 is a schematic structural diagram of a networking system of a shared device according to another embodiment;
图4是一实施例提供的一种共享设备的组网方法的流程图;4 is a flowchart of a networking method of a shared device according to an embodiment;
图5A是一实施例提供的一种共享设备的组网方法的流程图;FIG. 5A is a flowchart of a networking method of a shared device according to an embodiment; FIG.
图5B是一实施例提供的一种共享设备的组网方法的信令流程图;FIG. 5B is a signaling flowchart of a networking method of a shared device according to an embodiment; FIG.
图6A是一实施例提供的一种共享设备的组网方法的流程图;FIG. 6A is a flowchart of a networking method of a shared device according to an embodiment; FIG.
图6B是一实施例提供的一种共享设备的组网方法的信令流程图;FIG. 6B is a signaling flowchart of a networking method of a shared device according to an embodiment; FIG.
图7A是一实施例提供的一种共享设备的组网方法的流程图;FIG. 7A is a flowchart of a networking method of a shared device according to an embodiment; FIG.
图7B是一实施例提供的一种共享设备的组网方法的信令流程图;FIG. 7B is a signaling flowchart of a networking method of a shared device according to an embodiment; FIG.
图8A是一实施例提供的一种共享设备的组网方法的流程图;FIG. 8A is a flowchart of a networking method of a shared device according to an embodiment; FIG.
图8B是一实施例提供的一种共享设备的组网方法的信令流程图;FIG. 8B is a signaling flowchart of a networking method of a shared device according to an embodiment; FIG.
图9是一实施例提供的一种共享设备的组网系统的结构示意图;FIG. 9 is a schematic structural diagram of a networking system of a shared device according to an embodiment; FIG.
图10是一实施例提供的一种服务终端的结构示意图;FIG. 10 is a schematic structural diagram of a service terminal according to an embodiment; FIG.
图11是一实施例提供的一种共享设备的结构示意图;FIG. 11 is a schematic structural diagram of a shared device according to an embodiment; FIG.
图12是一实施例提供的一种服务终端的结构示意图;FIG. 12 is a schematic structural diagram of a service terminal according to an embodiment; FIG.
图13是一实施例提供的一种电子设备的硬件结构示意图。FIG. 13 is a schematic structural diagram of hardware of an electronic device according to an embodiment.
具体实施方式Detailed ways
对于相关的共享设备而言,通常可存在一个远端服务器与其建立通信连接并进行数据交互,中心化依赖比较严重,一旦共享设备与远端服务器之间的通信连接存在问题,该共享设备便不能使用。此外,也存在共享设备与云端运营策略中心之间设置一个云端的技术方案,对于该技术方案而言,一旦唯一的云端与唯一的云端运营策略中心任何一个环节出现问题,同样导致对应的共享设备无法正常使用。For a related shared device, there is usually a remote server that establishes a communication connection with it and performs data interaction. The centralization dependency is serious. Once there is a problem with the communication connection between the shared device and the remote server, the shared device cannot use. In addition, there is also a technical solution for setting a cloud between the shared device and the cloud operation policy center. For the technical solution, once the unique cloud and the unique cloud operation policy center have any problem, the corresponding shared device is also caused. Not working properly.
图1是一实施例提供的一种共享设备的组网系统的结构示意图。如图1所示,该系统包括目标共享设备110、中间设备120和目标服务终端130。FIG. 1 is a schematic structural diagram of a networking system of a shared device according to an embodiment. As shown in FIG. 1, the system includes a target sharing device 110, an intermediate device 120, and a target service terminal 130.
本实施例中的共享设备组网系统可以包括多个共享设备,多个公共终端,以及多个服务终端。图1所示的中间设备可为任意一个共享设备、任意一个公共终端或者任意一个服务终端中的一个或多个。该组网系统中的每个共享设备、公共终端、服务终端均具有同等的地位,在一定的条件下都可以相互通信。为了说明本发明的一个或多个实施例,以下一个或多个实施例以一个目标共享设备、一个中间设备和一个目标服务终端为例进行说明。The shared device networking system in this embodiment may include multiple shared devices, multiple public terminals, and multiple service terminals. The intermediate device shown in FIG. 1 may be any one of a shared device, any one of the public terminals, or any one of the service terminals. Each shared device, public terminal, and service terminal in the networking system has the same status, and can communicate with each other under certain conditions. In order to illustrate one or more embodiments of the present invention, one or more of the following embodiments are described by taking a target shared device, an intermediate device, and a target service terminal as an example.
在通信连接正常的情况下,目标共享设备110与目标服务终端130通过第一通信连接通信,其中,第一通信连接可为远程通信连接。目标服务终端130设置为通过第一通信连接对目标共享设备110进行管理和控制,具体的,可以包括为目标共享设备110的闭锁、解锁以及报警等事件触发提供决策、为目标共享设备110的调配提供策略、对目标共享设备110的地理位置信息进行管理以及对目标共享设备110的广告信息进行管理等。例如当目标共享设备110具备锁定功能时,目标服务终端130可以控制目标共享设备110进行解锁。以目标共享设备110是无桩单车,且无桩单车与目标服务终端130之间的通信连接为第一通信连接为例进行具体说明。当用户需要使用无桩单车时,目标服务终端130可以根据用户的请求生成解锁信息,并通过第一通信连接发送给无桩单车,无桩单车在接收到解锁信息后,执行相应的解锁动作,以便用户使用。In the case where the communication connection is normal, the target sharing device 110 and the target service terminal 130 communicate via the first communication connection, wherein the first communication connection may be a remote communication connection. The target service terminal 130 is configured to manage and control the target shared device 110 through the first communication connection, and specifically, may include providing a decision for event triggering such as blocking, unlocking, and alarming of the target shared device 110, and provisioning for the target shared device 110. The policy is provided, the geographic location information of the target shared device 110 is managed, and the advertisement information of the target shared device 110 is managed. For example, when the target sharing device 110 has the locking function, the target service terminal 130 can control the target sharing device 110 to unlock. The specific sharing device 110 is a pileless bicycle, and the communication connection between the pileless bicycle and the target service terminal 130 is a first communication connection as an example. When the user needs to use the unstacked bicycle, the target service terminal 130 can generate the unlocking information according to the request of the user, and send the unlocking information to the unstacked bicycle through the first communication connection, and the unloaded bicycle performs the corresponding unlocking action after receiving the unlocking information. For the user to use.
目标共享设备110在与目标服务终端130进行信息传输的过程中,除了直 接与目标服务终端130建立第一通信连接进行通信外,还可以借助组网系统中的中间设备120间接进行通信。可选的,中间设备120与目标共享设备110通过第二通信连接通信,中间设备120与目标服务终端130通过第三通信连接通信。中间设备120可为所述组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的至少一个,即组网系统中的任意两个设备都可以在有通信需求时进行通信连接。In the process of transmitting information with the target service terminal 130, the target sharing device 110 can communicate indirectly by establishing the first communication connection with the target service terminal 130, and indirectly through the intermediate device 120 in the networking system. Optionally, the intermediate device 120 communicates with the target shared device 110 through a second communication connection, and the intermediate device 120 communicates with the target service terminal 130 through a third communication connection. The intermediate device 120 may be at least one of a shared device other than the target shared device, a public terminal, and other service terminals except the target serving terminal in the networking system, that is, in a networking system. Any two devices can communicate when there is a communication need.
共享设备可以包括共享自行车或共享电动车等无桩单车,还可为其他用来资源共享的设备例如共享充电宝等。公共终端可以包括电子车桩、路灯、公交站牌、公园路标或智慧城市中某个固定装置或者可移动的装置等。The shared device may include a pile-free bicycle such as a shared bicycle or a shared electric vehicle, and may also be used for other resource sharing devices such as a shared charging treasure. The public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, or a fixed device or a movable device in a smart city.
本实施方式中的电子车桩可为一种室外公共设备,例如可以是一个基于电子识别的虚拟停车区域。在公共场所配备电子车桩是一种对目前无桩单车进行规范管理的举措之一。由于电子车桩为固定装置,其可以配备稳定充足的电力,例如由市电供电,或者太阳能供电。电子车桩的功能模块与无桩单车内的功能模块类似,例如也具备近距离通讯模块、远距离通信模块、GPS定位模块等。其通信功能良好,可以给附近与目标服务终端130有通信故障的无桩单车提供信息转接。The electronic vehicle pile in this embodiment may be an outdoor public device, for example, may be a virtual parking area based on electronic identification. Equipped with electronic vehicle piles in public places is one of the measures to regulate the current management of pileless bicycles. Since the electronic vehicle pile is a fixed device, it can be equipped with a stable and sufficient power, for example, powered by a commercial power source, or powered by solar energy. The function module of the electronic vehicle pile is similar to the function module in the pileless bicycle. For example, it also has a short-range communication module, a long-distance communication module, and a GPS positioning module. The communication function is good, and information transfer can be provided to the non-pile bicycles having communication failures with the target service terminal 130 nearby.
本实施方式中的目标服务终端130可为一种服务器,其可为处理单线业务的服务器,例如可以为目标共享设备110的解锁以及报警等事件触发提供决策、为目标共享设备110的调配提供策略、对目标共享设备110的地理位置信息进行管理、对目标共享设备110的广告信息进行数据管理、对用户的骑行进行计费数据管理的服务终端。目标服务终端130也可为处理综合业务的服务器。The target service terminal 130 in this embodiment may be a server, which may be a server that processes single-line services, for example, may provide a decision for event triggering such as unlocking and alarming of the target shared device 110, and provide a policy for provisioning of the target shared device 110. A service terminal that manages geographic location information of the target shared device 110, performs data management on the advertisement information of the target shared device 110, and performs charging data management on the user's riding. The target service terminal 130 can also be a server that handles the integrated service.
目标服务终端130可被理解为提供处理、数据库、通讯设施的业务点。举例而言,目标服务终端130可以指具有相关通信和数据存储和数据库设施的单个的物理处理器,或它可以指联网或集聚的处理器、相关网络和存储设备的集合体,并且对软件和一个或多个数据库系统和支持服务器所提供的服务的应用软件进行操作。目标服务终端130可以在配置或性能上差异很大,但是目标服务终端130一般可以包括一个或多个中央处理单元和存储器。目标服务终端130还可包括一个或多个大容量存储设备、一个或多个电源、一个或多个有线或无线网络接口、一个或多个输入/输出接口、或一个或多个操作系统,诸如,视窗服务系统(Windows Server)、苹果操作系统X(Macintosh Operating System X, Mac OS X)、尤尼斯操作系统(Unix)、Linux、开源的伯克利软件套件(Free Berkeley Software Distribution,FreeBSD),等等。目标服务终端130可以是整体式服务器或是跨多计算机或计算机数据中心的分散式服务器。目标服务终端130可以是各种类型的,例如可以是但不限于:网络服务器、新闻服务器、邮件服务器、消息服务器、广告服务器、文件服务器、应用服务器、交互服务器、数据库服务器、或代理服务器。在一些实施例中,每个服务器可以包括硬件,软件,或用于执行目标服务终端所支持或实现的合适功能的内嵌逻辑组件或两个或多个此类组件的组合。在一实施例中,目标服务终端130可以设置为提供支持目标共享设备110管理所必需的全部功能。The target service terminal 130 can be understood as a service point that provides processing, databases, and communication facilities. For example, target service terminal 130 can refer to a single physical processor with associated communication and data storage and database facilities, or it can refer to a networked or aggregated processor, a collection of related networks and storage devices, and to software and One or more database systems and application software that support the services provided by the server operate. The target kiosk 130 may vary greatly in configuration or performance, but the target kiosk 130 may generally include one or more central processing units and memory. Target kiosk 130 may also include one or more mass storage devices, one or more power sources, one or more wired or wireless network interfaces, one or more input/output interfaces, or one or more operating systems, such as , Windows Server, Windows Operating System X (Mac OS X), Eunice Operating System (Unix), Linux, Open Berkeley Software Distribution (FreeBSD), etc. . The target service terminal 130 can be a monolithic server or a decentralized server that spans multiple computers or computer data centers. The target service terminal 130 may be of various types, such as, but not limited to, a web server, a news server, a mail server, a message server, an advertisement server, a file server, an application server, an interactive server, a database server, or a proxy server. In some embodiments, each server may comprise hardware, software, or an embedded logic component or a combination of two or more such components for performing the appropriate functions supported or implemented by the target kiosk. In an embodiment, the target kiosk 130 can be configured to provide all of the functionality necessary to support the management of the target sharing device 110.
当目标共享设备110与目标服务终端130之间的第一通信连接存在通信故障时,目标共享设备110可以通过第二通信连接、中间设备120以及所述第三通信连接通信与目标服务终端130通信。第一通信连接存在通信故障可为其通信链路发生故障,例如基站注册不上,socket连接不上(若共享设备跟服务终端通过socket连接),也可为其他链路发生故障而导致通信故障这种结果。其中,socket为建立网络通信连接至少一对的端口号,可以是网络上的两个程序通过一个双向的通信连接实现数据的交换,这个连接的每一端称为一个socket。When there is a communication failure in the first communication connection between the target sharing device 110 and the target service terminal 130, the target sharing device 110 can communicate with the target service terminal 130 through the second communication connection, the intermediate device 120, and the third communication connection communication. . If there is a communication failure in the first communication connection, the communication link may be faulty. For example, the base station may not be registered, the socket connection may not be connected (if the shared device is connected to the service terminal through the socket), and the communication failure may occur due to failure of other links. This result. The socket is a port number for establishing at least one pair of network communication connections, and the two programs on the network can exchange data through a two-way communication connection, and each end of the connection is called a socket.
当中间设备120为组网系统中的除了所述共享设备之外的其他共享设备、公共终端中的至少一个时,目标共享设备110与中间设备120之间建立的第二通信连接可为近距离通信连接,中间设备120与目标服务终端130之间建立的第三通信连接可为远程通信连接。那么,目标共享设备110通过近距离通信连接、中间设备120和远程通信连接与目标服务终端130进行通信。When the intermediate device 120 is at least one of the shared device and the public terminal other than the shared device in the networking system, the second communication connection established between the target shared device 110 and the intermediate device 120 may be a close range. The communication connection, the third communication connection established between the intermediate device 120 and the target service terminal 130, may be a remote communication connection. Then, the target sharing device 110 communicates with the target service terminal 130 through the short-range communication connection, the intermediate device 120, and the remote communication connection.
当中间设备120为组网系统中的其他服务终端时,目标共享设备110与中间设备120之间建立的第二通信连接为远程通信连接,中间设备120与目标服务终端130之间建立的第三通信连接为云端通信连接。那么,目标共享设备110通过远程通信连接、中间设备120和云端通信连接与目标服务终端130进行通信。When the intermediate device 120 is another service terminal in the networking system, the second communication connection established between the target sharing device 110 and the intermediate device 120 is a remote communication connection, and the third device is established between the intermediate device 120 and the target service terminal 130. The communication connection is a cloud communication connection. Then, the target sharing device 110 communicates with the target service terminal 130 through the remote communication connection, the intermediate device 120, and the cloud communication connection.
本实施例提供的共享设备的组网系统,通过在目标共享设备与目标服务终端之间设置中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,目标共享设备可以通过中间设备与目标服务终端进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免 了共享设备资源的浪费。The networking system of the shared device provided by the embodiment provides an intermediate device between the target shared device and the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device may The intermediate device communicates with the target service terminal, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids waste of shared device resources.
图2是一实施例提供的一种共享设备的组网系统的结构示意图。如图2所示,该系统具体包括:目标共享设备110、第一通信模块111、第二通信模块112、中间设备120、第三通信模块121、第四通信模块122和目标服务终端130。FIG. 2 is a schematic structural diagram of a networking system of a shared device according to an embodiment. As shown in FIG. 2, the system specifically includes: a target sharing device 110, a first communication module 111, a second communication module 112, an intermediate device 120, a third communication module 121, a fourth communication module 122, and a target service terminal 130.
目标共享设备110包括第一通信模块111和第二通信模块112,中间设备120包括第三通信模块121和第四通信模块122,目标服务终端130包括第一网络接口。第二通信模块112和第三通信模块121设置为与组网系统中除自身外的其他设备建立近距离通信连接,第一通信模块111、第四通信模块122和第一网络接口设置为与组网系统中除自身外的其他设备建立远程通信连接。The target sharing device 110 includes a first communication module 111 and a second communication module 112, the intermediate device 120 includes a third communication module 121 and a fourth communication module 122, and the target service terminal 130 includes a first network interface. The second communication module 112 and the third communication module 121 are configured to establish a short-range communication connection with other devices except the self in the networking system, and the first communication module 111, the fourth communication module 122, and the first network interface are set to be combined with the group. The network system establishes a remote communication connection with other devices except itself.
在通信连接正常的情况下,目标共享设备110的第一通信模块111和目标服务终端130中的第一网络接口建立第一通信连接,可利用远程通信连接直接进行信息交互。当目标共享设备110与目标服务终端130之间的第一通信连接存在通信故障时,目标共享设备110可以通过组网系统中的中间设备120与目标服务终端130进行通信。例如可以是,目标共享设备110的第二通信模块112和中间设备120的第三通信模块121建立第二通信连接,中间设备120的第四通信模块122和目标服务终端130中的第一网络接口建立第三通信连接,使得目标共享设备110可以通过中间设备120间接与目标服务终端130进行信息交互。其中,中间设备120可以包括任意公共终端或组网系统中的其他共享设备,第二通信连接为近距离通信连接,第三通信连接为远程通信连接。In the case that the communication connection is normal, the first communication module 111 of the target sharing device 110 and the first network interface of the target service terminal 130 establish a first communication connection, and the information communication can be directly performed by using the remote communication connection. When there is a communication failure in the first communication connection between the target sharing device 110 and the target service terminal 130, the target sharing device 110 can communicate with the target service terminal 130 through the intermediate device 120 in the networking system. For example, the second communication module 112 of the target sharing device 110 and the third communication module 121 of the intermediate device 120 establish a second communication connection, and the first communication interface of the fourth communication module 122 and the target service terminal 130 of the intermediate device 120 A third communication connection is established such that the target sharing device 110 can indirectly exchange information with the target service terminal 130 through the intermediate device 120. The intermediate device 120 may include any public terminal or other shared device in the networking system, the second communication connection is a short-range communication connection, and the third communication connection is a remote communication connection.
例如,中间设备120可以是公共终端,该公共终端120中可包括设置为近距离通信连接的第三通信模块121和设置为远程通信连接的第四通信模块122;目标共享设备110中可包括设置为远程通信连接的第一通信模块111和设置为近距离通信连接的第二通信模块112;目标服务终端130中可包括设置为远程通信连接的第一网络接口。通常目标共享设备110可以通过第一通信模块111与目标服务终端130中的第一网络接口建立第一通信连接,例如可以是远程通信连接。当目标共享设备110与目标服务终端130之间的第一通信连接存在通信故障时,目标共享设备110可以通过公共终端120与目标服务终端130进行通信。可选的,目标共享设备110中的第二通信模块112可与公共终端120中的第三通信模块121建立第二通信连接,该第二通信连接可为近距离通信连接,公共终端120中的第四通信模块122可与目标服务终端130中的第一网络接口 建立第三通信连接,该第三通信连接可为远程通信连接,例如可以是目标共享终端110通过近距离通信连接、公共终端120、远程通信连接与目标服务终端130进行通信。For example, the intermediate device 120 may be a public terminal, which may include a third communication module 121 configured as a short-range communication connection and a fourth communication module 122 configured as a remote communication connection; the target sharing device 110 may include settings A first communication module 111 connected for remote communication and a second communication module 112 configured as a short-range communication connection; the target service terminal 130 may include a first network interface configured as a remote communication connection. Generally, the target sharing device 110 may establish a first communication connection with the first network interface of the target service terminal 130 through the first communication module 111, for example, may be a remote communication connection. When there is a communication failure of the first communication connection between the target sharing device 110 and the target service terminal 130, the target sharing device 110 can communicate with the target service terminal 130 through the public terminal 120. Optionally, the second communication module 112 in the target sharing device 110 may establish a second communication connection with the third communication module 121 in the public terminal 120, where the second communication connection may be a short-range communication connection, in the public terminal 120. The fourth communication module 122 can establish a third communication connection with the first network interface in the target service terminal 130, and the third communication connection can be a remote communication connection, for example, the target sharing terminal 110 can be connected through the short-range communication, and the public terminal 120 The remote communication connection communicates with the target service terminal 130.
其中,共享设备可以包括共享自行车或共享电动车等无桩单车,还可为其他用来资源共享的设备,例如共享充电宝等。公共终端可以包括电子车桩、路灯、公交站牌、公园路标或智慧城市中某个固定装置或者可移动的装置等。本实施方式中的电子车桩可选为一种室外公共设备,其具体实现方式和结构可与上述实施例中所示的电子车桩类似,此处不再赘述。本实施方式中的目标服务终端可为一种服务器,其具体实现方式和结构可与上述实施例中所示的目标服务终端类似,此处不再赘述。The shared device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be other devices used for resource sharing, such as a shared charging treasure. The public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, or a fixed device or a movable device in a smart city. The electronic vehicle pile in the embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again. The target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
本实施例提供的共享设备的组网系统,通过在目标共享设备与目标服务终端之间设置包括公共终端或组网系统中的其他共享设备的中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,可以通过目标共享设备与中间设备建立的近距离通信连接和中间设备与目标服务终端建立的远程通信连接进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The networking system of the shared device provided by the embodiment provides an intermediate device including a public terminal or another shared device in the networking system between the target shared device and the target service terminal, so that the target shared device and the target service terminal are When there is a communication failure in the communication connection, the short-distance communication connection established by the target shared device with the intermediate device and the remote communication connection established by the intermediate device with the target service terminal can communicate, thereby improving the information transmission between the shared device and the service terminal. The success rate improves the user experience while avoiding the waste of shared device resources.
图3是一实施例提供的一种共享设备的组网系统的结构示意图。如图3所示,该系统具体包括:目标共享设备110、第一通信模块111、中间设备120、第四通信模块122、第五通信模块123和目标服务终端130。FIG. 3 is a schematic structural diagram of a networking system of a shared device according to an embodiment. As shown in FIG. 3, the system specifically includes: a target sharing device 110, a first communication module 111, an intermediate device 120, a fourth communication module 122, a fifth communication module 123, and a target service terminal 130.
目标共享设备110可包括第一通信模块111,中间设备120可包括第四通信模块122和第五通信模块123,目标服务终端130可包括第一网络接口和第二网络接口。第一通信模块111、第四通信模块122和第一网络接口可设置为与组网系统中除自身外的其他设备建立远程通信连接,第五通信模块123和第二网络接口可设置为与组网系统中其他服务终端建立云端通信连接。The target sharing device 110 may include a first communication module 111, the intermediate device 120 may include a fourth communication module 122 and a fifth communication module 123, and the target service terminal 130 may include a first network interface and a second network interface. The first communication module 111, the fourth communication module 122, and the first network interface may be configured to establish a remote communication connection with other devices except the self in the networking system, and the fifth communication module 123 and the second network interface may be set to be associated with the group. Other service terminals in the network system establish a cloud communication connection.
在通信连接正常的情况下,目标共享设备110的第一通信模块111可与目标服务终端130中的第一网络接口建立第一通信连接,例如可利用远程通信连接直接进行信息交互。当目标共享设备110与目标服务终端130之间的第一通信连接存在通信故障时,目标共享设备110可以通过组网系统中的中间设备120与目标服务终端130进行通信。可选的,目标共享设备110的第一通信模块111可与中间设备120的第四通信模块122建立第二通信连接,中间设备120的第 五通信模块123可与目标服务终端130中的第二网络接口建立第三通信连接,使得目标共享设备110可以通过中间设备120间接与目标服务终端130进行信息交互。其中,中间设备120可包括其他服务终端,第二通信连接可为远程通信连接,第三通信连接可为云端通信连接。In the case that the communication connection is normal, the first communication module 111 of the target sharing device 110 can establish a first communication connection with the first network interface in the target service terminal 130, for example, can directly perform information interaction using the remote communication connection. When there is a communication failure in the first communication connection between the target sharing device 110 and the target service terminal 130, the target sharing device 110 can communicate with the target service terminal 130 through the intermediate device 120 in the networking system. Optionally, the first communication module 111 of the target sharing device 110 may establish a second communication connection with the fourth communication module 122 of the intermediate device 120, and the fifth communication module 123 of the intermediate device 120 may be the second one of the target service terminals 130. The network interface establishes a third communication connection such that the target sharing device 110 can indirectly interact with the target service terminal 130 via the intermediate device 120. The intermediate device 120 may include other service terminals, the second communication connection may be a remote communication connection, and the third communication connection may be a cloud communication connection.
例如,中间设备120可以是其他服务终端中的任意一个,该服务终端120可包括设置为远程通信连接的第四通信模块122和设置为云端通信连接的第五通信模块123;目标共享设备110可包括设置为远程通信连接的第一通信模块111;目标服务终端130可包括设置为远程通信连接的第一网络接口和设置为云端通信连接的第二网络接口。通常目标共享设备110可通过第一通信模块111与目标服务终端130中的第一网络接口建立第一通信连接,当目标共享设备110与目标服务终端130之间的第一通信连接存在通信故障时,目标共享设备110可以通过服务终端120与目标服务终端130进行通信。可选的,目标共享设备110中的第一通信模块111可与服务终端120中的第四通信模块122建立第二通信连接,该第二通信连接可为远程通信连接,服务终端120中的第五通信模块123可与目标服务终端中的第二网络接口建立第三通信连接,该第三通信连接可为云端通信连接,例如可以是目标共享终端110通过远程通信连接、服务终端120、云端通信连接与目标服务终端130进行通信。For example, the intermediate device 120 may be any one of other service terminals, and the service terminal 120 may include a fourth communication module 122 configured as a remote communication connection and a fifth communication module 123 configured as a cloud communication connection; the target sharing device 110 may A first communication module 111 configured as a remote communication connection is included; the target service terminal 130 may include a first network interface configured as a remote communication connection and a second network interface configured as a cloud communication connection. Generally, the target sharing device 110 can establish a first communication connection with the first network interface in the target service terminal 130 through the first communication module 111, when there is a communication failure in the first communication connection between the target sharing device 110 and the target service terminal 130. The target sharing device 110 can communicate with the target service terminal 130 through the service terminal 120. Optionally, the first communication module 111 in the target sharing device 110 may establish a second communication connection with the fourth communication module 122 in the service terminal 120, where the second communication connection may be a remote communication connection, and the service terminal 120 The fifth communication module 123 can establish a third communication connection with the second network interface in the target service terminal, and the third communication connection can be a cloud communication connection, for example, the target sharing terminal 110 can communicate through the remote communication, the service terminal 120, and the cloud communication. The connection communicates with the target kiosk 130.
可选的,共享设备可以包括共享自行车或共享电动车等无桩单车,还可为其他用来资源共享的设备,例如共享充电宝等。公共终端可以包括电子车桩、路灯、公交站牌、公园路标或智慧城市中某个固定装置或者可移动的装置等。本实施方式中的电子车桩可为一种室外公共设备,其具体实现方式和结构可与上述实施例中所示的电子车桩类似,此处不再赘述。本实施方式中的目标服务终端可为一种服务器,其具体实现方式和结构可与上述实施例中所示的目标服务终端类似,此处不再赘述。Optionally, the shared device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be other devices used for resource sharing, such as a shared charging treasure. The public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, or a fixed device or a movable device in a smart city. The electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again. The target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
本实施例提供的共享设备的组网系统,通过在目标共享设备与目标服务终端之间设置包括其他服务终端的中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,可以通过目标共享设备与中间设备建立的远程通信连接和中间设备与目标服务终端建立的云端通信连接进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The networking system of the shared device provided by the embodiment provides an intermediate device including other service terminals between the target shared device and the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal The remote communication connection established by the target shared device and the intermediate device and the cloud communication connection established by the intermediate device and the target service terminal can communicate, thereby improving the information transmission success rate between the shared device and the service terminal, thereby improving the user experience and improving the user experience. Avoid wasting shared device resources.
可选的,目标共享设备110或者目标服务终端130,还可设置为当判断第一通信连接通信故障时,查询存储的终端标识列表,依次向终端标识列表中的终端发送查询请求。例如,组网系统中的每一个终端都可以设置有存储单元,每一个终端都有唯一的终端标识与其对应,其中,每个存储单元中可以存储组网系统中其他所有终端的终端标识、可以存储相应终端预设通信距离范围内所有其他终端的终端标识,也可以是每个终端都有自己唯一的终端标识,且每个终端可以根据需要而预存其他终端的终端标识。当所述终端为服务终端时,所述终端标识可以包括设备物理信息或其它无物理意义的预设识别标识,其中,设备物理信息可以包括互联网协议(Internet Protocol Address,IP)地址、VPN(Virtual Private Network)、路由标签、接口(ports)编号等;当所述终端为共享设备或中间设备时,所述终端标识可为设备的国际移动设备身份码(International Mobile Equipment Identity,IMEI)号或者蓝牙名称等。当接收到查询请求响应后,目标共享设备110或者目标服务终端130可以确定发送查询请求响应的终端为中间设备120。在本实施例中,中间设备可为接收到的第一个查询请求响应对应的终端,也可以在发送查询请求响应的终端中选择一个终端,例如可以选择权重最高的终端作为中间设备。上述权重最高的终端例如可以是各终端中的电量信息、通信状态信息中至少一个条件最优或者综合条件最优的终端。可选的,查询请求响应可以是能够与目标共享设备110建立第二通信连接且能够与目标服务终端130建立第三通信连接的终端发送的。可选的,终端可以包括组网系统中的除了目标共享设备之外的其他共享设备、公共终端以及除了目标服务终端之外的其他服务终端中的一个。Optionally, the target sharing device 110 or the target service terminal 130 may be further configured to: when determining that the first communication connection communication is faulty, query the stored terminal identification list, and send the query request to the terminal in the terminal identification list. For example, each terminal in the networking system may be provided with a storage unit, and each terminal has a unique terminal identifier corresponding thereto, wherein each storage unit may store terminal identifiers of all other terminals in the networking system, and may The terminal identifiers of all other terminals in the preset communication distance range of the corresponding terminal are stored, or each terminal has its own unique terminal identifier, and each terminal can pre-store the terminal identifiers of other terminals as needed. When the terminal is a service terminal, the terminal identifier may include device physical information or other non-physical meaning preset identification identifier, where the device physical information may include an Internet Protocol Address (IP) address, VPN (Virtual Private network), routing label, port number, etc.; when the terminal is a shared device or an intermediate device, the terminal identifier may be an International Mobile Equipment Identity (IMEI) number of the device or Bluetooth. Name and so on. Upon receiving the query request response, the target sharing device 110 or the target service terminal 130 may determine that the terminal that sent the query request response is the intermediate device 120. In this embodiment, the intermediate device may respond to the corresponding terminal in response to the first query request, or may select one terminal in the terminal that sends the query request response, for example, the terminal with the highest weight may be selected as the intermediate device. The terminal having the highest weight may be, for example, a terminal having at least one of the power amount information and the communication state information in each terminal being optimal or having the best comprehensive condition. Alternatively, the query request response may be sent by a terminal capable of establishing a second communication connection with the target sharing device 110 and capable of establishing a third communication connection with the target service terminal 130. Optionally, the terminal may include one of a shared device other than the target shared device, a public terminal, and other service terminals except the target service terminal in the networking system.
具体的,目标共享设备110可以包括第一存储单元,目标服务终端130可以包括第二存储单元,当判断目标共享设备110与目标服务终端130之间的第一通信连接存在通信故障,且目标共享设备110需要向目标服务终端130发送上行信息时,目标共享设备110可以设置为通过第一存储单元查询其中存储的终端标识列表,在获取到终端标识列表后,依次向终端标识列表中的各个终端发送查询请求并接收查询请求响应,目标共享设备110可以确定发送查询请求响应的终端为中间设备120;或者当判断目标共享设备110与目标服务终端130之间的第一通信连接存在通信故障,且目标服务终端130需要向目标共享设备110发送下行信息时,目标服务终端130可以设置为通过第二存储单元查询其 中存储的终端标识列表,在获取到终端标识列表后,依次向终端标识列表中的终端发送查询请求并接收查询请求响应,目标服务终端130确定发送查询请求响应的终端为中间设备120。Specifically, the target sharing device 110 may include a first storage unit, and the target service terminal 130 may include a second storage unit, when it is determined that the first communication connection between the target sharing device 110 and the target service terminal 130 has a communication failure, and the target is shared. When the device 110 needs to send the uplink information to the target service terminal 130, the target sharing device 110 may be configured to query the terminal identifier list stored therein by using the first storage unit, and after obtaining the terminal identifier list, sequentially identify each terminal in the terminal identification list. Sending the query request and receiving the query request response, the target sharing device 110 may determine that the terminal that sends the query request response is the intermediate device 120; or when it is determined that the first communication connection between the target sharing device 110 and the target service terminal 130 has a communication failure, and When the target service terminal 130 needs to send the downlink information to the target sharing device 110, the target service terminal 130 may be configured to query the terminal identifier list stored therein by using the second storage unit, and after obtaining the terminal identifier list, sequentially identify the terminal identifier list. The terminal sends a query request And receiving the query request response, the target service terminal 130 determines that the terminal that sends the query request response is the intermediate device 120.
可选的,目标共享设备110或者目标服务终端130,还可以设置为当判断第一通信连接通信故障时,广播查询请求并接收至少一个查询请求响应,在发送查询请求响应的终端中选择一个作为中间设备120,所述查询请求响可以是能够与目标共享设备建立第二通信连接且能够与目标服务终端建立第三通信连接的终端发送的。其中,终端包括组网系统中的除了目标共享设备之外的其他共享设备、公共终端以及除了目标服务终端之外的其他服务终端中的一个。Optionally, the target sharing device 110 or the target service terminal 130 may be further configured to: when determining that the first communication connection communication is faulty, broadcast a query request and receive at least one query request response, and select one of the terminals that send the query request response. The intermediate device 120, the query request ring may be sent by a terminal capable of establishing a second communication connection with the target sharing device and capable of establishing a third communication connection with the target service terminal. The terminal includes one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system.
可选的,目标共享设备110可以包括第一广播单元,当判断目标共享设备110与目标服务终端130之间的第一通信连接存在通信故障,且目标共享设备110需要向目标服务终端130发送上行信息时,目标共享设备110可以设置为通过第一广播单元广播查询请求并接收至少一个查询请求响应,目标共享设备110可以确定发送查询请求响应的终端为中间设备120,例如其他共享设备、公共终端、其他服务终端。Optionally, the target sharing device 110 may include a first broadcast unit, when it is determined that the first communication connection between the target sharing device 110 and the target service terminal 130 has a communication failure, and the target sharing device 110 needs to send an uplink to the target service terminal 130. At the time of information, the target sharing device 110 may be configured to broadcast a query request by the first broadcast unit and receive at least one query request response, and the target sharing device 110 may determine that the terminal that sends the query request response is the intermediate device 120, such as other shared devices, public terminals. , other service terminals.
在一实施例中,上述查询请求响应可以是能够与目标共享设备110建立第二通信连接且能够与目标服务终端130建立第三通信连接的终端发送的。In an embodiment, the query request response may be sent by a terminal capable of establishing a second communication connection with the target sharing device 110 and capable of establishing a third communication connection with the target service terminal 130.
例如可以是,目标共享设备110在广播查询请求后,可能接收到多个查询请求响应,那么目标共享设备110可以在发送查询请求响应的终端中任选一个作为中间设备120,也可以将接收到的第一个查询请求响应对应的终端作为中间设备120。目标共享设备110广播的查询请求还可以包括选票信息,当接收到包括查询请求的终端能够与目标共享设备110建立第二通信连接且能够与目标服务终端130建立第三通信连接时,向目标共享设备发送的查询请求响应中包括投票信息,该投票信息中可以包括该设备的权重信息。目标共享设备110根据接收到的所有查询请求响应中的投票信息,可以确定发送查询请求响应的各终端的权重,例如可以选择权重最高的终端作为中间设备120。上述权重最高的终端例如可以是各终端中的电量信息、通信状态信息中至少一个条件最优或者综合条件最优的终端。目标共享设备110可以根据权重信息所选择的终端设备120能够更好地作为目标共享设备110与目标服务终端130之间的转发设备,进行数据的转发。For example, the target sharing device 110 may receive multiple query request responses after the broadcast query request, and the target sharing device 110 may select one of the terminals that send the query request response as the intermediate device 120, or may receive the same. The first query request responds to the corresponding terminal as the intermediate device 120. The query request broadcast by the target sharing device 110 may further include ballot information, and when receiving the terminal including the query request capable of establishing a second communication connection with the target sharing device 110 and being able to establish a third communication connection with the target service terminal 130, sharing with the target The query request response sent by the device includes voting information, and the voting information may include weight information of the device. The target sharing device 110 can determine the weight of each terminal that sends the query request response according to the voting information in all the query request responses received. For example, the terminal with the highest weight can be selected as the intermediate device 120. The terminal having the highest weight may be, for example, a terminal having at least one of the power amount information and the communication state information in each terminal being optimal or having the best comprehensive condition. The target sharing device 110 can better forward the data by using the terminal device 120 selected according to the weight information as the forwarding device between the target shared device 110 and the target serving terminal 130.
本实施例提供的共享设备的组网系统,通过在目标共享设备或目标服务终端中设置存储单元或广播单元,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,可以通过查询存储单元中的终端标识列表,并依次向终端标识列表中的终端发送查询请求,或者通过广播单元广播查询请求并接收至少一个查询请求响应的方式来确定用于辅助通信的中间设备,使得中间设备的选择方式多样化,同时提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,避免了共享设备资源的浪费。The networking system of the shared device provided in this embodiment can set a storage unit or a broadcast unit in the target shared device or the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, Querying a list of terminal identifiers in the storage unit, and sequentially sending a query request to the terminal in the terminal identifier list, or determining an intermediate device for assisting communication by means of a broadcast unit broadcasting the query request and receiving at least one query request response, so that the middle The selection of devices is diversified, and the success rate of information transmission between the shared device and the service terminal is improved, the user experience is improved, and the waste of shared device resources is avoided.
图4是一实施例提供的一种共享设备的组网方法的流程图。该方法可适用于共享设备的组网系统中,由于目标共享设备与目标服务终端之间的通信连接发生通信故障而无法进行通信的情况,该方法可以由共享设备的组网系统来执行。如图4所示,该方法的具体步骤如下:FIG. 4 is a flowchart of a networking method of a shared device according to an embodiment. The method can be applied to a networking system of a shared device, and the communication cannot be performed due to a communication failure between the target shared device and the target service terminal, and the method can be performed by the networking system of the shared device. As shown in Figure 4, the specific steps of the method are as follows:
在S410中,检测目标共享设备与目标服务终端之间的第一通信连接。In S410, a first communication connection between the target sharing device and the target service terminal is detected.
可选的,第一通信连接为远程通信连接,目标服务终端设置为对目标共享设备进行管理和控制。Optionally, the first communication connection is a remote communication connection, and the target service terminal is configured to manage and control the target shared device.
在一实施例中,在共享设备的组网系统中,一般的,当目标共享设备与目标服务终端之间进行信息交互时,目标共享设备与目标服务终端之间可以建立第一通信连接,其中,第一通信连接可为远程通信连接。目标服务终端可通过第一通信连接实现对目标共享设备的管理和控制中的至少一项。例如可以是,目标服务终端可以为目标共享设备的闭锁、解锁以及报警等事件触发提供决策、可以为目标共享设备的调配提供策略、对目标共享设备的地理位置信息进行管理以及对目标共享设备的广告信息进行管理等。例如,当目标共享设备具备锁定功能时,目标服务终端可以控制目标共享设备进行解锁。以目标共享设备是无桩单车,无桩单车与目标服务终端之间的通信连接为第一通信连接为例进行具体说明,当用户需要使用无桩单车时,目标服务终端可以根据用户的请求生成解锁信息,并通过第一通信连接发送给无桩单车,无桩单车在接收到解锁信息后,可以执行相应的解锁动作,以便用户使用。In an embodiment, in the networking system of the shared device, generally, when information interaction between the target shared device and the target service terminal is performed, a first communication connection may be established between the target shared device and the target service terminal, where The first communication connection can be a remote communication connection. The target service terminal can implement at least one of management and control of the target shared device through the first communication connection. For example, the target service terminal may provide a decision for event triggering such as blocking, unlocking, and alarming of the target shared device, may provide a policy for provisioning of the target shared device, manage geographic location information of the target shared device, and manage the target shared device. Advertising information management, etc. For example, when the target sharing device has the locking function, the target service terminal can control the target sharing device to unlock. The target shared device is a pileless bicycle, and the communication connection between the pileless bicycle and the target service terminal is specifically described as an example of the first communication connection. When the user needs to use the pileless bicycle, the target service terminal can generate the request according to the user's request. The information is unlocked and sent to the unstacked bicycle through the first communication connection. After receiving the unlocking information, the unstacked bicycle can perform a corresponding unlocking action for the user to use.
在一实施例中,检测目标共享设备与目标服务终端之间的第一通信连接可以确定第一通信连接是否存在通信故障,若正常,则目标共享设备与目标服务终端之间直接进行信息交互。In an embodiment, detecting the first communication connection between the target sharing device and the target service terminal may determine whether the first communication connection has a communication failure, and if normal, directly interacting information between the target shared device and the target service terminal.
在S420中,当确定所述第一通信连接发生通信故障时,所述目标共享设备 通过中间设备与所述目标服务终端通信。In S420, when it is determined that the first communication connection has a communication failure, the target sharing device communicates with the target service terminal through the intermediate device.
可选的,目标共享设备与中间设备通过第二通信连接通信,中间设备与目标服务终端通过第三通信连接通信,中间设备包括共享设备所在的组网系统中的除了目标共享设备之外的其他共享设备、公共终端、以及除了目标服务终端之外的其他服务终端中的至少一个。Optionally, the target shared device communicates with the intermediate device by using a second communication connection, and the intermediate device communicates with the target service terminal by using a third communication connection, where the intermediate device includes other than the target shared device in the networking system where the shared device is located. At least one of a shared device, a public terminal, and other service terminals other than the target service terminal.
在一实施例中,共享设备的组网系统中除了包括共享设备和服务终端外,还可以包括公共终端,其中公共终端可以和共享设备建立近距离通信连接,可以和服务终端建立远程通信连接。组网系统中的共享设备、公共终端和服务终端中的任意两个都可以在有通信需求时进行通信。其中,共享设备可以包括共享自行车或共享电动车等无桩单车,还可为其他用来资源共享的设备例如共享充电宝等;公共终端可以包括虚拟车桩、路灯、公交站牌、公园路标、智慧城市中某个固定装置或者可移动的装置等。In an embodiment, the networking system of the shared device may include a public terminal in addition to the shared device and the service terminal, wherein the public terminal may establish a short-range communication connection with the shared device, and may establish a remote communication connection with the service terminal. Any two of the shared device, the public terminal, and the service terminal in the networking system can communicate when there is communication demand. The shared device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be used for other resources sharing devices such as a shared charging treasure; the public terminal may include a virtual vehicle pile, a street light, a bus stop sign, a park road sign, A fixed device or a movable device in a smart city.
本实施方式中的电子车桩可为一种室外公共设备,其具体实现方式和结构可与上述实施例中所示的电子车桩类似,此处不再赘述。本实施方式中的目标服务终端可为一种服务器,其具体实现方式和结构可与上述实施例中所示的目标服务终端类似,此处不再赘述。The electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again. The target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
在一实施例中,当检测到目标共享设备与目标服务终端之间的第一通信连接存在通信故障时,可以借助组网系统中除目标共享设备和目标服务终端之外的中间设备进行信息交互,例如目标共享设备可以通过共享设备的组网系统中的其他共享设备、公共终端、其他服务终端中的一个或多个与目标服务终端之间进行通信。其中,目标共享设备可与中间设备通过第二通信连接通信,中间设备可与目标服务终端通过第三通信连接通信,例如目标共享设备可通过第二通信连接、中间设备、第三通信连接与目标服务终端之间进行通信。当中间设备为组网系统中的除了共享设备之外的其他共享设备、公共终端中的至少一个时,目标共享设备与中间设备之间建立的第二通信连接可为近距离通信连接,中间设备与目标服务终端之间建立的第三通信连接可为远程通信连接,目标共享设备可以通过近距离通信连接、中间设备和远程通信连接与目标服务终端进行通信;当中间设备为组网系统中的其他服务终端时,目标共享设备与中间设备之间建立的第二通信连接可为远程通信连接,中间设备与目标服务终端之间建立的第三通信连接可为云端通信连接,目标共享设备可通过远程通信连接、 中间设备和云端通信连接与目标服务终端进行通信。In an embodiment, when it is detected that there is a communication failure in the first communication connection between the target shared device and the target service terminal, information interaction may be performed by using an intermediate device other than the target shared device and the target service terminal in the networking system. For example, the target sharing device can communicate with the target service terminal through one or more of other shared devices, public terminals, and other service terminals in the networking system of the shared device. The target shared device can communicate with the intermediate device through the second communication connection, and the intermediate device can communicate with the target service terminal through the third communication connection, for example, the target shared device can communicate with the target through the second communication connection, the intermediate device, and the third communication connection. Communication between service terminals. When the intermediate device is at least one of a shared device and a public terminal other than the shared device in the networking system, the second communication connection established between the target shared device and the intermediate device may be a short-range communication connection, and the intermediate device The third communication connection established with the target service terminal may be a remote communication connection, and the target shared device may communicate with the target service terminal through the short-range communication connection, the intermediate device and the remote communication connection; when the intermediate device is in the networking system In another service terminal, the second communication connection established between the target shared device and the intermediate device may be a remote communication connection, and the third communication connection established between the intermediate device and the target service terminal may be a cloud communication connection, and the target shared device may pass The telecommunication connection, the intermediate device, and the cloud communication connection communicate with the target service terminal.
本实施例提供的共享设备的组网方法,通过在目标共享设备与目标服务终端之间设置中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,目标共享设备可以通过中间设备与目标服务终端进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The networking method of the shared device provided by the embodiment provides an intermediate device between the target shared device and the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device may The intermediate device communicates with the target service terminal, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids waste of shared device resources.
图5A是一实施例提供的一种共享设备的组网方法的流程图,如图5A所示,该方法具体包括:FIG. 5A is a flowchart of a networking method of a shared device according to an embodiment. As shown in FIG. 5A, the method specifically includes:
在S510中,检测目标共享设备与目标服务终端之间的第一通信连接。In S510, a first communication connection between the target sharing device and the target service terminal is detected.
在S520中,当所述第一通信连接通信故障时,搜索中间设备。In S520, when the first communication connection communication fails, the intermediate device is searched.
在一实施例中,当检测到目标共享设备与目标服务终端之间的第一通信连接存在通信故障时,目标共享设备可以通过搜索组网系统中的中间设备实现与目标服务终端之间的间接通信。或者,目标服务终端可以通过搜索组网系统中的中间设备实现与目标共享设备之间的间接通信。其中,当目标共享设备需要向目标服务终端发送上行信息时,目标共享设备可以搜索组网系统中的中间设备,以实现与目标服务终端之间的通信;当目标服务终端需要向目标共享设备发送下行信息时,目标服务终端可以搜索组网系统中的中间设备,以实现与目标共享设备之间的通信。In an embodiment, when it is detected that there is a communication failure in the first communication connection between the target sharing device and the target service terminal, the target sharing device may implement an indirect connection with the target service terminal by searching for an intermediate device in the networking system. Communication. Alternatively, the target service terminal can implement indirect communication with the target shared device by searching for an intermediate device in the networking system. When the target shared device needs to send uplink information to the target service terminal, the target shared device may search for an intermediate device in the networking system to implement communication with the target service terminal; when the target service terminal needs to send to the target shared device, During downlink information, the target service terminal can search for intermediate devices in the networking system to implement communication with the target shared device.
在S530中,若搜索到的设备能够与所述目标共享设备建立所述第二通信连接,且所述搜索到的设备能够与所述目标服务终端建立所述第三通信连接,则确定搜索到的设备为所述中间设备。In S530, if the searched device is capable of establishing the second communication connection with the target shared device, and the searched device is capable of establishing the third communication connection with the target service terminal, determining to search The device is the intermediate device.
在一实施例中,当目标共享设备搜索到的设备既能够与目标共享设备建立第二通信连接,又能够与目标服务终端建立第三通信连接时,可以将该设备作为中间设备。当目标共享设备搜索到的设备满足上述条件时,可以停止搜索,并使目标共享设备和目标服务终端分别与中间设备建立相应的通信连接;否则,目标共享设备需要重新返回搜索。In an embodiment, when the device searched by the target sharing device can establish a second communication connection with the target sharing device and establish a third communication connection with the target service terminal, the device can be used as an intermediate device. When the device searched by the target shared device meets the above conditions, the search may be stopped, and the target shared device and the target service terminal respectively establish a corresponding communication connection with the intermediate device; otherwise, the target shared device needs to return to the search again.
或者,当目标服务终端搜索到的设备既能够与目标共享设备建立第二通信连接,又能够与目标服务终端建立第三通信连接时,可以将该设备作为中间设备。当目标服务终端搜索到的设备满足上述条件时,可以停止搜索,并使目标服务终端分别与中间设备建立相应的通信连接;否则,目标服务终端需要重新 返回搜索。Alternatively, when the device searched by the target service terminal can establish a second communication connection with the target shared device and establish a third communication connection with the target service terminal, the device can be used as an intermediate device. When the device searched by the target service terminal satisfies the above conditions, the search may be stopped, and the target service terminal respectively establishes a corresponding communication connection with the intermediate device; otherwise, the target service terminal needs to return to the search again.
在一实施例中,共享设备可包括第一通信模块和第二通信模块,中间设备可包括第三通信模块和第四通信模块,目标服务终端可包括第一网络接口。其中第二通信模块和第三通信模块可以与组网系统中除自身外的其他设备建立近距离通信连接,第一通信模块、第四通信模块和第一网络接口可以与组网系统中除自身外的其他设备建立远程通信连接。中间设备可以包括组网系统中的除了目标共享设备之外的其他共享设备、公共终端中的至少一个。目标共享设备可通过第二通信模块与中间设备的第三通信模块建立第二通信连接,其中,第二通信连接可为近距离通信连接;中间设备可通过第四通信模块与服务终端中的第一网络接口建立第三通信连接,其中,第三通信连接可为远程通信连接。In an embodiment, the sharing device may include a first communication module and a second communication module, the intermediate device may include a third communication module and a fourth communication module, and the target service terminal may include a first network interface. The second communication module and the third communication module can establish a short-distance communication connection with other devices in the networking system except the self, and the first communication module, the fourth communication module, and the first network interface can be separated from the networking system. Other devices outside establish a remote communication connection. The intermediate device may include at least one of a shared device other than the target shared device and a public terminal in the networking system. The target sharing device may establish a second communication connection with the third communication module of the intermediate device through the second communication module, where the second communication connection may be a short-range communication connection; the intermediate device may pass through the fourth communication module and the service terminal A network interface establishes a third communication connection, wherein the third communication connection can be a remote communication connection.
在S540中,目标共享设备通过中间设备与目标服务终端通信。In S540, the target shared device communicates with the target service terminal through the intermediate device.
以目标共享设备与目标服务终端之间的第一通信连接存在通信故障,且目标共享设备需要向目标服务终端发送上行信息为例,对上述步骤进行具体说明:The communication failure occurs in the first communication connection between the target shared device and the target service terminal, and the target shared device needs to send the uplink information to the target service terminal as an example, and the foregoing steps are specifically described:
当检测到第一通信连接存在通信故障时,也就是,当目标共享设备检测到第一通信连接存在通信故障时,目标共享设备中的第二通信模块可以在组网系统中搜索能够与其建立第二通信连接的设备,若搜索到的设备中的第三通信模块无法与其建立第二通信连接,则目标共享设备返回重新搜索;如果搜索到的设备中的第三通信模块能够与其建立第二通信连接,则继续判断搜索到的设备能否与目标服务终端建立第三通信连接,若搜索到的设备中的第四通信模块无法与目标服务终端中的第一网络接口建立第三通信连接,则目标共享设备返回重新搜索;若搜索到的设备中的第四通信模块能够与目标服务终端中的第一网络接口建立第三通信连接,则可以确定该搜索到的设备为中间设备,目标共享设备可以通过第二通信连接、中间设备和第三通信连接向目标服务终端发送上行信息。如图5B所示,图5B为本实施例提供的又一种共享设备的组网方法的流程图,由图5B可以示出本实施例中目标共享设备、中间设备以及目标服务终端之间的交互关系。When it is detected that there is a communication failure in the first communication connection, that is, when the target sharing device detects that there is a communication failure in the first communication connection, the second communication module in the target shared device can search in the networking system to be able to establish the same If the third communication module in the searched device cannot establish a second communication connection with the device, the target shared device returns to re-search; if the third communication module in the searched device can establish a second communication with the device Connect, continue to determine whether the searched device can establish a third communication connection with the target service terminal, and if the fourth communication module in the searched device cannot establish a third communication connection with the first network interface in the target service terminal, The target shared device returns a re-search; if the fourth communication module in the searched device can establish a third communication connection with the first network interface in the target service terminal, it can be determined that the searched device is an intermediate device, and the target shared device Service to the target through the second communication connection, the intermediate device, and the third communication connection Sends upstream information. As shown in FIG. 5B, FIG. 5B is a flowchart of another networking method of a shared device according to the embodiment. FIG. 5B may show the target sharing device, the intermediate device, and the target service terminal in the embodiment. Interaction relationship.
在一实施例中,图5A示出了目标共享设备搜索中间设备的情况,可以理解的是,还可以存在目标服务终端搜索中间设备的情况,由于该过程与目标共享设备搜索中间设备的方案相似,因此,其未在图中示出。In an embodiment, FIG. 5A illustrates a case where the target shared device searches for the intermediate device. It can be understood that there may also be a case where the target service terminal searches for the intermediate device, because the process is similar to the target shared device searching for the intermediate device. Therefore, it is not shown in the figure.
在一实施例中,共享设备可以包括共享自行车或共享电动车等无桩单车, 还可为其他用来资源共享的设备例如共享充电宝等。公共终端可以包括电子车桩、路灯、公交站牌、公园路标、智慧城市中某个固定装置或者可移动的装置等。本实施方式中的电子车桩可为一种室外公共设备,其具体实现方式和结构可与上述实施例所示的电子车桩类似,此处不再赘述。本实施方式中的目标服务终端可为一种服务器,其具体实现方式和结构可与上述实施例中所示的目标服务终端类似,此处不再赘述。In an embodiment, the sharing device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be other devices for resource sharing such as a shared charging treasure. The public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, a fixed device in a smart city, or a movable device. The electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again. The target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
本实施例提供的共享设备的组网方法,通过在共享设备的组网系统中搜索并判断能够与目标共享设备建立第二通信连接,且能够与目标服务终端建立第三通信连接的,包括其他共享设备、公共终端中的一个或多个的中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,目标共享设备可以通过中间设备与目标服务终端进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The networking method of the shared device provided by the embodiment is to search for and determine that a second communication connection can be established with the target shared device in the networking system of the shared device, and can establish a third communication connection with the target service terminal, including other Sharing an intermediate device of one or more of the device and the public terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device can communicate with the target service terminal through the intermediate device, thereby improving The success rate of information transmission between the shared device and the service terminal improves the user experience while avoiding waste of shared device resources.
图6A是一实施例提供的一种共享设备的组网方法的流程图,如图6A所示,该方法具体包括:FIG. 6A is a flowchart of a networking method of a shared device according to an embodiment. As shown in FIG. 6A, the method specifically includes:
在S610中,检测目标共享设备与目标服务终端之间的第一通信连接。In S610, a first communication connection between the target sharing device and the target service terminal is detected.
在S620中,当第一通信连接通信故障时,搜索中间设备。In S620, when the first communication connection communication fails, the intermediate device is searched.
在S630中,若判断搜索到的设备能够与目标共享设备建立第二通信连接,且搜索到的设备能够与目标服务终端建立第三通信连接,则确定搜索到的设备为中间设备。In S630, if it is determined that the searched device can establish a second communication connection with the target shared device, and the searched device can establish a third communication connection with the target service terminal, it is determined that the searched device is an intermediate device.
可选的,中间设备包括其他服务终端,第二通信连接为远程通信连接,第三通信连接为云端通信连接。Optionally, the intermediate device includes another service terminal, the second communication connection is a remote communication connection, and the third communication connection is a cloud communication connection.
在一实施例中,当目标共享设备搜索到的设备既能够与目标共享设备建立第二通信连接,又能够与目标服务终端建立第三通信连接时,该设备可以作为中间设备。当目标共享设备搜索到的设备满足上述条件时停止搜索,并使目标共享设备和目标服务终端分别与中间设备建立相应的通信连接;否则,目标共享设备需要重新返回搜索。In an embodiment, when the device searched by the target sharing device can establish a second communication connection with the target sharing device and establish a third communication connection with the target service terminal, the device can serve as an intermediate device. When the device searched by the target shared device meets the above conditions, the search is stopped, and the target shared device and the target service terminal respectively establish corresponding communication connections with the intermediate device; otherwise, the target shared device needs to return to the search again.
或者,当目标服务终端搜索到的设备既能够与目标共享设备建立第二通信连接,又能够与目标服务终端建立第三通信连接时,该设备可以作为中间设备。当目标服务终端搜索到的设备满足上述条件时停止搜索,并使目标共享设备和目标服务终端分别与中间设备建立相应的通信连接;否则,目标服务终端需要 重新返回搜索。Alternatively, when the device searched by the target service terminal can establish a second communication connection with the target shared device and establish a third communication connection with the target service terminal, the device can serve as an intermediate device. When the device searched by the target service terminal satisfies the above conditions, the search is stopped, and the target shared device and the target service terminal respectively establish corresponding communication connections with the intermediate device; otherwise, the target service terminal needs to return to the search again.
可选的,共享设备可包括第一通信模块,中间设备可包括第四通信模块和第五通信模块,目标服务终端可包括第一网络接口和第二网络接口。其中第一通信模块、第四通信模块和第一网络接口可以与组网系统中除自身外的其他设备建立远程通信连接,第五通信模块和第二网络接口可以与组网系统中除自身外的其他服务终端建立云端通信连接。中间设备可以包括组网系统中的除了目标服务终端之外的其他服务终端中的至少一个。目标共享设备可通过第一通信模块与中间设备的第四通信模块建立第二通信连接,其中,第二通信连接可为远程通信连接;中间设备可通过第五通信模块与服务终端建立第三通信连接,其中,第三通信连接可为云端通信连接。Optionally, the sharing device may include a first communication module, the intermediate device may include a fourth communication module and a fifth communication module, and the target service terminal may include a first network interface and a second network interface. The first communication module, the fourth communication module, and the first network interface may establish a remote communication connection with other devices in the networking system except the self, and the fifth communication module and the second network interface may be in addition to the networking system. Other service terminals establish cloud communication connections. The intermediate device may include at least one of service terminals other than the target service terminal in the networking system. The target sharing device may establish a second communication connection with the fourth communication module of the intermediate device through the first communication module, where the second communication connection may be a remote communication connection; the intermediate device may establish a third communication with the service terminal through the fifth communication module The connection, wherein the third communication connection is a cloud communication connection.
在S640中,目标共享设备通过中间设备与目标服务终端通信。In S640, the target shared device communicates with the target service terminal through the intermediate device.
以目标共享设备与目标服务终端之间的第一通信连接存在通信故障,且目标服务终端需要向目标共享设备发送下行信息为例,对上述步骤进行具体说明:A communication failure occurs in the first communication connection between the target shared device and the target service terminal, and the target service terminal needs to send the downlink information to the target shared device as an example, and the foregoing steps are specifically described:
当检测到第一通信连接存在通信故障时,也就是,当目标服务终端检测到第一通信连接存在通信故障时,目标服务终端中的第二网络接口可以在组网系统中搜索能够与其建立第三通信连接的设备,若搜索到的设备中的第五通信模块无法与其建立第三通信连接,则目标服务终端返回重新搜索;如果搜索到的设备中的第五通信模块能够与其建立第三通信连接,则可以继续判断搜索到的设备能否与目标共享设备建立第二通信连接,若搜索到的设备中的第四通信模块无法与目标共享设备中的第一通信模块建立第二通信连接,则目标服务终端返回重新搜索;若搜索到的设备中的第四通信模块能够与目标共享设备中的第一通信模块建立第二通信连接,则可以确定该搜索到的设备为中间设备,目标服务终端可以通过第三通信模块、中间设备和第二通信模块向目标共享设备发送下行信息。如图6B所示,图6B为本实施例提供的又一种共享设备的组网方法的流程图,由图可以示出本实施例中目标共享设备、中间设备以及目标服务终端之间的交互关系。When it is detected that there is a communication failure in the first communication connection, that is, when the target service terminal detects that there is a communication failure in the first communication connection, the second network interface in the target service terminal can search in the networking system to be able to establish the same The third communication connection device, if the fifth communication module in the searched device cannot establish a third communication connection with the target communication terminal, the target service terminal returns to re-search; if the fifth communication module in the searched device can establish the third communication with the third communication module The connection may continue to determine whether the searched device can establish a second communication connection with the target shared device, and if the fourth communication module in the searched device cannot establish a second communication connection with the first communication module in the target shared device, Then, the target service terminal returns to re-search; if the fourth communication module in the searched device can establish a second communication connection with the first communication module in the target shared device, it can be determined that the searched device is an intermediate device, and the target service is The terminal can reach the target through the third communication module, the intermediate device, and the second communication module Unlimited device transmits the downlink information. As shown in FIG. 6B, FIG. 6B is a flowchart of another networking method of a shared device according to the embodiment, where the interaction between the target shared device, the intermediate device, and the target service terminal in this embodiment is illustrated. relationship.
在一实施例中,图6A示出了目标服务终端搜索中间设备的情况,可以理解的是,还存在目标共享设备搜索中间设备的情况,由于该过程与目标服务终端搜索中间设备的方案相似,因此,其未在图中示出。In an embodiment, FIG. 6A illustrates a case where the target service terminal searches for the intermediate device. It can be understood that there is also a case where the target shared device searches for the intermediate device, since the process is similar to the scheme in which the target service terminal searches for the intermediate device, Therefore, it is not shown in the figure.
在一实施例中,共享设备可以包括共享自行车或共享电动车等无桩单车, 还可为其他用来资源共享的设备例如共享充电宝等。公共终端可以包括电子车桩、路灯、公交站牌、公园路标、智慧城市中某个固定装置或者可移动的装置等。本实施方式中的电子车桩可为一种室外公共设备,其具体实现方式和结构可与上述实施例中所示的电子车桩类似,此处不再赘述。本实施方式中的目标服务终端可为一种服务器,其具体实现方式和结构可与上述实施例中所示的目标服务终端类似,此处不再赘述。In an embodiment, the sharing device may include a non-pile bicycle such as a shared bicycle or a shared electric vehicle, and may also be other devices for resource sharing such as a shared charging treasure. The public terminal may include an electronic vehicle pile, a street light, a bus stop sign, a park signpost, a fixed device in a smart city, or a movable device. The electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again. The target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
本实施例提供的共享设备的组网方法,通过在共享设备的组网系统中搜索并判断能够与目标共享设备建立第二通信连接,且能够与目标服务终端建立第三通信连接的,包括其他服务终端的中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,目标共享设备可以通过中间设备与目标服务终端进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The networking method of the shared device provided by the embodiment is to search for and determine that a second communication connection can be established with the target shared device in the networking system of the shared device, and can establish a third communication connection with the target service terminal, including other The intermediate device of the service terminal enables the target shared device to communicate with the target service terminal through the intermediate device when the communication connection between the target shared device and the target service terminal has a communication failure, thereby improving information between the shared device and the service terminal. The success rate of delivery improves the user experience while avoiding the waste of shared device resources.
图7A是一实施例提供的一种共享设备的组网方法的流程图,如图7A所示,该方法具体包括:FIG. 7A is a flowchart of a networking method of a shared device according to an embodiment. As shown in FIG. 7A, the method specifically includes:
在S710中,检测目标共享设备与目标服务终端之间的第一通信连接。In S710, a first communication connection between the target sharing device and the target service terminal is detected.
在S720中,当判断所述第一通信连接通信故障时,查询存储的终端标识列表,依次向终端标识列表中的终端发送查询请求,并接收至少一个查询请求响应,在发送查询请求响应的终端中选择一个终端作为中间设备,查询请求响应为能够与目标共享设备建立第二通信连接且能够与目标服务终端建立第三通信连接的终端发送的。In S720, when it is determined that the first communication connection communication is faulty, querying the stored terminal identification list, sequentially sending a query request to the terminal in the terminal identification list, and receiving at least one query request response, in the terminal that sends the query request response One terminal is selected as the intermediate device, and the query request response is sent by a terminal capable of establishing a second communication connection with the target shared device and capable of establishing a third communication connection with the target service terminal.
在一实施例中,所述终端包括组网系统中的除了目标共享设备之外的其他共享设备、公共终端以及除了目标服务终端之外的其他服务终端中的一个。目标共享设备可以包括第一存储单元,目标服务终端可以包括第二存储单元,其中,第一存储单元和第二存储单元可以存储共享设备的组网系统中各个设备的终端标识,也即每个终端都可以有自己唯一的终端标识,且每个终端可以根据需要都预存有其他终端的终端标识。当所述终端为服务终端时,所述终端标识可以包括设备物理信息或其它无物理意义的预设识别标识,其中,设备物理信息可以包括IP地址、VPL路由标签、ports接口编号等;当所述终端为共享设备或中间设备时,所述终端标识可为设备的IMEI号或者蓝牙名称等。此外,为了节省共享设备的存储空间,第一存储单元可以存储共享设备预设距离通信范 围内的各个设备的终端标识,若存在其他需要,可以通过向服务终端发送下载请求进行下载;第二存储单元可以存储与该服务终端作用相关的各个设备的终端标识,若存在其他需要,可以向其他服务终端请求调用。In an embodiment, the terminal includes one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system. The target sharing device may include a first storage unit, and the target service terminal may include a second storage unit, wherein the first storage unit and the second storage unit may store terminal identifiers of respective devices in the networking system of the shared device, that is, each The terminal can have its own unique terminal identifier, and each terminal can pre-store the terminal identifier of other terminals as needed. When the terminal is a service terminal, the terminal identifier may include device physical information or other preset identification identifiers without physical meaning, where the device physical information may include an IP address, a VPL routing label, a ports interface number, and the like; When the terminal is a shared device or an intermediate device, the terminal identifier may be an IMEI number or a Bluetooth name of the device. In addition, in order to save the storage space of the shared device, the first storage unit may store the terminal identifier of each device in the communication range of the shared device preset distance, and if there is other need, the download may be performed by sending a download request to the service terminal; The unit may store the terminal identifiers of the respective devices related to the role of the service terminal, and may request calls to other service terminals if other needs exist.
在一实施例中,当检测到目标共享设备与目标服务终端之间的第一通信连接存在通信故障时,目标共享设备可以通过各自对应的存储单元查询终端标识列表,依次向终端标识列表中的各个终端发送查询请求并接收查询请求响应,其中,查询请求响应可以为能够与目标共享设备建立第二通信连接且能够与目标服务终端建立第三通信连接的终端发送的。在接收到查询请求响应后,目标共享设备可以确定发送查询请求响应的终端为中间设备,其中,若发送查询请求响应的终端存在多个,则可以选择第一个发送查询请求响应的终端作为中间设备,也可以选择与目标共享设备和目标服务终端之间路由最短的终端作为中间设备。In an embodiment, when it is detected that there is a communication failure in the first communication connection between the target sharing device and the target service terminal, the target sharing device may query the terminal identification list through the corresponding storage unit, and sequentially identify the terminal identification list. Each terminal sends a query request and receives a query request response, wherein the query request response may be sent by a terminal capable of establishing a second communication connection with the target shared device and capable of establishing a third communication connection with the target service terminal. After receiving the query request response, the target sharing device may determine that the terminal that sends the query request response is an intermediate device, and if there are multiple terminals that send the query request response, the first terminal that sends the query request response may be selected as the middle. The device may also select the terminal with the shortest route between the target shared device and the target service terminal as the intermediate device.
或者,当检测到目标共享设备与目标服务终端之间的第一通信连接存在通信故障时,目标服务终端可以通过各自对应的存储单元查询终端标识列表,依次向终端标识列表中的各个终端发送查询请求并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备。其中,查询请求响应可以为能够与目标共享设备建立第二通信连接且能够与目标服务终端建立第三通信连接的终端发送的。例如,在接收到第一个查询请求响应后,目标服务终端可以确定发送第一个查询请求响应的终端为中间设备。又例如,若发送查询请求响应的终端存在多个,则可以选择第一个发送查询请求响应的终端作为中间设备,也可以选择与目标共享设备和目标服务终端之间路由最短的终端作为中间设备。Alternatively, when detecting that there is a communication failure in the first communication connection between the target shared device and the target service terminal, the target service terminal may query the terminal identification list through the corresponding storage unit, and sequentially send the query to each terminal in the terminal identification list. At least one query request response is requested and received, and one terminal is selected as the intermediate device in the terminal that sends the query request response. The query request response may be sent by a terminal that can establish a second communication connection with the target shared device and can establish a third communication connection with the target service terminal. For example, after receiving the first query request response, the target service terminal may determine that the terminal that sent the first query request response is an intermediate device. For another example, if there are multiple terminals that send the query request response, the first terminal that sends the query request response may be selected as the intermediate device, or the terminal with the shortest route between the target shared device and the target service terminal may be selected as the intermediate device. .
可选的,查询请求响应中包括投票信息,该投票信息中可以包括该设备的权重信息。目标共享设备或目标服务终端可以根据接收到的所有查询请求响应中的投票信息,可以确定发送查询请求响应的各终端的权重,例如可以选择权重最高的终端作为中间设备。上述权重最高的终端例如可以是各终端中的电量信息、通信状态信息中至少一个条件最优或者综合条件最优的终端。具体例如目标共享设备,当检测到第一通信连接存在故障时,可以是一个一个的向周边的其他共享设备(车或者桩)发送查询请求。相关技术中,目标共享设备无论是否存在通讯故障,均会向周边的其他共享设备广播信息(包括基本信息,如 终端标识信息,该类终端标识信息能够被其他共享设备识别)。因此,当目标共享设备与后台通信异常后,该目标共享设备则向周围的共享设备逐一发送查询请求。可选的,目标共享设备可通过蓝牙通讯的方式向周围的共享设备发送查询请求,当接收到周边其他共享设备逐个回复的查询请求响应后,目标共享设备则可选择权重最高的共享设备作为中间设备。Optionally, the query request response includes voting information, where the voting information may include weight information of the device. The target sharing device or the target service terminal may determine the weight of each terminal that sends the query request response according to the voting information in all the query request responses received. For example, the terminal with the highest weight may be selected as the intermediate device. The terminal having the highest weight may be, for example, a terminal having at least one of the power amount information and the communication state information in each terminal being optimal or having the best comprehensive condition. Specifically, for example, the target sharing device may send a query request to other shared devices (cars or stubs) in the vicinity one by one when detecting that there is a failure in the first communication connection. In the related art, the target shared device broadcasts information (including basic information, such as terminal identification information, which can be recognized by other shared devices) to other shared devices in the vicinity regardless of whether there is a communication failure. Therefore, when the target shared device communicates with the background abnormally, the target shared device sends a query request to the surrounding shared device one by one. Optionally, the target sharing device may send a query request to the surrounding shared device by means of Bluetooth communication, and after receiving the query request response from the neighboring shared devices, the target shared device may select the shared device with the highest weight as the middle. device.
其中,终端包括组网系统中的除了目标共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的一个。The terminal includes one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system.
在S730中,目标共享设备通过中间设备与目标服务终端通信。In S730, the target shared device communicates with the target service terminal through the intermediate device.
以目标共享设备需要向目标服务终端发送上行信息为例,对上述步骤进行具体说明:The above steps are specifically described as an example where the target shared device needs to send uplink information to the target service terminal.
当检测到目标共享设备与目标服务终端之间的第一通信连接存在通信故障时,目标共享设备可通过第一存储单元查询终端标识列表,其中,标识列表中包括组网系统中其他共享设备、公共终端、其他服务终端的标识信息。目标共享设备获取到终端标识列表后,可以依次向终端标识列表中的各个终端发送查询请求并接收查询请求响应。目标共享设备在获取到查询请求响应后,可以按照响应时间最短或路由长度最短的原则,从发送查询请求响应的各终端中择优选择其中一个作为中间设备。目标共享设备即可通过中间设备向目标服务终端发送上行信息,其中,若中间设备是组网系统中的其他共享设备、公共终端中的一个或多个,则目标共享设备与中间设备可以建立近距离通信连接,目标服务终端与中间设备可以建立远程通信连接;若中间设备是组网系统中的除了所述目标服务终端之外的其他服务终端中的至少一个时,则目标共享设备与中间设备可以建立远程通信连接,目标服务终端与中间设备可以建立云端通信连接。When detecting that there is a communication failure in the first communication connection between the target shared device and the target service terminal, the target shared device may query the terminal identifier list by using the first storage unit, where the identifier list includes other shared devices in the networking system, Identification information of public terminals and other service terminals. After obtaining the terminal identifier list, the target sharing device may sequentially send a query request to each terminal in the terminal identifier list and receive a query request response. After obtaining the response to the query request, the target shared device may select one of the terminals that send the query request response as the intermediate device according to the principle of the shortest response time or the shortest route length. The target shared device can send uplink information to the target service terminal through the intermediate device, wherein if the intermediate device is one or more of other shared devices and public terminals in the networking system, the target shared device and the intermediate device can establish near a distance communication connection, the target service terminal and the intermediate device may establish a remote communication connection; if the intermediate device is at least one of the service terminals other than the target service terminal in the networking system, the target shared device and the intermediate device A remote communication connection can be established, and the target service terminal and the intermediate device can establish a cloud communication connection.
再以目标服务终端需要向目标共享设备发送下行信息为例,对上述步骤进行具体说明:Then, the target service terminal needs to send downlink information to the target shared device as an example, and the foregoing steps are specifically described:
当检测到目标共享设备与目标服务终端之间的第一通信连接存在通信故障时,目标服务终端可以通过第二存储单元查询组网系统中其他共享设备、公共终端、其他服务终端的标识列表,发送查询请求并接收查询请求响应。目标服务终端在获取到查询请求响应后,可以按照响应时间最短或路由长度最短的原则,从发送查询请求响应的各终端中择优选择其中一个作为中间设备。目标服务终端即可通过中间设备向目标共享设备发送上下行信息,其中,若中间设备 是组网系统中的其他共享设备、公共终端中的一个或多个,则目标共享设备与中间设备可以建立近距离通信连接,目标服务终端与中间设备可以建立远程通信连接;若中间设备是组网系统中的其他服务终端,则目标共享设备与中间设备可以建立远程通信连接,目标服务终端与中间设备可以建立云端通信连接。When detecting that there is a communication failure in the first communication connection between the target shared device and the target service terminal, the target service terminal may query the identifier list of other shared devices, public terminals, and other service terminals in the networking system through the second storage unit. Send a query request and receive a query request response. After obtaining the response to the query request, the target service terminal may select one of the terminals that send the query request response as the intermediate device according to the principle of the shortest response time or the shortest route length. The target service terminal can send the uplink and downlink information to the target shared device through the intermediate device, where the target shared device and the intermediate device can be established if the intermediate device is one or more of other shared devices and public terminals in the networking system. The short-range communication connection, the target service terminal and the intermediate device can establish a remote communication connection; if the intermediate device is another service terminal in the networking system, the target shared device and the intermediate device can establish a remote communication connection, and the target service terminal and the intermediate device can Establish a cloud communication connection.
此外,为了提高信息传输效率,若目标服务终端中的第二存储单元中存储有目标共享设备的位置信息,则可以通过该位置信息获取该位置附近设定距离范围内的各设备的标识列表,并依次向该标识列表中的各个终端发送查询请求并接收查询请求响应,以获取用于通信的中间设备。若目标服务终端中的第二存储单元中没有存储目标共享设备的位置信息,则目标服务终端可以先通过与其他存储有目标共享设备位置信息的服务终端建立通信连接,来获取该位置附近设定距离范围内的各设备的标识列表,在获取到该标识列表后,目标服务终端可以依次向该标识列表中的各个终端发送查询请求并接收查询请求响应,以获取用于通信的中间设备。如图7B所示,图7B为本实施例提供的又一种共享设备的组网方法的流程图,由图可以示出本实施例中目标共享设备、中间设备以及目标服务终端之间的交互关系。In addition, in order to improve the information transmission efficiency, if the location information of the target shared device is stored in the second storage unit in the target service terminal, the location information may be used to obtain the identifier list of each device within the set distance range near the location. And sequentially sending a query request to each terminal in the identifier list and receiving a query request response to obtain an intermediate device for communication. If the location information of the target shared device is not stored in the second storage unit in the target service terminal, the target service terminal may first establish a communication connection with another service terminal storing the target shared device location information to obtain the location near the location. After obtaining the identifier list, the target service terminal may sequentially send a query request to each terminal in the identifier list and receive a query request response to obtain an intermediate device for communication. As shown in FIG. 7B, FIG. 7B is a flowchart of still another method for networking a shared device according to the embodiment, where the interaction between the target shared device, the intermediate device, and the target service terminal in this embodiment is illustrated. relationship.
在一实施例中,图7A示出了目标共享设备确定中间设备的情况,可以理解的是,还存在目标服务终端确定中间设备的情况,由于该过程与目标共享设备确定中间设备的方案相似,因此,其未在图中示出。In an embodiment, FIG. 7A illustrates a case where the target sharing device determines the intermediate device, and it can be understood that there is also a case where the target serving terminal determines the intermediate device, since the process is similar to the scenario in which the target shared device determines the intermediate device, Therefore, it is not shown in the figure.
在一实施例中,共享设备可以包括共享自行车或共享电动车等无桩单车,还可为其他用来资源共享的设备例如共享充电宝等;公共终端可以包括电子车桩、路灯、公交站牌、公园路标或智慧城市中某个固定装置或者可移动的装置等。本实施方式中的电子车桩可以是一种室外公共设备,其具体实现方式和结构可与上述实施例中所示的电子车桩类似,此处不再赘述。本实施方式中的目标服务终端可以是一种服务器,其具体实现方式和结构可与上述实施例中所示的目标服务终端类似,此处不再赘述。In an embodiment, the shared device may include a shared bicycle or a shared electric vehicle, such as a shared bicycle, and may also be used for other resource sharing devices such as a shared charging treasure; the public terminal may include an electronic vehicle pile, a street light, and a bus stop. , park signposts or a fixed device or movable device in a smart city. The electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again. The target service terminal in this embodiment may be a server, and the specific implementation and structure may be similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
本实施例提供的共享设备的组网方法,通过在目标共享设备或目标服务终端中设置存储单元,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,可以通过查询存储单元中的终端标识列表,并依次向终端标识列表中的终端发送查询请求的方式来确定中间设备,使得中间设备的选择方式多样化,同时提高了共享设备与服务终端之间的信息传递成功率,提升了用户体 验,避免了共享设备资源的浪费。The networking method of the shared device provided by the embodiment may be configured by setting a storage unit in the target shared device or the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the storage unit may be queried. The terminal identifier list is in turn, and the method for sending the query request to the terminal in the terminal identifier list is used to determine the intermediate device, so that the selection manner of the intermediate device is diversified, and the success rate of information transmission between the shared device and the service terminal is improved. Improve user experience and avoid waste of shared device resources.
图8A是一实施例提供的一种共享设备的组网方法的流程图,如图8A所示,该方法具体包括:FIG. 8A is a flowchart of a networking method of a shared device according to an embodiment. As shown in FIG. 8A, the method specifically includes:
在S810中,检测目标共享设备与目标服务终端之间的第一通信连接。In S810, a first communication connection between the target sharing device and the target service terminal is detected.
在S820中,当判断第一通信连接通信故障时,广播查询请求并接收至少一个查询请求响应,在发送查询请求响应的终端中选择一个终端作为中间设备,查询请求响应为能够与目标共享设备建立第二通信连接且能够与目标服务终端建立第三通信连接的终端发送的。In S820, when it is determined that the first communication connection communication is faulty, the query request is broadcasted and at least one query request response is received, and one terminal is selected as an intermediate device in the terminal that sends the query request response, and the query request response is established with the target shared device. The second communication connection and can be sent by the terminal that establishes the third communication connection with the target service terminal.
可选的,所述终端包括所述组网系统中的除了所述目标服务终端之外的其他服务终端、公共终端以及除了所述目标共享设备之外的其他共享设备中的一个。Optionally, the terminal includes one of a service terminal other than the target service terminal, a public terminal, and other shared devices except the target shared device in the networking system.
在一实施例中,目标共享设备可以包括第一广播单元,其中,第一广播单元可以广播查询请求信息。当检测到目标共享设备与目标服务终端之间的第一通信连接存在通信故障时,目标共享设备可以通过第一广播单元广播查询请求并接收至少一个查询请求响应,其中,查询请求响应可为能够与目标共享设备建立第二通信连接且能够与目标服务终端建立第三通信连接的终端发送的。在接收到查询请求响应后,目标共享设备可以确定发送查询请求响应的终端为中间设备,其中,若发送查询请求响应的终端存在多个,则可以选择第一个发送查询请求响应的终端作为中间设备,也可以选择与目标共享设备和目标服务终端之间路由最短的终端作为中间设备,例如其他共享设备、公共终端、其他服务终端。其中,终端包括组网系统中的除了目标服务终端之外的其他服务终端、公共终端以及除了目标共享设备之外的其他共享设备中的一个。In an embodiment, the target sharing device may include a first broadcast unit, wherein the first broadcast unit may broadcast query request information. When detecting that there is a communication failure in the first communication connection between the target sharing device and the target service terminal, the target sharing device may broadcast the query request through the first broadcast unit and receive at least one query request response, wherein the query request response may be capable of A terminal that establishes a second communication connection with the target sharing device and is capable of establishing a third communication connection with the target service terminal. After receiving the query request response, the target sharing device may determine that the terminal that sends the query request response is an intermediate device, and if there are multiple terminals that send the query request response, the first terminal that sends the query request response may be selected as the middle. The device may also select the terminal with the shortest route between the target shared device and the target service terminal as an intermediate device, such as other shared devices, public terminals, and other service terminals. The terminal includes one of a service terminal other than the target service terminal, a public terminal, and other shared devices other than the target shared device in the networking system.
在一实施例中,目标服务终端可以包括第二广播单元,其中,第二广播单元可以广播查询请求信息。例如,还可以设置为当判断第一通信连接通信故障时,目标服务终端广播查询请求并接收至少一个查询请求响应,在发送查询请求响应的终端中选择一个作为中间设备,查询请求响应为能够与目标共享设备建立第二通信连接且能够与目标服务终端建立第三通信连接的终端发送的。其中,终端包括组网系统中的除了目标服务终端之外的其他服务终端、公共终端以及除了目标共享设备之外的其他共享设备中的一个。In an embodiment, the target serving terminal may include a second broadcast unit, wherein the second broadcast unit may broadcast query request information. For example, when the first communication connection communication failure is determined, the target service terminal broadcasts the query request and receives at least one query request response, and selects one of the terminals that send the query request response as the intermediate device, and the query request response is The target shared device establishes a second communication connection and is capable of establishing a third communication connection with the target service terminal. The terminal includes one of a service terminal other than the target service terminal, a public terminal, and other shared devices other than the target shared device in the networking system.
在S830中,目标共享设备通过中间设备与目标服务终端通信。In S830, the target shared device communicates with the target service terminal through the intermediate device.
以目标共享设备需要向目标服务终端发送上行信息为例,对上述步骤进行具体说明:The above steps are specifically described as an example where the target shared device needs to send uplink information to the target service terminal.
当检测到目标共享设备与目标服务终端之间的第一通信连接存在通信故障时,目标共享设备可以通过第一广播单元广播查询请求并接收至少一个查询请求响应。目标共享设备在获取到查询请求响应后,按照响应时间最短或路由长度最短的原则,可以从发送查询请求响应的各终端中择优选择其中一个作为中间设备。目标共享设备即可通过中间设备向目标服务终端发送上行信息,其中,若中间设备是组网系统中的其他共享设备、公共终端中的一个或多个,则目标共享设备与中间设备可以建立近距离通信连接,目标服务终端与中间设备可以建立远程通信连接;若中间设备是组网系统中的其他服务终端,则目标共享设备与中间设备可以建立远程通信连接,目标服务终端与中间设备可以建立云端通信连接。如图8B所示,图8B为本实施例提供的又一种共享设备的组网方法的流程图,由图可以示出本实施例中目标共享设备、中间设备以及目标服务终端之间的交互关系。When detecting that there is a communication failure in the first communication connection between the target sharing device and the target service terminal, the target sharing device may broadcast the query request through the first broadcast unit and receive at least one query request response. After obtaining the response to the query request, the target shared device may select one of the terminals that send the query request response as the intermediate device according to the principle of the shortest response time or the shortest route length. The target shared device can send uplink information to the target service terminal through the intermediate device, wherein if the intermediate device is one or more of other shared devices and public terminals in the networking system, the target shared device and the intermediate device can establish near The distance communication connection, the target service terminal and the intermediate device can establish a remote communication connection; if the intermediate device is another service terminal in the networking system, the target shared device and the intermediate device can establish a remote communication connection, and the target service terminal and the intermediate device can be established. Cloud communication connection. As shown in FIG. 8B, FIG. 8B is a flowchart of another networking method of a shared device according to the embodiment, where the interaction between the target shared device, the intermediate device, and the target service terminal in this embodiment may be illustrated. relationship.
在一实施例中,图8A示出了目标共享设备确定中间设备的情况,可以理解的是,还存在目标服务终端确定中间设备的情况,由于该过程与目标共享设备确定中间设备的方案相似,因此,其未在图中示出。In an embodiment, FIG. 8A illustrates a case where the target sharing device determines the intermediate device, and it can be understood that there is also a case where the target serving terminal determines the intermediate device, since the process is similar to the scenario in which the target shared device determines the intermediate device, Therefore, it is not shown in the figure.
在一实施例中,共享设备可以包括共享自行车或共享电动车等无桩单车,还可为其他用来资源共享的设备例如共享充电宝等;公共终端可以包括电子车桩、路灯、公交站牌、公园路标或智慧城市中某个固定装置或者可移动的装置等。本实施方式中的电子车桩可以是一种室外公共设备,其具体实现方式和结构可与上述实施例中所示的电子车桩类似,此处不再赘述。本实施方式中的目标服务终端可以是一种服务器,其具体实现方式和结构与上述实施例中所示的目标服务终端类似,此处不再赘述。In an embodiment, the shared device may include a shared bicycle or a shared electric vehicle, such as a shared bicycle, and may also be used for other resource sharing devices such as a shared charging treasure; the public terminal may include an electronic vehicle pile, a street light, and a bus stop. , park signposts or a fixed device or movable device in a smart city. The electronic vehicle pile in this embodiment may be an outdoor public device, and the specific implementation and structure thereof may be similar to the electronic vehicle pile shown in the above embodiment, and details are not described herein again. The target service terminal in this embodiment may be a server, and the specific implementation and structure thereof are similar to the target service terminal shown in the foregoing embodiment, and details are not described herein again.
本实施例提供的共享设备的组网方法,通过在目标共享设备或目标服务终端中设置广播单元,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,可以通过广播单元广播查询请求并接收至少一个查询请求响应的方式来确定中间设备,使得中间设备的选择方式多样化,同时提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,避免了共享设备资源的浪费。The networking method of the shared device provided by the embodiment, by setting a broadcast unit in the target shared device or the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the broadcast unit can broadcast Querying the request and receiving the at least one query request response manner to determine the intermediate device, so that the selection mode of the intermediate device is diversified, and the information transmission success rate between the shared device and the service terminal is improved, the user experience is improved, and the shared device is avoided. Waste of resources.
在此需要说明的是,上述各实施例不仅适用于共享设备与服务终端之间的通信,还适用于共享设备与公共终端、公共终端与服务终端、共享设备与共享设备、公共终端与公共终端、服务终端与服务终端之间的通信。It should be noted that the foregoing embodiments are applicable not only to the communication between the shared device and the service terminal, but also to the shared device and the public terminal, the public terminal and the service terminal, the shared device and the shared device, the public terminal, and the public terminal. Communication between the service terminal and the service terminal.
图9是一实施例提供的一种共享设备的组网系统的结构示意图,如图9所述,该系统包括目标共享设备910、中间共享设备920和目标公共终端930,其中,FIG. 9 is a schematic structural diagram of a networking system of a shared device according to an embodiment. As shown in FIG. 9, the system includes a target shared device 910, an intermediate shared device 920, and a target public terminal 930.
在通信连接正常的情况下,目标共享设备910与目标公共终端930通过第四通信连接通信,第四通信连接为近距离通信连接。在本实施例中,由公共终端而非服务终端作为目标设备,因此本实施例提及的第四通信连接也作为目标共享设备910与目标公共终端930之间的第一通信连接。目标公共终端930设置为对目标共享设备910进行管理和控制中的至少一项。例如,目标公共终端930可以为目标共享设备910的闭锁、解锁以及报警等事件触发提供决策、为目标共享设备910的调配提供策略、对目标共享设备910的地理位置信息进行管理以及对目标共享设备910的广告信息进行管理等。例如当目标共享设备910具备锁定功能时,目标公共终端930可以控制目标共享设备910进行解锁。例如,以目标共享设备910是无桩单车,目标公共终端930为电子车桩,无桩单车与电子车桩之间的通信连接为第四通信连接为例进行具体说明,当用户需要使用无桩单车时,电子车桩可以根据用户的请求生成解锁信息,并通过第四通信连接发送给无桩单车,无桩单车在接收到解锁信息后,执行相应的解锁动作,以便用户使用。也即,电子车桩可以为通信范围内的无桩单车提供管理和控制服务。In the case where the communication connection is normal, the target shared device 910 communicates with the target public terminal 930 via the fourth communication connection, and the fourth communication connection is a short-range communication connection. In the present embodiment, the public terminal instead of the service terminal is used as the target device, so the fourth communication connection mentioned in this embodiment also serves as the first communication connection between the target shared device 910 and the target public terminal 930. The target public terminal 930 is set to at least one of management and control of the target shared device 910. For example, the target public terminal 930 can provide a decision for event triggering such as blocking, unlocking, and alarming of the target sharing device 910, provide a policy for provisioning of the target shared device 910, manage geographic location information of the target shared device 910, and manage the target shared device. 910 advertising information is managed. For example, when the target sharing device 910 has a locking function, the target public terminal 930 can control the target sharing device 910 to unlock. For example, the target sharing device 910 is a pileless bicycle, the target public terminal 930 is an electronic vehicle pile, and the communication connection between the pileless bicycle and the electronic vehicle pile is a fourth communication connection as an example, when the user needs to use no pile. When the bicycle is in the vehicle, the electronic vehicle pile can generate the unlocking information according to the request of the user, and send the unlocking information to the non-pile bicycle through the fourth communication connection, and after receiving the unlocking information, the non-pile bicycle performs the corresponding unlocking action for the user to use. That is, the electronic vehicle pile can provide management and control services for the pile-free bicycles within the communication range.
目标共享设备910在与目标公共终端930进行信息传输的过程中,除了可以直接与目标公共终端930建立第四通信连接进行通信外,还可以借助组网系统中的中间共享设备920间接进行通信。在一实施例中,中间共享设备920与目标共享设备910可以通过第五通信连接通信,中间共享设备920与目标公共终端930可以通过第六通信连接通信,其中,中间共享设备920可以为组网系统中的除了目标共享设备之外的其他共享设备中的至少一个。第五通信连接和第六通信连接均为近距离通信连接。在本实施例中,第五通信连接也作为中间共享设备920与目标共享设备910之间的第二通信连接,第六通信连接也作为中间共享设备920与目标公共终端930之间的第三通信连接In the process of transmitting information with the target public terminal 930, the target sharing device 910 can communicate with the target public terminal 930 by directly establishing a fourth communication connection, and can also communicate indirectly through the intermediate shared device 920 in the networking system. In an embodiment, the intermediate sharing device 920 and the target sharing device 910 can communicate through the fifth communication connection, and the intermediate sharing device 920 and the target public terminal 930 can communicate through the sixth communication connection, wherein the intermediate sharing device 920 can be a network. At least one of the shared devices other than the target shared device in the system. The fifth communication connection and the sixth communication connection are both short-range communication connections. In the present embodiment, the fifth communication connection also serves as a second communication connection between the intermediate shared device 920 and the target shared device 910, and the sixth communication connection also serves as the third communication between the intermediate shared device 920 and the target public terminal 930. connection
在一实施例中,共享设备可以包括共享自行车或共享电动车等无桩单车,还可为其他用来资源共享的设备例如共享充电宝等;公共终端可以包括电子车桩、路灯、公交站牌、公园路标、智慧城市中某个固定装置或者可移动的装置等。In an embodiment, the shared device may include a shared bicycle or a shared electric vehicle, such as a shared bicycle, and may also be used for other resource sharing devices such as a shared charging treasure; the public terminal may include an electronic vehicle pile, a street light, and a bus stop. , park signposts, a fixed device or a movable device in a smart city.
本实施方式中的电子车桩可为一种室外公共设备,例如可以是一个基于电子识别的虚拟停车区域,在公共场所配备电子车桩是一种对目前无桩单车进行规范管理的举措之一。由于电子车桩为固定装置,其可以配备稳定充足的电力,例如可以由市电供电,或者太阳能供电。其功能模块与无桩单车内功能模块类似,例如也具备近距离通讯模块、远距离通信模块、GPS定位模块等。其通信功能良好,且具有控制和管理功能模块中的至少一项。控制和管理功能模块中的至少一项可以为处理单线业务的服务器或实现该功能的模块,例如可以为目标共享设备的解锁以及报警等事件触发提供决策、可以为目标共享设备的调配提供策略、可以对目标共享设备的地理位置信息进行管理、可以对目标共享设备的广告信息进行数据管理、以及可以对用户的骑行进行计费数据管理的服务器或模块。The electronic vehicle pile in the embodiment may be an outdoor public device, for example, may be a virtual parking area based on electronic identification, and the electronic vehicle pile in a public place is one of the measures for standard management of the current pile-free bicycle. . Since the electronic vehicle pile is a fixed device, it can be equipped with a stable and sufficient power, for example, can be powered by a commercial power source or solar power. The function module is similar to the function module in the pileless bicycle. For example, it also has a short-range communication module, a long-distance communication module, and a GPS positioning module. The communication function is good, and at least one of the control and management function modules is provided. At least one of the control and management function modules may be a server that processes the single-line service or a module that implements the function, for example, may provide a decision for event triggering such as unlocking of the target shared device and an alarm, and may provide a policy for the deployment of the target shared device, A server or module that can manage geographic location information of the target shared device, can perform data management on the advertising information of the target shared device, and can perform charging data management for the user's riding.
当目标共享设备910与目标公共终端930之间的第四通信连接存在通信故障时,目标共享设备910可以通过第二通信连接、中间共享设备920以及第三通信连接与目标公共终端930通信。第四通信连接存在通信故障可以为其通信链路发生故障,例如蓝牙连接中断,socket连接不上(若共享设备跟公共终端通过socket连接),也可以为其他链路发生故障而导致通信故障这种结果。目标共享设备910可以通过第四通信连接、中间共享设备920和第五通信连接与目标公共终端930进行通信。When there is a communication failure of the fourth communication connection between the target sharing device 910 and the target public terminal 930, the target sharing device 910 can communicate with the target public terminal 930 through the second communication connection, the intermediate sharing device 920, and the third communication connection. If there is a communication failure in the fourth communication connection, the communication link may be faulty. For example, the Bluetooth connection is interrupted, the socket connection is not connected (if the shared device is connected to the public terminal through the socket), and the communication failure may occur due to the failure of other links. Kind of result. The target sharing device 910 can communicate with the target public terminal 930 through the fourth communication connection, the intermediate shared device 920, and the fifth communication connection.
本实施例提供的共享设备的组网系统,由目标公共终端为目标共享终端提供管理和控制,通过在目标共享设备与目标公共终端之间设置中间共享设备,使得当目标共享设备与目标公共终端之间的通信连接存在通信故障时,目标共享设备可以通过中间共享设备与目标公共终端进行通信,提高了共享设备与公共终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。In the networking system of the shared device provided by the embodiment, the target public terminal provides management and control for the target shared terminal, and the intermediate shared device is set between the target shared device and the target public terminal, so that the target shared device and the target public terminal are When there is a communication failure between the communication connection, the target shared device can communicate with the target public terminal through the intermediate shared device, which improves the information transmission success rate between the shared device and the public terminal, improves the user experience, and avoids the shared device. Waste of resources.
图10是一实施例提供的一种服务终端的结构示意图,如图10所述,该服务终端包括第二存储单元1100和第六通信模块1200。FIG. 10 is a schematic structural diagram of a service terminal according to an embodiment. As shown in FIG. 10, the service terminal includes a second storage unit 1100 and a sixth communication module 1200.
本实施例中的服务终端可以为上述实施例中的任意一个服务终端或任意一个目标服务终端。第二存储单元1100中至少存储有服务终端所在共享终端组网系统中各共享设备和其他服务终端的终端标识中的至少一项。可选的,第二存储单元1100中还可以存储有共享终端组网系统中各公共终端的终端标识。The service terminal in this embodiment may be any one of the foregoing service terminals or any one of the target service terminals. The second storage unit 1100 stores at least one of the shared device and the terminal identifier of the other service terminal in the shared terminal networking system where the service terminal is located. Optionally, the second storage unit 1100 may further store a terminal identifier of each public terminal in the shared terminal networking system.
第六通信模块1200可以设置为与服务终端所在共享终端组网系统中的其他服务终端、共享终端和公共终端进行通信,例如其可以为一种网络接口。The sixth communication module 1200 can be configured to communicate with other service terminals, shared terminals, and public terminals in the shared terminal networking system where the service terminal is located, for example, it can be a network interface.
由于服务终端位于云端,其存储能力很强,因此在网络中的所有服务终端中都可以存储有网络中所有终端的标识,这样便于服务终端对网络中的各终端进行控制和管理,也便于网络中的服务终端在出现故障时进行备份管理和控制中的至少一项。Because the service terminal is located in the cloud, its storage capacity is very strong. Therefore, all the service terminals in the network can store the identifiers of all the terminals in the network, so that the service terminal can control and manage each terminal in the network, and is also convenient for the network. The service terminal in the middle performs at least one of backup management and control in the event of a failure.
图11是一实施例提供的一种共享设备的结构示意图,如图11所述,该共享设备包括检测模块1101和通信模块1102。FIG. 11 is a schematic structural diagram of a shared device according to an embodiment. As shown in FIG. 11 , the shared device includes a detecting module 1101 and a communication module 1102.
检测模块1101,设置为检测与目标服务终端之间的第一通信连接;The detecting module 1101 is configured to detect a first communication connection with the target service terminal;
通信模块1102,设置为当检测到所述第一通信连接发生通信故障时,通过中间设备与所述目标服务终端通信;The communication module 1102 is configured to communicate with the target service terminal through the intermediate device when detecting that the first communication connection has a communication failure;
可选的,所述共享设备与所述中间设备通过第二通信连接通信,所述中间设备与所述目标服务终端通过第三通信连接通信,所述中间设备包括共享设备所在的组网系统中的除了所述共享设备之外的其他共享设备、公共终端、以及除了所述目标服务终端之外的其他服务终端中的至少一个。Optionally, the sharing device communicates with the intermediate device by using a second communication connection, and the intermediate device communicates with the target service terminal by using a third communication connection, where the intermediate device includes a networking system where the shared device is located. At least one of a shared device other than the shared device, a public terminal, and other service terminals other than the target service terminal.
可选的,所述共享设备还包括:搜索模块1103。Optionally, the sharing device further includes: a searching module 1103.
搜索模块1103,设置为:在检测到所述第一通信连接发生通信故障之后,通过所述中间设备与所述目标服务终端通信之前,搜索所述中间设备;若搜索到的设备能够与所述共享设备建立所述第二通信连接,且所述搜索到的设备能够与所述目标服务终端建立所述第三通信连接,则确定搜索到的设备为所述中间设备。The searching module 1103 is configured to: after detecting that a communication failure occurs in the first communication connection, searching for the intermediate device before the intermediate device communicates with the target service terminal; if the searched device is capable of The shared device establishes the second communication connection, and the searched device is capable of establishing the third communication connection with the target service terminal, and then determining that the searched device is the intermediate device.
可选的,所述第一通信连接为远程通信连接,Optionally, the first communication connection is a remote communication connection,
当所述中间设备包括所述组网系统中的除了所述共享设备之外的其他共享设备、公共终端中的至少一个时,所述第二通信连接为近距离通信连接,且所述第三通信连接为远程通信连接;When the intermediate device includes at least one of the shared device and the public terminal other than the shared device in the networking system, the second communication connection is a short-range communication connection, and the third The communication connection is a remote communication connection;
当所述中间设备包括所述组网系统中的除了所述目标服务终端之外的其他 服务终端中的至少一个时,所述第二通信连接为远程通信连接,且所述第三通信连接为云端通信连接。When the intermediate device includes at least one of the other service terminals except the target service terminal in the networking system, the second communication connection is a remote communication connection, and the third communication connection is Cloud communication connection.
可选的,所述搜索模块1103包括:存储单元1104和查询确定单元1105。Optionally, the search module 1103 includes: a storage unit 1104 and a query determining unit 1105.
存储单元1104,设置为存储所述组网系统中的其他共享设备、公共终端以及服务终端的终端标识;The storage unit 1104 is configured to store other shared devices in the networking system, a public terminal, and a terminal identifier of the service terminal;
查询确定单元1105,设置为:查询存储的终端标识列表,依次向所述终端标识列表中的终端发送查询请求,并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的一个。The query determining unit 1105 is configured to: query the stored terminal identifier list, send a query request to the terminal in the terminal identifier list, and receive at least one query request response, and select a terminal in the terminal that sends the query request response. As the intermediate device, the query request response is sent by a terminal capable of establishing the second communication connection with the shared device and capable of establishing the third communication connection with the target service terminal; wherein the terminal And including one of the shared device other than the shared device, the public terminal, and other service terminals other than the target service terminal in the networking system.
可选的,所述搜索模块1103还包括:广播单元1106。Optionally, the searching module 1103 further includes: a broadcasting unit 1106.
广播单元1106,设置为:广播查询请求并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的一个。The broadcast unit 1106 is configured to: broadcast a query request and receive at least one query request response, select one terminal as the intermediate device in the terminal that sends the query request response, and the query request response is capable of establishing with the shared device The second communication connection and can be sent by the terminal that establishes the third communication connection with the target service terminal; wherein the terminal includes other shared devices other than the shared device in the networking system. One of a public terminal and other service terminals other than the target service terminal.
本实施例提供了一种共享设备,通过在共享设备的组网系统中搜索并判断能够与目标共享设备建立第二通信连接,且能够与目标服务终端建立第三通信连接的,包括其他共享设备、公共终端中的一个或多个的中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,目标共享设备可以通过中间设备与目标服务终端进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The embodiment provides a sharing device, which can search for and establish a second communication connection with the target shared device in the networking system of the shared device, and can establish a third communication connection with the target service terminal, including other shared devices. And an intermediate device of one or more of the public terminals, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device can communicate with the target service terminal through the intermediate device, thereby improving the shared device. The success rate of information transmission with the service terminal improves the user experience while avoiding the waste of shared device resources.
图12是一实施例提供的一种服务终端的结构示意图,如图12所述,该服务终端包括检测模块1201和通信模块1202。FIG. 12 is a schematic structural diagram of a service terminal according to an embodiment. As shown in FIG. 12, the service terminal includes a detection module 1201 and a communication module 1202.
检测模块1201,设置为检测与目标共享设备之间的第一通信连接;The detecting module 1201 is configured to detect a first communication connection with the target sharing device;
通信模块1202,设置为当检测到所述第一通信连接发生通信故障时,通过中间设备与所述目标共享设备通信;The communication module 1202 is configured to communicate with the target shared device through the intermediate device when detecting that the first communication connection has a communication failure;
其中,所述中间设备与所述目标共享设备建立第二通信连接通信,所述中间设备与所述服务终端建立第三通信连接通信,所述中间设备包括所述服务终端所在的组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端以及除了所述服务终端之外的其他服务终端中的至少一个。The intermediate device establishes a second communication connection communication with the target shared device, and the intermediate device establishes a third communication connection communication with the service terminal, where the intermediate device includes a network system in which the service terminal is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the service terminal.
本实施例提供了一种服务终端,通过在共享设备的组网系统中搜索并判断能够与目标共享设备建立第二通信连接,且能够与目标服务终端建立第三通信连接的,包括其他共享设备、公共终端中的一个或多个的中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,目标共享设备可以通过中间设备与目标服务终端进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The embodiment provides a service terminal that searches for and determines that a second communication connection can be established with the target shared device in the networking system of the shared device, and can establish a third communication connection with the target service terminal, including other shared devices. And an intermediate device of one or more of the public terminals, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device can communicate with the target service terminal through the intermediate device, thereby improving the shared device. The success rate of information transmission with the service terminal improves the user experience while avoiding the waste of shared device resources.
本实施例还提供一种包含计算机可执行指令的存储介质,所述计算机可执行指令在由计算机处理器执行时配置为执行一种共享设备的组网方法,该方法包括:The embodiment further provides a storage medium comprising computer executable instructions, which when executed by a computer processor, are configured to perform a networking method of a shared device, the method comprising:
检测目标共享设备与目标服务终端之间的第一通信连接;Detecting a first communication connection between the target shared device and the target service terminal;
当确定所述第一通信连接发生通信故障时,所述目标共享设备通过中间设备与所述目标服务终端通信;When it is determined that the first communication connection has a communication failure, the target shared device communicates with the target service terminal through the intermediate device;
其中,所述目标共享设备与所述中间设备通过第二通信连接通信,所述中间设备与所述目标服务终端通过第三通信连接通信,所述中间设备包括共享设备所在的组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端、以及除了所述目标服务终端之外的其他服务终端中的至少一个The target sharing device communicates with the intermediate device through a second communication connection, and the intermediate device communicates with the target service terminal through a third communication connection, where the intermediate device includes a network system in which the shared device is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal
可选的,该计算机可执行指令在由计算机处理器执行时还可以配置为执行本发明任意实施例所提供的一种共享设备的组网方法的技术方案。Optionally, the computer executable instructions, when executed by the computer processor, may also be configured to perform the technical solution of the networking method of the shared device provided by any embodiment of the present invention.
如图13所示,是本实施例提供的一种电子设备的硬件结构示意图,如图13所示,该电子设备包括:处理器(processor)1310和存储器(memory)1320;还可以包括通信接口(Communications Interface)1330和总线1340。As shown in FIG. 13 , it is a hardware structure diagram of an electronic device provided by this embodiment. As shown in FIG. 13 , the electronic device includes: a processor 1310 and a memory 1320. (Communications Interface) 1330 and bus 1340.
其中,处理器1310、存储器1320和通信接口1330可以通过总线1340完成相互间的通信。通信接口1330可以用于信息传输。处理器1310可以调用存储器1320中的逻辑指令。当该电子设备设置于共享设备侧时,执行上述实施例中由共享设备执行的任意一种方法。当该电子设备设置于服务终端侧时,执行上述实施例中由服务终端执行的任意一种方法。The processor 1310, the memory 1320, and the communication interface 1330 can complete communication with each other through the bus 1340. Communication interface 1330 can be used for information transfer. The processor 1310 can call logic instructions in the memory 1320. When the electronic device is disposed on the shared device side, any one of the methods performed by the shared device in the above embodiment is performed. When the electronic device is disposed on the service terminal side, any one of the methods performed by the service terminal in the above embodiment is performed.
存储器1320可以包括存储程序区和存储数据区,存储程序区可以存储操作系统和至少一个功能所需的应用程序。存储数据区可以存储根据电子设备的使用所创建的数据等。此外,存储器可以包括,例如,随机存取存储器的易失性存储器,还可以包括非易失性存储器。例如至少一个磁盘存储器件、闪存器件或者其他非暂态固态存储器件。The memory 1320 may include a storage program area and a storage data area, and the storage program area may store an operating system and an application required for at least one function. The storage data area can store data and the like created according to the use of the electronic device. Further, the memory may include, for example, a volatile memory of a random access memory, and may also include a non-volatile memory. For example, at least one disk storage device, flash memory device, or other non-transitory solid state storage device.
此外,在上述存储器1320中的逻辑指令可以通过软件功能单元的形式实现并作为独立的产品销售或使用时,该逻辑指令可以存储在一个计算机可读取存储介质中。本公开的技术方案可以以计算机软件产品的形式体现出来,该计算机软件产品可以存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本实施例所述方法的全部或部分步骤。Moreover, when the logic instructions in the memory 1320 described above can be implemented in the form of software functional units and sold or used as separate products, the logic instructions can be stored in a computer readable storage medium. The technical solution of the present disclosure may be embodied in the form of a computer software product, which may be stored in a storage medium, and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) All or part of the steps of the method described in this embodiment are performed.
存储介质可以是非暂态存储介质,也可以是暂态存储介质。非暂态存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等多种可以存储程序代码的介质。The storage medium may be a non-transitory storage medium or a transitory storage medium. The non-transitory storage medium may include: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. medium.
本领域普通技术人员可理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指示相关的硬件完成的,该程序可存储于一个非暂态计算机可读存储介质中,该程序被执行时,可包括如上述方法的实施例的流程。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program indicating related hardware, and the program can be stored in a non-transitory computer readable storage medium. When executed, a flow of an embodiment of the method as described above may be included.
通过以上关于实施方式的描述,所属领域的技术人员可以清楚地了解到,本发明实施例可借助软件及必需的通用硬件来实现,当然也可以通过硬件实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如计算机的软盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、闪存(FLASH)、硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the embodiments of the present invention can be implemented by using software and necessary general hardware, and can also be implemented by hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product, which may be stored in a computer readable storage medium such as a computer. Floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to make a computer device (may be A personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
工业实用性Industrial applicability
本发明实施例提供的共享设备的组网系统,通过在目标共享设备与目标服 务终端之间设置中间设备,使得当目标共享设备与目标服务终端之间的通信连接存在通信故障时,目标共享设备可以通过中间设备与目标服务终端进行通信,提高了共享设备与服务终端之间的信息传递成功率,提升了用户体验,同时避免了共享设备资源的浪费。The networking device of the shared device provided by the embodiment of the present invention, by setting an intermediate device between the target shared device and the target service terminal, so that when there is a communication failure in the communication connection between the target shared device and the target service terminal, the target shared device The intermediate device can communicate with the target service terminal, which improves the information transmission success rate between the shared device and the service terminal, improves the user experience, and avoids waste of shared device resources.

Claims (20)

  1. 一种共享设备,包括:A shared device, including:
    检测模块,设置为检测与目标服务终端之间的第一通信连接;a detecting module, configured to detect a first communication connection with the target service terminal;
    通信模块,设置为当检测到所述第一通信连接发生通信故障时,通过中间设备与所述目标服务终端通信;a communication module, configured to communicate with the target service terminal through the intermediate device when detecting that the first communication connection has a communication failure;
    其中,所述共享设备与所述中间设备通过第二通信连接通信,所述中间设备与所述目标服务终端通过第三通信连接通信,所述中间设备包括共享设备所在的组网系统中的除了所述共享设备之外的其他共享设备、公共终端、以及除了所述目标服务终端之外的其他服务终端中的至少一个。The sharing device communicates with the intermediate device through a second communication connection, and the intermediate device communicates with the target service terminal through a third communication connection, where the intermediate device includes a network system in which the shared device is located. At least one of a shared device other than the shared device, a public terminal, and other service terminals other than the target service terminal.
  2. 根据权利要求1所述的共享设备,其中,所述共享设备还包括:The sharing device of claim 1, wherein the sharing device further comprises:
    搜索模块,设置为:在检测到所述第一通信连接发生通信故障之后,通过所述中间设备与所述目标服务终端通信之前,搜索所述中间设备;若搜索到的设备能够与所述共享设备建立所述第二通信连接,且所述搜索到的设备能够与所述目标服务终端建立所述第三通信连接,则确定搜索到的设备为所述中间设备。a search module, configured to: after detecting that a communication failure occurs in the first communication connection, searching for the intermediate device before the intermediate device communicates with the target service terminal; if the searched device is capable of sharing with the The device establishes the second communication connection, and the searched device is able to establish the third communication connection with the target service terminal, and then determines that the searched device is the intermediate device.
  3. 根据权利要求2所述的共享设备,其中,所述第一通信连接为远程通信连接,The sharing device of claim 2, wherein the first communication connection is a remote communication connection,
    当所述中间设备包括所述组网系统中的除了所述共享设备之外的其他共享设备、公共终端中的至少一个时,所述第二通信连接为近距离通信连接,且所述第三通信连接为远程通信连接;When the intermediate device includes at least one of the shared device and the public terminal other than the shared device in the networking system, the second communication connection is a short-range communication connection, and the third The communication connection is a remote communication connection;
    当所述中间设备包括所述组网系统中的除了所述目标服务终端之外的其他服务终端中的至少一个时,所述第二通信连接为远程通信连接,且所述第三通信连接为云端通信连接。When the intermediate device includes at least one of the other service terminals except the target service terminal in the networking system, the second communication connection is a remote communication connection, and the third communication connection is Cloud communication connection.
  4. 根据权利要求2或3所述的共享设备,其中,所述搜索模块包括:The sharing device according to claim 2 or 3, wherein the search module comprises:
    存储单元,设置为存储所述组网系统中的共享设备、公共终端以及服务终端的终端标识;a storage unit, configured to store a shared device, a public terminal, and a terminal identifier of the service terminal in the networking system;
    查询确定单元,设置为:查询存储的终端标识列表,依次向所述终端标识列表中的终端发送查询请求,并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述共 享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的一个。The query determining unit is configured to: query the stored terminal identifier list, send a query request to the terminal in the terminal identifier list in turn, and receive at least one query request response, and select a terminal in the terminal that sends the query request response as The intermediate device, the query request response is sent by a terminal that can establish the second communication connection with the shared device and can establish the third communication connection with the target service terminal; wherein the terminal includes One of the sharing device other than the shared device, the public terminal, and other service terminals other than the target service terminal in the networking system.
  5. 根据权利要求2或3所述的共享设备,其中,所述搜索模块还包括:The sharing device according to claim 2 or 3, wherein the search module further comprises:
    广播单元,设置为:广播查询请求并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的一个。a broadcast unit, configured to: broadcast a query request and receive at least one query request response, select one terminal as the intermediate device in the terminal that sends the query request response, and the query request response is capable of establishing with the shared device Transmitting, by the terminal that is connected to the target communication terminal and establishing the third communication connection, where the terminal includes other shared devices other than the shared device in the networking system, One of a public terminal and other service terminals other than the target service terminal.
  6. 一种共享设备的组网系统,包括:目标共享设备,中间设备和目标服务终端,其中,A networking system for sharing devices, including: a target shared device, an intermediate device, and a target service terminal, where
    所述目标共享设备与所述目标服务终端通过第一通信连接通信,所述中间设备与所述目标共享设备通过第二通信连接通信,所述中间设备与所述目标服务终端通过第三通信连接通信;The target sharing device communicates with the target service terminal through a first communication connection, the intermediate device communicates with the target shared device through a second communication connection, and the intermediate device and the target service terminal are connected through a third communication Communication
    所述中间设备包括所述组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的至少一个;The intermediate device includes at least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system;
    当所述第一通信连接发生通信故障时,所述目标共享设备通过所述第二通信连接、所述中间设备以及所述第三通信连接通信与所述目标服务终端通信。The target sharing device communicates with the target service terminal through the second communication connection, the intermediate device, and the third communication connection communication when a communication failure occurs in the first communication connection.
  7. 根据权利要求6所述的系统,其中,所述第一通信连接为远程通信连接;The system of claim 6 wherein said first communication connection is a remote communication connection;
    当所述中间设备包括所述组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端中的至少一个时,所述第二通信连接为近距离通信连接,所述第三通信连接为远程通信连接;以及When the intermediate device includes at least one of the shared device and the public terminal other than the target shared device in the networking system, the second communication connection is a short-range communication connection, and the third The communication connection is a remote communication connection;
    所述目标共享设备包括第一通信模块和第二通信模块,所述中间设备包括第三通信模块和第四通信模块,所述目标共享设备的第一通信模块和所述目标服务终端建立所述第一通信连接,所述目标共享设备的第二通信模块和所述中间设备的第三通信模块建立所述第二通信连接,所述中间设备的第四通信模块和所述目标服务终端建立所述第三通信连接。The target sharing device includes a first communication module and a second communication module, the intermediate device includes a third communication module and a fourth communication module, and the first communication module of the target shared device and the target service terminal establish the a first communication connection, a second communication module of the target sharing device and a third communication module of the intermediate device establishing the second communication connection, a fourth communication module of the intermediate device and the target service terminal establishing a location Said third communication connection.
  8. 根据权利要求6所述的系统,其中,所述第一通信连接为远程通信连接;The system of claim 6 wherein said first communication connection is a remote communication connection;
    当所述中间设备包括所述组网系统中的除了所述目标服务终端之外的其他 服务终端中的至少一个时,所述第二通信连接为远程通信连接,所述第三通信连接为云端通信连接;以及When the intermediate device includes at least one of the other service terminals except the target service terminal in the networking system, the second communication connection is a remote communication connection, and the third communication connection is a cloud connection Communication connection;
    所述目标共享设备包括第一通信模块,所述中间设备包括第四通信模块和第五通信模块,所述目标共享设备的第一通信模块和所述目标服务终端建立所述第一通信连接,所述目标共享设备的第一通信模块和所述中间设备的第四通信模块建立所述第二通信连接,所述中间设备的第五通信模块和所述目标服务终端建立所述第三通信连接。The target sharing device includes a first communication module, where the intermediate device includes a fourth communication module and a fifth communication module, and the first communication module of the target shared device and the target service terminal establish the first communication connection, The first communication module of the target sharing device and the fourth communication module of the intermediate device establish the second communication connection, and the fifth communication module of the intermediate device and the target service terminal establish the third communication connection .
  9. 根据权利要求6~8任一项所述的系统,其中,所述目标共享设备还设置为当判断所述第一通信连接通信故障时,查询存储的终端标识列表,依次向所述终端标识列表中的终端发送查询请求,并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述目标共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的一个;或者The system according to any one of claims 6 to 8, wherein the target sharing device is further configured to, when determining that the first communication connection communication is faulty, query a stored terminal identification list, and sequentially identify the terminal identification list. The terminal in the middle sends a query request, and receives at least one query request response, selects a terminal as the intermediate device in the terminal that sends the query request response, and the query request response is capable of establishing the same with the target shared device. a second communication connection and a terminal that is capable of establishing the third communication connection with the target service terminal; wherein the terminal includes a shared device other than the target shared device in the networking system, One of a public terminal and other service terminals other than the target service terminal; or
    所述目标服务终端还设置为当判断所述第一通信连接通信故障时,查询存储的终端标识列表,依次向所述终端标识列表中的终端发送查询请求,并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述目标共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述目标服务终端之外的其他服务终端、公共终端以及除了所述目标共享设备之外的其他共享设备中的一个。The target service terminal is further configured to: when determining that the first communication connection communication is faulty, query the stored terminal identification list, send a query request to the terminal in the terminal identification list, and receive at least one query request response, Selecting, by the terminal that sends the query request response, the terminal as the intermediate device, the query request response being capable of establishing the second communication connection with the target shared device and establishing the first Transmitted by the terminal connected by the third communication; wherein the terminal includes other service terminals, public terminals, and other shared devices other than the target shared device in the networking system one of.
  10. 根据权利要求6~8任一项所述的系统,其中,所述目标共享设备还设置为当判断所述第一通信连接通信故障时,广播查询请求并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述目标共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的一个;或者The system according to any one of claims 6 to 8, wherein the target sharing device is further configured to, when determining that the first communication connection communication is faulty, broadcast a query request and receive at least one query request response, at the transmitting station Selecting, by the terminal in the query request response, a terminal as the intermediate device, the query request response being capable of establishing the second communication connection with the target sharing device and establishing the third communication with the target service terminal Transmitted by the connected terminal; wherein the terminal includes one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal in the networking system ;or
    所述目标服务终端还设置为当判断所述第一通信连接通信故障时,广播查 询请求并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述目标共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述目标服务终端之外的其他服务终端、公共终端以及除了所述目标共享设备之外的其他共享设备中的一个。The target service terminal is further configured to, when determining that the first communication connection communication is faulty, broadcast a query request and receive at least one query request response, and select one terminal as the intermediate device in the terminal that sends the query request response, The query request response is sent by a terminal that can establish the second communication connection with the target shared device and can establish the third communication connection with the target service terminal; wherein the terminal includes the networking One of the other service terminals in the system other than the target service terminal, the public terminal, and other shared devices other than the target shared device.
  11. 根据权利要求6~10任一项所述的系统,其中,所述共享设备包括无桩单车,所述公共终端包括电子车桩。A system according to any one of claims 6 to 10, wherein the shared device comprises a pileless bicycle and the public terminal comprises an electronic pile.
  12. 一种共享设备的组网方法,包括:A networking method for a shared device, including:
    检测目标共享设备与目标服务终端之间的第一通信连接;Detecting a first communication connection between the target shared device and the target service terminal;
    当确定所述第一通信连接发生通信故障时,所述目标共享设备通过中间设备与所述目标服务终端通信;When it is determined that the first communication connection has a communication failure, the target shared device communicates with the target service terminal through the intermediate device;
    其中,所述目标共享设备与所述中间设备通过第二通信连接通信,所述中间设备与所述目标服务终端通过第三通信连接通信,所述中间设备包括共享设备所在的组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端、以及除了所述目标服务终端之外的其他服务终端中的至少一个。The target sharing device communicates with the intermediate device through a second communication connection, and the intermediate device communicates with the target service terminal through a third communication connection, where the intermediate device includes a network system in which the shared device is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal.
  13. 根据权利要求12所述的方法,其中,确定所述第一通信连接发生通信故障之后,所述目标共享设备通过所述中间设备与所述目标服务终端通信之前,所述方法还包括:The method of claim 12, wherein the method further comprises: before determining that the first communication connection has a communication failure, the target sharing device communicates with the target service terminal by the intermediate device, the method further comprising:
    搜索所述中间设备;Searching for the intermediate device;
    若搜索到的设备能够与所述目标共享设备建立所述第二通信连接,且所述搜索到的设备能够与所述目标服务终端建立所述第三通信连接,则确定搜索到的设备为所述中间设备。If the searched device is capable of establishing the second communication connection with the target shared device, and the searched device is capable of establishing the third communication connection with the target service terminal, determining that the searched device is Said intermediate equipment.
  14. 根据权利要求12所述的方法,其中,所述第一通信连接为远程通信连接,The method of claim 12 wherein said first communication connection is a remote communication connection,
    当所述中间设备包括所述组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端中的至少一个时,所述第二通信连接为近距离通信连接,且所述第三通信连接为远程通信连接;When the intermediate device includes at least one of the shared device and the public terminal other than the target shared device in the networking system, the second communication connection is a short-range communication connection, and the The three communication connections are remote communication connections;
    当所述中间设备包括所述组网系统中的除了所述目标服务终端之外的其他服务终端中的至少一个时,所述第二通信连接为远程通信连接,且所述第三通 信连接为云端通信连接。When the intermediate device includes at least one of the other service terminals except the target service terminal in the networking system, the second communication connection is a remote communication connection, and the third communication connection is Cloud communication connection.
  15. 根据权利要求13所述的方法,其中,所述搜索所述中间设备,包括:The method of claim 13 wherein said searching said intermediate device comprises:
    查询存储的终端标识列表,依次向所述终端标识列表中的终端发送查询请求,并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述目标共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端以及除了所述目标服务终端之外的其他服务终端中的一个。Querying the stored terminal identifier list, and sequentially sending a query request to the terminal in the terminal identifier list, and receiving at least one query request response, and selecting one terminal as the intermediate device in the terminal that sends the query request response, The query request response is sent by a terminal capable of establishing the second communication connection with the target shared device and capable of establishing the third communication connection with the target service terminal; wherein the terminal includes the networking system One of a shared device other than the target shared device, a public terminal, and other service terminals other than the target service terminal.
  16. 根据权利要求13所述的方法,其中,所述搜索所述中间设备,包括:The method of claim 13 wherein said searching said intermediate device comprises:
    广播查询请求并接收至少一个查询请求响应,在发送所述查询请求响应的终端中选择一个终端作为所述中间设备,所述查询请求响应为能够与所述目标共享设备建立所述第二通信连接且能够与所述目标服务终端建立所述第三通信连接的终端发送的;其中,所述终端包括所述组网系统中的除了所述目标服务终端之外的其他服务终端、公共终端以及除了所述目标共享设备之外的其他共享设备中的一个。Broadcasting the query request and receiving at least one query request response, selecting one terminal as the intermediate device in the terminal that sends the query request response, the query request response being capable of establishing the second communication connection with the target shared device And the terminal that can establish the third communication connection with the target service terminal, where the terminal includes other service terminals, public terminals, and other than the target service terminal in the networking system. The target shares one of the other shared devices other than the device.
  17. 一种共享设备的组网系统,包括:目标共享设备,中间共享设备和目标公共终端,其中,A networking system for a shared device, including: a target shared device, an intermediate shared device, and a target public terminal, where
    所述目标共享设备与所述目标公共终端通过第一通信连接通信;The target sharing device communicates with the target public terminal through a first communication connection;
    所述中间共享设备与所述目标共享设备通过第二通信连接通信;The intermediate shared device communicates with the target shared device by using a second communication connection;
    所述中间共享设备与所述目标公共终端通过第三通信连接通信;The intermediate sharing device communicates with the target public terminal through a third communication connection;
    其中,所述中间共享设备包括所述组网系统中的除了所述目标共享设备之外的其他共享设备中的至少一个;The intermediate shared device includes at least one of the shared devices other than the target shared device in the networking system;
    当所述第一通信连接的发生通信故障时,所述目标共享设备通过所述第二通信连接、所述中间共享设备以及所述第三通信连接与所述目标公共终端通信。The target sharing device communicates with the target public terminal through the second communication connection, the intermediate sharing device, and the third communication connection when a communication failure occurs in the first communication connection.
  18. 根据权利要求17所述的系统,其中,所述第一通信连接、所述第二通信连接以及所述第三通信连接为近距离通信连接。The system of claim 17 wherein said first communication connection, said second communication connection, and said third communication connection are short-range communication connections.
  19. 一种服务终端,包括:A service terminal, comprising:
    检测模块,设置为检测与目标共享设备之间的第一通信连接;a detecting module configured to detect a first communication connection with the target sharing device;
    通信模块,设置为当检测到所述第一通信连接发生通信故障时,通过中间 设备与目标共享设备通信;a communication module, configured to communicate with the target shared device through the intermediate device when detecting that the first communication connection has a communication failure;
    其中,所述中间设备与所述目标共享设备建立第二通信连接通信,所述中间设备与所述服务终端建立第三通信连接通信,所述中间设备包括所述服务终端所在的组网系统中的除了所述目标共享设备之外的其他共享设备、公共终端以及除了所述服务终端之外的其他服务终端中的至少一个。The intermediate device establishes a second communication connection communication with the target shared device, and the intermediate device establishes a third communication connection communication with the service terminal, where the intermediate device includes a network system in which the service terminal is located. At least one of a shared device other than the target shared device, a public terminal, and other service terminals other than the service terminal.
  20. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行权利要求12~16任一项所述的方法。A computer readable storage medium storing computer executable instructions for performing the method of any one of claims 12-16.
PCT/CN2017/117184 2017-09-30 2017-12-19 Shared device, service terminal, and networking system and method for shared device WO2019061877A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/109076 WO2019063011A1 (en) 2017-09-30 2018-09-30 Networking system and method of sharing device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710940989.8A CN107682131A (en) 2017-09-30 2017-09-30 A kind of group network system and method for shared equipment
CN201710940989.8 2017-09-30

Publications (1)

Publication Number Publication Date
WO2019061877A1 true WO2019061877A1 (en) 2019-04-04

Family

ID=61139446

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117184 WO2019061877A1 (en) 2017-09-30 2017-12-19 Shared device, service terminal, and networking system and method for shared device

Country Status (2)

Country Link
CN (1) CN107682131A (en)
WO (1) WO2019061877A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019063011A1 (en) * 2017-09-30 2019-04-04 柠创控股有限公司 Networking system and method of sharing device
CN110536268B (en) * 2018-05-23 2022-02-18 海能达通信股份有限公司 Self-adaptive scheduling method, transit station, vehicle platform and system
CN111224448B (en) * 2020-02-28 2021-11-05 Oppo广东移动通信有限公司 Mobile power supply management method and system, mobile power supply and mobile terminal
CN111555430B (en) * 2020-05-11 2022-07-05 广西诚新慧创科技有限公司 Mobile power supply device with energy and information bidirectional support and networking system
CN113645306A (en) * 2021-08-16 2021-11-12 浙江吉利控股集团有限公司 Offline message forwarding method and charging pile system
CN115696186B (en) * 2022-10-18 2023-10-24 合肥松果智造智能科技有限公司 Offline sharing device positioning method, device and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017131441A1 (en) * 2016-01-29 2017-08-03 Samsung Electronics Co., Ltd. Method and electronic device for providing tethering service
CN107046678A (en) * 2017-04-17 2017-08-15 杭州纳戒科技有限公司 Shared bicycle exchange method and system
CN107211477A (en) * 2015-02-13 2017-09-26 英国电讯有限公司 The recovery of network insertion

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103390304A (en) * 2013-07-16 2013-11-13 华北电力大学(保定) Cloud-architecture public bicycle transportation system
CN105894676B (en) * 2016-03-29 2017-08-25 上海通冠市政设施科技有限公司 Tandem public bike renting system and its method
CN107093158B (en) * 2017-02-28 2018-05-15 成都西谷曙光数字技术有限公司 Share bicycle intelligent management system and method in a kind of city based on IoT technologies

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107211477A (en) * 2015-02-13 2017-09-26 英国电讯有限公司 The recovery of network insertion
WO2017131441A1 (en) * 2016-01-29 2017-08-03 Samsung Electronics Co., Ltd. Method and electronic device for providing tethering service
CN107046678A (en) * 2017-04-17 2017-08-15 杭州纳戒科技有限公司 Shared bicycle exchange method and system

Also Published As

Publication number Publication date
CN107682131A (en) 2018-02-09

Similar Documents

Publication Publication Date Title
WO2019061877A1 (en) Shared device, service terminal, and networking system and method for shared device
US9125003B2 (en) Machine to machine service management device, network device, and method processing service system
CN109845332A (en) Mobile device relay services for reliable Internet of Things
CN110351385B (en) Home gateway system and data forwarding method
US20230308951A1 (en) Data processing method, network element device, and readable storage medium
US20180372507A1 (en) Information sharing method of smart electricity meter, smart electricity meter and acquisition router
CN107852430A (en) The wide-area services of Internet of Things are found
JP6090253B2 (en) Communication method, wireless communication system, and wireless connection providing apparatus in wireless communication system
CN105453662A (en) Neighbor discovery to support sleepy nodes
CN105025478A (en) D2D communication safe configuration method, and ProSe key management function entity, terminal and system
US20140369202A1 (en) Method, device, and system for message distribution
WO2011150707A1 (en) Method and system for managing terminal states or terminal events in machine-to-machine or machine-to-man or man-to-machine (m2m) service
CN102469514A (en) Terminal and method for accessing terminal to network
GB2494473A (en) Caching of content in a mobile communications network
CN105471983A (en) Method and system for establishing internet-of-things communication
CN106937351B (en) Session realization method and core network element
JP6967581B2 (en) Outdoor lighting network as an emergency connectivity infrastructure
CN112134744B (en) Management method of nodes in distributed management system
WO2013182127A1 (en) Data sharing method and device in heterogeneous network
WO2023241670A1 (en) End-to-end communication establishment method and system
CN110505626B (en) Large-scale wifi network information pushing method and system
WO2019061878A1 (en) Shared terminal communication method and device and shared terminal
WO2019063011A1 (en) Networking system and method of sharing device
CN102571884B (en) Signal condition of wireless network cognitive method and system
WO2014079312A1 (en) Method and device for determining proximity relationship between user equipments, and communication system

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: 17927274

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 14.08.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17927274

Country of ref document: EP

Kind code of ref document: A1