CN110363979A - A kind of LoRa remote control system and control method based on ModBus agreement - Google Patents

A kind of LoRa remote control system and control method based on ModBus agreement Download PDF

Info

Publication number
CN110363979A
CN110363979A CN201910659072.XA CN201910659072A CN110363979A CN 110363979 A CN110363979 A CN 110363979A CN 201910659072 A CN201910659072 A CN 201910659072A CN 110363979 A CN110363979 A CN 110363979A
Authority
CN
China
Prior art keywords
remote control
lora
control
universal remote
modbus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910659072.XA
Other languages
Chinese (zh)
Inventor
顾海军
苗欣
张科
刘书赫
刘浩予
刘美琪
朱书村
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jilin University
Original Assignee
Jilin University
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 Jilin University filed Critical Jilin University
Priority to CN201910659072.XA priority Critical patent/CN110363979A/en
Publication of CN110363979A publication Critical patent/CN110363979A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C23/00Non-electrical signal transmission systems, e.g. optical systems
    • G08C23/04Non-electrical signal transmission systems, e.g. optical systems using light waves, e.g. infra-red

Abstract

A kind of LoRa remote control system and control method based on ModBus agreement of the invention belongs to internet of things field, the LoRa remote control system based on ModBus agreement, structure includes: Internet of Things server platform, cell phone application and LoRa remote control system, the LoRa remote control system, is made of LoRa gateway and universal remote control.The control method of the LoRa remote control system based on ModBus agreement, it include: cell phone application to Internet of Things server platform sends control instruction, Internet of Things server platform sends an instruction to the LoRa gateway of selected universal remote control first, LoRa gateway passes through the address ModBus of universal remote control again and instruction is wirelessly transmitted to the universal remote control, universal remote control according to the corresponding infrared code of instruction sending, to control the key steps such as selected equipment by LoRa.The present invention solve the cumbersome wifi network configuration caused by universal remote control number is excessive and because wifi coverage area is smaller cause universal remote control use scope smaller the problems such as.

Description

A kind of LoRa remote control system and control method based on ModBus agreement
Technical field
The invention belongs to internet of things field more particularly to a kind of LoRa remote control system based on ModBus agreement and its Implementation method.
Background technique
With air-conditioning, TV, universal, more and more abundant and convenient, the use of Internet of Things control change of the terminal devices such as set-top box Family can realize the control to intelligent terminal by cell phone application at one's side completely.
But traditional control method, towards individual device, for each different smart machine, user requires weight The distribution of new equipment, the series of identical step such as binding are carried out again.User is applied especially for enterprises and institutions, each Office or floor require a large amount of smart machine, and each equipment needs to carry out different network configurations respectively, It is an extremely complex and cumbersome process.
And commonly wifi signal distance is closer, and degree of stability is poor, so that some universal remote controls are in threadiness State is unstable, can not control equipment well and obtain the status information of equipment, in turn result in operation and complex management is cumbersome, It is very not convenient to the centralized management of equipment.User experience will become very bad.
Summary of the invention
The object of the present invention is to overcome deficiency existing for background technique, it is distant to provide a kind of LoRa based on ModBus agreement Control system and its implementation improve the operating experience of user to reduce fussy degree when user configuration network.
Technical problem of the invention solves by the following technical programs:
A kind of LoRa remote control system based on ModBus agreement, structure include: Internet of Things server platform, cell phone application and LoRa remote control system;
The Internet of Things server platform is the network server comprising database;In the database storage with it is omnipotent Remote controler binding LoRa gateway address information, the ModBus address information of universal remote control, cell phone application and LoRa gateway and Universal remote control binding information;
The cell phone application is mounted in the application program on mobile terminal, including three interfaces: LoRa gateway and omnipotent The binding interface of remote controler, selection interface, control interface;The binding interface is for binding or unbinding universal remote control, institute The selection interface stated is used for the universal remote control for selecting to have bound, and the control interface is can to send to control to universal remote control System instruction and the operation interface for obtaining its state;
The LoRa remote control system, is made of LoRa gateway and universal remote control;The LoRa gateway is by WiFi mould Block and LoRa module composition;The universal remote control, by central processing unit, infrared transmission module, LoRa module composition;Institute The central processing unit stated is used to parse, handle the message that LoRa module receives, and stores in the infrared transmission module The infrared code library of device to be controlled, and corresponding infrared code is issued according to controlling instruction code;The LoRa module passes through The address ModBus and LoRa gateway are wirelessly connected by LoRa.
A kind of control method of the LoRa remote control system based on ModBus agreement, has following steps: being selected by cell phone application The universal remote control to be bound of user, and then select to want the universal remote control of control, and want the device model of remote control, clothes Business device platform searches the address ModBus of the universal remote control, by the LoRa gateway of the universal remote control, by selected equipment The controlling instruction code of model downloads in the EEPROM of central processing unit;When cell phone application controls a certain universal remote control, to object Join server platform and send control instruction, Internet of Things server platform sends an instruction to the LoRa of selected universal remote control first Instruction is wirelessly transmitted to the Universal remote control by LoRa by gateway, the address ModBus that LoRa gateway passes through universal remote control again Device, universal remote control issue corresponding infrared code according to instruction, will grasp to control selected equipment after infrared code successful launch Make successful status information and returns to mobile client.
The utility model has the advantages that
The control instruction of universal remote control is sent to Internet of Things server platform, Internet of Things service by cell phone application by the present invention Control instruction is sent to the LoRa gateway of corresponding universal remote control by device platform, which is sent to this again by LoRa gateway Universal remote control.Technical solution of the present invention gives the distribution of each universal remote control one address ModBus, and different from the past ten thousand Can remote controler, each universal remote control of the invention do not need configuration wifi network, but wireless and only one by LoRa No two address ModBus and LoRa gateway establish connection, the program solve because universal remote control number it is excessive caused by it is cumbersome Wifi network configuration;The program is solved causes universal remote control use scope is lesser to ask because wifi coverage area is smaller Topic.In addition, scheme also solves the unstable problem of the control universal remote control caused by wifi jitter.
Detailed description of the invention:
Fig. 1 is the overall structure block diagram for the LoRa remote control system based on ModBus agreement that the embodiment of the present invention 1 provides.
Fig. 2 is the schematic diagram of ModBus transport protocol of the invention.
Fig. 3 is the schematic diagram that cell phone application of the invention binds a certain universal remote control to the request of Internet of Things server platform.
Fig. 4 is the signal that cell phone application of the invention sends control instruction to universal remote control and universal remote control is fed back Figure.
Fig. 5 is the schematic diagram that cell phone application inquires universal remote control state and universal remote control feeds back current state.
Fig. 6 is the method flow diagram that the present invention controls universal remote control using this system and method.
Specific embodiment
Following embodiment only for illustration, should not be understood as the limitation to this patent.
The infrared control overall system architecture of the invention of embodiment 1
The overall structure block diagram of LoRa remote control system based on ModBus agreement of the invention is as shown in Figure 1.Whole system Including three parts: Internet of Things server platform, cell phone application, LoRa remote control system.Internet of Things server platform is cell phone application and LoRa The maincenter of remote control system, realization cell phone application are indirectly connected with LoRa remote control system.Cell phone application is answering for user oriented operation It is towards can be by the device end of infrared remote control with, the universal remote control in LoRa remote control system.
The transport protocol for the ModBus that 2 present invention of embodiment applies
ModBus transport protocol figure is as shown in Fig. 2, user is realized by ModBus agreement to the omnipotent distant of different address Control device controls and obtains respectively state.Based on ModBus agreement, transformat is address+function code+data+check code.It is different ModBus function code represent different operational orders, such as want control universal remote control equipment 1, then address code is 0x01; ModBus control instruction 0x10;In addition corresponding data bit and tail portion, which generate CRC-16 check code, can control Universal remote control Device.
The binding of embodiment 3 cell phone application of the invention and universal remote control
Cell phone application of the invention is as shown in Figure 3 to a certain universal remote control process of Internet of Things server platform request binding.Often There is its corresponding address ModBus on one universal remote control, powering on to use each time all can send it to Internet of Things server platform This address ModBus is stored in list by the registration information of the address ModBus, Internet of Things server platform;If user wants to increase Add the quantity for the universal remote control that can control, it is only necessary to which user sends corresponding ten thousand to Internet of Things server platform by cell phone application The energy address remote controler ModBus and binding instruction, Internet of Things server platform will be by this address and cell phone application binding.If user A certain universal remote control equipment is not used, corresponding universal remote control can be sent to Internet of Things server platform by cell phone application The address ModBus and unbinding instruction.The information that the universal remote control is bound can be moved up from Internet of Things server platform It removes.
4 cell phone application of embodiment sends control instruction and universal remote control feedback to universal remote control
The schematic diagram such as figure that cell phone application of the invention sends control instruction to universal remote control and universal remote control is fed back Shown in 4.When cell phone application is in the binding universal remote control success of Internet of Things server platform, cell phone application is set to a universal remote control Preparation send control information, sends the control information to Internet of Things server platform first, Internet of Things server platform is just into database The control information (ModBus protocol format) is sent with the LoRa gateway of the device address of user binding.LoRa gateway receives This information, just according to the address ModBus of the information, Xiang Zhiding universal remote control sends the control information;It can also be to the network institute This control information of some universal remote control broadcast transmissions, each universal remote control can judge according to the address ModBus of the information: If it is the address of correspondence oneself, just provides to feed back to and answer;If not the address of correspondence oneself, does not just give and respond
5 cell phone application of embodiment inquires universal remote control state and universal remote control feeds back current state
Cell phone application inquires universal remote control state and universal remote control feedback current state process as shown in figure 5, working as hand Machine APP can obtain the universal remote control status information in the binding universal remote control success of Internet of Things server platform.Cell phone application It is sent to a universal remote control and obtains status request, send the acquisition status request, Internet of Things to Internet of Things server platform first LoRa gateway of the server platform just into database with the device address of user binding sends the acquisition status request.LoRa Gateway receives this information, and just according to the address ModBus of the information, Xiang Zhiding universal remote control sends the acquisition status request; This status request can also be obtained to all universal remote control broadcast transmissions of the network, each universal remote control can be according to the request The judgement of the address ModBus: if it is oneself corresponding address, just feed back oneself current state;If not correspondence oneself Address is not just given and is fed back.
The flow chart of operating process of the invention is as shown in Figure 6.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments Invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each implementation Technical solution documented by example is modified or equivalent replacement of some of the technical features;And these modification or Replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (2)

1. a kind of LoRa remote control system based on ModBus agreement, structure include: Internet of Things server platform, cell phone application and LoRa Remote control system;
The Internet of Things server platform is the network server comprising database;Storage and Universal remote control in the database Address information, the ModBus address information of universal remote control, cell phone application and the LoRa gateway of LoRa gateway of device binding and omnipotent Remote controler binding information;
The cell phone application is mounted in the application program on mobile terminal, including three interfaces: LoRa gateway and Universal remote control The binding interface of device, selection interface, control interface;The binding interface is described for binding or unbinding universal remote control Selection interface is used for the universal remote control for selecting to have bound, and the control interface is can to send control to universal remote control to refer to Enable and obtain the operation interface of its state;
The LoRa remote control system, is made of LoRa gateway and universal remote control;The LoRa gateway by WiFi module and LoRa module composition;The universal remote control, by central processing unit, infrared transmission module, LoRa module composition;Described Central processing unit is used to parse, handle the message that LoRa module receives, and store in the infrared transmission module will control The infrared code library of the equipment of system, and corresponding infrared code is issued according to controlling instruction code;The LoRa module passes through ModBus Address and LoRa gateway are wirelessly connected by LoRa.
2. a kind of control method of the LoRa remote control system based on ModBus agreement as described in claim 1, there is following steps: The universal remote control to be bound of user is selected by cell phone application, and then selects to want the universal remote control of control, and want distant The device model of control, server platform search the address ModBus of the universal remote control, pass through the LoRa net of the universal remote control It closes, the controlling instruction code of selected device model is downloaded in the EEPROM of central processing unit;Cell phone application control a certain ten thousand When energy remote controler, control instruction is sent to Internet of Things server platform, Internet of Things server platform sends an instruction to selected first The LoRa gateway of universal remote control, the address ModBus that LoRa gateway passes through universal remote control again will instruct wireless biography by LoRa Defeated to arrive the universal remote control, universal remote control issues corresponding infrared code according to instruction, to control selected equipment, infrared code hair After penetrating successfully, successful status information will be operated and return to mobile client.
CN201910659072.XA 2019-07-22 2019-07-22 A kind of LoRa remote control system and control method based on ModBus agreement Pending CN110363979A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910659072.XA CN110363979A (en) 2019-07-22 2019-07-22 A kind of LoRa remote control system and control method based on ModBus agreement

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910659072.XA CN110363979A (en) 2019-07-22 2019-07-22 A kind of LoRa remote control system and control method based on ModBus agreement

Publications (1)

Publication Number Publication Date
CN110363979A true CN110363979A (en) 2019-10-22

Family

ID=68221450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910659072.XA Pending CN110363979A (en) 2019-07-22 2019-07-22 A kind of LoRa remote control system and control method based on ModBus agreement

Country Status (1)

Country Link
CN (1) CN110363979A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104990203A (en) * 2015-05-29 2015-10-21 许继集团有限公司 Remote air conditioner control system without code learning requirement
CN105959190A (en) * 2016-06-20 2016-09-21 深圳市欧瑞博电子有限公司 Scenario control method of intelligent infrared device, and system thereof
CN206039838U (en) * 2016-09-22 2017-03-22 浙江安迪信信息技术有限公司 Infrared omnipotent remote controller
CN207319445U (en) * 2017-11-02 2018-05-04 惠州市茂荣智能科技有限公司 A kind of intelligent infrared ray remote control system
CN207797327U (en) * 2017-09-21 2018-08-31 北京博锐尚格节能技术股份有限公司 Temperature controller, remote controler and apply its temperature control system
CN108709299A (en) * 2018-08-06 2018-10-26 深圳市亘强科技有限公司 One kind being based on LoRa wireless remote intelligents air-conditioner control system and its control method
CN109550112A (en) * 2019-01-22 2019-04-02 西安电子科技大学 Infusion monitoring system based on LoRa technology

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104990203A (en) * 2015-05-29 2015-10-21 许继集团有限公司 Remote air conditioner control system without code learning requirement
CN105959190A (en) * 2016-06-20 2016-09-21 深圳市欧瑞博电子有限公司 Scenario control method of intelligent infrared device, and system thereof
CN206039838U (en) * 2016-09-22 2017-03-22 浙江安迪信信息技术有限公司 Infrared omnipotent remote controller
CN207797327U (en) * 2017-09-21 2018-08-31 北京博锐尚格节能技术股份有限公司 Temperature controller, remote controler and apply its temperature control system
CN207319445U (en) * 2017-11-02 2018-05-04 惠州市茂荣智能科技有限公司 A kind of intelligent infrared ray remote control system
CN108709299A (en) * 2018-08-06 2018-10-26 深圳市亘强科技有限公司 One kind being based on LoRa wireless remote intelligents air-conditioner control system and its control method
CN109550112A (en) * 2019-01-22 2019-04-02 西安电子科技大学 Infusion monitoring system based on LoRa technology

Similar Documents

Publication Publication Date Title
CN104749996A (en) Remote control method of ZigBee remote controller
CN102297493B (en) Method and system for monitoring air conditioning units
CN109478179A (en) The connection of IoT equipment, discovery and networking
CN106647304A (en) Household electrical appliance linkage control method, household electrical appliance, server, and system
CN107592367A (en) Resource share method, device and the computer-readable recording medium of home appliance
CN105722089B (en) A kind of equipment authentication method
CN102404413B (en) Method and system for realizing automatic matching of function applications among household digital devices
CN103237069A (en) Intelligent wireless household appliance controlling system and intelligent wireless household appliance controlling method
CN105049329A (en) Portable message pushing method in home environment and equipment control system
CN106100949A (en) A kind of control system for intelligent home device
CN106506535A (en) A kind of many people are with the interactive interactive system of screen
CN105005199A (en) Method and apparatus for controlling equipment through gateway
CN105871995A (en) Method for controlling intelligent device by router and the router
CN107249026A (en) Intelligent domestic system based on Internet of Things cloud computing
CN108897287A (en) A kind of intelligent home furnishing control method and system
CN109391699A (en) Device network configuration method, device and server
CN103763206A (en) Network scheduling method and gateway
CN106713084A (en) multi-gateway system of Internet of Things
CN106961426A (en) The means of communication and device of smart machine
CN104980322A (en) Method and device for linking network access equipment
CN107302478A (en) The long-range control method and system of a kind of smart home
CN105245571A (en) Data acquisition method, apparatus and system
CN107094102A (en) The transmission method and equipment of information
CN106506573B (en) Intelligent home furnishing control method and system
CN110493270A (en) Internet of things equipment accesses fused controlling method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20191022

RJ01 Rejection of invention patent application after publication