CN115346311A - Communication method of shared charging equipment, shared charging device and equipment - Google Patents

Communication method of shared charging equipment, shared charging device and equipment Download PDF

Info

Publication number
CN115346311A
CN115346311A CN202210736593.2A CN202210736593A CN115346311A CN 115346311 A CN115346311 A CN 115346311A CN 202210736593 A CN202210736593 A CN 202210736593A CN 115346311 A CN115346311 A CN 115346311A
Authority
CN
China
Prior art keywords
module
slave module
identity
slave
master
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210736593.2A
Other languages
Chinese (zh)
Inventor
王剑波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Xiaodian Technology Co ltd
Original Assignee
Hangzhou Xiaodian Technology Co ltd
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 Hangzhou Xiaodian Technology Co ltd filed Critical Hangzhou Xiaodian Technology Co ltd
Priority to CN202210736593.2A priority Critical patent/CN115346311A/en
Publication of CN115346311A publication Critical patent/CN115346311A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The application relates to a communication method of a shared charging device, which comprises the steps that a master control module obtains an identity of a slave module; the slave module acquires an identity; based on the identity identification, the master control module is connected with the slave module in a pairing mode through a wireless signal; the master control module sends pairing information with the slave module to the server, wherein the pairing information comprises the identity of the slave module. The method also comprises a communication method of the master module and the slave module under the working conditions of borrowing and returning the shared charging equipment, normal operation of the shared charging equipment, unbinding of the master module and the slave module and the like. By adopting the method, the master module and the slave module can transmit information by using wireless communication in the installation and operation use processes of the shared charging equipment, the problem that the shared charging equipment is limited by peripheral connection hardware in the installation and use processes is solved, and the flexibility of the shared charging equipment in installation and the reliability of the shared charging equipment in operation and use are improved.

Description

