Self-service payment shared electric appliance control system and method

By designing a self-service paid shared electrical control system, using the two-way communication and control scripting technology of user terminals, servers and intelligent remote controllers, the problem that existing intelligent remote controllers cannot take into account both universality and security is achieved. Complex control and safety protection of shared appliances.

CN119445722APending Publication Date: 2025-02-14PRIMATE ROBOT (HANGZHOU) CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411556682.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-04
Publication Date
2025-02-14

AI Technical Summary

Technical Problem

Existing intelligent remote controllers cannot take into account both universality and safety in shared electrical systems, and there are problems such as single control mode, inaccurate timing and poor safety.

Method used

A self-service paid shared electrical appliance control system is designed, including user terminals, servers and intelligent remote controllers. Through the generation and issuance of two-way communication and control scripts, complex control and security protection of shared electrical appliances are achieved.

Benefits of technology

It realizes the versatility and professionalism of the intelligent remote controller, can control the electromagnetic relay through GPIO, and communicate with the original control motherboard of the shared appliance factory through communication ports such as UART, IIC, CAN, etc., realizes closed-loop control, and improves the flexibility of the system. Sex and safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119445722A_ABST
    Figure CN119445722A_ABST
Patent Text Reader

Abstract

The invention discloses a self-service payment shared electric appliance control system and method, and belongs to the field of electric appliance control, and the system comprises a user terminal which is used for accessing a user interface of a shared electric appliance application, completing shared electric appliance selection, service mode selection and fee payment, and transmitting a payment success message and a selection result to a first server; the first server is used for receiving a payment success message and a selection result from the user terminal, generating a corresponding control script and issuing the control script to the intelligent remote controller; the intelligent remote controller is used for receiving the control script from the first server, converting the control script into a control signal which can be identified by the shared electric appliance, and sending the control signal to the shared electric appliance; and the shared electric appliance is used for receiving the control signal from the intelligent remote controller and executing corresponding service. According to the invention, the intelligent remote controller not only has the same universality as the existing technical scheme, but also has flexibility and specialty.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electrical appliance control, and in particular to a self-service payment shared electrical appliance control system and method. Background Art

[0002] There are many shared electrical appliances on the market that can be used with self-service payment, such as shared washing machines, shared coffee machines and shared rocking cars. These devices do not require staff to be on duty, have low costs and high profits, but these devices usually have built-in professional smart remote controllers. This professional smart remote controller can only be used to control a certain type of shared electrical appliances. For example, the professional smart remote controller built into a washing machine can only be used to control a washing machine, but not a coffee machine or a rocking car. In other words, the smart remote controller is not universal, and developing a smart remote controller separately for each electrical appliance will inevitably lead to high costs.

[0003] Of course, there are also general intelligent remote controllers on the market. Its essence is an IoT terminal that can be remotely controlled through the Internet, and an electromagnetic relay is attached. Its function is to allow customers to purchase a certain amount of usage time, supply power during this period, and cut off the power after the time is exceeded. Its advantage is that it can be used universally, no matter what kind of electrical appliances can be controlled, and there is no need to modify the mechanical and circuit structure of the original electrical equipment, so that customers do not have to invest a lot of money to purchase professional washing machines with IoT functions. In addition, there are a large number of finished intelligent remote controllers for sale on e-commerce platforms such as Taobao, and the price is only about 100 yuan, but it has the following problems:

[0004] 1. The control mode is single and cannot realize complex functions. That is, it can only control the on and off time of the power supply, but cannot control the speed of the washing machine, the washing mode, or whether the coffee machine makes milk foam.

[0005] 2. Open-loop control mode, the timing is not accurate, and it is impossible to accurately know when the appliance actually starts working. That is, it can only use a simple timing method, which is only suitable for equipment sold by duration, such as automatic mahjong machines and rocking cars. For safety reasons, most electrical appliances do not start working as soon as they are powered on, but require the user to press the [Start] button to work. For equipment sold by the time, it is impossible to accurately predict the time consumed by consumers operating the panel and buttons. Therefore, the instructions for such products will remind merchants operating shared washing machines to set the power-on time that consumers can enjoy to be longer. For example, the single spin-drying function consumes 12 minutes. If the consumer purchases the single spin-drying function, the power-on time is set to 15 minutes. The extra 3 minutes are for the consumer to operate the washing machine buttons.

[0006] 3. Poor security. Since it only controls the on and off of the power supply and the electrical equipment is unattended, malicious users can easily use the flying wire method to connect the external power supply directly to the controlled electrical equipment with wires, thereby bypassing the smart remote controller to use the controlled electrical equipment. This cracking method only requires the most basic electrical knowledge and tools and is very easy to implement. Therefore, the security protection measures of this smart remote controller are very weak.

[0007] In short, the intelligent remote controller in the prior art cannot have both universality and professionalism at the same time. The universal one is not professional, and the professional one is not universal. Summary of the invention

[0008] The purpose of the present invention is to provide a self-service payment shared electrical appliance control system and method to solve the problem that the existing remote intelligent controllers used in various shared electrical appliances cannot take into account both versatility and safety.

[0009] To achieve the above objectives, this application adopts the following technical solutions:

[0010] The present application discloses a self-service payment shared appliance control system, the system comprising a user terminal, a first server, an intelligent remote controller and a shared appliance, wherein:

