CN115361465B - Intelligent remote controller system based on raspberry group and WeChat applet - Google Patents
Intelligent remote controller system based on raspberry group and WeChat applet Download PDFInfo
- Publication number
- CN115361465B CN115361465B CN202210980346.7A CN202210980346A CN115361465B CN 115361465 B CN115361465 B CN 115361465B CN 202210980346 A CN202210980346 A CN 202210980346A CN 115361465 B CN115361465 B CN 115361465B
- Authority
- CN
- China
- Prior art keywords
- equipment
- data
- user
- intelligent
- infrared
- 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.)
- Active
Links
- 240000007651 Rubus glaucus Species 0.000 title claims abstract description 51
- 235000011034 Rubus glaucus Nutrition 0.000 title claims abstract description 51
- 235000009122 Rubus idaeus Nutrition 0.000 title claims abstract description 51
- 238000012545 processing Methods 0.000 claims abstract description 27
- 230000003993 interaction Effects 0.000 claims abstract description 12
- 238000007726 management method Methods 0.000 claims description 75
- 238000013475 authorization Methods 0.000 claims description 52
- 230000006870 function Effects 0.000 claims description 22
- 238000004806 packaging method and process Methods 0.000 claims description 4
- 230000004044 response Effects 0.000 claims description 3
- 230000005540 biological transmission Effects 0.000 claims 1
- 238000013500 data storage Methods 0.000 claims 1
- 239000000284 extract Substances 0.000 claims 1
- 230000009286 beneficial effect Effects 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 5
- 238000000034 method Methods 0.000 description 5
- 238000011161 development Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000007792 addition Methods 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007429 general method Methods 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/72409—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
- H04M1/72415—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
- H04L51/046—Interoperability with other network applications or services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0815—Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/18—Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- General Business, Economics & Management (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Automation & Control Theory (AREA)
- Telephonic Communication Services (AREA)
Abstract
The invention relates to an intelligent remote controller system based on raspberry group and WeChat applet, which comprises a WeChat applet client control subsystem, an online equipment management platform subsystem and an intelligent gateway subsystem based on raspberry group, wherein the online management platform plays a role of a supervisor and is responsible for processing the binding relation between a user and equipment, the timing task of the user to the equipment and the like; the WeChat applet client control subsystem plays a role of a decision maker, is responsible for human-computer interaction with a user, and sends an interaction system stream to an intelligent gateway or a third party cloud server platform of intelligent equipment based on raspberry group; the intelligent gateway system based on the raspberry group plays a role of a sender and is responsible for classifying messages from the line management platform and the mobile phone client control subsystem and then sending the classified messages to different hardware devices. The system is compatible with the platform management of the existing intelligent equipment, and is beneficial to users to purchase home appliances of different brands preferentially.
Description
Technical Field
The application relates to a multifunctional remote controller system based on raspberry pie and WeChat applet, and relates to the technical field of intelligent remote controllers.
Background
Along with the development of science and technology, the industry of the internet of things rises rapidly, and traditional articles for daily use are being continuously intelligentized, so that the living convenience of people is improved. Many living equipment can be combined with our mobile phone, and convenient and fast management is carried out through a simple APP, so that the terminal equipment is intelligent. With the rapid development of sensor networks, terminal equipment is becoming more popular in an intelligent manner, and a larger framework, namely intelligent home, is also beginning to appear. Many people hope that the home of oneself can realize the intellectuality, can help oneself to boil water when oneself returns home, open a series of convenient activities such as heating installation, improve oneself's living experience sense. But, products of the enterprises are basically integrated binding type, namely if people want to experience the convenient service of the smart home, you have to spend huge cost to purchase a series of brand-new intelligent devices of corresponding brands to replace the traditional infrared devices accompanied with you for years, so that the cost is higher for ordinary families, and the popularization and realization of the home intelligence are not facilitated.
Although a plurality of universal remote controllers APP are arranged in the mobile phone software mall to control the household traditional infrared equipment by acquiring the information of the online infrared code library, the control mode lacks certain flexibility and expandability, and is difficult for some unknown brands of infrared equipment to be matched with the corresponding infrared code library.
Smart home is a problem of current social comparison concern, and safety and convenience are primary targets of smart home systems. Three problems generally exist in the existing smart home technology on the market.
Problem one: the intelligent home binding type consumption has low compatibility among different brands, and is not beneficial to the preferential purchase of home equipment by users.
And a second problem: the existing mobile phone infrared universal remote controller APP has poor expansibility, and infrared equipment with unknown brands is difficult to match with a corresponding infrared code library.
Problem three: external infrared equipment based on communication with a mobile phone through a WIFI local area network is too high in price and single in function in the market.
Disclosure of Invention
In order to solve the problems, the invention develops an intelligent remote controller system which can be compatible with and control the existing intelligent equipment on the market and has the infrared equipment management function of independently learning infrared codes and decrypting an online infrared code library based on raspberry pie and WeChat applet design.
The system comprises a WeChat applet client control subsystem, an online equipment management platform subsystem and an intelligent gateway subsystem based on raspberry group, wherein the online management platform plays a role of a supervisor and is responsible for processing the binding relation between a user and equipment, the timing task of the user to the equipment and the like; the mobile phone client control subsystem plays a role of a decision maker, is responsible for carrying out man-machine interaction with a user, and transmits an interaction system stream to an intelligent gateway or a third party cloud server platform of intelligent equipment based on raspberry group; the intelligent gateway system based on the raspberry group plays a role of a sender and is responsible for classifying messages from the line management platform and the mobile phone client control subsystem and then sending the classified messages to different hardware devices.
The system is developed based on raspberry pie and WeChat applet design, has relatively low cost, is compatible with the platform management of the existing intelligent equipment, and is beneficial to users to purchase home appliances of different brands preferentially. And secondly, the system also provides an intelligent function of the traditional infrared equipment, and the newly added infrared learning function can solve the problem of difficult matching of infrared codes of some unknown brands on the basis of using an online code library to match infrared decoding information.
The technical scheme of the invention has the beneficial effects that:
1) The infrared equipment has various signal input modes, so that a user can manage the infrared equipment;
2) The system can be compatible with or integrate part of the existing intelligent equipment control management platform;
3) Compared with the mode of unified and centralized management of the cloud server adopted by the existing intelligent equipment, the invention adopts the one-to-many mode that the applet control end directly communicates with the intelligent gateway, thereby improving the communication efficiency;
4) The sqlite3 database is adopted, so that the server of the Internet of things is light and can be deployed in an intelligent gateway based on raspberry group, thereby facilitating the secondary expansion development of users locally;
5) The specific resource file is accessed by means of the authorization code, so that the complexity of authorized login is reduced, the access efficiency is improved, and the information leakage of a user is prevented;
6) The system adopts a springsecurity authorization authentication framework and a rsa encryption algorithm to ensure the information security of the user.
Drawings
FIG. 1 depicts a general frame diagram of the present invention;
FIG. 2 depicts a general method flow diagram of the present invention;
FIG. 3 depicts a method of the present invention for a mobile client subsystem with respect to device control;
FIG. 4 depicts a learning function diagram of the present invention based on conventional infrared equipment;
FIG. 5 depicts a smart device management module of the present invention;
FIG. 6 depicts a flow of the present invention to control a smart device in a home;
FIG. 7 depicts a user newly adding an IR equipment option flow in accordance with the present invention;
fig. 8 depicts a flow of home appliance control directly performed by a user of the present invention on a common remote control in his home;
FIG. 9 depicts a control flow for a user clicking a device control button in accordance with the present invention;
FIG. 10 depicts the interface data of the user updatable WeChat applet with the online management platform and the raspberry-based intelligent gateway of the present invention;
FIG. 11 depicts an authorization code management module of the present invention;
fig. 12 depicts the available port management module of the raspberry-based intelligent gateway of the present invention;
fig. 13 depicts the intelligent gateway subsystem based on raspberry group of the present invention.
Detailed Description
The following describes a specific embodiment of an intelligent remote control system based on raspberry pie and WeChat applet in further detail with reference to the accompanying drawings.
As shown in fig. 1, the main flow of the system comprises three subsystems, and the whole architecture is divided into a WeChat applet client control subsystem, an online equipment management platform subsystem and an intelligent gateway subsystem based on raspberry group. Firstly, a user logs in an online management platform and registers an intelligent gateway account number based on raspberry group and an account number of hardware equipment to which the intelligent gateway account number belongs, and then logs in the platform and binds the account number of the online management platform of the user identity. If the device is a common device, account binding is carried out with an intelligent network based on the raspberry group, and then a port number is applied to an intelligent gateway based on the raspberry group to which the device belongs and the device exits the system. Otherwise, the intelligent gateway based on the raspberry group can autonomously allocate the port number to the device bound with the intelligent gateway and agree to the port binding request of the bound hardware device. And filling in an account number and an authorization code of the user on-line management platform and an access path of the on-line management platform in the mobile phone client terminal system. And then, the mobile phone client terminal program can display the equipment information owned by the current user and perform management control.
As shown in fig. 2, a state diagram is depicted in which the interaction of the three subsystems of the present system accomplishes the control of the operation of the device. The system is generally divided into two large plates, namely information management and equipment control. The device control is divided into two parts, namely intelligent device control and infrared device control, firstly, a user authorizes to log in a mobile phone client applet, obtains device information bound with the current user from an online management platform, and then selects household intelligent devices for control management or household traditional infrared devices for control management according to own requirements. If the home intelligent equipment is selected, the user sends control information in json format to the cloud platform corresponding to the intelligent equipment, and then the cloud platform corresponding to the intelligent equipment forwards the control information to the intelligent gateway based on the raspberry group, so that the control of the intelligent equipment is realized. Otherwise, if the household traditional infrared equipment is selected, the user sends an infrared binary code and an mqtt path to which the equipment belongs to an intelligent gateway based on the raspberry group, and then the intelligent gateway based on the raspberry group analyzes the infrared binary code and forwards a signal to a corresponding port according to the mqtt path, so that intelligent control of the traditional infrared equipment is realized. In addition, the user can set a timing task and send information to the on-line management platform, and the on-line management platform controls the traditional infrared household equipment at fixed time.
As shown in fig. 3, a method of the mobile client subsystem of the present system with respect to device control is described. After a user logs in a mobile phone client subsystem (WeChat applet), the system initiates an asynchronous request to access equipment data of a cloud server of the WeChat applet and user equipment information in an online management platform, and after the request is made, the system dynamically updates an applet man-machine interaction interface according to the acquired data. And then, the user can select equipment types (household traditional infrared equipment control and household intelligent equipment control) which want to be controlled according to own requirements, if the control of the household intelligent equipment is selected, the mobile phone client terminal system can send a request control message based on an http protocol to a cloud server of the intelligent household equipment, and then the mobile phone client terminal system interacts with the intelligent equipment. Otherwise, if the home traditional infrared equipment control is selected, the mobile phone client subsystem sends a request control message based on the mqtt protocol to the intelligent gateway based on the raspberry group, and then the intelligent gateway based on the raspberry group interacts with the traditional infrared equipment.
Fig. 4 depicts a learning function diagram of the present system based on a conventional infrared device. The user authorizes to log into the handset client subsystem and then selects to be. After the user confirms, the system can send a control signal to the intelligent gateway based on the raspberry group, and the raspberry group intelligent gateway analyzes the control signal and then sends the control signal to the corresponding infrared equipment module so as to start the infrared signal receiving function of the infrared equipment module. At the same time, the mobile phone client subsystem is in a state of waiting for learning. The user presses the infrared remote controller against the infrared equipment module, then the infrared signal is received and transmitted to the mobile phone client terminal system based on the mqtt protocol, and after the mobile phone client terminal system receives the signal, the signal is stored in the signal field of the equipment button, and meanwhile the learning function is finished.
The system comprises a WeChat applet client control subsystem, an online equipment management platform subsystem and an intelligent gateway subsystem based on raspberry group, wherein the online management platform plays a role of a supervisor and is responsible for processing the binding relation between a user and equipment, the timing task of the user to the equipment and the like; the mobile phone client control subsystem plays a role of a decision maker, is responsible for carrying out man-machine interaction with a user, and transmits an interaction system stream to an intelligent gateway or a third party cloud server platform of intelligent equipment based on raspberry group; the intelligent gateway system based on the raspberry group plays a role of a sender and is responsible for classifying messages from the line management platform and the mobile phone client control subsystem and then sending the classified messages to different hardware devices.
Wherein, little letter applet customer end control subsystem: the system comprises an intelligent device management module 1-1, an infrared device management module 1-2 and a user information management module 1-3, wherein the intelligent device management module comprises:
1) Data acquisition module
The system acquires relevant data of the corresponding intelligent equipment by scanning the two-dimensional code of the intelligent equipment;
2) Data processing module
Matching the acquired data of the intelligent equipment by using a regular expression, and storing the data in a map set object according to functional classification;
3) Processing result module
Traversing the set according to the obtained data map set, and automatically generating a corresponding intelligent equipment button control. If the data can not acquire the corresponding control information code and can only acquire the corresponding website link of the intelligent equipment management platform, the content value corresponding to the website can be transmitted to the interface of the WeChat applet according to the website link of the intelligent equipment management platform, so that the intelligent equipment management is convenient for a user.
Specifically, as shown in fig. 5, after a user authorizes to log in the WeChat applet, an intelligent device module is selected, after a button of the add intelligent device is clicked, a code is scanned by a spring frame, the user needs to scan a two-dimensional code at the bottom of the intelligent device, and then the system jumps to a third party intelligent device platform and requests authorization authentication. After the authorization authentication is successful, the third party platform is requested to be bound with the WeChat applet, after the binding, configuration information corresponding to the equipment is stored in a cloud database of the WeChat applet, and an intelligent equipment option list is dynamically rendered. As shown in fig. 6, after a user authorizes to log in the WeChat applet, selecting an intelligent device module to enter an intelligent device page, then selecting an intelligent device, requesting the WeChat cloud database to load intelligent device control list data, entering a control interface, clicking a control button corresponding to the intelligent device, and then sending control information to a third party intelligent device platform, and forwarding the control information to the intelligent device by the third party intelligent device platform to realize the control of the intelligent device. In the above manner, the user clicks the WeChat applet control button to control the smart device in the home.
The infrared device management module includes:
the invention adopts an IRext third-party open source online infrared code library to load and acquire original infrared coding and decoding information. In addition, the invention also adds a learning function based on the YS-IR03T module to add 16-system infrared coding and decoding information.
And reading the original infrared coding and decoding information acquired through the IRext third-party open source online infrared code library into 10-system coded information data according to the time length of the high level and the low level corresponding to the data. And directly storing the 16-system infrared encoding and decoding obtained through the learning function of the YS-IR03T module into a value database.
And (3) converting the 10-system coded information data acquired by the IRext third-party open-source online infrared code library into 16-system data required by the YS-IR03T module, adding a request head and a request tail, and transmitting the data. And (3) 16-system infrared encoding and decoding obtained through the learning function of the YS-IR03T module, adding a request head and a request tail, and sending data.
Specifically, as shown in fig. 7, after the user authorizes to log in the WeChat applet, selecting the selected infrared equipment module, the system loads the infrared equipment data and generates an infrared equipment list, and after the user clicks the add button to add the infrared equipment, the system stores the basic information of the equipment in the database. The user clicks a long-press editing device button to enter a device editing interface, then the user clicks a code library to select an online code library, the system can send information requesting for the brand number of the device to an IRext infrared code library, a list containing most of the infrared device brands is automatically generated after the information is successfully obtained, the user selects a corresponding device brand, and the system automatically updates the selected brand id and the information to a WeChat cloud database. And finally, clicking a control button for the equipment by a user, initiating an asynchronous request to inquire a database to acquire the brand number of the equipment according to the id number of the equipment, forming a request path by the acquired brand number and the id corresponding to the button function selected by the user, and then decoding the infrared decoding information of the corresponding function of the equipment on line. The decoded information is stored in a database and the list of device control buttons is refreshed again. I.e. the user newly adds an infrared option and adds a control button and its information for this infrared option.
As shown in fig. 8, after a user authorizes login, selecting an infrared module, adding an infrared device or selecting an existing infrared device to perform long-time press editing, the system jumps to a device editing interface, the user clicks an adding button, then a learning mode can be triggered by long-time pressing of the button, an mqtt message with the learning mode opened is sent to an emqx server (the server is configured in an intelligent gateway based on raspberry group), after receiving a signal by the intelligent gateway, the raspberry group receives the signal, analyzes and sends the signal to a YS-IR03T infrared module to start an infrared learning function, and the user can press the remote controller function of the corresponding device and input the remote controller function into the system. After the data is successfully input, the data is fed back to the micro-letter applet through the emqx server based on the mqtt protocol, and the micro-letter applet updates the input infrared signals into the control buttons corresponding to the equipment. The user inputs the control information of the common remote controller in the home into the system to directly control the household appliances, so that the trouble of matching the infrared signals after searching the brand and model of the equipment on line is avoided.
As shown in fig. 9, after the user authorizes to log in, selecting an infrared device module, entering an infrared device list, selecting an infrared device to be controlled, clicking and entering a control page, by clicking a corresponding control button, the system generates an mqtt message according to the contained information and sends the mqtt message to the emqx server, and an intelligent gateway based on raspberry group reads the mqw message and analyzes the mqtt message and sends the mqtt message to a corresponding module or hardware device such as YS-IR03T and the like, and prompts the user that the message is successfully sent. I.e. after the user clicks the device control button, the corresponding physical device will make a corresponding response or feedback.
The user information management module includes:
and filling the acquired data into a corresponding form submitting frame, submitting the data, and encrypting the sensitive information such as the authorization code and the like by using a rsa encryption algorithm in the submitting process. When the user uses the database query system and rsa decryption algorithm which are self-contained in the calling WeChat applet to carry out interface processing on the related data, the related data is displayed on the user information management interface.
Specifically, as shown in fig. 10, after the user authorizes to log in, the information management module is selected, the management platform is clicked, the system automatically loads and displays the configuration information of the user from the WeChat cloud database, and then the user can check the authorization code through the login online management platform and configure the authorization code, the port number of the online management platform and other information on the page. And the user submits and stores the information into the WeChat cloud database by clicking a submit button, and in the process, related information is encrypted by adopting a WeChat cloud function through RSA. The user can update the interface data of the WeChat applet with the online management platform and the raspberry-based intelligent gateway.
The on-line device management platform subsystem comprises: a login registration module 2-1, an authorization code management module 2-2 and an available port management module 2-3 of the intelligent gateway based on raspberry group, wherein:
the login and registration module specifically comprises:
1) Data acquisition module
The user provides a user name and a password by himself;
2) Data processing module
Calling a springsecurity authorization authentication framework according to the provided user name and password, performing authorization authentication processing on the user, and giving different roles to the user;
3) Processing result module
Different system main page data are loaded according to different roles given by the user.
The authorization code management module comprises:
1) Data acquisition module
The user clicks the authorization code control, a request for acquiring the authorization code is sent to the system, if the current user has the authorization code, the feedback authorization code is inquired, otherwise, the system calls a random character string generating function, and a string of random character string sequences is generated as the authorization code to be returned and stored in the database;
2) Data processing module
The method does not support the pushing of the authorization code to the WeChat applet directly through an online platform, and the user needs to manually copy and paste the authorization code into user information management in the WeChat applet. For the hardware device, supporting to push the authorization code to the hardware device based on the mqtt protocol stack through a push control in the authorization code;
3) Processing result module
The authorization code is stored in the cloud database of the WeChat applet and in the local file system of the hardware device. The user can access the specific resource of the system through the authorization code next time without logging in the access by using a password.
Specifically, as shown in fig. 11, after the user logs in the online management platform, the user approves to set a small icon, then selects an authorization code button, and the system invokes the DeviceService control class to generate a system authorization code and stores the authorization code in the database. If the current login is based on the intelligent gateway user based on the raspberry group, the intelligent gateway has the function of pushing the authorization code, the online management platform can push the authorization code to the intelligent gateway based on the base Yu Shumei group based on the mqtt protocol by clicking the push button, and the intelligent gateway stores the authorization code, so that the subsequent information interaction (synchronous port number occupation condition and the like) with the online platform is facilitated. The system can randomly generate 16-bit 16-system character string data for equipment or users as authorization codes, and if the authorization codes are intelligent gateway users, the authorization codes can be pushed to intelligent equipment.
The available port management module of the intelligent gateway based on the raspberry group comprises:
1) Data acquisition module
After the hardware equipment is started, transmitting request data containing an array of the use condition of the hardware port of the hardware equipment and authorization code information transmitted before the platform;
2) Data processing module
The system performs authentication data according to the authorization code to judge whether the data is legal, if the data is legal, the request data is extracted and subjected to traversal matching with a hardware equipment port information table local to the online platform;
3) Processing result module
If the data match is inconsistent, the on-line platform system responds the local hardware port information table to the hardware equipment, and the hardware equipment stores the data into the local port information file and covers the original information.
As shown in fig. 12, after the intelligent gateway based on the raspberry group is started, the system automatically checks whether the device authorization code stored in the current intelligent gateway is legal (by sending a request message containing a local authorization code to the online management platform), if the authorization code is legal, then sending a request message containing the authorization code and the use condition of the local port to the online management platform to check the usable port of the intelligent gateway, and if the local information conflicts with the information of the online management platform, updating the local data. The intelligent gateway is started to automatically check the authorization code of the online management platform and update the local port use information.
The intelligent gateway subsystem based on the raspberry group comprises: the core function of the subsystem is responsible for forwarding data from the WeChat applet and the online platform management system, and mainly comprises a data processing module of infrared and intelligent equipment, wherein the data processing module of the infrared and intelligent equipment comprises:
1) Data acquisition module
Based on the mqtt protocol and the emqx server, acquiring control information from the WeChat applet or transmitting an http request response message to acquire data;
2) Data processing module
Dividing the data into different categories according to message codes in the datagram, carrying out regular matching on different categories of contents, packaging the data according to different matched results, and adding required request header and request tail information;
3) Processing result module
And packaging the acquired data into a datagram which can be identified by corresponding equipment connected with the intelligent gateway, and sending the datagram to control the corresponding equipment.
As shown in fig. 13, after a user logs in the authorized WeChat applet, a series of control information based on mqtt protocol is sent through the applet, after receiving data, the intelligent gateway based on raspberry group matches the data through analysis processing, classifies the data into different information, and then forwards the information to a corresponding device or module through a corresponding pin interface. Namely, the control command of the WeChat applet of the user can be normally communicated with the home equipment through the intelligent gateway.
The specific embodiments described herein are offered by way of example only to illustrate the spirit of the invention. Those skilled in the art may make various modifications or additions to the described embodiments or substitutions thereof without departing from the spirit of the invention or exceeding the scope of the invention as defined in the accompanying claims.
Claims (10)
1. The intelligent remote controller system based on the raspberry group and the WeChat applet is characterized by comprising a WeChat applet client control subsystem, an online equipment management platform subsystem and an intelligent gateway subsystem based on the raspberry group, wherein the online equipment management platform subsystem comprises a binding relation between a processing user and equipment and a timing task of the processing user to the equipment; the WeChat applet client control subsystem comprises a third party cloud server platform which performs man-machine interaction with a user and transmits interaction data streams to an intelligent gateway or intelligent equipment based on raspberry group; the intelligent gateway subsystem based on the raspberry group comprises a management platform subsystem of the online equipment and a WeChat applet client control subsystem, wherein the information from the management platform subsystem of the online equipment and the WeChat applet client control subsystem are classified and then sent to different hardware equipment, the WeChat applet client control subsystem further comprises intelligent equipment control and infrared equipment control, a user authorizes to log in the WeChat applet and obtains equipment information bound with the current user from the management platform subsystem of the online equipment, home intelligent equipment is selected for control management or home traditional infrared equipment is selected for control management, if the home intelligent equipment is selected, a user sends json format control information to a cloud platform corresponding to the intelligent equipment, the cloud platform corresponding to the intelligent equipment forwards control information to the intelligent gateway subsystem based on the raspberry group, so that the intelligent equipment is controlled, if the home traditional infrared equipment is selected, the user sends an infrared binary code and an mqtt path to the intelligent gateway subsystem based on the raspberry group, the intelligent gateway subsystem based on the raspberry group analyzes the infrared binary code and forwards signals to a corresponding port according to the mqtt path, and the control information is realized.
2. The system of claim 1, the WeChat applet client control subsystem comprising a smart device management module, an infrared device management module, and a user information management module, wherein the smart device management module comprises: the system comprises a data acquisition module, a data processing module and a data processing module, wherein the system acquires relevant data of corresponding intelligent equipment by scanning a two-dimensional code of the intelligent equipment; the data processing module is used for matching the acquired data of the intelligent equipment by using a regular expression and storing the data in a map set object according to functional classification; and the processing result module is used for traversing the data map set according to the obtained data map set and automatically generating a corresponding intelligent equipment button control.
3. The system of claim 2, the infrared device management module comprising: and obtaining the 16-system infrared encoding and decoding obtained through the learning function of the YS-IR03T module to obtain the data in the data storage database.
4. The system of claim 3, the infrared device management module further comprising: and converting the 10-system coded information data acquired by the online infrared code library into 16-system data required by the YS-IR03T module, and then adding a request head and a request tail to acquire transmission data.
5. The system of claim 3, the user information management module comprising: sensitive information is encrypted during data interaction using rsa encryption algorithm.
6. The system of claim 1, the online device management platform subsystem comprising: the system comprises a login and registration module, an authorization code management module and an available port management module of an intelligent gateway based on raspberry group, wherein the login and registration module specifically comprises: and calling a springsecurity authorization authentication framework according to the provided user name and password, performing authorization authentication processing on the user, giving different roles to the user, and loading different system homepage data according to the different roles given to the user.
7. The system of claim 6, the authorization code management module comprising: the user clicks the authorization code control and sends a request for acquiring the authorization code to the system, if the current user has the authorization code, the user can inquire the feedback authorization code, otherwise, the system can call a random character string generating function, a string of random character string sequences is generated and is returned as the authorization code and stored in the database, the authorization code is stored in the cloud database of the WeChat applet and the local file system of the hardware equipment, and the user can access the specific resource of the system through the authorization code next time without logging in by using a password.
8. The system of claim 6, wherein the available port management module of the intelligent gateway based on raspberry group includes that the system performs authentication on whether data is legal according to the authorization code, if the authentication is legal, extracts the data in the request, performs traversal matching with a hardware device port information table local to the online platform, if the data matching is inconsistent, the online platform system responds to the hardware device with its own local hardware port information table, and the hardware device stores the data in the local port information file and overlays the original information.
9. The system of claim 1, the raspberry-pie-based intelligent gateway subsystem comprising: the data processing module of the infrared and intelligent equipment comprises an mqtt protocol and an emqx server, and acquires control information from a WeChat applet or transmits an http request response message to acquire data.
10. The system of claim 9, wherein the data processing module of the infrared and intelligent devices further comprises dividing the data into different categories according to the message codes in the datagram, performing regular matching on different types of contents, packaging the data according to different matched results, adding required request header and request tail information, packaging the obtained data into a datagram which can be identified by a corresponding device connected with the intelligent gateway, and sending the datagram for controlling the corresponding device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210980346.7A CN115361465B (en) | 2022-08-16 | 2022-08-16 | Intelligent remote controller system based on raspberry group and WeChat applet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210980346.7A CN115361465B (en) | 2022-08-16 | 2022-08-16 | Intelligent remote controller system based on raspberry group and WeChat applet |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115361465A CN115361465A (en) | 2022-11-18 |
CN115361465B true CN115361465B (en) | 2023-07-28 |
Family
ID=84001033
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210980346.7A Active CN115361465B (en) | 2022-08-16 | 2022-08-16 | Intelligent remote controller system based on raspberry group and WeChat applet |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115361465B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007004579A (en) * | 2005-06-24 | 2007-01-11 | Nippon Telegr & Teleph Corp <Ntt> | Service control and appliance control method or device for information household electric product |
CN105068432A (en) * | 2015-07-03 | 2015-11-18 | 上海理工大学 | Extensible intelligent home network control system |
CN106302563A (en) * | 2015-05-12 | 2017-01-04 | 广州远云网络科技有限公司 | The intelligent control method of a kind of household electrical appliance and device |
CN106789459A (en) * | 2016-12-07 | 2017-05-31 | 中国人民解放军理工大学 | A kind of smart machine control device and control method based on raspberry group |
CN109274560A (en) * | 2018-09-25 | 2019-01-25 | 润海智能科技扬州有限公司 | A kind of smart home system |
CN109270850A (en) * | 2018-12-13 | 2019-01-25 | 桂林电子科技大学 | A kind of intelligent household management system and method based on Internet of Things |
CN110095992A (en) * | 2019-06-21 | 2019-08-06 | 南京邮电大学 | Smart home system based on wechat small routine |
WO2019217309A1 (en) * | 2018-05-11 | 2019-11-14 | Li Sol Mingso | Systems and methods for programming, controlling and monitoring wireless networks |
CN110502261A (en) * | 2019-08-16 | 2019-11-26 | 上海掌门科技有限公司 | The method and apparatus of program is controlled in a kind of update user equipment |
CN113114760A (en) * | 2021-04-12 | 2021-07-13 | 浙江大学 | Construction method of remote Internet of things platform based on heterogeneous equipment |
CN114170785A (en) * | 2021-11-24 | 2022-03-11 | 厦门狄耐克智能科技股份有限公司 | Adding system and method of off-line infrared equipment based on intelligent home gateway |
CN114743239A (en) * | 2022-03-28 | 2022-07-12 | 深圳绿米联创科技有限公司 | Control method, device and system of intelligent equipment and electronic equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10725840B2 (en) * | 2018-11-13 | 2020-07-28 | American Express Travel Related Services Company, Inc. | Automated web service and API build configuration framework |
-
2022
- 2022-08-16 CN CN202210980346.7A patent/CN115361465B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007004579A (en) * | 2005-06-24 | 2007-01-11 | Nippon Telegr & Teleph Corp <Ntt> | Service control and appliance control method or device for information household electric product |
CN106302563A (en) * | 2015-05-12 | 2017-01-04 | 广州远云网络科技有限公司 | The intelligent control method of a kind of household electrical appliance and device |
CN105068432A (en) * | 2015-07-03 | 2015-11-18 | 上海理工大学 | Extensible intelligent home network control system |
CN106789459A (en) * | 2016-12-07 | 2017-05-31 | 中国人民解放军理工大学 | A kind of smart machine control device and control method based on raspberry group |
WO2019217309A1 (en) * | 2018-05-11 | 2019-11-14 | Li Sol Mingso | Systems and methods for programming, controlling and monitoring wireless networks |
CN109274560A (en) * | 2018-09-25 | 2019-01-25 | 润海智能科技扬州有限公司 | A kind of smart home system |
CN109270850A (en) * | 2018-12-13 | 2019-01-25 | 桂林电子科技大学 | A kind of intelligent household management system and method based on Internet of Things |
CN110095992A (en) * | 2019-06-21 | 2019-08-06 | 南京邮电大学 | Smart home system based on wechat small routine |
CN110502261A (en) * | 2019-08-16 | 2019-11-26 | 上海掌门科技有限公司 | The method and apparatus of program is controlled in a kind of update user equipment |
CN113114760A (en) * | 2021-04-12 | 2021-07-13 | 浙江大学 | Construction method of remote Internet of things platform based on heterogeneous equipment |
CN114170785A (en) * | 2021-11-24 | 2022-03-11 | 厦门狄耐克智能科技股份有限公司 | Adding system and method of off-line infrared equipment based on intelligent home gateway |
CN114743239A (en) * | 2022-03-28 | 2022-07-12 | 深圳绿米联创科技有限公司 | Control method, device and system of intelligent equipment and electronic equipment |
Non-Patent Citations (6)
Title |
---|
"A Performance Evaluation of Raspberry Pi Zero W Based Gateway Running MQTT Broker for IoT";Diana Bezerra Correia Lima等;《2019 IEEE 10th Annual Information Technology, Electronics and Mobile Communication Conference 》;全文 * |
"Investigation of methods for remote control IoT-devices based on cloud platforms and different interaction protocols";Abdukodir Khakimov等;《2017 IEEE Conference of Russian Young Researchers in Electrical and Electronic Engineering 》;全文 * |
"基于ZigBee、WiFi和云服务器集群的智能家居系统设计";王易川;《物联网技术》;全文 * |
"基于微信小程序云服务与树莓派开发线上监控设备的研究";杨杰;《电子质量》;全文 * |
"基于树莓派和云平台的智能家居控制装置设计";舒连成;《中国优秀硕士学位论文全文数据库》;全文 * |
"基于树莓派的智能家居系统的设计与实现";熊波;《中国优秀硕士学位论文全文数据库》;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115361465A (en) | 2022-11-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10475023B2 (en) | Method and apparatus of processing symbology interactions between mobile stations and a control system | |
CN102821104B (en) | Authorization method, authorization device and authorization system | |
JP6812392B2 (en) | Information output method, information output device, terminal device and computer-readable storage medium | |
US11095599B2 (en) | Method and system of operating a social networking application via an external device | |
CN108648431B (en) | Method and device for configuring functions of remote controller, terminal equipment and readable storage medium | |
CN105518692A (en) | Method and device for controlling peripheral devices via a social networking platform | |
CN109361535B (en) | Intelligent device binding method and device and storage medium | |
CN104601641A (en) | Application link sharing method, device and system | |
CN112399130B (en) | Processing method and device of cloud video conference information, storage medium and communication equipment | |
CN105227430A (en) | A kind of social Internet of Things implementation method based on micro-letter platform | |
CN116431316B (en) | Task processing method, system, platform and automatic question-answering method | |
CN110300046B (en) | Business consultation control method, terminal and server | |
CN106034251B (en) | A kind of control method and device of set-top box | |
CN107710260A (en) | 2 D code information transmission method, electronic quarantee method and system | |
CN115361465B (en) | Intelligent remote controller system based on raspberry group and WeChat applet | |
CN108053567A (en) | Equipment leasing method and device, storage medium, electronic equipment | |
US11657224B2 (en) | Device control method, storage medium, and computer device | |
CN113946739A (en) | Sensitive data query method, device, equipment and storage medium | |
CN110493120A (en) | A kind of method and apparatus for sending device operational order | |
CN114040403B (en) | Equipment synchronization method, device and system | |
CN111639895A (en) | Package distribution method and device, terminal equipment and storage medium | |
CN113759738A (en) | Smart home control method and device | |
CN110134530A (en) | A kind of processing method and processing device of session content | |
US20240020369A1 (en) | Speech control system and method, apparatus, device, medium, and program product | |
CN113225386B (en) | Remote setting method, device, equipment and computer readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |