CN105573810A - Remote upgrade method and remote upgrade device for wireless sensor network node - Google Patents

Remote upgrade method and remote upgrade device for wireless sensor network node Download PDF

Info

Publication number
CN105573810A
CN105573810A CN201610169358.6A CN201610169358A CN105573810A CN 105573810 A CN105573810 A CN 105573810A CN 201610169358 A CN201610169358 A CN 201610169358A CN 105573810 A CN105573810 A CN 105573810A
Authority
CN
China
Prior art keywords
node
wireless sensor
program
sensor network
app
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
CN201610169358.6A
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.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN201610169358.6A priority Critical patent/CN105573810A/en
Publication of CN105573810A publication Critical patent/CN105573810A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

The invention relates to a remote upgrade method and a remote upgrade device for a wireless sensor network node and belongs to the technical field of communication, computers and Internet of things. Hardware of the device includes a network controller and a wireless sensor network node; software of the device includes three parts, namely upper computer software, network controller driving software and node driving software; an upper computer software interface is used for displaying all remote online wireless sensor network nodes, supporting for manually loading APP files of the nodes to an upper computer, supporting selecting to-be-upgraded nodes, sending instant to-be-started APP file fragments, and waiting for automatic remote upgrade completion of the nodes; during a data sending process, a multiple-check and resending mechanism is adopted, so as to ensure that the APP files are accurately sent to target nodes; and when special situations such as power failure occur to a node upgrade process, automatic re-upgrade is performed after restart, and finally self firmware update is completed. The remote upgrade method and the remote upgrade device are capable of solving the problem that the technology of the Internet of things is vigorously developed and wireless sensor nodes are widely applied, but upgrade is difficult, and saving manpower and financial resources, thereby being beneficial to promotion of development of the industry of the Internet of things.

Description

A kind of wireless sensor network node remote update method and device
Technical field
The invention belongs to communication, computing machine and technology of Internet of things field, relate to a kind of wireless sensor network node remote update method and device.
Background technology
Internet of Things is the revolutionary development of the again information industry after computing machine, internet, mobile radio communication, and its value is to allow object also have " wisdom ", achieves people and thing, communication between thing and thing.It has the advantages that perviousness is strong, induced effect is large, comprehensive benefit is good.The development of propeller networking and application, be conducive to promoting to produce, life and social management mode are to intellectuality, become more meticulous, networking direction changes, for raising national economy and IT application in social life level, promote social management and public services level, related discipline development and capacity for technological innovation is driven to strengthen, promotion industry restructuring and development pattern change significant, at present by one of emerging strategic industries being formally classified as state key development, also will be next promotion world's high speed development " important yield-power ", another TERA-SCALE market after being relay communication network.At present, Internet of Things is in starting developing stage in the world, and technology of Internet of things development and industry application have broad prospects and rare opportunity.The application of Internet of Things can be divided into monitoring type (logistics monitoring, contamination monitoring), inquiry type (intelligent retrieval, remote meter reading), controlling (intelligent transportation, Smart Home, Street lamps control), sweep type (mobile phone wallet, highway non-parking charge) etc.
Internet of Things is made up of three levels: sensing layer, namely based on Quick Response Code, RFID, sensor, realizes the identification to " thing "; Transport layer, namely realizes the transmission of data by existing internet, CHINA RFTCOM Co Ltd, mobile communications network etc.; Application layer, carries out treatment and analysis the information that perception and transmission come, makes correct control and decision-making, realize intelligentized management, application and service.Wherein, sensing layer is used for recognition object, Information Monitoring, comprises the data such as physical quantity, sign, audio frequency, video.It is in the bottom of three-tier architecture, is the basis of Internet of Things development and application, has the core competence of Internet of Things complete perception.Sensing layer generally comprises data acquisition and data short-distance transmission two parts, namely first gather the data in the external physical world by sensor, first-class equipment of making a video recording, carry out collaborative work by the wired or wireless transmission technology of short distance such as bluetooth, infrared, ZigBee, industrial field bus or transfer data to gateway device.Also this part of short-distance transmission of data can be only had, particularly when only transmitting the identification code of article.
Wireless sensor network belongs to sensing layer, it is responsible for the node unit of a series of for space dispersion to be connected by the wireless network of self-organization, thus the data gathered separately are carried out transmission by wireless network gather, to realize the cooperation monitoring to the physics within the scope of spatial dispersion or environmental aspect, and carry out corresponding treatment and analysis according to these information.Have in a big way, low cost, high density, flexibly laying, Real-time Collection, all weather operations feature.
Wireless sensor network technology is widely used in the various fields such as Smart Home, communication and logistics, public safety, environmental protection, intelligent fire, industry monitoring, business application, medical treatment & health.The function of node, often along with the change of application demand, needs to upgrade to node procedure.Conventional node upgrading way is by ISP mode, is downloaded in node by new procedures.ISP (In-SystemProgramming) in-system programming, executable file is write the memory block of single-chip microcomputer by upper computer software by serial ports or SPI mode.Its advantage does not need programmable device just can to program updates, and chip can be welded direct on circuit board, frequently inserts the inconvenience of taking out chip when removing adjustable from.But the download implementation procedure completing new procedures must be undertaken by PC this locality.Wireless sensor network node is because its laying is flexible, scope extensively makes traditional wired ISP update mode become difficult even unfeasible.
IAP (In-ApplicationProgramming) in-service units, be two pieces by single-chip microcomputer memory partitioning, one piece is called as BOOT district, and other one piece is called as function program district.In-chip FLASH also can be divided into polylith according to the demand of reality.BOOT district runs Bootloader program, for the IAP function of XM; Nodal function code is run in functional areas.BOOT district is operated in after single-chip microcomputer powers on, new procedures is received by serial ports or SPI mode, again by the file data write-in functions program area FLASH that FLASH programming technique will receive after receiving, reboot program pointer redirect and perform download and the operation that namely the new program write achieves new procedures.By IAP mode, by existing internet or mobile network, the firmware remote upgrade of wireless sensor network node can be realized, save a large amount of manpower and financial resources, for the development promoting Internet of Things industry, there is positive effect.
Summary of the invention
In view of this, the object of the invention is to at Internet of Things industry high speed development, technology of Internet of things is widely applied to household, traffic, medical treatment, environment, industry waits every field in life, and under the background of Internet of Things bottom a large amount of wireless sensor network node program updates difficulty, a kind of low cost proposed, the method of easy-operating wireless sensor network node remote update, the method overcome the deficiency that traditional this locality download upgrading mode exists, namely need technician with PC wired connection node, professional upper computer software is used to download new procedures, distance host issues the firmware upgrade that the new firmware of node can complete node.
For achieving the above object, the invention provides following technical scheme:
A kind of wireless sensor network node remote update device, this device hardware components comprises network controller and wireless sensor network node, and device software comprises upper computer software, network controller drive software and node drive software three parts;
PC holds upper computer software interface for showing all online wireless sensor network nodes of far-end, and support that the APP file being manually loaded into node is to host computer, support to select destination node to be upgraded, send the burst that can start APP file and to issue and wait node completes remote upgrade automatically; Data transmission procedure has multiple check and retransmission mechanism, ensures that APP file is sent to destination node like clockwork; When meeting with the special circumstances such as power down in node upgrade process, restarting and automatically again heavily to upgrade afterwards, finally completing the renewal of self firmware.
Further, described network controller hardware components mainly comprise carry mac controller STM32F107 master control, sheet outer FLASH memory, network card chip and radio-frequency module interface; Controller transplant and run LwIP protocol stack realizes TCP/IP function, and by network card chip access network based on ethernet; The serial ports 1 of master control leads to radio-frequency module interface, the environment of radio-frequency module residing for wireless sensor network node is selected, as node uses CC2530 chip to run Zigbee protocol stack, then the radio-frequency module part of controller also connects CC2530 module, thus realizes network controller and can adapt to different radio sensor network environment and the object of this environment lower node firmware program of upgrading.
Further, the FLASH of master control is divided into three districts by node: BOOT district, flag bit area and function program district; BOOT district runs Bootloader program, and function is the function program district reading chip external memory firmware data write master control, and boot pointer redirect n-back test program; Flag bit area arranges IAP zone bit, the position, mark position when node has upgrading task, and whether Bootloader program upgrades according to this decision, and when having upgraded, this resets; Function program district normal operation nodal function program, when nothing upgrading task, node runs this district's program always.
Further, the storer of the external 8MB of described wireless sensor network node, and be divided into 64 each fast 128KB of block, for storing the different editions APP program from host computer, the starting byte position that each storage is fast stores the version number of APP program; When node needs up reversal level, host computer issues the upgrade with APP version number and destination node address, can be completed the quick renewal of self firmware by destination node.
Further, described APP file data is fragmented into the Frame of specific format, and adopts CRC check and feedback mechanism, ensures the error free transport of this file data; Network controller is tested to each APP fragment data received and feeds back, and verifies errorless, and feedback Success Flag also asks next fragment data, verifies wrong then feeding back unsuccessful and this fragment data of request repeat.
Present invention also offers a kind of wireless sensor network node remote update method, the method comprises the following steps:
S1: when node downloads before installing and using, is divided into three districts by FLASH, a district downloads Bootloader program, and 2nd district are used for arranging zone bit, three district's download function programs;
S2: when needing to upgrade node firmware, PC end generates new function program, and is converted into the file destination of " .bin " form;
S3: upper computer software is connected by internet/mobile network and remote wireless sensors network of network controller, the destination node of selection needs upgrading, is then loaded into file destination and burst generation specific format frame (being completed by host computer) issues file destination;
S4: network controller verifies the burst file destination data received, errorless then by packet burst again, then the frame being assembled into specific format is forwarded to destination node; Frame format herein adopts the burst frame format identical with host computer, and only data length part is different;
S5: destination node serial ports or SPI mode receive data and extract file destination data, by the outer FLASH of this file data write sheet, question paper receives the set of rear IAP zone bit, then software reset MCU;
S6: perform Bootloader program after node reset, judges whether to meet IAP condition by IAP zone bit, does not meet then directly redirect n-back test program, satisfied then read the outer FLASH memory of sheet, by the data write-in functions program area read, then redirect performs new procedures, completes upgrading.
Beneficial effect of the present invention is:
1) node needing renewal is manually selected in upper computer software support, is loaded into new procedures APP file, and click " issuing " button and issue file destination, residue work is completed automatically by system.In escalation process, the progress that host computer display APP burst issues and state, and the result that node is finally upgraded.
2) have employed verification feedback and retransmission mechanism, ensure that APP file data transfers to destination node fast and accurately, guarantee that node upgrades successfully.Ethernet MTU (a maximum transmission unit) is 1518 bytes, and fragment data that host computer of the present invention issues adopts the form of 1KB+12B, more valid data of disposable transmission to greatest extent while guaranteeing there is redundant space.Adopt the transfer mechanism such as " stop+ACK ", host computer waits for the feedback information of network controller after completing a fragment data transmission.The data received verify by network controller, correctly then feed back successful information and ask next fragment data; Mistake then feeding back unsuccessful information request retransmission.Transport layer adopts reliable TCP transmission agreement, guarantees that each fragment data is issued to network controller fast and accurately.Network controller and node exchange data under the environment of wireless sensor network, and what transport communication protocol was conventional has ZigBee, 6LoWPAN, WIA-PA, Bluetooth etc.Limit by agreement MTU byte number, APP file fragmentation is 128B/ sheet by network controller, and Frame adopts the form identical with host computer and 128B+12B.Wherein 128B is effective APP data, and 12B is control information.Equally, controller also adopts the mechanism such as " stop+ACK " to the fragment data transmission of node, guarantees the accuracy of APP data.
3) when meeting with as special circumstances such as unexpected power down in escalation process, after restarting, still normally can run Bootloader program, and outer for sheet FLASH is re-write Pian Nei function program district, redirect n-back test program again.As without irresistible factors such as hardware fault, node electricity exhaust, node all can normally complete upgrading task.
4) the quick up reversal level of node support, utilize the different editions APP program that the outer FLASH partitioned storage host computer of sheet issues, when need node updates be before updated certain version, host computer is then only needed to issue the instruction of corresponding format, node receives searches target AP P program according to the APP version number in instruction afterwards in the outer FLASH of sheet, realizes the quick local program upgrading of node.
Accompanying drawing explanation
In order to make object of the present invention, technical scheme and beneficial effect clearly, the invention provides following accompanying drawing and being described:
Fig. 1 is system structural framework figure of the present invention;
Fig. 2 is network controlling structure device frame diagram of the present invention;
Fig. 3 is wireless sensor network node frame diagram of the present invention;
Fig. 4 is the IAP process of wireless sensor network node of the present invention;
Fig. 5 is APP burst frame format of the present invention;
Fig. 6 position up reversal level of the present invention command frame format.
Embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are described in detail.
Implementation procedure of the present invention comprises distance host, network controller and wireless sensor network node three parts.Distance host uses related development platform to generate " .bin " form APP new procedures file of node, then by internet or mobile network, this file destination is sent to network controller; File destination is forwarded on destination node by wireless sensor network by network controller; After destination node receives new procedures data, IAP mode is used to realize the firmware upgrade of self.
Distance host: distance host can be the PC of any operating system, is responsible for setting up TCP with the network controller in wireless sensor network and is connected, carry out exchanges data.PC uses the developing instruments such as MDK, IAR generate the new APP file of node of " .bin " form, and be loaded into upper computer software.Host computer reads APP file and is 1KB/ sheet by its burst, less than 1KB in its trailing zero.Each fragment data is added frame head, frame type, node MAC addr, burst number, data length and CRC check part and form new burst.Wherein frame head takies 2 bytes, represents the initial of frame; Frame type takies 1 byte, indicates the type of this Frame, comprises data acquisition instructions, IAP instruction, feedback response instruction etc.; Node MAC addr is the identify label of wireless sensor network interior joint, by user selecting to determine this value when needing the node of upgrading, for identifying the destination node needing upgrading, takies 2 bytes; The sequence of burst number mark fragment data, for APP file of recombinating, takies 1 byte; The data word joint number of the whole burst of data length record, is convenient to network controller and carries out data recombination and verification, take 2 bytes; CRC check byte, for verifying the data of transmitting-receiving, takies 4 bytes.Whole fragment data is divided into the bin file data of 1024 bytes and the control information of 12 bytes, amounts to 1036 bytes.
Adopt the transfer mechanism such as " stop+ACK ", namely host computer is only have received the successful reception fragment data frame of network controller feedback and the ACK code of verification succeeds, just issues next fragment data, verifies and unsuccessfully then retransmit current fragment data frame.When network controller determines fragment data less than representing during 1KB that all fragment datas are sent, feedback reception end mark, host computer completes APP file fragmentation and sends, wait node feedback upgrading progress and state.
Network controller: network controller function class is similar to gateway, act as protocol conversion and data retransmission, realizes the communication between bottom wireless sensor network node and distance host.Its main hardware is configured with: master control STM32 single-chip microcomputer, ethernet transceiver, radio-frequency module, GPRS module, power circuit, download circuit etc.The ethernet communication that LwIP protocol stack realizes controller is transplanted in master control, and radio-frequency module realizes controller access wireless sensor network, sets up communication link with destination node.LwIP protocol stack is a set of embedded ICP/IP protocol stack of increasing income developed by the AdamDunkels of computer science institute of Switzerland etc., it preserves the major function of ICP/IP protocol stack as ARP, TCP, UDP, ICMP etc., usually only need the ROM of the RAM of tens KB and about 40KB just can run.Radio-frequency module transplants the conventional Communication Protocol for Wireless Sensor Networks such as ZigBee, 6LoWPAN, WIA-PA, realizes and the networking of bottom radio node and communication.Radio-frequency module carries out exchanges data by serial ports and master control, and baud rate adopts 9600bps.
Wireless sensor network node: node belongs to and is upgraded object, is in wireless sensor network environment, uses IAP mode to upgrade self program.Node is made up of MCU, radio-frequency module, chip external memory, power circuit and associated peripheral.Peripherals can be sensor, switch relay, light-adjusting module, RFID module, GPS module etc. according to the function of node.Single-chip microcomputer memory partitioning is three pieces by IAP (In-ApplicationProgramming) in-service units, and one piece is called as BOOT district and runs Bootloader program, for guiding node program upgrade; One piece is logo area, for arranging IAP mark; Last block is called as function program district, runs nodal function code.Without upgrading task be, the program of node n-back test program area.
After node powers on, its master control runs Bootloader program, and this program is by checking that IAP upgrading zone bit judges whether to need upgrading.Need, read the APP data in chip external memory, and write Pian Nei function program district FLASH, reboot program pointer redirect n-back test area code, realize node procedure upgrading.If do not need upgrading, directly redirect n-back test code.If receive new procedures packet when n-back test code, then write the outer FLASH of sheet, zone bit set of upgrading after receiving, then warm reset master control.Master control enters Bootloader program after resetting again, has guided node to upgrade.Warm reset adopts and starts house dog and perform " while (1) " circulation again and do not feed the mode of dog and realize.
Fig. 1 is system structural framework figure of the present invention, and as shown in the figure, the distance host of application layer is communicated with network controller by the Internet or Cellular Networks, and network controller is in radio sensing network, is communicated with node networking by modes such as ZigBee, 6LoWPAN.Node belongs to sensing layer equipment, can be divided into Four types according to function: monitor-type, inquiry type, control type and sweep type.
Fig. 2 is network controlling structure device frame diagram, and its component part is as described in Figure: ether net type master control STM32F107, PHY chip, RJ45 network interface, radio-frequency module, GPRS module, chip external memory, SWD download circuit and power circuit.STM32F107 take Cortex-M3 as 32 flush bonding processors of kernel, and inside is integrated with mac controller interface chip to support that Ethernet data is received and dispatched.This mac controller meets IEEE802.3-2002 standard, provide two kinds with external PHY model calling mode: the medium independent interface RMII of medium independent interface MII and simplification.RMII is the Ethernet interface of standard, uses less connecting line compared with MII.Network controller involved in the present invention adopts RMII standard to connect mac controller and PHY chip, and PHY chip is again by RJ45 network interface access network based on ethernet.The model that PHY chip is selected is DP83848H, is the 10/100Mbps single channel physical layer device that a robustness is good, low in energy consumption, supports MII and RMII, supports 10base-T and 100BASE-TX Ethernet peripheral hardware.The present invention uses the network interface being built-in with network isolation transformer, can strengthen the antijamming capability of signal, strengthens signal, makes its transmission range farther.Except passing through Ethernet, the present invention also uses GPRS module, and ensure when wireless sensor network node specific use (as environmental monitoring), network controller are difficult to access network based on ethernet, distance host still can communicate with network controller.The APP file data that chip external memory issues for storing host computer.When node upgrading failure request retransmits APP file data, can directly read this file and be forwarded to destination node, without the need to host computer request repeat.
The present invention puts about radio-frequency module part and has stayed a socket, and containing four effective pins: VCC, GND, USART1_TX, USART1_RX, namely master control is communicated with radio-frequency module by serial ports.With in actual applications, Choice and design radio circuit and communication protocol can be come by the environment belonging to wireless sensor network node, as the most frequently used selection CC2530 chip runs ZigBee, 6LoWPAN protocol stack.
Fig. 3 is wireless sensor network node frame diagram, primarily of main control chip, radio-frequency module, chip external memory, power circuit and corresponding peripherals.Radio-frequency module is used for group-net communication, and the outer FLASH of sheet stores new APP routine data, main control chip coordinate peripherals realize certain function as switch control rule, sensor data acquisition, check meter.Master control need select the chip of IAP function (namely supporting FLASH programming), as series monolithics such as STM32, AVR, MSP, can coordinate software simulating IAP function.Select model to be the outer FLASH memory of W25Q64 sheet, node master control is read and write it by SPI mode.Its capacity is 8MB, totally 128 blocks, and each block size is 64K.128 of this storer blocks are further subdivided into 64 blocks by the present invention, each fast 128K byte, and numbering is respectively 0,1 ... 63, for storing the APP program of different editions, and in each fast reference position, store the version number of current APP program.When node needs inverse firmware updating, host computer is then only needed to issue upgrade with APP version number and destination node address, node master control travels through 64 storages soon according to APP version number, the program storage area of the APP firmware write master control in then corresponding stored is fast after finding, realizes node and upgrades fast.
Fig. 4 is the escalation process of node.The FLASH of node is divided into three districts: BOOT district, logo area and function program district, is respectively used to run Bootloader program, arrange zone bit and operation function program.Run BOOT district program after node powers on, whether the IAP zone bit that first this program detects logo area is effective, and effectively then node needs upgrading, and read the APP data of chip external memory and write-in functions program area, then redirect performs the function program of new write.If IAP zone bit is invalid, directly redirect performs old function program.If receive APP fragment data when node n-back test program, then carry out verifying and feeding back.Verification succeeds is then fed back successful information and is asked next fragment data, failed then request repeat.After APP fragment data all receives, by its overall write chip external memory and by the set of IAP zone bit, then warm reset master control.IAP mark detected when master control starts again effectively, perform the upgrading of IAP process implementation node firmware.When have fragment data surpass number of times verify unsuccessfully time, then to host computer feeding back unsuccessful information, for artificial decision-making treatment.
Fig. 5 is APP burst frame format, and define the form that host computer issues APP fragment data, particular content is introduced in summary of the invention.Wherein valid data are 1024 bytes, and control information is 12 bytes.
Fig. 6 is up reversal level steering order, before node needs to be updated to during a updated firmware program, issues this APP firmware program again, issue the instruction shown in Fig. 6 and can complete upgrading voluntarily by node without the need to host computer.Firmware version number in destination node reading command is also searched in 64 storage blocks of chip external memory, then by the function program district of the firmware program of corresponding blocks write node master control and redirect performs new firmware after finding, completes node up reversal level.
What finally illustrate is, above preferred embodiment is only in order to illustrate technical scheme of the present invention and unrestricted, although by above preferred embodiment to invention has been detailed description, but those skilled in the art are to be understood that, various change can be made to it in the form and details, and not depart from claims of the present invention limited range.

Claims (6)

1. a wireless sensor network node remote update device, it is characterized in that: this device hardware components comprises network controller and wireless sensor network node, device software comprises upper computer software, network controller drive software and node drive software three parts;
PC holds upper computer software interface for showing all online wireless sensor network nodes of far-end, and support that the APP file being manually loaded into node is to host computer, support to select destination node to be upgraded, send the burst that can start APP file and to issue and wait node completes remote upgrade automatically; Data transmission procedure has multiple check and retransmission mechanism, ensures that APP file is sent to destination node like clockwork; When meeting with the special circumstances such as power down in node upgrade process, restarting and automatically again heavily to upgrade afterwards, finally completing the renewal of self firmware.
2. a kind of wireless sensor network node remote update device according to claim 1, is characterized in that: described network controller hardware components mainly comprise carry mac controller STM32F107 master control, sheet outer FLASH memory, network card chip and radio-frequency module interface; Controller transplant and run LwIP protocol stack realizes TCP/IP function, and by network card chip access network based on ethernet; The serial ports 1 of master control leads to radio-frequency module interface, the environment of radio-frequency module residing for wireless sensor network node is selected, thus realizes network controller and can adapt to different radio sensor network environment and the object of this environment lower node firmware program of upgrading.
3. a kind of wireless sensor network node remote update device according to claim 1, is characterized in that: the FLASH of master control is divided into three districts by node: BOOT district, flag bit area and function program district; BOOT district runs Bootloader program, and function is the function program district reading chip external memory firmware data write master control, and boot pointer redirect n-back test program; Flag bit area arranges IAP zone bit, the position, mark position when node has upgrading task, and whether Bootloader program upgrades according to this decision, and when having upgraded, this resets; Function program district normal operation nodal function program, when nothing upgrading task, node runs this district's program always.
4. a kind of wireless sensor network node remote update device according to claim 1, it is characterized in that: the storer of the external 8MB of described wireless sensor network node, and be divided into 64 each fast 128KB of block, for storing the different editions APP program from host computer, the starting byte position that each storage is fast stores the version number of APP program; When node needs up reversal level, host computer issues the upgrade with APP version number and destination node address, can be completed the quick renewal of self firmware by destination node.
5. a kind of wireless sensor network node remote update device according to claim 1, is characterized in that: described APP file data is fragmented into the Frame of specific format, and adopts CRC check and feedback mechanism, ensure the error free transport of this file data; Network controller is tested to each APP fragment data received and feeds back, and verifies errorless, and feedback Success Flag also asks next fragment data, verifies wrong then feeding back unsuccessful and this fragment data of request repeat.
6. a wireless sensor network node remote update method, is characterized in that: the method comprises the following steps:
S1: when node downloads before installing and using, is divided into three districts by FLASH, a district downloads Bootloader program, and 2nd district are used for arranging zone bit, three district's download function programs;
S2: when needing to upgrade node firmware, PC end generates new function program, and is converted into the file destination of " .bin " form;
S3: upper computer software is connected by internet/mobile network and remote wireless sensors network of network controller, the destination node of selection needs upgrading, is then loaded into file destination and burst generation specific format frame (being completed by host computer) issues file destination;
S4: network controller verifies the burst file destination data received, errorless then by packet burst again, then the frame being assembled into specific format is forwarded to destination node; Frame format herein adopts the burst frame format identical with host computer, and only data length part is different;
S5: destination node serial ports or SPI mode receive data and extract file destination data, by the outer FLASH of this file data write sheet, question paper receives the set of rear IAP zone bit, then software reset MCU;
S6: perform Bootloader program after node reset, judges whether to meet IAP condition by IAP zone bit, does not meet then directly redirect n-back test program, satisfied then read the outer FLASH memory of sheet, by the data write-in functions program area read, then redirect performs new procedures, completes upgrading.
CN201610169358.6A 2016-03-23 2016-03-23 Remote upgrade method and remote upgrade device for wireless sensor network node Pending CN105573810A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610169358.6A CN105573810A (en) 2016-03-23 2016-03-23 Remote upgrade method and remote upgrade device for wireless sensor network node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610169358.6A CN105573810A (en) 2016-03-23 2016-03-23 Remote upgrade method and remote upgrade device for wireless sensor network node

Publications (1)

Publication Number Publication Date
CN105573810A true CN105573810A (en) 2016-05-11

Family

ID=55883982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610169358.6A Pending CN105573810A (en) 2016-03-23 2016-03-23 Remote upgrade method and remote upgrade device for wireless sensor network node

Country Status (1)

Country Link
CN (1) CN105573810A (en)

Cited By (39)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978727A (en) * 2016-06-16 2016-09-28 深圳先进技术研究院 Node firmware updating method of wearable human body motion capture system
CN106227572A (en) * 2016-08-30 2016-12-14 深圳市蓝海华腾技术股份有限公司 A kind of frequency converter control system programme upgrade method
CN106293857A (en) * 2016-08-31 2017-01-04 成都国蓉科技有限公司 A kind of wireless mode carries out the method for software upgrading
CN106453520A (en) * 2016-09-22 2017-02-22 合肥工业大学 Wireless program downloading method of collecting node of Internet of Things monitoring system
CN106851622A (en) * 2016-12-28 2017-06-13 歌尔科技有限公司 A kind of over-the-air upgrade method, device, central apparatus and ancillary equipment
CN106873943A (en) * 2017-01-12 2017-06-20 深圳市优必选科技有限公司 The firmware upgrade method of embedded system
CN107301068A (en) * 2017-06-12 2017-10-27 合肥众志行云科技有限公司 One-to-many wireless program upgrade-system and method on a kind of single-chip microcomputer
CN107342953A (en) * 2017-06-30 2017-11-10 杭州电子科技大学 A kind of network interface transmission circuit of deep sea sensor device data
CN107911392A (en) * 2017-12-15 2018-04-13 苏州工业职业技术学院 Internet of things lightweight addressing system based on 6LoWPAN
CN107957887A (en) * 2016-10-13 2018-04-24 阿里巴巴集团控股有限公司 A kind of component loading method of equipment, device and Internet of things system
CN108011750A (en) * 2017-11-10 2018-05-08 宁波三星医疗电气股份有限公司 The firmware upgrade method of communication module in a kind of centralized meter-reading system
CN108228205A (en) * 2016-12-16 2018-06-29 航天科工惯性技术有限公司 A kind of SCM Based sensor node remote upgrade method
CN108377604A (en) * 2018-03-21 2018-08-07 浙江朗骏电子科技有限公司 A kind of remote upgrade method of street lamp control system program
CN108415720A (en) * 2018-03-07 2018-08-17 四川长虹电器股份有限公司 The system and method for software upgrading is realized by remote control USB upgradings
CN108469961A (en) * 2018-03-07 2018-08-31 江苏北弓智能科技有限公司 One kind is based on micromation embedded platform remote update system and method
CN109189434A (en) * 2018-09-20 2019-01-11 安徽南瑞中天电力电子有限公司 A kind of online upgrading method of electric energy meter
CN109189445A (en) * 2018-10-12 2019-01-11 武汉微智创大科技有限公司 A kind of method of internet of things equipment program upgrading
CN109634643A (en) * 2018-11-19 2019-04-16 冶金自动化研究设计院 The three proofings automation equipment firmware upgrade system of people's air defense command post
CN109683932A (en) * 2018-12-19 2019-04-26 深圳创维数字技术有限公司 Terminal staging method, device and computer readable storage medium
CN109769239A (en) * 2019-03-06 2019-05-17 乐鑫信息科技(上海)股份有限公司 Method for carrying out OTA firmware upgrade to the node in bluetooth Mesh network
CN110458989A (en) * 2019-08-19 2019-11-15 深圳坚朗海贝斯智能科技有限公司 Support the intelligent lock system of masterslave switchover and the starting method of masterslave switchover
CN110597537A (en) * 2019-08-29 2019-12-20 南宁学院 Safe updating and upgrading method for nodes of Internet of things
CN110837389A (en) * 2019-11-01 2020-02-25 北京云迹科技有限公司 Equipment upgrading method and device, Internet of things equipment and storage medium
CN110888759A (en) * 2019-11-19 2020-03-17 深圳来电科技有限公司 Firmware upgrade protection method and mobile power supply leasing equipment
CN111145523A (en) * 2020-01-03 2020-05-12 重庆邮电大学 Method for upgrading micropower wireless communication module in electricity consumption information acquisition system
CN111182506A (en) * 2019-12-29 2020-05-19 合肥工大高科信息科技股份有限公司 UWB (ultra wide band) tag upgrading method and system based on UWB (ultra wide band) wireless communication
CN111309363A (en) * 2020-03-07 2020-06-19 重庆邮电大学 Contiki operating system-based online upgrading method and device
CN111506335A (en) * 2020-04-27 2020-08-07 湖北三江航天红峰控制有限公司 DSP + FPGA-based program online upgrading method and system
CN111698297A (en) * 2020-05-27 2020-09-22 重庆邮电大学 Upgradable electronic table board control method
CN111818513A (en) * 2020-06-11 2020-10-23 深圳硕日新能源科技有限公司 Remote upgrading method and remote upgrading system for solar controller
CN112035138A (en) * 2020-08-19 2020-12-04 超讯通信股份有限公司 5G radio frequency unit online upgrading method based on eCPRI interface
CN112055353A (en) * 2020-09-10 2020-12-08 中煤科工集团重庆研究院有限公司 Wireless upgrading system and method for coal mine personnel positioning identification card
CN112328276A (en) * 2020-10-14 2021-02-05 浙江达峰科技有限公司 OTA-based intelligent water softener upgrading method and system
CN112817628A (en) * 2021-03-30 2021-05-18 昆山迈致治具科技有限公司 Chip upgrading system and method, electronic equipment and storage medium
CN112988172A (en) * 2021-02-20 2021-06-18 浙江禾川科技股份有限公司 Program updating method, device and system of encoder
CN113190252A (en) * 2021-05-14 2021-07-30 广州国联通信有限公司 Remote online firmware updating method and device based on train broadcasting system
CN113391833A (en) * 2021-06-16 2021-09-14 杭州爱华仪器有限公司 Remote upgrading system and method for measuring amplifier
CN113407218A (en) * 2021-07-07 2021-09-17 广州医软智能科技有限公司 Method for upgrading program on line and electronic equipment
CN113741943A (en) * 2021-11-08 2021-12-03 湘投云储科技有限公司 Embedded equipment program upgrading system and method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711095A (en) * 2012-05-18 2012-10-03 中国科学院信息工程研究所 Method for updating nodes of wireless sensor network in wireless mode
CN104317613A (en) * 2014-10-15 2015-01-28 广西大学 Method for upgrading collection controller software of broadcast television transmitting station remote monitoring system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102711095A (en) * 2012-05-18 2012-10-03 中国科学院信息工程研究所 Method for updating nodes of wireless sensor network in wireless mode
CN104317613A (en) * 2014-10-15 2015-01-28 广西大学 Method for upgrading collection controller software of broadcast television transmitting station remote monitoring system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
彭亮等: "基于无线IAP的工业嵌入式系统升级技术应用", 《仪表技术与传感器》 *
霍文文: "无线传感器网络在线升级系统设计和实现", 《中国优秀硕士学位论文全文数据库》 *

Cited By (47)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105978727A (en) * 2016-06-16 2016-09-28 深圳先进技术研究院 Node firmware updating method of wearable human body motion capture system
CN106227572A (en) * 2016-08-30 2016-12-14 深圳市蓝海华腾技术股份有限公司 A kind of frequency converter control system programme upgrade method
CN106293857A (en) * 2016-08-31 2017-01-04 成都国蓉科技有限公司 A kind of wireless mode carries out the method for software upgrading
CN106453520A (en) * 2016-09-22 2017-02-22 合肥工业大学 Wireless program downloading method of collecting node of Internet of Things monitoring system
CN107957887A (en) * 2016-10-13 2018-04-24 阿里巴巴集团控股有限公司 A kind of component loading method of equipment, device and Internet of things system
CN108228205A (en) * 2016-12-16 2018-06-29 航天科工惯性技术有限公司 A kind of SCM Based sensor node remote upgrade method
CN106851622A (en) * 2016-12-28 2017-06-13 歌尔科技有限公司 A kind of over-the-air upgrade method, device, central apparatus and ancillary equipment
CN106873943B (en) * 2017-01-12 2020-01-17 深圳市优必选科技有限公司 Firmware upgrading method of embedded system
CN106873943A (en) * 2017-01-12 2017-06-20 深圳市优必选科技有限公司 The firmware upgrade method of embedded system
CN107301068A (en) * 2017-06-12 2017-10-27 合肥众志行云科技有限公司 One-to-many wireless program upgrade-system and method on a kind of single-chip microcomputer
CN107342953A (en) * 2017-06-30 2017-11-10 杭州电子科技大学 A kind of network interface transmission circuit of deep sea sensor device data
CN107342953B (en) * 2017-06-30 2022-08-12 杭州电子科技大学 Network port transmission circuit for deep sea sensor data
CN108011750B (en) * 2017-11-10 2021-02-26 宁波三星医疗电气股份有限公司 Firmware upgrading method for communication module in centralized meter reading system
CN108011750A (en) * 2017-11-10 2018-05-08 宁波三星医疗电气股份有限公司 The firmware upgrade method of communication module in a kind of centralized meter-reading system
CN107911392A (en) * 2017-12-15 2018-04-13 苏州工业职业技术学院 Internet of things lightweight addressing system based on 6LoWPAN
CN108469961A (en) * 2018-03-07 2018-08-31 江苏北弓智能科技有限公司 One kind is based on micromation embedded platform remote update system and method
CN108415720A (en) * 2018-03-07 2018-08-17 四川长虹电器股份有限公司 The system and method for software upgrading is realized by remote control USB upgradings
CN108377604A (en) * 2018-03-21 2018-08-07 浙江朗骏电子科技有限公司 A kind of remote upgrade method of street lamp control system program
CN109189434A (en) * 2018-09-20 2019-01-11 安徽南瑞中天电力电子有限公司 A kind of online upgrading method of electric energy meter
CN109189445A (en) * 2018-10-12 2019-01-11 武汉微智创大科技有限公司 A kind of method of internet of things equipment program upgrading
CN109634643A (en) * 2018-11-19 2019-04-16 冶金自动化研究设计院 The three proofings automation equipment firmware upgrade system of people's air defense command post
CN109683932A (en) * 2018-12-19 2019-04-26 深圳创维数字技术有限公司 Terminal staging method, device and computer readable storage medium
CN109769239A (en) * 2019-03-06 2019-05-17 乐鑫信息科技(上海)股份有限公司 Method for carrying out OTA firmware upgrade to the node in bluetooth Mesh network
CN110458989A (en) * 2019-08-19 2019-11-15 深圳坚朗海贝斯智能科技有限公司 Support the intelligent lock system of masterslave switchover and the starting method of masterslave switchover
CN110597537A (en) * 2019-08-29 2019-12-20 南宁学院 Safe updating and upgrading method for nodes of Internet of things
CN110597537B (en) * 2019-08-29 2022-12-13 桂林理工大学南宁分校 Safe updating and upgrading method for nodes of Internet of things
CN110837389A (en) * 2019-11-01 2020-02-25 北京云迹科技有限公司 Equipment upgrading method and device, Internet of things equipment and storage medium
CN110888759A (en) * 2019-11-19 2020-03-17 深圳来电科技有限公司 Firmware upgrade protection method and mobile power supply leasing equipment
CN111182506A (en) * 2019-12-29 2020-05-19 合肥工大高科信息科技股份有限公司 UWB (ultra wide band) tag upgrading method and system based on UWB (ultra wide band) wireless communication
CN111145523A (en) * 2020-01-03 2020-05-12 重庆邮电大学 Method for upgrading micropower wireless communication module in electricity consumption information acquisition system
CN111309363A (en) * 2020-03-07 2020-06-19 重庆邮电大学 Contiki operating system-based online upgrading method and device
CN111506335A (en) * 2020-04-27 2020-08-07 湖北三江航天红峰控制有限公司 DSP + FPGA-based program online upgrading method and system
CN111698297B (en) * 2020-05-27 2022-04-05 重庆安捷诺科技有限公司 Upgradable electronic table board control method
CN111698297A (en) * 2020-05-27 2020-09-22 重庆邮电大学 Upgradable electronic table board control method
CN111818513A (en) * 2020-06-11 2020-10-23 深圳硕日新能源科技有限公司 Remote upgrading method and remote upgrading system for solar controller
CN112035138A (en) * 2020-08-19 2020-12-04 超讯通信股份有限公司 5G radio frequency unit online upgrading method based on eCPRI interface
CN112035138B (en) * 2020-08-19 2023-08-15 超讯通信股份有限公司 On-line upgrading method of 5G radio frequency unit based on eCPRI interface
CN112055353A (en) * 2020-09-10 2020-12-08 中煤科工集团重庆研究院有限公司 Wireless upgrading system and method for coal mine personnel positioning identification card
CN112328276A (en) * 2020-10-14 2021-02-05 浙江达峰科技有限公司 OTA-based intelligent water softener upgrading method and system
CN112988172A (en) * 2021-02-20 2021-06-18 浙江禾川科技股份有限公司 Program updating method, device and system of encoder
CN112817628A (en) * 2021-03-30 2021-05-18 昆山迈致治具科技有限公司 Chip upgrading system and method, electronic equipment and storage medium
CN112817628B (en) * 2021-03-30 2023-09-26 昆山迈致治具科技有限公司 Chip upgrading system and method, electronic equipment and storage medium
CN113190252A (en) * 2021-05-14 2021-07-30 广州国联通信有限公司 Remote online firmware updating method and device based on train broadcasting system
CN113391833A (en) * 2021-06-16 2021-09-14 杭州爱华仪器有限公司 Remote upgrading system and method for measuring amplifier
CN113407218A (en) * 2021-07-07 2021-09-17 广州医软智能科技有限公司 Method for upgrading program on line and electronic equipment
CN113741943B (en) * 2021-11-08 2022-03-18 湘投云储科技有限公司 Embedded equipment program upgrading system and method
CN113741943A (en) * 2021-11-08 2021-12-03 湘投云储科技有限公司 Embedded equipment program upgrading system and method

Similar Documents

Publication Publication Date Title
CN105573810A (en) Remote upgrade method and remote upgrade device for wireless sensor network node
US7539488B2 (en) Over-the-air download (OAD) methods and apparatus for use in facilitating application programming in wireless network devices of ad hoc wireless communication networks
CN102376153B (en) The method of collector and carrier wave meter remote upgrade in automatic meter reading system
CN108062230B (en) Serial ports transparent transmission and program updating system and its method in a kind of Internet wide
CN102403034B (en) DSP controls single-board device and remote upgrade method thereof and server
CN111145523B (en) Method for upgrading micropower wireless communication module in electricity consumption information acquisition system
CN109842523A (en) A kind of firmware upgrade method, device, equipment and storage medium
CN104122815B (en) A kind of method of hydrology detection and control terminal and its remote upgrade based on ARM
CN104717252A (en) Power line carrier remote upgrading method and terminal
CN109002310A (en) firmware upgrade method
CN105955764A (en) Improvement method for STM32 single-chip microcomputer IAP serial program burning
CN103051674A (en) Method and device for remotely upgrading wireless communication module as well as handheld unit (HHU)
CN108469961A (en) One kind is based on micromation embedded platform remote update system and method
CN105335316A (en) Motor assembling line serial port server based on cloud computation
CN106874054A (en) A kind of repeater inner module program on-line upgrading method and system
CN109189434A (en) A kind of online upgrading method of electric energy meter
CN103050000A (en) STM32-based handheld automatic meter reader
CN106020875A (en) Firmware updating management method and device of embedded terminal
CN109005188A (en) A kind of data transmission device and method, system, equipment, computer storage medium
CN111309363A (en) Contiki operating system-based online upgrading method and device
CN106130773A (en) A kind of WSN node remote-code-update system based on MQX_Lite
CN104469501A (en) Set top box automatic set-up method based on serial communication protocol
CN106020869B (en) The method of the CAN bus based multiple single-chip microcontroller node procedures of selectively burning
CN102857380A (en) Remote upgrading method for power line carrier communication routing
CN102866900B (en) Upgrade the method and system of the configurator of control system

Legal Events

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

Application publication date: 20160511