[0011] The user terminal is used to access the user interface of the shared appliance application, complete the shared appliance selection, service mode selection and fee payment, and send the payment success message and selection result to the first server;

[0012] The first server is communicatively connected to the user terminal, and is used to obtain a payment success message and receive a selection result from the user terminal, generate a control script corresponding to the selection result, and send it to the intelligent remote controller;

[0013] The intelligent remote controller is respectively connected to the first server and the shared appliance for receiving a control script from the first server, converting the control script into a control signal recognizable by the shared appliance, and sending the control signal to the shared appliance;

[0014] The shared electrical appliance is used to receive the control signal from the intelligent remote controller and execute corresponding services.

[0015] Preferably, the system further comprises a second server permanently connected to the intelligent remote controller, the second server being used to send instructions for updating the connection configuration of the first server to the intelligent remote controller so that the intelligent remote controller can be permanently connected to the new first server according to the latest connection configuration information.

[0016] Preferably, the user terminal accessing the user interface of the shared appliance application includes reading an identity tag of the shared appliance, wherein the identity tag includes an identity identifier of the shared appliance.

[0017] Preferably, the first server includes a data acquisition module, a script generation module, a delivery module and a database;

[0018] The data acquisition module is used to obtain the intelligent remote controller identity, shared appliance identity and service mode identity associated with the selection result, and extract the corresponding business configuration data from the database;

[0019] The script generation module is used to generate a control script corresponding to the selection result according to the service configuration data and a preset control script template;

[0020] The sending module is used to send the control script to the intelligent remote controller;

[0021] The database is used to store the configuration information of the intelligent remote controller and the shared electrical appliances and the corresponding relationship between each service mode in the shared electrical appliances and the preset control script template.

[0022] Preferably, the first server further comprises an anti-fraud code generation module, wherein the anti-fraud code generation module is used to periodically generate random anti-fraud codes and send the anti-fraud codes to the intelligent remote controller and the user terminal.

[0023] Preferably, the intelligent remote controller includes a main control MCU communicatively connected to the first server and the shared electrical appliance, for receiving a control script issued by the first server, and sending a control signal obtained by converting the control script to the corresponding shared electrical appliance.

[0024] Preferably, the main control MCU includes a script interpreter, a converter, a storage module and a feedback module;

[0025] The script interpreter is used to parse the control script to obtain control instructions;

[0026] The converter is used to convert the control instruction into a control signal recognizable by the shared electrical appliance;

[0027] The storage module is used to cache all control scripts and their corresponding function names sent by the first server;

[0028] The feedback module is used to feed back the cache result to the first server, and when the cache fails, feed back the failure reason to the first server.

[0029] Preferably, the intelligent remote controller further comprises an infrared sensor and a sound player;

[0030] The infrared sensor is used to detect whether a person continues to approach the shared appliance within a set time;

[0031] The sound player is used to play the voice corresponding to the anti-fraud code sent by the first server when the infrared sensor detects that someone continues to approach the shared appliance within a set time.

[0032] Preferably, the first server further comprises a billing module, which is used to determine the payable fees of the user according to the selection result and a preset fee standard, and send the payable fees to the user terminal.

[0033] A self-service payment shared electrical appliance control method comprises the following steps:

[0034] Log in to the user interface of the shared appliance application through the user terminal, select the shared appliance and service mode, and send the selection result to the first server;

[0035] The first server calculates the payable fee according to the selection result and a preset fee standard, and sends the payable fee to the user terminal;

[0036] The user terminal pays the payable fee, and the first server obtains a payment success message from a third-party payment platform or the user terminal;

[0037] The first server generates a control script corresponding to the selection result based on the payment success message, and sends the control script to the intelligent remote controller;

[0038] The intelligent remote controller receives the control script and converts the control script into a control signal recognizable by the shared electrical appliance;

[0039] The control signal is sent to the shared appliance, and the shared appliance receives the control signal and executes a corresponding service.

[0040] The present invention has the following beneficial effects:

[0041] In the present invention, the intelligent remote controller can directly control the electromagnetic relay through GPIO, realizing the same power on-off control function as the existing intelligent remote controllers on the market, and has the same versatility as the existing technical solutions. It can also communicate bidirectionally with the control motherboard of the shared electrical appliance manufacturer through UART, IIC, CAN and other communication ports to achieve closed-loop control, and has flexibility and professionalism. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1It is a structural diagram of a self-service payment shared appliance control system provided by an embodiment of the present invention;

[0043] Figure 2 It is a structural diagram of a first server of a self-service payment shared appliance control system provided by an embodiment of the present invention;

[0044] Figure 3 It is a structural schematic diagram of an intelligent remote controller of a self-service payment shared electrical appliance control system provided by an embodiment of the present invention;

[0045] Figure 4 The present invention provides a flowchart of a self-service payment shared appliance control method. DETAILED DESCRIPTION

[0046] To make the technical solution of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The terms "first", "second", etc. in the claims and specification of the present application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances. This is only to describe the distinction method adopted when describing objects with the same attributes in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that a process, method, system, product or device containing a series of units is not necessarily limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or devices.

[0047] Example 1

[0048] Figure 1 A schematic diagram of a self-service payment shared appliance control system provided in Example 1 of the present invention, such as Figure 1 As shown, a self-service payment shared appliance control system includes a user terminal, a first server, an intelligent remote controller and a shared appliance, wherein:

[0049] The user terminal is used to access the user interface of the shared appliance application, complete the shared appliance selection, service mode selection and fee payment, and send the payment success message and selection result to the first server;

[0050] The first server is communicatively connected to the user terminal, and is used to obtain a payment success message and receive a selection result from the user terminal, generate a control script corresponding to the selection result, and send it to the intelligent remote controller;

[0051] The intelligent remote controller is respectively connected to the first server and the shared appliance for receiving a control script from the first server, converting the control script into a control signal recognizable by the shared appliance, and sending the control signal to the shared appliance;

[0052] The shared electrical appliance is used to receive the control signal from the intelligent remote controller and execute corresponding services.

[0053] In this embodiment, the user terminal is a mobile phone, on which a mobile interface is running, including an official App, a mini-program or an HTML5 web page. However, no matter which type of mobile interface it is, its essence is the user interface of the shared appliance application. After correctly operating the user interface, various shared appliances can be used, such as a shared coffee machine and a microwave oven.

[0054] There are also many ways to access the user interface through the user terminal. If the user has an official APP or mini program on his mobile phone, he can directly open the official APP or mini program to enter the user interface. If the user does not have an official APP or mini program on his mobile phone, he can also directly open the HTML5 webpage of the shared appliance operator through the uniform resource locator URL of the shared appliance application to enter the user interface. It should be noted here that after entering the user interface through these methods, users can manually search and select a specific shared appliance to be used. For example, they can search for all shared appliances at their location according to GPS coordinates and manually select the shared washing machine with the identity number 8. If the user does not have the above-mentioned official APP, mini program, or the URL of the HTML5 webpage, they can access the user interface of the shared appliance application by reading the identity identification tag of the shared appliance. Among them, the identification tag can be a barcode, a QR code or an NFC tag, etc., and the content in the identification tag can be the URL of the shared appliance application, or the identity ID of the shared appliance. If the identification tag is a QR code and the QR code content is a URL, when the user uses WeChat, Alipay, etc. to scan it, the browser (including the browser built into Alipay and WeChat) will be automatically called to open the web page corresponding to the URL, and the front-end code in the web page can also call up the official App or mini program of the shared appliance operator; if the identification tag is an NFC tag and the NFC tag is a URL, when the user uses a mobile phone with NFC function to read it, the system default browser such as Apple's Safari will be automatically called to open this web page, and the front-end code in the web page can also call up the official App or mini program; if the identification tag is a barcode, it can only be read with the official App. Therefore, the identity tag containing the URL is compatible with new users who have not installed the official App, while the identity tag without the URL can only be used by old customers who have installed the official App or mini program.

[0055] The first server is the operator's server, which is used to issue business operation instructions such as washing clothes, heating meals, and charging. It can be accessed by user terminals and runs server software on it.

[0056] An intelligent remote controller is externally connected to a shared appliance, wherein the intelligent remote controller and the shared appliance can correspond one-to-one or one-to-many, that is, one intelligent remote controller can be externally connected to multiple shared appliances. An embedded software runs on the intelligent remote controller. The embedded software is configured with a first server address at the factory, and will automatically initiate a connection request to the first server and maintain a persistent connection to receive information pushed by the first server in real time. The embedded software also has a script interpreter that can run any one of Python, JavaScript, Lua, custom DSL scripts, etc.

[0057] The intelligent remote controller must also meet the following conditions:

[0058] 1) It has the ability to access the Internet in order to communicate with the first server, and can access the Internet through WiFi, Ethernet or cellular phone modules. Typical implementation methods are: the ESP32 series directly uses the MCU built-in WiFi module, the Wiznet W5500 series external Ethernet module, and the China Mobile M5311 series external 4G module.

[0059] 2) It has 2M bytes of flash memory to accommodate the script interpreter firmware. Typical implementation methods include: directly using an MCU with a built-in Flash greater than or equal to 2MB, such as STM32F429ZIT6 with a built-in 2MB Flash, ESP32-C3FN4 with a built-in 4MB Flash, or directly using an SPI Flash with a capacity greater than 2MB, such as WINBONDW25Q128JVSIQ with a capacity of up to 16MB.

[0060] In addition, it is also necessary to have relevant communication ports, such as general purpose input and output ports (GPIO) to control electromagnetic relays or optocouplers, thyristors, and UART, IIC and SPI, etc., to communicate with the control motherboard of the shared electrical appliance manufacturer. However, this is a feature that almost all MCUs have, and there are a large number of control boards that can meet the above conditions on the market, such as the popular STM32F4 development board and ESP32 development board on Taobao, so I will not go into details about this.

[0061] The intelligent remote controller communicates with the first server through the MQTT protocol. MQTT has built-in message subscription and publishing mechanisms as well as a mechanism to ensure successful sending at least once. The communication messages are short, more suitable for weak network environments, and have lower development costs.

[0062] Existing smart remote controllers have a common shortcoming: the embedded software has the server connection configuration information hard-coded into it when it leaves the factory. Shared appliance operators can only use the server specified by the smart remote controller manufacturer (hereinafter referred to as the manufacturer) to implement price setting and payment collection functions. The manufacturer controls the payment channel, forms a capital pool, and settles accounts with the operator on a regular basis. For the operator, this poses problems such as financial insecurity, high costs, and inconvenience in resale.

[0063] Based on this, there is also a second server in the control system of this embodiment, namely the manufacturer's management server. The second server is persistently connected to the smart remote controller through MQTT, but this connection is only used to receive the instruction of "update the operator server connection configuration". The update instruction contains the latest connection configuration information of the first server, specifically including the latest URL of the first server such as protocol, domain name or IP, port and file path, login authentication information such as a pair of account passwords and passwords and UUID and other globally unique unique identifiers of the smart remote controller.

[0064] After receiving the update command, the intelligent remote controller will use the connection configuration information to connect to the latest first server. If the connection is successful, it will be persistently stored locally (Flash storage or EEPROM), overwriting the previous configuration. If the connection fails, it will not be updated and will continue to use the original connection configuration information.

[0065] In addition to passively waiting for notification from the second server, the intelligent remote controller can also actively initiate a request to the manufacturer's server interface to query the latest connection configuration information. The triggering condition is: the manufacturer's server can communicate, but the operator's server connection fails and lasts for a period of time.

[0066] In this case, the smart remote controller may be built-in with the manufacturer's own management server connection information by default when it leaves the factory. The manufacturer may hand over the smart remote controller hardware product to the operator as a whole and guide the operator to build its own server. At the same time, the manufacturer may also guide the operator to print an identity label containing the operator's own server URL. When the smart remote controller manufacturer sends an "update operator server connection configuration" instruction to all smart remote controllers that have been delivered to the operator in the background, all these smart remote controllers can be connected to the server built by the operator, so that subsequent consumers can scan the code to access the operator's server, and it is the operator's own server that issues instructions to the smart remote controller. When the operator wants to resell it to other people, the management rights of the smart remote controller can also be conveniently transferred to the new buyer.

[0067] The control system in this embodiment can meet the functional requirements of various shared electrical appliances and is universal and professional.

[0068] Example 2

[0069] Figure 2 This is a schematic diagram of the structure of a first server of a self-service payment shared appliance control system provided in Embodiment 2 of the present invention, based on the above embodiment, such as Figure 2 As shown, the first server includes a data acquisition module, a script generation module, a sending module and a database;

[0070] The data acquisition module is used to obtain the intelligent remote controller identity, shared appliance identity and service mode identity associated with the selection result, and extract the corresponding business configuration data from the database;

[0071] The script generation module is used to generate a control script corresponding to the selection result according to the service configuration data and a preset control script template;

[0072] The sending module is used to send the control script to the intelligent remote controller;

[0073] The database is used to store the configuration information of the intelligent remote controller and the shared electrical appliances and the corresponding relationship between each service mode in the shared electrical appliances and the preset control script template.

[0074] After the first server receives the user's shared appliance selection result, service mode selection result and payment success message, its data acquisition module will retrieve the corresponding business configuration data based on the smart remote controller identity ID, shared appliance identity ID and service mode identity ID associated with the order after the user places the order. It should be noted here that if the user enters the user interface by reading the identity identifier of the shared appliance, the shared appliance at this time has been fixed by the identity ID carried in its identity identifier, and the user does not need to select the shared appliance. In other words, in this case, the identity identification tag on the shared appliance is read, which represents the shared appliance selected by the user, and there is no need to select again. Therefore, the shared appliance selection result of the user received by the first server is the default identity identification ID in its identity identification tag. At the same time, the payment success message received by the first server can come directly from the server of a third-party payment platform such as Alipay and WeChat, or it can be conveyed via the user terminal. The business configuration data are all stored in the database of the first server. The database specifically records the configuration information of the intelligent remote controller and shared appliances, as well as the correspondence between each service mode in the shared appliances and the preset control script template. The configuration information of the intelligent remote controller includes a unique identifier, the script interpreter type and version, and the datasheet of the main control MCU, which is mainly the mapping of the pin number and the communication module. For example, on ESP32-S3, the RX and TX pin numbers of serial port 2 are 16 and 17 respectively. The configuration information of the shared appliances is mainly the connection between each shared appliance and the pin of the main control MCU of the intelligent remote controller. For example, the power supply of the shared washing machine is controlled by a solid-state relay, and the control coil of the solid-state relay is connected to the 13th GPIO of the MCU. The water inlet pipe of the shared washing machine is controlled by a solenoid valve, and the control coil of the solenoid valve is connected to the 14th GPIO of the MCU, etc. Then, the script generation module replaces the placeholder in the preset control script template with the real configuration information in the business configuration data, thereby generating the executable code for this service, namely the control script, and then uses the sending module to send the control script to the intelligent remote controller.

[0075] Assuming that a coffee machine can be controlled through a serial port, sending Espresso can make a cup of espresso, the control script sent is as follows:

[0076] from machine import UART

[0077] #Select uart 2

[0078] uart=UART(2,baudrate=115200,rx=16,tx=17,timeout=10)#Select the serial port number and baud rate according to the actual situation

[0079] #Send the 'Espresso' command to the coffee machine

[0080] uart.write('Espresso').

[0081] This control script means: send a command to make a cup of espresso to the original control board of the coffee machine through serial port 2. This is equivalent to selecting a cup of espresso on the physical button of the coffee machine and clicking to start making it.

[0082] Send this code to the shared coffee machine through the smart remote controller, and you can start making a cup of espresso.

[0083] The preset control script templates in the first server are all stored in the code template library. The code templates are script codes developed and tested by script developers in the test environment. Parameters that cannot be predicted in the development environment are replaced by placeholders. In the production environment, real data can be found in the database based on the various data associated with the order after the user places an order to replace these placeholders.

[0084] If there is no template mechanism, the script generation program needs to use string concatenation operations to generate script code. Such a script generation program is not easy to read, debug and maintain. The introduction of the template mechanism can solve these problems well, effectively improve script development efficiency and reduce maintenance costs.

[0085] Example:

[0086] #GPIO of the solenoid valve that controls the water inlet of the washing machine gpio_pin = Pin({washing machine water inlet solenoid valve}, Pin.OUT).

[0087] The placeholders are in the curly brackets. If we find out from the database that the water inlet valve of a shared washing machine is controlled by GPIO No. 15 on the smart remote controller, the code after replacing the placeholders is:

[0088] #GPIO of the solenoid valve that controls the water inlet of the washing machine gpio_pin = Pin (15, Pin.OUT).

[0089] Preferably, the Jinja template engine in the Python ecosystem is used to implement the placeholder mechanism.

[0090] The intelligent remote controller in this embodiment can directly control the electromagnetic relay through GPIO, realizing the same power on-off control function as the existing intelligent remote controllers on the market, and has the same versatility as the existing technical solutions. At the same time, the intelligent remote controller can also communicate bidirectionally with the control motherboard of the shared electrical appliance manufacturer through UART, IIC, CAN and other communication ports to achieve closed-loop control, and also has flexibility and professionalism.

[0091] In addition, the essence of the control script is a string. After the control script is generated on the first server side, it is sent to the MCU of the smart remote controller through a two-way persistent connection MQTT or WebSocket. At the same time, the script code can be transmitted through encoding such as JSON or Base64 and a transmission verification mechanism.

[0092] Preferably, the encoding protocol uses JSON because it is widely used in various programming languages, has a broad mass base among developers, is more concise than XML, and has lower requirements for typesetting than YAML.

[0093] In order to simplify the instructions, some DSL instructions can be extracted in advance according to common business scenarios. These DSL instructions are more concise and easier to read than script codes.

[0094] For example, the DSL example of an automatic timer switch is:

[0095] task_type=auto_relay#Task type is auto_relay

[0096] gpio_port=12#GPIO port used is 12

[0097] duration=900 # The opening duration is 900 seconds (15 minutes).

[0098] This type of DSL can support self-service laundry, shared rocking bikes, and two-wheeled electric vehicle charging scenarios, and the control method is to control the total power supply of electrical appliances on and off.

[0099] For another example, the DSL example for sending serial port commands is:

[0100] task_type=uart_command#Task type is uart_command

[0101] uart_port = 1 # The UART port used is the first one

[0102] comamnd=Espresso#The content of the serial message sent is Espresso.

[0103] This type of DSL can support electrical appliances with their own control panels, such as self-service coffee machines and washing machines. The control method is to communicate with the control panel of the electrical appliance through the serial port and send instructions.

[0104] For example, the DSL example for sending arbitrary Python code is:

[0105] task_type=python_code#Task type is python_code

[0106] function_name = make_espresso #The function name is make_espresso

[0107] code="from machine import UART

[0108] uart=UART(2, baudrate=115200, rx=16, tx=17, timeout=10)

[0109] uart.write('Espresso')".

[0110] Furthermore, the first server also includes a billing module, which is used to determine the payable fees of the user according to the selection result and a preset fee standard, and send the payable fees to the user terminal.

[0111] After the user selects the shared appliance and the service mode or the service-only mode in the user interface of the shared appliance application, the user interface will feed back the user's selection result to the first server. After the first server receives the information, its billing module will calculate the user's payable fees based on the service mode selected by the user and the preset fee standard, combined with factors such as device type, time, geographical location, demand popularity, and preferential conditions, and feed back the payable fees to the user interface on the user terminal so that the user can pay the fees.

[0112] The payment method provided by the first server here can be cash, or equivalents recognized by other operators such as points, coupons, or credit points that can be paid later. As for how users obtain coupons, there are many ways, such as watching a few minutes of advertising, downloading and registering the APP with real names, inviting others to download the APP and register, etc. These are relatively mature and common in the Internet industry, and are not listed here one by one.

[0113] The intelligent remote controller does not need to be informed of the payment status by the first server. It only receives the script code sent by the first server. It does whatever the first server tells it to do. Discounts and other equivalents are all the business of the first server, thus achieving good separation of responsibilities and improving the flexibility of the entire system.

[0114] Furthermore, the first server also includes an anti-fraud code generation module, which is used to periodically generate random anti-fraud codes and send the anti-fraud codes to the intelligent remote controller and the user terminal.

[0115] This mainly happens when users use their mobile phones to scan the identification tags on shared appliances to enter the user interface. Since the identification tags are not readable by the human eye, consumers cannot judge whether they have been maliciously replaced based on their appearance. Therefore, some criminals paste their self-generated identification tags onto other people's shared appliances. After the consumer uses the user terminal to read the identification tag, the user terminal automatically opens the corresponding URL, which actually means entering the criminals' web page. If the consumer continues to pay, he or she will pay the criminals. This is essentially a phishing attack.

[0116] Even if the shared device operator provides a native app, this problem cannot be completely solved, because only old users have installed the official app or mini program and use it to scan the code or read the NFC tag, so they will not be deceived. New users generally use third-party apps such as WeChat and Alipay to scan the QR code, or use the NFC card reader function built into the mobile phone operating system to read the NFC tag. If the consumer scans (reads) an identity containing a malicious URL, there is no chance to enter the interface for downloading and installing the official app, and they will still be deceived.

[0117] Based on this, the anti-fraud code generation module of the first server in this embodiment will periodically generate a random anti-fraud code, for example, a photo of a rabbit plus three numbers 520, and the anti-fraud code for each time period and the anti-fraud code corresponding to each controller are different, where the rabbit photo comes from a large photo pool. The content of each photo in the photo pool is different, some are rabbits, some are cats, and each photo has an integer serial number, and the serial numbers are continuous. When generating an anti-fraud code, a random serial number is first generated within a limited serial number interval. The numbers in the anti-fraud code are also randomly generated, which is different from the serial number of the photo. The generated anti-fraud code information is sent to the corresponding intelligent remote controller. After the anti-fraud code reaches the intelligent remote controller, the main control MCU of the intelligent remote controller can generate an anti-fraud text prompt to be displayed on the LCD screen, or it can generate an anti-fraud prompt voice. Preferably, the hardware cost of generating voice is low. In this embodiment, the generation of voice is described as an example. At the same time, the first server also sends the anti-fraud code information to the corresponding user interface opened after reading the identity identification tag (through MQTT or WebSocket), notifying the user interface to display the graphical anti-fraud code. The corresponding user interface opened after the user reads the shared electrical appliance identity identification tag generates a corresponding image display according to the anti-fraud code for the user to check. If the user cannot see this anti-fraud code, or the content of the anti-fraud code is inconsistent with the voice playback, it means that the identity identification has been replaced by someone. This can avoid the situation where the user is deceived after the identity identification tag is maliciously replaced.

[0118] Example 3

[0119] Figure 3This is a schematic diagram of the structure of an intelligent remote controller for a self-service payment shared appliance control system provided in Embodiment 3 of the present invention, based on the above embodiments, such as Figure 3 As shown, the intelligent remote controller includes a main control MCU that is communicatively connected to the first server and the shared electrical appliance, and is used to receive a control script issued by the first server, and send a control signal obtained by converting the control script to the corresponding shared electrical appliance.

[0120] Furthermore, the main control MCU includes a script interpreter, a converter, a storage module and a feedback module;

[0121] The script interpreter is used to parse the control script to obtain control instructions;

[0122] The converter is used to convert the control instruction into a control signal recognizable by the shared electrical appliance;

[0123] The storage module is used to cache all control scripts and their corresponding function names sent by the first server;

[0124] The feedback module is used to feed back the cache result to the first server, and when the cache fails, feed back the failure reason to the first server.

[0125] After the first server sends the control script, the main control MCU of the intelligent remote controller will first receive the control script, and then parse and forward the control script. Specifically, an embedded program is developed on the main control MCU using C / C++. This program is a general program that resides in the main control MCU memory and runs uninterruptedly. It is only responsible for communicating with the first server, receiving the script code sent by the first server and executing the script code.

[0126] This embedded program has a built-in script interpreter. By calling the relevant functions of the script interpreter, the script can be parsed, compiled, and executed. The script interpreter can be open source MicroPython, JerryScript, or eLua, or it can be self-developed.

[0127] Preferably, MicroPython is used as the Python script interpreter because of its mature ecology, easy code reading and writing, low development threshold, and firmware size of only 1-2M bytes. JavaScript can also run on the master MCU, and the corresponding JavaScript script interpreters are JerryScript, Espruino, DukTape, and Mongoose JS. Of course, Lua can also run on the master MCU, and the corresponding script interpreter is eLua. At the same time, the source code of the embedded program and the script interpreter are statically linked and compiled, and the final compiled product is a binary firmware. In traditional technical solutions, embedded software is developed in C / C++ language, and after successful testing, it is compiled into binary firmware.

[0128] In the traditional technical solution, embedded software is developed in C / C++ language. After the test is successful, it is compiled into binary firmware and burned into the main control MCU. Specifically, it is generally burned on Flash storage, which may be the built-in Flash of the main control MCU or the external Flash. Every time a bug is fixed and a new function is added, complex coding, testing, and burning steps must be performed. If the intelligent remote controller has been delivered to the user, it is very troublesome to upgrade. The most common practice is that the manufacturer's technicians bring a laptop and a data cable to the customer site, connect to the burning port of the intelligent remote controller motherboard, and then burn the new version of the firmware, which will bring huge travel and labor costs. In this embodiment, the OTA technology in Apple mobile phones and Tesla electric vehicles is introduced, that is, the new version of the binary firmware is downloaded from the Internet and installed and updated, and the upgrade can be achieved. The instruction to trigger OTA is also issued through MQTT. In this embodiment, a scripting language is used to implement the control function. No matter which one of Python, JavaScript, and Lua is used, its development cost is exponentially reduced compared to C / C++, and the script that implements the control function is stored in the first server, and the intelligent remote controller end is only a cache. If only the appliance control script is updated (not the C++ firmware and script interpreter itself), even the OTA upgrade step can be omitted, and the new version of the script can be directly issued to overwrite it. In this way, the cost and risk of releasing a new version are lower. At the same time, the scripts corresponding to different functions are independent of each other, the code coupling is lower, and the development and maintenance costs are lower.

[0129] The control scripts sent by the first server all have function names and are persistently stored by the storage module of the main MCU of the intelligent remote controller. At the same time, its feedback module will also send information on whether the caching is successful to the first server. If the caching fails, the reason for the failure will be fed back at the same time. After the caching is successful, the first server only needs to send the function name instead of the complete control script next time, thereby saving communication costs and communication time.

[0130] After receiving the function name, the intelligent remote controller retrieves the previously cached code and executes it. If the script code sent multiple times uses the same function name, the new script code will overwrite the old one.

[0131] In general, the Flash storage of the main MCU (including external Flash storage) is sufficient to cache all script codes, because Flash storage is not expensive, 16M Byte only costs a few dollars, and the script code size is not large. Since the script language is very concise, most simple control and communication timing are usually only a few hundred to a few thousand bytes. At the same time, a controlled device often has only dozens of functions and will not cache tens of thousands of script codes.

[0132] If the storage space is insufficient, do not cache and inform the first server of the cache failure. If the first server does not receive a receipt that a control script has been successfully cached, the complete script code and function name will be sent each time a task is executed until a receipt for successful caching is received.

[0133] Furthermore, the intelligent remote controller also includes an infrared sensor and a sound player;

[0134] The infrared sensor is used to detect whether a person continues to approach the shared appliance within a set time;

[0135] The sound player is used to play the voice corresponding to the anti-fraud code sent by the first server when the infrared sensor detects that someone continues to approach the shared appliance within a set time.

[0136] The smart remote controller also has a built-in sound player such as a speaker, which is used to play an anti-fraud prompt voice after the first server sends the random anti-fraud code to the main control MCU of the smart remote controller. The voice content is a description of the random anti-fraud code. For example, if the random anti-fraud code generated by the first server is a photo of a rabbit plus the three numbers 520, the voice content should be "After scanning the code, you will see a photo of a rabbit and the three numbers 520. If you can't see them, it means that the identity identification is illegal, please report to us."

[0137] In order to reduce the disturbance of voice playback to people who happen to pass by, an infrared sensor is also set up in the smart remote controller. When it detects that someone continues to approach the shared appliance within a set time, the anti-fraud prompt voice will be played.

[0138] In this embodiment, after the consumer approaches the shared appliance, he will hear an anti-fraud prompt played by the speaker. After scanning the code or reading the NFC, he will check whether the interface that appears on the user terminal matches the anti-fraud prompt. If it does not match, it may be that the identity tag has been replaced by someone. In this case, he does not need to scan the code to pay, which can avoid the problem of users being deceived due to malicious replacement of identity tags.

[0139] Example 4

[0140] like Figure 4 As shown, a self-service payment shared electrical appliance control method includes:

[0141] S110, logging into the user interface of the shared appliance application through the user terminal, selecting a shared appliance and a service mode, and sending the selection result to the first server;

[0142] S120, the first server calculates the payable fee according to the selection result and a preset fee standard, and sends the payable fee to the user terminal;

[0143] S130: The user terminal pays the payable fee, and the first server obtains a payment success message from a third-party payment platform or the user terminal;

[0144] S140: The first server generates a control script corresponding to the selection result based on the payment success message, and sends the control script to the intelligent remote controller;

[0145] S150, the intelligent remote controller receives the control script and converts the control script into a control signal recognizable by the shared electrical appliance;

[0146] S160: Send the control signal to the shared appliance, and the shared appliance receives the control signal and executes a corresponding service.

[0147] The user opens the App on the mobile phone, which can be WeChat, Alipay, or a self-developed App, mini-program or HTML5 page that is compatible with the first server. If it is WeChat or Alipay, the identification tag on the shared appliance is read. The identification tag corresponds to the shared appliance one-to-one. If the identification tag is a QR code, it can be printed on the shared appliance in advance or dynamically displayed on the display screen of the shared appliance; if it is an NFC tag, it is an active or passive NFC tag with data written in advance and pasted on the shared appliance. And because the identity tag is essentially a string, the string content corresponding to the identity tag is set as the URL of the shared appliance application or the identity ID of the shared appliance. If it is a URL, the URL also contains the identity ID of the corresponding shared appliance. After the mobile phone reads it, it will automatically access this URL to open the HTML5 page or call up the aforementioned self-developed App or mini-program that is compatible with the first server, so as to display the page for ordering services, that is, the user interface of the shared appliance application. If the user interface is directly entered through the official APP, mini-program or URL, the user can independently select a shared appliance to be used, and then the user can select a specific service mode according to the needs. There are many service modes that can be provided, such as shared washing machines. The first server calculates the price based on the user's selection and displays it to the user. The pricing here is not only based on the preset fee standard, but also on factors such as device type, time, geographic location, demand popularity and preferential conditions. The payable fees are then displayed on the user interface. After the user completes the payment based on the payable fees, the first server receives a payment success message from a third-party payment platform such as Alipay or the user terminal, and based on the payment success message, sends a control script corresponding to the user's selection result to the smart remote controller. After receiving the control script, the smart remote controller first parses it with a script interpreter, and then converts it into a control signal that can be recognized by the corresponding shared appliance and sends it to the shared appliance. After receiving the control signal, the shared appliance executes the corresponding service.

[0148] This embodiment is applied to the system provided by the above embodiment, and has the corresponding beneficial effects of the above system. For technical details not described in detail in this embodiment, please refer to the system provided by all the above embodiments of the present invention.

[0149] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A self-service payment shared appliance control system, characterized in that: The system includes a user terminal, a first server, an intelligent remote controller and a shared electrical appliance, wherein: The user terminal is used to access the user interface of the shared appliance application, complete the shared appliance selection, service mode selection and fee payment, and send the selection result to the first server; The first server is communicatively connected to the user terminal, and is used to obtain a payment success message and receive a selection result from the user terminal, generate a control script corresponding to the selection result, and send it to the intelligent remote controller; The intelligent remote controller is respectively connected to the first server and the shared appliance for receiving a control script from the first server, converting the control script into a control signal recognizable by the shared appliance, and sending the control signal to the shared appliance; The shared electrical appliance is used to receive the control signal from the intelligent remote controller and execute corresponding services.

2. A self-service payment shared appliance control system according to claim 1, characterized in that: The system also includes a second server permanently connected to the intelligent remote controller, and the second server is used to send an instruction to update the first server connection configuration to the intelligent remote controller so that the intelligent remote controller can permanently connect to the new first server according to the latest connection configuration information.

3. A self-service payment shared appliance control system according to claim 1, characterized in that: The user terminal accessing the user interface of the shared appliance application includes reading the identity identification tag of the shared appliance, where the identity identification tag includes the identity identifier of the shared appliance.

4. A self-service payment shared appliance control system according to claim 1, characterized in that: The first server includes a data acquisition module, a script generation module, a sending module and a database; The data acquisition module is used to obtain the intelligent remote controller identity, shared appliance identity and service mode identity associated with the selection result, and extract the corresponding business configuration data from the database; The script generation module is used to generate a control script corresponding to the selection result according to the service configuration data and a preset control script template; The sending module is used to send the control script to the intelligent remote controller; The database is used to store the configuration information of the intelligent remote controller and the shared electrical appliances and the corresponding relationship between each service mode in the shared electrical appliances and the preset control script template.

5. A self-service payment shared appliance control system according to claim 3, characterized in that: The first server also includes an anti-fraud code generation module, which is used to periodically generate random anti-fraud codes and send the anti-fraud codes to the intelligent remote controller and the user terminal.

6. A self-service payment shared appliance control system according to claim 1, characterized in that: The intelligent remote controller includes a main control MCU that is communicatively connected to the first server and the shared electrical appliance. The main control MCU is used to receive a control script sent by the first server and send a control signal obtained by converting the control script to the corresponding shared electrical appliance.

7. A self-service payment shared appliance control system according to claim 6, characterized in that: The main control MCU includes a script interpreter, a converter, a storage module and a feedback module; The script interpreter is used to parse the control script to obtain control instructions; The converter is used to convert the control instruction into a control signal recognizable by the shared electrical appliance; The storage module is used to cache all control scripts and their corresponding function names sent by the first server; The feedback module is used to feed back the cache result to the first server, and when the cache fails, feed back the failure reason to the first server.

8. A self-service payment shared appliance control system according to claim 5, characterized in that: The intelligent remote controller also includes an infrared sensor and a sound player; The infrared sensor is used to detect whether a person continues to approach the shared appliance within a set time; The sound player is used to play the voice corresponding to the anti-fraud code sent by the first server when the infrared sensor detects that someone continues to approach the shared appliance within a set time.

9. A self-service payment shared appliance control system according to claim 4, characterized in that: The first server also includes a billing module, which is used to determine the payable fees of the user according to the selection result and a preset fee standard, and send the payable fees to the user terminal.

10. A self-service payment shared electrical appliance control method, characterized in that: The following steps are involved: Log in to the user interface of the shared appliance application through the user terminal, select the shared appliance and service mode, and send the selection result to the first server; The first server calculates the payable fee according to the selection result and a preset fee standard, and sends the payable fee to the user terminal; The user terminal pays the payable fee, and the first server obtains a payment success message from a third-party payment platform or the user terminal; The first server generates a control script corresponding to the selection result, and sends the control script to the intelligent remote controller; The intelligent remote controller receives the control script and converts the control script into a control signal recognizable by the shared electrical appliance; The control signal is sent to the shared appliance, and the shared appliance receives the control signal and executes a corresponding service.

Citation Information

Patent Citations

  • Equipment control method based on Wechat public platform and system

    CN105187476A

  • Method, device and conversation system for establishing conversation connection

    CN105376761A

  • Household electrical appliance control method, device and system

    CN107918362A

  • Equipment sharing system and using method

    CN110415448A

  • Household appliance, remote control method thereof and server

    CN110647420A