Communication method of shared charging equipment, shared charging device and equipment
Technical Field
The present application relates to the field of shared charging devices, and in particular, to a communication method for a shared charging device, and an apparatus.
Background
The shared charging power supply refers to leasing charging equipment provided by an enterprise, a user scans a two-dimensional code on the surface of the equipment through a client installed on the terminal equipment or directly sends a leasing request through the client to obtain a leasing service of the shared power supply, and the leasing service is charged according to leasing time. Existing shared charging terminal devices include split-type charging devices.
In the split charging device, different modules are usually connected by hardware, such as external connection wires and connectors. However, the hardware connection mode may cause a series of technical problems such as single structural combination of the shared charging device, aged wear of the connection hardware, and difficulty in outdoor waterproof design.
Therefore, there is a need in the art for a shared charging device that is out of the hardware connection limitations.
Disclosure of Invention
The technical problem to be solved by the present application is to provide a communication method, a shared charging device, and a device of a shared charging device, which use a wireless signal to realize communication between modules, so as to solve the problem that the shared charging device is limited by peripheral connection hardware during installation and use, in order to overcome the technical defect that different modules of the shared charging device need to be connected in a hardware manner in the prior art.
A communication method of a shared charging device is characterized in that the shared charging device comprises a master control module and at least one slave module, at least one charging bin is arranged in the slave module, the master control module is respectively coupled with the at least one slave module through wireless signals, and the method comprises the following steps:
the master control module respectively acquires the identity of the at least one slave module;
respectively pairing and connecting with the at least one slave module by utilizing the wireless signal based on the identity;
sending pairing information with the at least one slave module, the pairing information including an identification of the at least one slave module.
In some embodiments, the obtaining, by the master module, the identity of the at least one slave module includes: and the master control module receives the identity of the at least one slave module, wherein the identity comprises the configuration generation of the user at the client.
In some embodiments, the obtaining, by the master module, the identity of the at least one slave module includes: under the condition of power-on, the main control module acquires a main control reading corresponding to a dial switch installed in the main control module; searching at least one slave module with the reading of a first dial switch in a signal range being the same as the reading of the master control by using the wireless signal; and acquiring the reading of a second dial switch of the at least one slave module, and taking the reading of the second dial switch as the identity of the at least one slave module.
In some embodiments, the connecting between the master module and the at least one slave module in a cascade manner, where the obtaining, by the master module, the identity of the at least one slave module includes: and the master control module acquires the identity of each slave module step by step according to the cascade sequence.
In some of these embodiments, the method further comprises: the master control module receives a control signal, wherein the control signal comprises an identity of a target slave module; according to the identity identification, a control instruction for opening a charging bin is sent to the target slave module by using the wireless signal; receiving a first notification message that the target slave module successfully opens the charging bin, wherein the first notification message comprises identification information of a shared power supply; and sending a second notification message that the target slave module successfully opens the charging bin, wherein the second notification message comprises the identification information of the shared power supply.
In some of these embodiments, the method further comprises: the main control module receives a third notification message that the returning of the shared power supply is successful, wherein the third notification message comprises identification information of the returned shared power supply; and sending a fourth notification message of successful returning of the shared power supply, wherein the fourth notification message comprises the identification information of the returned shared power supply.
In some of these embodiments, the method further comprises: the master control module receives state information of the at least one slave module, wherein the state information comprises at least one of hardware state information of the slave module, statistical information of times of borrowing and returning shared power supplies and bin position information.
In some of these embodiments, the method further comprises: the master control module receives a first unbinding signal sent by the server, wherein the first unbinding signal comprises an identity of a target unbinding slave module; according to the identity, a first unbinding instruction is sent to the target unbinding slave module by using the wireless signal; and after confirming that the target unbinding slave module is unbound, sending a fifth notification message, wherein the fifth notification message comprises the identity of the target unbinding slave module.
In some of these embodiments, the method further comprises: the master control module receives a second unbinding signal sent by the client, wherein the second unbinding signal comprises an identity of the target unbinding slave module; unbinding the target unbound slave module; and sending a sixth notification message of successful unbinding, wherein the sixth notification message comprises the identity of the target unbinding slave module.
A shared charging apparatus comprising a wireless communication module, a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of any of the methods described above when executing the computer program; the wireless communication module is in communication connection with the at least one slave module.
A shared charging apparatus, comprising at least one charging bay, a wireless communication module, a memory, and a processor, the memory storing a computer program, wherein the processor, when executing the computer program, performs any of the method steps; the wireless communication module is in communication connection with the main control module.
A communication method of a shared charging device is characterized in that the shared charging device comprises a master control module and at least one slave module, at least one charging bin is arranged in the slave module, the master control module is respectively coupled with the at least one slave module through wireless signals, and the communication method comprises the following steps:
the slave module acquires an identity;
and based on the identity identification, the wireless signal is utilized to be connected with the main control module in a pairing way.
In some embodiments, the obtaining, by the slave module, an identity includes: the slave module is connected with the client; and receiving the identity generated by the user in the client configuration.
In some embodiments, the slave module obtaining the identity includes: under the condition of power-on, the slave module obtains a first reading of a first dial switch and a second reading of a second dial switch installed in the slave module, and takes the second reading as an identity of the slave module, wherein the first reading is set to be the same as a main control reading of the dial switch installed in the main control module; correspondingly, the pairing connection with the master control module by using the wireless signal based on the identity identifier includes: broadcasting the first reading and the second reading using wireless signals; and receiving a notification message which is connected with the main control module in a pairing way.
In some embodiments, the at least one slave module and the master module are connected in a cascade manner, and the obtaining, by the slave module, an identity includes: and the slave module acquires the identity identification according to the cascade sequence.
In some of these embodiments, the method further comprises: receiving a control instruction for opening a charging bin by using the wireless signal; starting a charging bin based on the control instruction; and sending a first notification message of successful charging bin opening, wherein the first notification message comprises identification information of the shared power supply.
In some of these embodiments, the method further comprises: receiving an operation of returning the shared power supply by the user; acquiring identification information of the returned shared power supply in response to the operation; and sending a third notification message that the sharing power supply is successfully returned, wherein the third notification message comprises the identification information of the returned sharing power supply.
In some of these embodiments, the method further comprises: and the slave module sends state information, wherein the state information comprises at least one of hardware state information of the slave module, statistical information of times of borrowing and returning the shared power supply and bin position information.
In some of these embodiments, the method further comprises: the slave module receives a first unbinding instruction sent by the master control module; and based on the first unbinding instruction, unbinding the main control module.
In some of these embodiments, the method further comprises: the slave module receives a second unbinding instruction sent by the client; and releasing the binding with the main control module based on the second unbinding instruction.
A shared charging device is characterized in that the system comprises the shared charging device and at least one shared power supply placed on the shared charging device.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any of the preceding claims.
A computer program product comprising a computer program, characterized in that the computer program realizes the steps of any of the methods described above when executed by a processor.
According to the communication method of the shared charging equipment, the shared charging device and the equipment, the identity of the slave module can be identified by the master control module in the installation process of the shared charging equipment by utilizing wireless communication, the data communication of the master module and the slave module in the working process, the data communication of the master module and the slave module in the lease and return of the shared power supply, and the unbinding of the master module and the slave module when the installation mode of the shared charging equipment needs to be adjusted due to faults or external influence factors can be realized, the full wireless communication of the master module and the slave module in various installation and use scenes can be realized, the installation mode of the shared charging equipment is more flexible and reliable, the limitation on the installation position of the master module and the slave module is removed to a great extent, and the installation mode can be flexibly selected according to different installation environments; the master module and the slave module are not connected by peripheral hardware, so that the problem that the normal work of the charging device is influenced by the aging and the abrasion of the connecting hardware is solved; to the scene that shared charging equipment needs to install and use in open air or adverse circumstances, the technical scheme that this application provided has also solved design problems such as connecting hardware is waterproof, dampproofing, moth-proofing, has reduced shared charging equipment to the requirement of environment.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more concise and understandable description of the application, and features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a diagram of an application environment of a shared charging system in one embodiment;
FIG. 2 is a flowchart illustrating a method for pairing and connecting master and slave modules according to an embodiment;
FIG. 3 is a flow diagram that illustrates a method for a master-slave module to connect using client pairing in one embodiment;
FIG. 4 is a flowchart illustrating a system communication method for renting shared power supplies according to one embodiment;
FIG. 5 is a flowchart illustrating a system communication method when a user returns a shared power source according to an embodiment;
FIG. 6 is a flowchart illustrating a master-slave module unbinding method in accordance with an embodiment;
FIG. 7 is a schematic diagram illustrating a process for pairing and connecting a master module and a slave module via an external dial switch according to an embodiment;
FIG. 8 is a schematic diagram illustrating a process for cascade connection of a master module and a slave module in one embodiment;
FIG. 9 is a flow diagram that illustrates the use of a client to unbind a master-slave module in one embodiment;
FIG. 10 is a block diagram of a shared charging device in one embodiment;
fig. 11 is a block diagram of a shared charging device in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Unless defined otherwise, technical or scientific terms referred to herein shall have the same general meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of this application do not denote a limitation of quantity, either in the singular or the plural. The terms "comprises," "comprising," "has," "having," and any variations thereof, as referred to in this application, are intended to cover non-exclusive inclusions; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or modules, but may include other steps or modules (elements) not listed or inherent to such process, method, article, or apparatus. Reference throughout this application to "connected," "coupled," and the like is not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, "a and/or B" may indicate: a exists alone, A and B exist simultaneously, and B exists alone. In general, the character "/" indicates a relationship in which the objects associated before and after are an "or". The terms "first," "second," "third," and the like in this application are used for distinguishing between similar items and not necessarily for describing a particular sequential or chronological order.
The terms "module," "unit," and the like as used hereinafter are combinations of software and/or hardware that can achieve the intended functionality. Although the means described in the embodiments below are preferably implemented in hardware, an implementation in software, or a combination of software and hardware is also possible and contemplated.
To clearly illustrate the detailed description of the various embodiments of the present application, the technical environment of the present application is first described below.
The existing split type shared charging equipment generally uses hardware to electrically connect different combined modules, for example, connectors or connecting wires are used for connection, so as to meet the communication requirements between different modules. Therefore, although the split type shared charging device in the related art can be structurally split, it is still limited by the external hardware connection. If the connectors are connected, the master module and the slave module can only be inserted up and down or inserted left and right, the overall structure is still limited, and the requirement on the structure is higher in order to meet the requirement of full contact. When the connecting wires are used for connection, the distance between the master module and the slave module is limited by the length of the connecting wires and the wiring mode, and certain requirements are still met on the installation and use environment. On the other hand, the external connection hardware has the problem of aging and abrasion, and a series of possible hardware connection problems such as water resistance, moisture resistance, moth resistance and the like need to be considered in the outdoor or severe installation and use environment.
Based on the technical problem similar to that described above, as shown in fig. 1, an embodiment of the present application provides a shared charging system 100, which includes a server 101, a client 102, a master module 103, and at least one slave module 104. The server 101 may perform remote communication with the client 102 and the main control module 103 via a network, and the remote communication may use at least one of 2G (2 nd Generation, second Generation mobile communication technology), 3G (3 rd Generation, third Generation mobile communication technology), 4G (4 th Generation, fourth Generation mobile communication technology), 5G (5 th Generation, fifth Generation mobile communication technology), and the like. The client 102, the master control module 103, and the slave module 104 may perform short-range Wireless or wired communication, and the short-range Wireless communication may use at least one of short-range Wireless communication technologies such as Wireless Local Area Networks (WLANs) (e.g., wireless Fidelity (Wi-Fi) Networks), bluetooth, infrared, RF (Radio Frequency), and the like. The server 101 may include a cloud server, a single server, or a server cluster composed of a plurality of servers. The client 102 may comprise a terminal device capable of accessing a communication network based on a network protocol. Specifically, for example, the client 102 may be a mobile smart phone, a computer (including a laptop computer and a desktop computer), a tablet electronic device, a Personal Digital Assistant (PDA), or a smart wearable device. In addition, the client 102 may also be software running on any of the above listed devices, such as APP, applet, fast application, etc. that supports sharing power.
Specifically, in one embodiment of the application, the master control module 103 may include a core processing chip, a remote data communication unit, and a short-range wireless communication unit. The core processing chip is configured to send a control instruction to the at least one slave module 104, synchronize status information from the at least one slave module 104, and the like. . The remote data communication unit is used for data interaction with the server 101 based on a remote network communication protocol such as HTTP, TCP/IP or FTP. The short-range wireless communication unit is used for data interaction with at least one slave module 104 by means of wireless signals. The slave module 104 includes a short range wireless communication unit corresponding to the master module 103. The slave module 104 is further provided with a shared power charging bin, and the shared power charging bin is used for placing a shared power and charging the shared power. According to the communication method for sharing the charging equipment, the master control module 103 and the slave module 104 can communicate by using wireless signals, and the problems of single equipment structure combination, connection hardware aging and abrasion and the like caused by hardware connection are solved.
Based on the above-mentioned shared charging system 100, the following describes a communication method of the shared charging device according to various embodiments of the present application with reference to a workflow provided in fig. 2.
First, in an embodiment of the present application, in order to enable a pairing connection between the master module 103 and the slave module 104, in steps S1101 and S1103, both the master module 103 and the slave module 104 may acquire an identity of the slave module 104. The identity of the slave module 104 may include hardware unique identification information and software unique identification information. The hardware unique identification information may include identity information set by the slave module 104 during hardware production, such as unique identification information generated by a manufacturer according to information combinations such as a hardware production batch, a production date, a production serial number, and the like, such as a CPU ID. The software unique identification information may include identification information set by software setting means to indicate the uniqueness of the slave module 104.
In an embodiment of the present application, since the production lot is the same, the hardware identification information generated by the slave module 104 at the time of factory shipment is the same. In this case, unique software identification information may be provided for each of the slave modules 104 as its identity. If unique software identification information can be set for each slave module 104, the user configures the software identification information in the client 102 as the identity of the corresponding slave module 104. The user uploads the identity to the server 101, and the server 101 sends the identity to the master control module 103, so that the master control module 103 obtains the identity of the slave module 104. The user then uses the client 102 to establish a short-range wireless connection with the slave module 104, and sends the identification to the slave module 104, so that the slave module 104 obtains its own identification. It can be understood that, in the above process, the sequence of the master module 103 and the slave module 104 acquiring the identity identifier of the slave module is not unique, and the master module 103 may acquire the identity identifier first, the slave module 104 may acquire the identity identifier first, or the master module 103 and the slave module 104 may acquire the identity identifier simultaneously. In another embodiment of the present application, a user may also directly use the client 102 to establish a short-distance wireless connection with the master control module 103, and send the identification to the master control module 103, so that the master control module 103 obtains the identification of the slave module 104. And the master control module 103 uploads the identity to the server 101.
In an embodiment of the present application, when the slave module 104 leaves the factory, the hardware unique identification information is the same, and the set software unique identification information is also the same. In this case, a hardware device, such as a dial switch, an encoder, or the like, for representing the identity may be provided for each slave module 104, and the slave module 104 may obtain its identity after being powered on. In other embodiments, an external connection line may be used to cascade connect the master control module 103 and each slave module 104, so that the master control module 103 obtains the identity of each slave module step by step according to the cascade order, and in this process, the slave module 104 also obtains its own identity. In the embodiment of the cascade connection, when both the master module 103 and the slave module 104 acquire the identity of the slave module 104, the connection line may be removed and is no longer used.
S1105: based on the identity, the master module 103 and the slave module 104 are connected in a wireless signal pairing manner.
In an embodiment of the present application, after the master module 103 and the slave module 104 both obtain the identity of the slave module 104, the master module 103 may be connected to the slave module 104 in a pairing manner through a short-distance wireless signal. In some embodiments of the present application, the identity of the slave module 104 may be broadcast by the master module 103 within range, and the slave module 104 searches for wireless signals within range. When a wireless signal consistent with the identification information of the slave module 104 is found, the slave module 104 can confirm that the wireless signal is sent by the master module 103, and performs matching and wireless connection with the master module 103. It can be understood that, in the above-mentioned pairing connection method between the master module 103 and the slave modules 104, each slave module 104 may be sequentially connected to the master module 103, or all the slave modules 104 may be simultaneously connected to the master module 103. It is understood that in other embodiments, the slave module 104 may broadcast its own identity, the master module 103 searches for a wireless signal within a range containing identity information, and the master module 103 is connected in pair with the slave module 104 that has sent out the identity.
S1107: the master control module 103 sends pairing information to the server 101.
In an embodiment of the present application, after completing pairing connection between the master module 103 and the slave module 104, the pairing information is sent to the server 101, where the pairing information includes an identity of the slave module 104. In the subsequent operation process, when a user sends a request for leasing the shared power supply, the server 101 selects a charging bin for providing a service, determines which slave module 104 the charging bin is arranged on, and sends the identity of the slave module 104 and a bin opening instruction to the master control module 103. After receiving the opening instruction and the identification, the master control module controls the slave module 104 corresponding to the identification to open a target bin position, so as to provide a shared power supply service for the user. It is understood that, in other embodiments of the present application, the client 102 and the main control module 103 may establish a connection by using short-range wireless communication, the main control module 103 sends the pairing information to the client 102, and the client 102 sends the pairing information to the server 101. It can be understood that, in other embodiments of the present application, the client 102 may further send the identity of the slave module 104 to the server 101, the server 101 determines the pairing information between the master module 103 and the slave module 104, the server 101 sends the pairing information to the master module 103, and the master module 103 performs step S1105 and pairing connection with the slave module 104 according to the pairing information.
In each embodiment of the application, the pairing connection method of the master control module 103 and the slave module 104 realizes that, in the installation process of the shared charging device, the master control module 103 acquires the identity of the slave module 104 by using a wireless signal, and the slave module 104 acquires the identity of itself by using a wireless signal or after being powered on, so that the master control module 103 and the slave module 104 can complete pairing connection without using external hardware. The connection method enables the installation mode of the shared charging equipment to be more flexible and reliable, limits on the installation positions of the master module and the slave module are removed to a great extent, and the installation mode can be flexibly selected according to different installation environments. And because there is not connecting hardware to connect master slaver module, do not have the ageing wearing and tearing of connecting hardware and influence the problem that charging equipment normally worked. To the scene that shared charging equipment needs to install and use in open air or adverse circumstances, the technical scheme that this application provided has also solved design problems such as connecting hardware is waterproof, dampproofing, moth-proofing, has reduced shared charging equipment to the requirement of environment.
For convenience of those skilled in the art to understand the technical solutions provided in the embodiments of the present application, a communication method of a shared charging device provided in each embodiment of the present application is described below with reference to fig. 3 to fig. 6 through a specific application scenario. FIG. 3 is a flow diagram that illustrates a method for a master-slave module to pair connections using a client 102 in one embodiment. Fig. 4 is a flowchart illustrating a system communication method when a user rents a shared power source according to an embodiment. FIG. 5 is a flowchart illustrating a system communication method when a user returns to a shared power source according to an embodiment. FIG. 6 is a flowchart illustrating a master-slave module unbinding method in accordance with an embodiment.
In order to develop a shared power supply leasing service, an enterprise purchases a batch of master control modules 103, a batch of slave modules 104 provided with charging bins, and a batch of shared power supplies matched with the charging bins, builds a background server 101, and develops a client 102 for leasing the service. The hardware identification information of the main control modules 103 is consistent when the main control modules are shipped from a factory, and each main control module 103 is set with unique identification information in software. When each slave module 104 leaves the factory, the hardware identification information is consistent, and the software is set with unique identification information. The enterprise determines to put and install a batch of shared power supply leasing equipment in a certain market through field investigation and passenger flow statistics.
The installation process of the shared charging apparatus will now be described with reference to fig. 3. After the user sets the master control module 103 and the slave module 104 at the preset installation positions and powers on, the user opens the client 102 using the mobile phone, scans the software identification information of the master control module 103 as the identity of the master control module 103, and marks the identity in the client 102. The user scans the code of the slave module 104, and marks the code as the identity of the slave module 104 in the client 102 (S101), and then establishes a connection between the client 102 and the slave module 104 through the mobile phone bluetooth, and sends the identity to the slave module 104 (S103). The user repeats the above process until all the ids of the slave modules 104 are marked in the client 102 and sent to the corresponding slave modules 104. The user sends the identities of the master module 103 and the identities of all the slave modules 104 noted in the client 102 to the server 101 (S105). The server 101 receives all the ids sent by the client 102, establishes a remote communication connection with the master module 103 according to the id of the master module 103, and sends the ids of all the slave modules 104 to the master module 103 (S107). The master module 103 continuously searches for a wireless signal including identification information of the slave module 104 through WiFi within range (S109), and the slave module 104 broadcasts its identification information through WiFi (S111). The master module 103 searches for the slave module 104 broadcasting the id, and connects all the searched slave modules 104 in a pairing manner (S113). After the pairing is successful, the main control module 103 sends information of successful pairing connection to the server 101 (S115), the server 101 records the information and sends the pairing information to the client 102 of the user mobile phone (S117), the user completes the installation work, and the shared charging system can be put into normal operation.
When the shared power supply normally operates, the small sheets find that the electric quantity of the mobile phone is only 20% when shopping in the mall and do not carry the mobile charging equipment, and after seeing the shared power supply renting equipment, the small sheets decide to rent a shared power supply to charge the mobile phone. The rental process for the sheetlet is now described with reference to fig. 4. After the account binding of the small sheets is completed on the client 102, the two-dimensional code on the surface of the main control module 103 is scanned (S201), and "i want to rent" is clicked in the client 102, at which time the client 102 sends a request for renting the shared power to the server 101 (S203). The server 101 determines the master module 103 for the small sheet scanning according to the request message, selects the shared power supply with sufficient power and good status, and determines the bin where the shared power supply is located and the target slave module 104 where the bin is located (S205). The server 101 transmits a control signal including the identification of the target slave module 104 to the master module 103 (S207). The master control module 103 receives the control signal, and sends a control instruction for opening the target charging bin to the target slave module 104 by using WiFi according to the identity information (S209). The target slave module 104 opens the target charging bin according to the control instruction (S211). And taking the small sheet out of the opened charging bin to share the power supply to charge the mobile phone. After the small sheets take out the shared power supply, the slave module 104 sends a first notification message that the charging cabin is successfully opened to the master control module 103 by using WiFi, where the first notification message includes identification information of the shared power supply (S213). The main control module 103 sends a second notification message that the charging bin is successfully opened to the server 101 after receiving the first notification message (S215). The server 101 receives the second notification message to start the timer (S217), and sends a notification message of successful lease and a timer message to the client 102 (S219).
After a period of time, the shared power supply is returned after the electric quantity of the mobile phone is charged to 90% by the small mobile phone by using the shared power supply. The process of the singleton returning to the shared power source is now described in conjunction with fig. 5. Randomly inserting the shared power into a certain bin of the slave module 104 by the sheetlet, receiving the operation of returning the shared power by the sheetlet by the slave module 104 (S301), acquiring the identifier of the returned shared power (S303), and sending a third notification message that the return of the shared power is successful to the master module 103, wherein the third notification message includes the identifier information of the returned shared power (S305). The main control module 103 sends a fourth notification message that the sharing power supply is successfully returned to the server 101, where the fourth notification message includes the identification information of the returned sharing power supply (S307). After receiving the fourth notification message, the server 101 calculates lease charge after counting the lease duration of the shared power supply according to the shared power supply identification information (S309), and sends a notification message of lease completion and lease charge information to the client 102 for use by the sheetlet (S311). The sheetlet pays the rental fee based on the rental fee information, and the server 101 receives the payment information and sends a notice of completion of payment to the sheetlet client 102, and the sheetlet completes the rental of the shared power source (S313).
After a long period of operation, a certain slave module 104 of the shared power charging apparatus needs to be maintained regularly, and the enterprise needs to retrieve the target slave module 104 for maintenance. After the user arrives at the site, the target slave module 104 is unbound from the master module 103. The user unbinding process is now described with reference to fig. 6. The user scans the two-dimensional code on the surface of the host module 103 using the client 102 on the mobile phone (S401), and sends a request for unbinding to the server 101 using the client 102 (S403). After receiving the unbinding request, the server 101 sends an unbinding instruction to the master control module 103 according to the unbinding request, where the unbinding instruction includes the identity of the target unbinding slave module 104 (S405). After receiving the unbinding instruction sent by the server 101, the master module 103 sends a first unbinding instruction to the slave module 104 by using WiFi (S407). After receiving the first unbinding instruction, the target slave module 104 utilizes the WiFi active and master module 103 to complete the unbinding (S409). The master module 103 sends a fifth notification message that the unbinding is successful to the server 101, where the fifth notification message includes the identity of the target unbinding slave module 104 (S411). The server 101 sends a notification message of successful unbinding to the client 102 of the user after receiving the fifth notification message (S413). The user can return to the enterprise to perform maintenance work with the unbound target slave module 104.
In the above application scenario, in the process of pairing and connecting the master module 103 and the slave module 104 by the user, the slave module 104 purchased by the enterprise has a software unique identifier, which can be used as an identity identifier of the enterprise. However, all factory slave modules 104 may have consistent hardware identifiers and software identifiers, and for these situations, the present application also provides a method for pairing and connecting the master module 103 and the slave module 104.
In an embodiment of the present application, a method for binding the master module 103 and the slave module 104 based on a dial switch is provided, as shown in fig. 7. A dial switch is arranged on the master module 103, and a first dial switch and a second dial switch are arranged on each slave module 104. The reading of the first dial switch of the slave module 104 which needs to be connected with the master module 103 in a pairing manner is set to be the same as the reading of the master dial switch, and then different dials are set for the second dial switch of each slave module 104 to serve as the identity.
S501: the main control module 103 obtains the main control reading of the installed dial switch after being powered on.
S503: the slave module 104 is powered up to obtain first and second readings of the installed first and second dip switches.
In an embodiment of the present application, through step S501 and step S503, the master module 103 and the slave module 104 respectively obtain their own identifiers after being powered on. The master reading serves as the identity of the master module 103 and the second reading serves as the identity of the slave module 104.
S505: the master module 103 uses the wireless signal to search for the slave module 104 having the same first dial switch and master reading.
In one embodiment of the present application, the first reading of the first dial switch of the slave module 104 is set to be the same as the master reading of the master dial switch. Since the master module 103 obtains the master reading when it is powered on, the master module 103 also obtains the first reading of the slave module 104 that needs to be paired and connected.
S507: the slave module 104 broadcasts the first and second readings using wireless signals.
S509: the master control module 103 uses the wireless signal to search for the slave module 104 having the same first dial-up switch and master reading, and matches and connects with the slave module, and obtains the second reading.
In an embodiment of the present application, the master control module 103 searches within a range by using wireless signals such as WiFi, and when a wireless signal including a master reading is found, it can be determined that the signal is a signal broadcasted by the slave module 104 that needs to be bound, and the master control module 103 sends a notification message of pairing connection to the slave module 104, and performs pairing connection with the slave module 104. Meanwhile, the signal also includes a second reading, and the master module 103 acquires the second reading of the slave module 104 as the identity of the slave module 104 during the pairing connection.
S511: the master module 103 sends pairing information to the server 101, including the second reading as the slave module 104 identity.
In an embodiment of the present application, after the master control module 103 is connected to the slave module 104 in a pairing manner and acquires the identifier of the slave module 104, the pairing information and the identifier of the slave module 104 are sent to the server 101 through remote communication, and the server 101 stores the pairing information and the identifier as operation data for use in subsequent operations.
S513: the server 101 sends pairing information, including the slave module 104 identity, to the client 102.
In an embodiment of the present application, after storing the pairing information and the identity of the slave module 104, the server 101 sends the pairing information and the identity to the client 102, so that data of the client 102 and data of the server 101 are synchronized. When the server 101 performs maintenance upgrade, short-distance communication connection such as WiFi, bluetooth and the like can be established with the master module 103 and the slave module 104 through the client 102. The client 102 is used for independently completing operations such as leasing and unbinding of the shared power supply, temporarily storing the operation records, and sending the operation records to the server 101 for synchronous updating of corresponding data after the server 101 completes maintenance and upgrading.
According to the method for binding the master control module 103 and the slave module 104 based on the dial switch, provided by the embodiments of the application, the master control module 103 and the slave module 104 are connected in a full-wireless master-slave module pairing mode, the limitation problem caused by using peripheral hardware connection is not required to be considered during installation, the installation structure is flexible and changeable, the method can be suitable for installation of shared charging equipment under different environments and conditions, and a series of problems of hardware aging, abrasion, water resistance and the like are also avoided when peripheral hardware is connected in the prior art.
In an embodiment of the present application, when hardware identifiers of all slave modules 104 are consistent when leaving the factory and software identifiers are consistent, the present application further provides a method for assisting the master control module 103 to obtain an identity identifier of the slave module 104 based on an external connection line and performing pairing connection between the master module and the slave module, as shown in fig. 8.
S601: the master module 103 and the slave module 104 are connected in cascade using temporary connection lines.
In an embodiment of the present application, the shared charging device includes at least one slave module 104, and the manner of cascade connection between the master module 103 and the slave module 104 is as follows: the master control module 103 is connected with the slave module 1 through a first connecting line, the slave module 1 is connected with the slave module 2 through a second connecting line, and the slave module 2 is connected with the slave module 3 through a third connecting line until all the slave modules 104 are connected.
S603: the main control module 103 sends the identification information step by step according to the cascade order.
S605: the slave module 104 feeds back the acquired identification information step by step according to the cascade order.
In an embodiment of the present application, after the master module 103 and the slave module 104 are connected in a cascade manner and powered on, the first identity identifier is sent to the slave module 1 through the first connection line, and after the slave module 1 obtains the first identity identifier belonging to itself, the first connection line feeds back information that the obtaining of the first identity identifier is successful to the master module 103. Subsequently, the slave module 1 sends the second identity to the slave module 2 through the second connection line, and the slave module 2 feeds back information of success in obtaining the second identity to the slave module 1 through the second connection line. The slave module 1 feeds back the second identity information and the information that the second identity is successfully obtained to the master control module 103 through the first connecting line. The slave module 2 sends the third identity information to the slave module 3 through the third connecting line, the slave module 3 feeds back information that the third identity information is successfully acquired to the slave module 2 through the third connecting line, and the slave module 2 feeds back the third identity information and the information that the third identity information is successfully acquired to the slave module 1 through the second connecting line. The slave module 1 feeds back the third identity information and the information that the third identity information is successfully obtained to the master control module 103 through the first connecting line. Until all the slave modules 104 acquire their own identity information, and complete the feedback of the information that the identity acquisition is successful to the master control module 103. It can be understood that, in the embodiment of the present application, the identity identifier set for the slave module 104 may include: the unique serial number set according to the installation order, the unique identifier set according to the installation position, or the identifier information set at will, as long as the identifiers are set to be different, the identifier may be used as the unique identity identifier of each slave module 104, and the setting manner of the identifier is not limited.
S607: the main control module 103 searches for a wireless signal containing identification information by using the wireless signal.
S609: the slave module 104 broadcasts identification information using a wireless signal.
S611: the master control module 103 searches for the slave module 104 broadcasting the id information by using wireless signals, and connects with the slave module in a pairing manner.
S613: the master module 103 sends pairing information including the identity of the slave module 104 to the server 101.
S615: the server 101 sends pairing information including the identity of the slave module 104 to the client 102.
In an embodiment of the present application, it can be understood that after step S605 is completed, both the master module 103 and the slave module 104 acquire the identity of the slave module 104. In other embodiments of the present application, the master module 103 may broadcast a wireless signal including identification information of the slave module 104, the slave module 104 searches for the wireless signal including the identification information, and the slave module 104 actively performs a pairing connection with the master module 103.
In an embodiment of the application, the temporary connection line is only temporarily used when the master control module 103 and the slave module 104 are connected in a pairing manner, and can be detached after the completion of the pairing connection, so that the installation and use conditions of the shared charging device are not limited, the installation structure is expanded, and a series of problems of hardware aging, abrasion, water resistance and the like which need to be considered when the peripheral hardware is connected in the prior art are also avoided.
It should be noted that in most embodiments of the present application, data communication of a fully wireless master-slave module can be implemented when the master-slave module of the charging device is installed, the master-slave module is connected in a matching manner, the master-slave module operates in data communication, the master-slave module communicates with the slave module when a user borrows a shared power supply, and the master-slave module is unbound. However, for some embodiments in the present application, the external connection lines are temporarily used to cascade the master module 103 and the slave module 104 during the installation process. After the master control module 103 acquires the identity of the slave module 104, the connecting line can be removed, and the connecting line is not needed in the subsequent process. These embodiments are optional embodiments, and only provide a way for the master module 103 to identify the identity of the slave module 104, and do not affect the technical problem solved by the present application and achieve the corresponding technical effects.
In one embodiment of the present application, another method for unbinding the master module 103 from the slave module 104 is provided, as shown in fig. 9.
S701: the client 102 is used to scan the two-dimensional code of the master module 103.
S703: the client 102 sends a second unbinding signal to the master module 103 that includes the identity of the target unbinding slave module 104.
S705: the master module 103 unbinds the master module 103 from the slave module 104 based on the second unbind signal.
S707: the master control module 103 sends a sixth notification message that the unbinding is successful to the server 101, where the sixth notification message includes the identity of the target unbinding slave module 104.
S709: the server 101 sends a notification message to the client 102 that the unbinding was successful.
The method for unbinding the master control module 103 and the slave module 104 provided in the embodiment of the application is completed by using a wireless signal, and compared with a connection mode in which peripheral connection hardware is required in the prior art, the method can reduce the unbinding time because the removal of the connection hardware is avoided, and improve the unbinding efficiency. The efficiency of a worker recovering a target slave module 104 is greatly enhanced when the slave module 104 requires maintenance or troubleshooting.
In an embodiment of the present application, during the normal operation of the shared charging apparatus, it is necessary for the server 101 to obtain the status information of the slave module 104, the statistical information of the rented times of each shared power supply, and the bin information, so as to obtain the operating statuses of the slave module 104 and the shared power supply. When the shared power is leased, the server 101 also analyzes the above information and selects the shared power to be leased. In one embodiment of the present application, a communication method in a normal operating state of a shared charging device is provided.
S801: the server 101 sends the slave module 104 query information to the master module 103.
S803: the master control module 103 sends query information to the target slave module 104, and queries the status information of the target slave module 104, where the status information includes at least one of hardware status information of the slave module 104, statistical information of power supply borrowing and returning times, and bin information.
S805: after receiving the query information, the target slave module 104 sends status information to the master module 103.
S807: the main control module 103 receives the status information and then sends the status information to the server 101.
In an embodiment of the present application, it can be understood that the slave module 104 may also periodically and automatically send the status information to the master module 103, and then the master module 103 sends the status information to the server 101. In other embodiments of the present application, the server 101 may only perform the query on the status information of the target slave module 104, or may be configured to perform the data checking on all slave modules 104 automatically at regular intervals. In other embodiments of the present application, the master module 103 may also periodically and automatically query the status information of all the slave modules 104 and then send the status information to the server 101.
In the embodiment of the present application, the server 101 may acquire the hardware status information of the slave module 104 by specifically acquiring or periodically and automatically checking the status information of the slave module 104, so as to help determine whether the slave module 104 needs to perform maintenance and determine whether a fault occurs. The server 101 may estimate the usage frequency and the remaining life of the shared power according to the obtained borrowing and returning times of the shared power, and determine whether the shared power needs to be maintained or whether a fault exists and needs to be replaced. The server 101 can reasonably allocate the opened bin when the user rents the shared power supply according to the bin information. According to the communication method of the sharing equipment provided by the embodiment of the application, the server 101 receives and analyzes the state information of all the slave modules 104, the phenomenon that the number of times of use of one slave module 104, one sharing power supply or one charging bin is too large or too small is avoided, and the working stability of the sharing charging equipment is improved.
In an embodiment of the present application, as shown in fig. 10, there is further provided a shared charging apparatus, where the apparatus includes a wireless communication module, a memory and a processor, the memory stores a computer program, and the processor executes the instructions to implement:
respectively acquiring the identity of the at least one slave module 104;
based on the identity, respectively pairing and connecting with the at least one slave module 104 by using wireless signals;
sending pairing information with the at least one slave module 104, the pairing information including an identification of the at least one slave module 104.
Optionally, in an embodiment of the present application, when the processor respectively obtains the identifiers of the at least one slave module 104 in the implementation step, the processor includes:
receiving an identity of the at least one slave module 104, wherein the identity comprises a user configuration generation at the client 102.
Optionally, in an embodiment of the present application, when the processor respectively obtains the identities of the at least one slave module 104, the processor includes:
under the condition of power-on, acquiring a main control reading corresponding to a dial switch installed in the main control module 103;
searching at least one slave module 104 with the same reading as the master reading of a first dial switch in a signal range by using a wireless signal;
a reading of a second dip switch of the at least one slave module 104 is obtained and the reading of the second dip switch is used as the identity of the at least one slave module 104.
Optionally, in an embodiment of the present application, the master module 103 is connected to the at least one slave module 104 in a cascade manner, and when the processor respectively obtains the identifiers of the at least one slave module 104 in the implementation steps, the processor includes:
and acquiring the identity of each slave module 104 step by step according to the cascade order.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
receiving a control signal, the control signal including an identification of the target slave module 104;
sending a control instruction for opening a charging bin to the target slave module 104 by using a wireless signal according to the identity;
receiving a first notification message that the target slave module 104 successfully opens the charging bin, where the first notification message includes identification information of a shared power source;
and sending a second notification message that the target slave module 104 successfully opens the charging bin, wherein the second notification message includes the identification information of the shared power supply.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
receiving a third notification message that the returning of the shared power supply is successful, wherein the third notification message comprises the identification information of the returned shared power supply;
and sending a fourth notification message of successful returning of the shared power supply, wherein the fourth notification message comprises the identification information of the returned shared power supply.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
receiving status information of the at least one slave module 104, wherein the status information includes at least one of hardware status information of the slave module 104, statistical information of power supply borrowing and returning times, and bin information.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
receiving a unbinding instruction sent by the server 101, wherein the unbinding instruction comprises an identity of a target unbinding slave module 104;
according to the identity, a first unbinding instruction is sent to the target unbinding slave module 104 by using a wireless signal;
and after confirming that the target unbinding slave module 104 is unbound, sending a fifth notification message, wherein the fifth notification message comprises the identity of the target unbinding slave module 104.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
receiving a second unbinding signal sent by the client 102, wherein the second unbinding signal comprises the identity of the target unbinding slave module 104;
unbinding the target unbind slave module 104;
and sending a sixth notification message that the unbinding is successful, wherein the sixth notification message comprises the identity of the target unbinding slave module 104.
In an embodiment of the present application, as shown in fig. 11, there is further provided a shared charging apparatus, including at least one charging bin, a wireless communication module, a memory and a processor, where the memory stores a computer program, and the processor executes the instructions to implement:
acquiring an identity mark;
and based on the identity, pairing and connecting with the main control module 103 by using a wireless signal.
Optionally, in an embodiment of the present application, when the processor obtains the identity identifier in the implementing step, the processor includes:
connecting with the client 102;
and receiving the identity generated by the user in the client-side 102 configuration.
Optionally, in an embodiment of the present application, when the processor obtains the identity identifier in the implementing step, the processor includes:
under the condition of power-on, acquiring a first reading of a first dial switch and a second reading of a second dial switch installed in the slave module 104, and taking the second reading as an identity of the slave module 104, wherein the first reading is set to be the same as a master reading of the dial switch installed in the master module 103;
correspondingly, the pairing connection with the master control module 103 by using the wireless signal based on the identity includes:
broadcasting the first reading and the second reading using wireless signals;
and receiving a notification message of pairing connection with the main control module 103.
Optionally, in an embodiment of the present application, at least one slave module 104 is connected to the master module 103 in a cascade connection manner, and the processor, when implementing the step of acquiring the identity, includes:
and acquiring the identity marks according to the cascade order.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
receiving a control instruction for opening a charging bin by using the wireless signal;
starting a charging bin based on the control instruction;
and sending a first notification message of successful charging bin opening, wherein the first notification message comprises identification information of the shared power supply.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
receiving an operation of returning the shared power supply by the user;
acquiring identification information of the returned shared power supply in response to the operation;
and sending a third notification message that the sharing power supply is successfully returned, wherein the third notification message comprises the identification information of the returned sharing power supply.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
and sending state information, wherein the state information comprises at least one of hardware state information of the slave module 104, statistical information of power supply borrowing and returning times and bin position information.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
receiving a first unbinding instruction sent by the main control module 103;
and releasing the binding with the main control module 103 based on the first unbinding instruction.
Optionally, in an embodiment of the present application, when the processor executes the instructions, the processor may further implement:
receiving a second unbinding instruction sent by the client 102;
and based on the second unbinding instruction, unbinding the main control module 103.
In another aspect, the present application further provides a shared charging system, which includes a shared charging apparatus shown in fig. 10, a shared charging apparatus shown in fig. 11, and at least one shared power source disposed on the shared charging apparatus shown in fig. 11.
In another aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of any of the above methods.
In another aspect, the present application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of any of the methods described above.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include a Read-Only Memory (ROM), a magnetic tape, a floppy disk, a flash Memory, an optical Memory, a high-density embedded nonvolatile Memory, a resistive Random Access Memory (ReRAM), a Magnetic Random Access Memory (MRAM), a Ferroelectric Random Access Memory (FRAM), a Phase Change Memory (PCM), a graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (23)

1. A communication method of a shared charging device is characterized in that the shared charging device comprises a master control module and at least one slave module, at least one charging bin is arranged in the slave module, the master control module is respectively coupled with the at least one slave module through wireless signals, and the method comprises the following steps:
the master control module respectively acquires the identity of the at least one slave module;
respectively pairing and connecting with the at least one slave module by utilizing the wireless signal based on the identity;
sending pairing information with the at least one slave module, wherein the pairing information comprises the identity of the at least one slave module.
2. The communication method according to claim 1, wherein the obtaining, by the master module, the identifiers of the at least one slave module respectively comprises:
and the master control module receives the identity of the at least one slave module, wherein the identity comprises the configuration generation of the user at the client.
3. The communication method according to claim 1, wherein the obtaining, by the master module, the identifiers of the at least one slave module respectively comprises:
under the condition of power-on, the main control module acquires a main control reading corresponding to a dial switch installed in the main control module;
searching at least one slave module with the reading of a first dial switch in a signal range being the same as the reading of the master control by utilizing the wireless signal;
and acquiring the reading of a second dial switch of the at least one slave module, and taking the reading of the second dial switch as the identity of the at least one slave module.
4. The communication method according to claim 1, wherein the master module and the at least one slave module are connected in a cascade manner, and the master module respectively obtains the identity of the at least one slave module, including:
and the master control module acquires the identity of each slave module step by step according to the cascade sequence.
5. The communication method according to claim 1, further comprising:
the master control module receives a control signal, wherein the control signal comprises an identity of a target slave module;
according to the identity identification, a control instruction for opening a charging bin is sent to the target slave module by using the wireless signal;
receiving a first notification message that the target slave module successfully opens the charging bin, wherein the first notification message comprises identification information of a shared power supply;
and sending a second notification message that the target slave module successfully opens the charging bin, wherein the second notification message comprises the identification information of the shared power supply.
6. The communication method according to claim 1, further comprising:
the master control module receives a third notification message that the returning of the shared power supply is successful, wherein the third notification message comprises identification information of the returned shared power supply;
and sending a fourth notification message of successful returning of the shared power supply, wherein the fourth notification message comprises the identification information of the returned shared power supply.
7. The communication method according to claim 1, further comprising:
the master control module receives state information of the at least one slave module, wherein the state information comprises at least one of hardware state information of the slave module, statistical information of times of borrowing and returning shared power supplies and bin position information.
8. The communication method according to claim 1, further comprising:
the master control module receives a unbinding instruction sent by the server, wherein the unbinding instruction comprises an identity of a target unbinding slave module;
according to the identity, a first unbinding instruction is sent to the target unbinding slave module by using the wireless signal;
and after confirming that the target unbinding slave module is unbound, sending a fifth notification message, wherein the fifth notification message comprises the identity of the target unbinding slave module.
9. The communication method according to claim 1, further comprising:
the master control module receives a second unbinding signal sent by the client, wherein the second unbinding signal comprises an identity of the target unbinding slave module;
unbinding the target unbind slave module;
and sending a sixth notification message that the unbinding is successful, wherein the sixth notification message comprises the identity of the target unbinding slave module.
10. A communication method of a shared charging device is characterized in that the shared charging device comprises a master control module and at least one slave module, at least one charging bin is arranged in the slave module, and the master control module is respectively coupled with the at least one slave module through wireless signals, and the method comprises the following steps:
the slave module acquires an identity;
and based on the identity identification, the wireless signal is utilized to be connected with the main control module in a pairing mode.
11. The communication method according to claim 10, wherein the obtaining of the identity by the slave module comprises:
the slave module is connected with the client;
and receiving the identity generated by the user in the client configuration.
12. The communication method according to claim 10, wherein the slave module obtaining the identity comprises:
under the condition of power-on, the slave module obtains a first reading of a first dial switch and a second reading of a second dial switch installed in the slave module, and takes the second reading as an identity of the slave module, wherein the first reading is set to be the same as a main control reading of the dial switch installed in the main control module;
correspondingly, the pairing connection with the master control module by using the wireless signal based on the identity identifier includes:
broadcasting the first reading and the second reading using wireless signals;
and receiving a notification message which is connected with the main control module in a pairing way.
13. The communication method according to claim 10, wherein the at least one slave module and the master module are connected in a cascade manner, and the slave module acquiring the identity identifier includes:
and the slave module acquires the identity identification according to the cascade sequence.
14. The communication method according to claim 10, further comprising:
receiving a control instruction for opening a charging bin by using the wireless signal;
starting a charging bin based on the control instruction;
and sending a first notification message of successful charging bin opening, wherein the first notification message comprises identification information of the shared power supply.
15. The communication method according to claim 10, further comprising:
receiving an operation of returning the shared power supply by the user;
acquiring identification information of the returned shared power supply in response to the operation;
and sending a third notification message that the sharing power supply is successfully returned, wherein the third notification message comprises the identification information of the returned sharing power supply.
16. The communication method according to claim 10, further comprising:
and the slave module sends state information, wherein the state information comprises at least one of hardware state information of the slave module, statistical information of times of borrowing and returning the shared power supply and bin position information.
17. The communication method according to claim 10, further comprising:
the slave module receives a first unbinding instruction sent by the main control module;
and based on the first unbinding instruction, unbinding the main control module.
18. The communication method according to claim 10, further comprising:
the slave module receives a second unbinding instruction sent by the client;
and based on the second unbinding instruction, unbinding the main control module.
19. A shared charging apparatus, comprising a wireless communication module, a memory, and a processor, the memory storing a computer program, wherein the processor, when executing the computer program, implements the steps of the method of any one of claims 1 to 9; the wireless communication module is in communication with the at least one slave module.
20. A shared charging apparatus, comprising at least one charging bay, a wireless communication module, a memory, and a processor, the memory storing a computer program, wherein the processor, when executing the computer program, performs the steps of the method of any one of claims 10 to 18; the wireless communication module is in communication connection with the main control module.
21. A shared charging apparatus, characterized in that the system comprises the shared charging apparatus of claim 19, the shared charging apparatus of claim 20, and at least one shared power source provided on the shared charging apparatus of claim 20.
22. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 18.
23. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 18.
CN202210736593.2A 2022-06-27 2022-06-27 Communication method of shared charging equipment, shared charging device and equipment Pending CN115346311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210736593.2A CN115346311A (en) 2022-06-27 2022-06-27 Communication method of shared charging equipment, shared charging device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210736593.2A CN115346311A (en) 2022-06-27 2022-06-27 Communication method of shared charging equipment, shared charging device and equipment

Publications (1)

Publication Number Publication Date
CN115346311A true CN115346311A (en) 2022-11-15

Family

ID=83948568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210736593.2A Pending CN115346311A (en) 2022-06-27 2022-06-27 Communication method of shared charging equipment, shared charging device and equipment

Country Status (1)

Country Link
CN (1) CN115346311A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180082757A1 (en) * 2017-09-26 2018-03-22 R/X Automation Solutions, Inc. Robotic Dispensary System and Methods
CN109447757A (en) * 2018-10-31 2019-03-08 湖南金码智能设备制造有限公司 A kind of self-help shopping system and purchase method
CN110148260A (en) * 2019-04-04 2019-08-20 广州共享出行科技有限公司 Exchange method, terminal device and the storage medium of shared charging cabinet
CN114298732A (en) * 2021-11-30 2022-04-08 杭州小电科技股份有限公司 Remote settlement method, electronic device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180082757A1 (en) * 2017-09-26 2018-03-22 R/X Automation Solutions, Inc. Robotic Dispensary System and Methods
CN109447757A (en) * 2018-10-31 2019-03-08 湖南金码智能设备制造有限公司 A kind of self-help shopping system and purchase method
CN110148260A (en) * 2019-04-04 2019-08-20 广州共享出行科技有限公司 Exchange method, terminal device and the storage medium of shared charging cabinet
CN114298732A (en) * 2021-11-30 2022-04-08 杭州小电科技股份有限公司 Remote settlement method, electronic device and storage medium

Similar Documents

Publication Publication Date Title
US10142786B2 (en) System and method for multi-beacon interaction and management
CN104573911B (en) Industrial equipment management system, industrial equipment management device, and industrial equipment management method
CN100479404C (en) Apparatus, system and method for distributing configuration parameter
EP3097625A2 (en) Systems and methods for wireless power and communication
EP3123836A1 (en) Configuring lighting electronics using database and mobile device
CN103024773A (en) Method, management device and system for upgrading software of wireless router
US20150205316A1 (en) Apparatus and method for managing energy information profile of home based on smart plug
CN108592311B (en) Air conditioner equipment pairing method and device
US20150077332A1 (en) Display information collecting device and hmi system
JP3447893B2 (en) Data collection system using PHS terminal device
CN202662020U (en) Information prompting system
CN103001838A (en) Method and system for generation and use of sensor device identifiers and related devices
CN106785138A (en) A kind of charging method and device
CN105359197A (en) Surveillance system with intelligently interchangeable cameras
CN111130869A (en) Intelligent gateway engineering installation data recovery method and device
CN115346311A (en) Communication method of shared charging equipment, shared charging device and equipment
KR101665594B1 (en) Tracing method for the lost using beacon and mobile terminal
CN103023990A (en) Image file upgrade system and method in stack system
CN105207367A (en) Remote electrical monitoring system
JP5687394B2 (en) Data collection system and data collection program
US20180014181A1 (en) Wireless communication device
CN110830944A (en) Wireless sensing relay message processing method and power equipment monitoring system
CN112004217B (en) Network access method, terminal and storage medium
CN104244172A (en) Information interaction method and device
CN112311736B (en) Remote control device, household appliance and communication protocol configuration method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination