CN115361465A - Intelligent remote controller system based on raspberry pi and WeChat small program - Google Patents

Intelligent remote controller system based on raspberry pi and WeChat small program Download PDF

Info

Publication number
CN115361465A
CN115361465A CN202210980346.7A CN202210980346A CN115361465A CN 115361465 A CN115361465 A CN 115361465A CN 202210980346 A CN202210980346 A CN 202210980346A CN 115361465 A CN115361465 A CN 115361465A
Authority
CN
China
Prior art keywords
equipment
user
data
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.)
Granted
Application number
CN202210980346.7A
Other languages
Chinese (zh)
Other versions
CN115361465B (en
Inventor
胡兆龙
肖灵星
林飞龙
唐长兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Normal University CJNU
Original Assignee
Zhejiang Normal University CJNU
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Normal University CJNU filed Critical Zhejiang Normal University CJNU
Priority to CN202210980346.7A priority Critical patent/CN115361465B/en
Publication of CN115361465A publication Critical patent/CN115361465A/en
Application granted granted Critical
Publication of CN115361465B publication Critical patent/CN115361465B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User 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/72415User 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
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0815Network architectures or network communication protocols for network security for authentication of entities providing single-sign-on or federations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User 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/72436User 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
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention relates to an intelligent remote controller system based on a raspberry group and a WeChat small program, which comprises a WeChat small program client control subsystem, an online equipment management platform subsystem and an intelligent gateway subsystem based on the raspberry group, wherein the online management platform plays the role of a supervisor and is responsible for processing the binding relationship 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 and is responsible for performing man-machine interaction with a user, and sending an interaction system stream to a third-party cloud server platform of an intelligent gateway or intelligent equipment based on a raspberry group; the intelligent gateway system based on the raspberry group plays the role of a messenger and is responsible for classifying messages from the online management platform and the mobile phone client control subsystem and then sending the 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 different brands of household appliances preferentially.

Description

Intelligent remote controller system based on raspberry pi and WeChat small program
Technical Field
The application relates to a multi-functional remote controller system based on raspberry group and WeChat applet, and relates to the technical field of intelligent remote controllers.
Background
With the development of science and technology and the rapid rise of the Internet of things industry, traditional articles for daily use are continuously intelligentized, and the life convenience of people is improved. Many living equipment can be combined with our cell-phone together, carries out convenient and fast's management through a simple APP, has realized the terminal equipment intellectuality. With the rapid development of sensor networks and the popularization of terminal equipment intellectualization, a larger framework begins to appear, namely smart home. Many people want their own homes to realize intellectualization, help themselves to boil water when they go home, open a series of convenient activities such as heating, and improve their own life experience. In addition, many large enterprises are engaged in activities of smart home in domestic markets at present, but products of the enterprises are basically integrated in a binding mode, that is, if the convenience service of the smart home is to be experienced, a user has to spend huge cost to buy a brand-new series of smart devices corresponding to brands to replace traditional infrared devices accompanied by the user for many years, so that the cost is high for common families, and the popularization and implementation of home intelligence are not facilitated.
Although a plurality of universal remote controllers APP in the current mobile phone software shopping mall control the traditional household infrared equipment by acquiring the information of the online infrared code library, the control mode lacks certain flexibility and expandability, and the infrared equipment of some unknown brands is difficult to be matched with the corresponding infrared code library.
The smart home is a relatively concerned problem in the current society, and safety and convenience are the primary targets of smart home systems. Three problems generally exist in the existing intelligent home technology in the market.
The first problem is that: the intelligent home is consumed in a binding mode, compatibility among different brands is low, and users can not purchase home equipment preferentially.
The second problem is that: the existing mobile phone infrared universal remote controller APP function has poor expansibility, and is difficult to match corresponding infrared code libraries for some unknown brands of infrared equipment.
The third problem is that: external infrared equipment based on through WIFI LAN and cell-phone communication on the market is too high in price, and the function is single.
Disclosure of Invention
In order to solve the problems, the invention develops an intelligent remote controller system which is designed and developed based on a raspberry pi and a WeChat small program, can compatibly control the existing intelligent equipment on the market, and has an infrared equipment management function of independently learning infrared codes and decrypting an online infrared code library.
The system comprises a WeChat small program client control subsystem, an online equipment management platform subsystem and an intelligent gateway subsystem based on a raspberry group, wherein the online management platform plays the role of a supervisor and is responsible for processing the binding relationship between users and equipment, the timing task of the users to the equipment and the like; the mobile phone client control subsystem plays the role of a decision maker and is responsible for performing man-machine interaction with a user, and sending an interaction system stream to a third-party cloud server platform of an intelligent gateway or intelligent equipment based on a raspberry group; the intelligent gateway system based on the raspberry group plays the role of a messenger and is responsible for classifying messages from the online management platform and the mobile phone client control subsystem and then sending the messages to different hardware devices.
The invention is based on the design and development of raspberry pi and WeChat small programs, has relatively low cost, is compatible with the platform management of the existing intelligent equipment, and is beneficial to users to purchase different brands of household appliances preferentially. Secondly, the system also provides the intelligent function of the traditional infrared equipment, and on the basis of using an online code library to match infrared decoding information, the newly added infrared learning function can solve the problem that infrared codes of unknown brands are difficult to match.
The technical scheme of the invention has the following beneficial effects:
1) The signal input mode of the infrared equipment is diversified, so that a user can conveniently manage the infrared equipment;
2) Part of the existing intelligent equipment control management platform can be compatible or integrated;
3) Compared with the mode that the cloud server adopted by the existing intelligent equipment carries out unified centralized management, the invention adopts a one-to-many mode that the small program control end directly communicates with the intelligent gateway, thereby improving the communication efficiency;
4) By adopting the sqlite3 database, the Internet of things server is light and can be deployed in an intelligent gateway based on a raspberry group, and a user can conveniently perform secondary expansion development locally;
5) The specific resource file is accessed in an authorization code mode, so that the complexity of authorized login is reduced, the access efficiency is improved, and user information leakage is prevented;
6) The system adopts a springsecurity authorization authentication framework and an rsa encryption algorithm to ensure the information security of the user.
Drawings
FIG. 1 depicts an overall framework diagram of the present invention;
FIG. 2 depicts an overall method flow diagram of the present invention;
FIG. 3 depicts a method of the handset client subsystem of the present invention with respect to device control;
FIG. 4 depicts a learning function diagram of the present invention based on a conventional infrared device;
FIG. 5 depicts a smart device management module of the present invention;
FIG. 6 depicts the flow of the present invention to control smart devices in a home;
FIG. 7 illustrates a flow of the present invention user adding an infrared device option;
FIG. 8 depicts the home control process performed directly by the user of the present invention with a normal remote control device in his home;
FIG. 9 depicts a control flow of the present invention in which a user clicks a device control button;
FIG. 10 depicts a user updatable WeChat applet interfacing with an online management platform and a raspberry-based intelligent gateway in accordance with 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 intelligent raspberry-based gateway of the present invention;
fig. 13 depicts a raspberry pi based intelligent gateway subsystem of the present invention.
Detailed Description
The following describes a specific embodiment of the intelligent remote control system based on raspberry pi and wechat applet in accordance with the present invention with reference to the accompanying drawings.
As shown in fig. 1, the main flow of the system includes 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 a raspberry group. Firstly, a user logs in an online management platform, registers an account of an intelligent gateway based on a raspberry group and an account of hardware equipment to which the intelligent gateway belongs, and then logs in the platform and binds the account of the online management platform of the user identity. If the equipment is common equipment, the equipment is bound with an account number of an intelligent network based on the raspberry group, and then the intelligent gateway based on the raspberry group to which the equipment belongs applies for a port number and exits from 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 with the port binding request of the bound hardware device. And filling an account number and an authorization code of the user online management platform and an access path of the online management platform in the mobile phone client subsystem. Then, the mobile phone client terminal program can display the equipment information owned by the current user and carry out management control.
As shown in fig. 2, a state diagram illustrating the cooperation of the three subsystems of the present system to accomplish the control of the operation of the device is depicted. The system is generally divided into two blocks of information management and equipment control. The device control is divided into an intelligent device control part and an infrared device control part, firstly, a user authorizes to log in a mobile phone client small program and obtains device information bound with the current user from an online management platform, and then the household intelligent device is selected according to the requirement of the user to carry out control management or household traditional infrared device to carry out control management. If the household intelligent equipment is selected, the user sends the control information in the 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 the infrared binary code and the mqtt path to which the equipment belongs to the raspberry pi-based intelligent gateway, the raspberry pi-based intelligent gateway analyzes the infrared binary code and forwards the signal to the corresponding port according to the mqtt path, and then intelligent control of the traditional infrared equipment is achieved. In addition, the user can set a timing task and send information to the online management platform, and the online management platform controls the traditional infrared household equipment at regular time.
As shown in fig. 3, a method of the handset 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), an asynchronous request is initiated to access equipment data of a cloud server of the WeChat applet and user equipment information in an online management platform after the system, and after the request is sent to the data, the system dynamically updates an applet human-computer interaction interface according to the acquired data. Then, the user can select the type of the equipment (home traditional infrared equipment control and home intelligent equipment control) to be controlled according to the own requirements, and if the control of the home intelligent equipment is selected, the mobile phone client subsystem can send a request control message based on an http protocol to a cloud server of the intelligent home equipment, and then the request control message interacts with the intelligent equipment through the server. Otherwise, if the control of the household traditional infrared equipment 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 pi, and then the intelligent gateway based on the raspberry pi interacts with the traditional infrared equipment.
Fig. 4 depicts a learning function diagram of the system based on a conventional infrared device. The user authorizes to log in the mobile phone client subsystem, and then selects "to. After the user confirms, the system can send control signal to the intelligent gateway based on the raspberry group, and the intelligent gateway of the raspberry group sends the control signal to the corresponding infrared equipment module after analyzing the control signal, so that the infrared signal receiving function of the infrared equipment module is started. Meanwhile, the subsystem of the mobile phone client side is in a state of waiting for learning. And after receiving the signal, the mobile phone client subsystem stores the signal into a signal field of an equipment button and finishes the learning function at the same time.
The system comprises a WeChat small program client control subsystem, an online equipment management platform subsystem and an intelligent gateway subsystem based on a raspberry group, wherein the online management platform plays the role of a supervisor and is responsible for processing the binding relationship between users and equipment, the timing task of the users to the equipment and the like; the mobile phone client control subsystem plays the role of a decision maker and is responsible for performing man-machine interaction with a user, and sending an interaction system stream to a third-party cloud server platform of an intelligent gateway or intelligent equipment based on a raspberry group; the intelligent gateway system based on the raspberry group plays the role of a messenger and is responsible for classifying messages from the online management platform and the mobile phone client control subsystem and then sending the messages to different hardware devices.
Wherein, the WeChat applet client controls the subsystem: the intelligent device management 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 obtains relevant data of 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 classifying the data according to functions to be stored in a map set object;
3) Processing result module
And traversing the set according to the obtained data map set, and automatically generating a corresponding intelligent device button control. If the data cannot acquire the corresponding control information code and only the corresponding website link of the intelligent equipment management platform can be acquired, the content value corresponding to the website can be applied to the interface of the WeChat small program according to the website link of the intelligent equipment management platform, and a user can conveniently manage the intelligent equipment.
Specifically, as shown in fig. 5, after the user authorizes to log in the wechat applet, the intelligent device module is selected, the intelligent device adding button is clicked, the frame is flicked, the code is scanned, the user needs to scan the 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. And after the authorization authentication is successful, requesting the third-party platform to bind with the WeChat applet, storing the configuration information corresponding to the equipment into a cloud database of the WeChat applet, and dynamically rendering an intelligent equipment option list. As shown in fig. 6, after the user authorizes to log in the wechat applet, the user selects the intelligent device module to enter the intelligent device page, then selects the intelligent device and requests the wechat cloud database to load the intelligent device control list data, and simultaneously enters the control interface, then clicks the control button corresponding to the intelligent device to send the control information to the third party intelligent device platform, and the third party intelligent device platform forwards the control information to the intelligent device to realize the control of the intelligent device. Through the mode, the user clicks the WeChat applet control button to control the intelligent 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 encoding and decoding information acquired by the IRext third-party open source online infrared code library into 10-system encoding information data according to the time length of high and low levels corresponding to the data. And directly storing the 16-system infrared coding and decoding obtained by the learning function of the YS-IR03T module into a value database.
And converting 10-system coded information data acquired by an 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 sending the data. And adding a request head and a request tail to the 16-system infrared encoding and decoding obtained through the learning function of the YS-IR03T module, and sending data.
Specifically, as shown in fig. 7, after the user authorizes to log in the wechat applet, the system selects the infrared device module, loads infrared device data and generates an infrared device list, and after the user clicks the add button to add an infrared device, the system stores basic information of the device in the database. The user clicks a long-press editing equipment button, an equipment editing interface is entered, then the user clicks a code library to select an online code library, the system sends information requesting equipment brand numbers to the IRext infrared code library, a list containing most infrared equipment brands is automatically generated after successful acquisition, the user selects a corresponding equipment brand, and the system automatically updates the selected brand id and the information into the WeChat cloud database. And finally, the user clicks to add a control button to the equipment, the system initiates an asynchronous request to inquire a database to obtain the brand number of the equipment according to the id number of the equipment, and simultaneously, the obtained brand number and the id corresponding to the button function selected by the user form a request path, and then the infrared decoding information of the corresponding function of the equipment is decoded on line. The decoded information is stored in a database and the device control button list is refreshed. Namely, the user adds an infrared device option and adds a control button and information thereof for the infrared device option.
As shown in fig. 8, after the user authorizes login, the infrared device module is selected, the infrared device is added or the existing infrared device is selected to perform long-time pressing editing, the system jumps to a device editing interface, the user clicks an addition button, then the long-time pressing button can trigger a learning mode, an mqtt message started in the learning mode is sent to an emqx server (the server is configured in an intelligent gateway based on a raspberry group), the intelligent gateway based on the raspberry group receives a signal and then analyzes the signal and sends the signal to the YS-IR03T infrared module to start an infrared learning function, and the user can press a remote controller function of the corresponding device and input the remote controller function into the system. And after the data is successfully recorded, the data is fed back to the WeChat small program through the emqx server based on the mqtt protocol, and the WeChat small program updates the recorded infrared signals to 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, and the trouble that the infrared signals are matched after the brand and the model of the equipment are searched online is avoided.
As shown in fig. 9, after the user authorizes login, an infrared device module is selected, the infrared device module enters an infrared device list, the infrared device to be controlled is selected, the infrared device is clicked and enters a control page, the system generates an mqtt message according to the contained information by clicking a corresponding control button and sends the mqtt message to an emqx server, an intelligent gateway based on raspberry group reads the mqtt message, analyzes the mqtt message and sends the mqtt message to a corresponding YS-IR03T module or hardware device, and meanwhile, the user is prompted to successfully send the message. That is, 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 submission box, submitting the data, and encrypting sensitive information such as authorization codes and the like by using an rsa encryption algorithm in the submission process. When the user uses the database query system and the rsa decryption algorithm which are called by the WeChat applet to perform interface processing on the related data, and then the related data are displayed on a user information management interface.
Specifically, as shown in fig. 10, after the user authorizes login, the information management module is selected, the "management platform" is clicked, the system automatically loads and displays configuration information of the user from the wechat cloud database, and then the user can check the authorization code by logging in the online management platform and configure information such as the authorization code and the port number of the online management platform on the page. And the user submits and stores the information into the WeChat cloud database by clicking a submission button, and in the process, the related information is encrypted by RSA through a WeChat cloud function. The user can update the interface data of the WeChat applet with the online management platform and the raspberry pi based intelligent gateway.
The online equipment 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 pi, wherein:
the login registration module specifically comprises:
1) Data acquisition module
The user provides a user name and a password;
2) Data processing module
Calling a springsecurity authorization and authentication framework according to the provided user name and password, carrying out authorization and authentication processing on the user, and endowing the user with different roles;
3) Processing result module
And loading different system main page data according to different roles given by the user.
The authorization code management module includes:
1) Data acquisition module
The user clicks the authorization code control, a request for obtaining the authorization code is sent to the system, if the current user has the authorization code, the authorization code is inquired and returned, otherwise, the system calls a random character string generating function, a string of random character string sequences is generated and serves as the authorization code to be returned and stored in the database;
2) Data processing module
The authorization code is not directly pushed to the WeChat applet through the online platform, and a user needs to manually copy and paste the authorization code into user information management in the WeChat applet. For the hardware equipment, pushing the authorization code to the hardware equipment based on an mqtt protocol stack through a 'push' control in the authorization code;
3) Processing result module
The authorization code is stored in a cloud database of the WeChat applet and a local file system of the hardware device. The user can access the specific resource of the system through the authorization code next time without login access through a password.
Specifically, as shown in fig. 11, after the user logs in the online management platform, the user approves setting of the small icon, and then selects the authorization code button, the system invokes the device service 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 raspberry group based on the mqtt protocol by clicking the push button, and the intelligent gateway stores the authorization code, so that subsequent information interaction (synchronous port number occupation and the like) with the online platform is facilitated. The system randomly generates 16-bit 16-system character string data as an authorization code for the device or the user, and if the user is an intelligent gateway user, the authorization code can be pushed to the intelligent device.
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, sending a request data which comprises an array of the hardware port use condition of the hardware equipment and authorization code information sent by a platform;
2) Data processing module
The system authenticates whether the data is legal or not according to the authorization code, if so, the data in the request is extracted and is subjected to traversal matching with a local hardware equipment port information table of the online platform;
3) Processing result module
If the data match is not consistent, the online 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 powered on, the system may automatically check whether the device authorization code stored in the current intelligent gateway is legal (by sending a request message including a local authorization code to the online management platform), and if the authorization code is legal, then send a request message including the authorization code and the usage of the local port to the online management platform to check the available port of the intelligent gateway, and if the local information conflicts with the information of the online management platform, update the local data. Namely, the intelligent gateway is started up 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 this subsystem is responsible for transmitting the data that comes from little letter applet and online platform management system, mainly includes the data processing module of infrared and intelligent equipment, and is specific, and the data processing module of infrared and intelligent equipment includes:
1) Data acquisition module
Based on an mqtt protocol and an emqx server, acquiring control information from the WeChat applet, or sending an http request response message to acquire data;
2) Data processing module
Dividing data into different categories according to message codes in the datagram, performing regular matching on the contents of the different categories, then packaging the data according to different matching results, and adding required request head 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 an authorized wechat applet, a series of control information based on an mqtt protocol is sent by the applet, after receiving data, the raspberry-based intelligent gateway classifies the data into different information by analyzing, processing and matching the data, 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 normally communicate with the household equipment through the intelligent gateway.
The specific embodiments described herein are merely illustrative of the spirit of the invention. Various modifications or additions may be made to the described embodiments or alternatives may be employed by those skilled in the art without departing from the spirit or ambit of the invention as defined in the appended claims.

Claims (10)

1. An intelligent remote controller system based on a raspberry pi and a WeChat small program is characterized by comprising a WeChat small program client control subsystem, an online equipment management platform subsystem and an intelligent gateway subsystem based on the raspberry pi, wherein the online management platform subsystem comprises a processing unit and a processing unit, wherein the processing unit processes the binding relationship between a user and equipment and processes the timing task of the user to the equipment; the WeChat applet client control subsystem comprises a third-party cloud server platform which is used for carrying out man-machine interaction with a user and sending an interaction data stream to an intelligent gateway or intelligent equipment based on a raspberry group; the intelligent gateway subsystem based on the raspberry group comprises an online equipment management platform subsystem and a WeChat small program client control subsystem, and then sends messages to different hardware equipment after classifying the messages, the WeChat small program client control subsystem further comprises intelligent equipment control and infrared equipment control, a user authorizes to log in a WeChat small program and obtains equipment information bound with the current user from the online management platform subsystem, and selects home intelligent equipment to perform control management or home traditional infrared equipment to perform control management, if the home intelligent equipment is selected, the user sends control information in a json format to a cloud platform of the corresponding intelligent equipment, the cloud platform corresponding to the intelligent equipment forwards the control information to the intelligent gateway subsystem based on the raspberry group, so that the control of the intelligent equipment is achieved, if the home traditional infrared equipment is selected, the user sends an infrared binary code and an mqtt path to which the equipment belongs to the intelligent gateway subsystem based on the raspberry group, and the intelligent gateway subsystem based on the raspberry group analyzes the infrared binary code and forwards signals to the corresponding port tt path to achieve intelligent control of the infrared equipment.
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 acquisition module and a data processing module, wherein the data acquisition module is used for acquiring 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 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 16-system infrared encoding and decoding obtained through the learning function of the YS-IR03T module to obtain a 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 header and a request trailer to acquire the transmitted data.
5. The system of claim 3, the user information management module comprising: sensitive information is encrypted by using an rsa encryption algorithm in the data interaction process.
6. The system of claim 1, the online device management platform subsystem comprising: the system comprises a login registration module, an authorization code management module and an available port management module of the intelligent gateway based on the raspberry group, wherein the login registration module specifically comprises: and calling a springsecurity authorization authentication framework according to the provided user name and password, carrying out authorization authentication processing on the user, endowing the user with different roles, and loading different system main page data according to the different roles endowed by the user.
7. The system of claim 6, the authorization code management module comprising: the user clicks the authorization code control, a request for obtaining the authorization code is sent to the system, if the authorization code exists in the current user, the authorization code is inquired and returned, otherwise, the system calls a random character string generating function, a string of random character string sequences are generated and used as the authorization code to be returned 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, the user can access the specific resource of the system through the authorization code next time, and the user does not need to login with a password for access.
8. The system of claim 6, wherein the available port management module of the intelligent gateway based on raspberry comprises that the system authenticates whether the data is legal according to the authorization code, if so, the data in the request is extracted and is traversed and matched with a port information table of a local hardware device of the online platform, if the data is not matched, the online platform system responds the local hardware port information table to the hardware device, and the hardware device stores the data into a local port information file and covers the original information.
9. The system of claim 1, the raspberry pi based intelligent gateway subsystem comprising: the data processing module of the infrared and intelligent equipment comprises an mqtt protocol and an emqx server, and is used for acquiring control information from the WeChat small program or sending an http request response message to acquire data.
10. The system of claim 9, wherein the data processing module of the infrared and smart device further comprises classifying the data into different categories according to message codes in datagrams, performing regular matching on the contents of the different categories, then packaging the data according to different results of the matching, adding required request header and request tail information, packaging the obtained data into a datagram that can be recognized by a corresponding device connected to the smart gateway, and sending the datagram for controlling the corresponding device.
CN202210980346.7A 2022-08-16 2022-08-16 Intelligent remote controller system based on raspberry group and WeChat applet Active CN115361465B (en)

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 true CN115361465A (en) 2022-11-18
CN115361465B 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 (13)

* Cited by examiner, † Cited by third party
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
US20200151038A1 (en) * 2018-11-13 2020-05-14 American Express Travel Related Services Company, Inc. Automated web service and api build configuration framework
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

Patent Citations (13)

* Cited by examiner, † Cited by third party
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
US20200151038A1 (en) * 2018-11-13 2020-05-14 American Express Travel Related Services Company, Inc. Automated web service and api build configuration framework
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)

* Cited by examiner, † Cited by third party
Title
ABDUKODIR KHAKIMOV等: ""Investigation of methods for remote control IoT-devices based on cloud platforms and different interaction protocols"", 《2017 IEEE CONFERENCE OF RUSSIAN YOUNG RESEARCHERS IN ELECTRICAL AND ELECTRONIC ENGINEERING 》 *
DIANA BEZERRA CORREIA LIMA等: ""A Performance Evaluation of Raspberry Pi Zero W Based Gateway Running MQTT Broker for IoT"", 《2019 IEEE 10TH ANNUAL INFORMATION TECHNOLOGY, ELECTRONICS AND MOBILE COMMUNICATION CONFERENCE 》 *
杨杰: ""基于微信小程序云服务与树莓派开发线上监控设备的研究"", 《电子质量》 *
熊波: ""基于树莓派的智能家居系统的设计与实现"", 《中国优秀硕士学位论文全文数据库》 *
王易川: ""基于ZigBee、WiFi和云服务器集群的智能家居系统设计"", 《物联网技术》 *
舒连成: ""基于树莓派和云平台的智能家居控制装置设计"", 《中国优秀硕士学位论文全文数据库》 *

Also Published As

Publication number Publication date
CN115361465B (en) 2023-07-28

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
CN104753943B (en) The log-in control method of third party&#39;s account and device
CN108648431B (en) Method and device for configuring functions of remote controller, terminal equipment and readable storage medium
TW201328249A (en) Remote control system and method thereof
CN112399130B (en) Processing method and device of cloud video conference information, storage medium and communication equipment
CN104125485B (en) A kind of user profile shared method, equipment and system
CN111130765A (en) Two-dimensional code sharing method and device for intelligent device and storage medium
CN111861228A (en) Customer service information processing method, device, equipment and medium based on user behaviors
CN105722089B (en) A kind of equipment authentication method
CN110932944A (en) Method and system for controlling intelligent household equipment by visitor terminal
CN112135186B (en) Screen projection method, device, equipment and storage medium based on small program
CN103929501B (en) Intelligent distant control server and its control method
CN110300046B (en) Business consultation control method, terminal and server
CN106034251B (en) A kind of control method and device of set-top box
CN111901151A (en) Method, device, equipment and medium for gateway equipment to manage IOT equipment
CN108053567A (en) Equipment leasing method and device, storage medium, electronic equipment
CN115361465B (en) Intelligent remote controller system based on raspberry group and WeChat applet
CN115242779B (en) File transmission method and system based on applet and electronic equipment
CN114500136B (en) Smart home networking method, system, 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
CN105116883A (en) Method and server of establishing corresponding relation of sweeping robot and terminal and system
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