CN109189456A - A kind of firmware upgrade system and its method and air-conditioning based on Rxjava technology - Google Patents
A kind of firmware upgrade system and its method and air-conditioning based on Rxjava technology Download PDFInfo
- Publication number
- CN109189456A CN109189456A CN201811308857.4A CN201811308857A CN109189456A CN 109189456 A CN109189456 A CN 109189456A CN 201811308857 A CN201811308857 A CN 201811308857A CN 109189456 A CN109189456 A CN 109189456A
- Authority
- CN
- China
- Prior art keywords
- firmware
- rxjava
- terminal device
- technology
- multimode
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention belongs to fields of communication technology, and in particular to a kind of firmware upgrade system and its method and air-conditioning based on Rxjava technology.The firmware upgrade method based on Rxjava technology, terminal device, mobile terminal establish communication connection between server;When terminal device updating firmware program, data are transmitted between terminal device and server, and mobile terminal starts Rxjava thread and carries out multimode monitoring to transmission situation;After the completion of upgrading, multimode is monitored upgrade function and is closed, the transmission process of Rxjava is terminated simultaneously, efficiently solve the problems, such as that multimode multimode complexity prompts in remote upgrade procedure, realize effective prompt of multimode multimode sophisticated functions, the miscue for preventing the data occurred in remote upgrade procedure downloading, upgrading successfully or failing, sense that greatly the user experience is improved.
Description
Technical field
The invention belongs to fields of communication technology, and in particular to a kind of firmware upgrade system and its side based on Rxjava technology
Method and air-conditioning.
Background technique
Currently, air-conditioning has come into huge numbers of families, demand of the user to air-conditioning prefers to other than common adjusting temperature
Air-conditioning can closely follow the trend in epoch, incorporate more fashionable element.And air-conditioning how can be allowed in increasingly fierce market
It grows with each passing hour in competition, after how allowing user to buy air-conditioning, can constantly enjoy technology innovation bring complete new experience is
Air-conditioning upgrade-system problem to be solved at present.
The operation of the update to air-conditioning module may be implemented by remote firmware updating technology, user's air-conditioning can be continued more
New function.But during remote firmware updating is realized, the problem of multimode escalation process condition prompting complexity can be encountered.Cause
This, is provided a kind of monitor method for being realized multimode firmware upgrade state based on RxJava technology, can efficiently solve complexity
Upgrade tip the problem of.
Summary of the invention
During solving above-mentioned remote firmware updating, the problem of multimode escalation process condition prompting complexity, this hair
It is bright that a kind of firmware upgrade system based on Rxjava technology and its method and air-conditioning are provided.
To achieve the above object, the technical scheme adopted by the invention is that: a kind of firmware upgrade based on Rxjava technology
Method, including terminal device, mobile terminal, server,
Terminal device, mobile terminal establish communication connection between server;
When terminal device updating firmware program, data are transmitted between terminal device and server, mobile terminal starting
Rxjava thread carries out multimode monitoring to transmission situation;
After the completion of upgrading, multimode is monitored upgrade function and is closed, while terminating the transmission process of Rxjava.
Further, each module and its corresponding state, method are sealed when terminal device is transmitted with the data of server
It dresses up function code block and is sent to mobile terminal.
Further, when firmware data information failed download, then data downloading is re-executed, and starts multimode monitoring
Data download function.
Further, after firmware upgrade failure, multimode is monitored upgrade function and is closed, and prompts upgrading failure, and again
Execute firmware upgrade prompt.
Further, mobile terminal is connect with terminal device by wifi module, obtains the firmware information of terminal device.
Further, mobile terminal obtain server on firmware information, and with the firmware information of terminal device carry out
Match, judges whether the firmware of terminal device needs to upgrade.
Further, firmware information includes one of firmware version number, firmware code, firmware IP or a variety of.
A kind of firmware upgrade system based on Rxjava technology, including server, terminal device, mobile terminal, the clothes
Business device, mobile terminal carry out data with terminal device and dock, and the mobile terminal includes
Receiving module, the data information sent for receiving server and terminal device;
When the data of multimode monitoring module, terminal device and server are transmitted, multimode monitoring is carried out to transmission situation.
Further, server includes memory module, the firmware information for storage terminal device.
It further, further include communication module, for realizing data interaction between server, terminal device, mobile terminal.
Further, package module is gone back, each module of the firmware upgrade information for will acquire using Rxjava technology
And its corresponding state, method are packaged into function code.
A kind of air-conditioning, including the above-mentioned firmware upgrade system based on Rxjava technology, the terminal device includes air-conditioning
Interior machine and/or outer machine.
The present invention provides a kind of firmware upgrade method based on Rxjava technology, terminal device, mobile terminal, server it
Between establish communication connection;When terminal device updating firmware program, data are transmitted between terminal device and server, and mobile terminal opens
Dynamic Rxjava thread carries out multimode monitoring to transmission situation;After the completion of upgrading, multimode is monitored upgrade function and is closed, while eventually
The only transmission process of Rxjava efficiently solves the problems, such as that multimode multimode complexity prompts in remote upgrade procedure, realizes
Effective prompt of multimode multimode sophisticated functions prevents the data occurred in remote upgrade procedure downloading, upgrades successfully or lose
The miscue lost, sense that greatly the user experience is improved.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the firmware upgrade system based on Rxjava technology;
Fig. 2 is the flow chart of the firmware upgrade method based on Rxjava technology.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, is clearly and completely retouched to the technical solution in the present invention
It states, it is clear that the described embodiments are merely a part of the embodiments of the present invention, instead of all the embodiments.
A kind of air-conditioning, including the firmware upgrade system described below based on Rxjava technology, the terminal device includes
Air-conditioning internal machine and/or outer machine, are illustrated by taking air-conditioning as an example below.
As shown in Figure 1, a kind of firmware upgrade system based on Rxjava technology, including server 1, terminal device 2, movement
Terminal 3, the server, mobile terminal carry out data with terminal device and dock, and the mobile terminal 3 includes
Receiving module 31, the data information sent for receiving server and terminal device;User clicks in smart phone
APP " firmware upgrade " button, the firmware id of the inquiry of the address wifi module mac and needs passes through udp protocol by cell phone application
It is sent to wifi module, air-conditioning internal machine, outer machine and wifi module in the current wifi module of wifi module return are obtained with this
Itself version number and firmware code;
When the data of multimode monitoring module 33, terminal device and server are transmitted, multimode prison is carried out to transmission situation
It listens;Whether the firmware upgrade data information of downloading is completed to monitor, and whether firmware upgrade is successfully monitored;
Server 1 includes memory module 22, the firmware information for storage terminal device;Firmware upgrade is stored on server
Bin file;
Communication module, for realizing data interaction between server, terminal device, mobile terminal;
Package module, each module of the firmware upgrade information for will acquire using Rxjava technology and its corresponding shape
State, method are packaged into function code;
As shown in Fig. 2, a kind of firmware upgrade method based on Rxjava technology, including terminal device, mobile terminal, service
Device,
S1: terminal device, mobile terminal establish communication connection between server;
Each module and its corresponding state, method are packaged into function generation when terminal device is transmitted with the data of server
Code block is sent to mobile terminal;
Mobile terminal is connect with terminal device by wifi module, and the firmware information of terminal device is obtained;
Mobile terminal obtains the firmware information on server, and is matched with the firmware information of terminal device, judges end
Whether the firmware of end equipment, which needs, upgrades;Firmware information includes firmware version number, firmware code, firmware IP etc.;
S2: when terminal device updating firmware program, data are transmitted between terminal device and server, mobile terminal starting
Rxjava thread carries out multimode monitoring to transmission situation;
Namely firmware program sends wifi module by the Observer Pattern in Rxjava technology and requests back in downloading
The message come;The above-mentioned message sended over is received in observer's onNext method;Start multimode monitored data and downloads function
Can, judge whether data download completion;It downloads and completes when firmware data information, be shut off monitoring interface;When firmware data information
When failed download, then data downloading is re-executed, and start multimode monitored data download function;
S3: after the completion of upgrading, multimode is monitored upgrade function and is closed, while terminating the transmission process of Rxjava;
After firmware upgrade failure, multimode is monitored upgrade function and is closed, and prompts upgrading failure, and re-execute firmware liter
Grade prompt;
The page namely upgraded when the user clicks lights, and prompts user that can click upgrading;Start multimode and monitors liter
Grade success or upgrading failure function, judge whether to upgrade successfully;If upgraded successfully, monitor interface and close, upgrading is completed, stream
Journey terminates;Otherwise, it monitors interface to close, prompts upgrading failure.
The present invention is by, to combination, realizing multimode multimode complexity function for Rxjava technology and Java interface monitor method
Effective prompt of energy, the miscue for preventing the data occurred in remote upgrade procedure downloading, upgrading successfully or failing, greatly
Sense that the user experience is improved.
It above are only preferred embodiment of the invention, but the design concept of the present invention is not limited to this, all benefits
It is made a non-material change to the present invention, should all be belonged to behavior that violates the scope of protection of the present invention with this design.
Claims (12)
1. a kind of firmware upgrade method based on Rxjava technology, including terminal device, mobile terminal, server, feature exist
In:
Terminal device, mobile terminal establish communication connection between server;
When terminal device updating firmware program, data are transmitted between terminal device and server, and mobile terminal starts Rxjava line
Journey carries out multimode monitoring to transmission situation;
After the completion of upgrading, multimode is monitored upgrade function and is closed, while terminating the transmission process of Rxjava.
2. the firmware upgrade method according to claim 1 based on Rxjava technology, it is characterised in that: terminal device and clothes
Each module and its corresponding state, method are packaged into function code block when the data transmission of business device and are sent to mobile terminal.
3. the firmware upgrade method according to claim 1 based on Rxjava technology, it is characterised in that: when firmware data is believed
When ceasing failed download, then data downloading is re-executed, and start multimode monitored data download function.
4. the firmware upgrade method according to claim 1 based on Rxjava technology, it is characterised in that: when firmware upgrade is lost
After losing, multimode is monitored upgrade function and is closed, and prompts upgrading failure, and re-executes firmware upgrade prompt.
5. the firmware upgrade method according to claim 1 based on Rxjava technology, it is characterised in that: the mobile terminal
It is connect with terminal device by wifi module, obtains the firmware information of terminal device.
6. the firmware upgrade method according to claim 1 based on Rxjava technology, it is characterised in that: the mobile terminal
Obtain the firmware information on server, and matched with the firmware information of terminal device, judge terminal device firmware whether
It needs to upgrade.
7. the firmware upgrade method according to claim 6 based on Rxjava technology, it is characterised in that: the firmware information
Including one of firmware version number, firmware code, firmware IP or a variety of.
8. a kind of firmware upgrade system based on Rxjava technology, it is characterised in that: eventually including server, terminal device, movement
End, the server, mobile terminal carry out data with terminal device and dock, and the mobile terminal includes
Receiving module, the data information sent for receiving server and terminal device;
When the data of multimode monitoring module, terminal device and server are transmitted, multimode monitoring is carried out to transmission situation.
9. the firmware upgrade system according to claim 8 based on Rxjava technology, it is characterised in that: the server packet
Memory module is included, the firmware information for storage terminal device.
10. the firmware upgrade system according to claim 8 based on Rxjava technology, it is characterised in that: further include communication
Module, for realizing data interaction between server, terminal device, mobile terminal.
11. the firmware upgrade system according to claim 8 based on Rxjava technology, it is characterised in that: package module is gone back,
The each module and its corresponding state, method of firmware upgrade information for will acquire using Rxjava technology are packaged into function
Code.
12. a kind of air-conditioning, it is characterised in that: including any firmware upgrade based on Rxjava technology of claim 8-11
System, the terminal device include air-conditioning internal machine and/or outer machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811308857.4A CN109189456A (en) | 2018-11-05 | 2018-11-05 | A kind of firmware upgrade system and its method and air-conditioning based on Rxjava technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811308857.4A CN109189456A (en) | 2018-11-05 | 2018-11-05 | A kind of firmware upgrade system and its method and air-conditioning based on Rxjava technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109189456A true CN109189456A (en) | 2019-01-11 |
Family
ID=64941892
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811308857.4A Pending CN109189456A (en) | 2018-11-05 | 2018-11-05 | A kind of firmware upgrade system and its method and air-conditioning based on Rxjava technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189456A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170104799A1 (en) * | 2015-10-08 | 2017-04-13 | Cyanogen Inc. | System and method for communicating information about interesting occurrences at a data node to a subscriber application |
CN107085532A (en) * | 2017-03-21 | 2017-08-22 | 东软集团股份有限公司 | Task monitor method and device |
CN108023765A (en) * | 2017-11-03 | 2018-05-11 | 珠海格力电器股份有限公司 | Device firmware upgrade method, apparatus and storage medium |
CN108427570A (en) * | 2018-03-06 | 2018-08-21 | 珠海格力电器股份有限公司 | A kind of intelligent appliance primary control program upgrade-system and upgrade method |
-
2018
- 2018-11-05 CN CN201811308857.4A patent/CN109189456A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170104799A1 (en) * | 2015-10-08 | 2017-04-13 | Cyanogen Inc. | System and method for communicating information about interesting occurrences at a data node to a subscriber application |
CN107085532A (en) * | 2017-03-21 | 2017-08-22 | 东软集团股份有限公司 | Task monitor method and device |
CN108023765A (en) * | 2017-11-03 | 2018-05-11 | 珠海格力电器股份有限公司 | Device firmware upgrade method, apparatus and storage medium |
CN108427570A (en) * | 2018-03-06 | 2018-08-21 | 珠海格力电器股份有限公司 | A kind of intelligent appliance primary control program upgrade-system and upgrade method |
Non-Patent Citations (1)
Title |
---|
程序园: "android EasyRxRetrofit封装(包括上传下载及进度监听)", 《HTTP://WWW.VOIDCN.COM/ARTICLE/P-DRGHXWLE-RP.HTML》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104915237B (en) | Upgrading, upgrade control method and the equipment of bluetooth equipment firmware program | |
CN111343064A (en) | System and method for upgrading software of automobile control system | |
CN109857437A (en) | A kind of upgrade method and system of bluetooth equipment | |
CN104967971A (en) | Method achieving bluetooth automatic return connection in Android system | |
CN106533813A (en) | Method for remotely controlling upgrade of intelligent device | |
CN106131682B (en) | WiFi firmware upgrade method, device and set-top box built in set-top box | |
CN110096294A (en) | It is a kind of can break-point radio upgrade MCU application program method | |
CN104601203A (en) | Dynamic connection parameter regulation method and device for low-power consumption Bluetooth equipment | |
CN104954394A (en) | Software differential packet production and update method, server, terminal and update system | |
CN106130808A (en) | A kind of method and system of WIFI device upgrade | |
CN108958777A (en) | A kind of wireless charging device and control method | |
CN109144532A (en) | Upgrade method and device | |
WO2017166906A1 (en) | Method of managing euicc subscription profile and associated apparatus | |
CN110012527A (en) | Awakening method and electronic equipment | |
CN109688427A (en) | A kind of smart television and its system repair | |
CN104077163A (en) | Installing method, device and terminal for installation package | |
Yao et al. | Design and implementation of IOT gateway based on embedded μTenux operating system | |
CN105824660A (en) | Application program updating method and terminal | |
CN110417871A (en) | A kind of smart machine upgrade method | |
CN111726794B (en) | LPWA terminal, data processing method and medium | |
CN109189456A (en) | A kind of firmware upgrade system and its method and air-conditioning based on Rxjava technology | |
CN108572837A (en) | Method for upgrading software, device, readable storage medium storing program for executing and computer equipment | |
CN110602688B (en) | Terminal software upgrading method and upgrading system | |
CN108199877B (en) | Electronic equipment and authentication method and firmware upgrading method thereof | |
CN114826981B (en) | System and method for realizing application resident in cloud mobile phone |
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: 20190111 |
|
RJ01 | Rejection of invention patent application after publication |