Invention Name:
A summary of a remote software Update method :
A remote software Update method, in the target hardware and u-boot boot software Environment, the software image is downloaded to the target hardware by means of remote communication, which realizes the non-u-boot partial software upgrade of the target hardware including the operating system and the application part. This update method, in the host computer software implementation of the updated software version records management, wireless network in the same hardware configuration of the node Software update state management. By applying this method, the operating system and application upgrade of the target hardware node can be implemented in a specific target hardware environment, avoiding the manual operation of software upgrade for each hardware point, effectively reducing the workload of development and maintenance personnel, and reducing the operation and maintenance cost.
statement of Claim:
1. A remote software Update method, including the following steps: (o the hardware platform for the sensor node custom u-boot; (2) write u-boot to the memory of the mesh joint point; (3) The background server uses 3G or GPRS or mobile wireless network or WiFi or Ethernet to establish communication with the network joint point in the sensor network; (4) Compile the software image file used to generate the update using the supporting development tool chain and deploy the software image file to the background server; (5) The background server sends the software update instructions to each node of the sensor, and (6) After the sensor node receives the update instruction, the node system restarts automatically, u-boot the software image file required by the backend server, and writes the file to the memory on the node, and (7) the node system restarts after the write operation is completed. The node makes the update success status data after verifying the software version consistent with the server-side query, otherwise issues the update failure status data, (8) repeats steps (4) ~ (7) until all nodes in the network are updated.
2 as claimed in claim 1, wherein the remote software Update method, characterized in that said memory is an off-chip memory chip.
3. The remote software Update method as claimed in claim 1, characterized in that the sensor network of the nodes in the communication chain by the near and far update the software.
4 as claimed in claim 1, wherein the remote software Update method, characterized in that said network joint point between the use of ZigBee or 433Mhz communication.
Technical field:
[0001] The present invention belongs to the computer embedded software, the field of the Internet of things, in particular to a u-boot based on the internet of things multi-node hardware software remote Update method.
Background technology:
[0002] Software update, refers to software developers when writing software, because the designers consider incomplete or incomplete program functions, after the software release, through the modification of the program or the addition of new functions, re-release and deployment to the target system process.
[0003] U-boot, or Universal BootLoader, is an open source system boot software. Developed by the Open source project Ppcboot, Armboot is incorporated into Ppcboot, and some other arch loader collectively u-boot. December 17, 2002 the first version of u-boot-0.2.0 released. The U-boot provides two modes of operation: Boot load (boot loading) mode and download (downloading) mode with full functionality of the large boot loader. U-boot is protected by the GPL license agreement.
[0004] The sensor network node belongs to the type of embedded system, in general, the system of these nodes of the software update needs to RS232 or JTAG interface mode, with a cable cable to the host computer to each node in turn to update the software. A sensor network is composed of a large number of sensor nodes, after the deployment of the whole sensor network, it is difficult to operate the software update of each node in sequence, and the cost of updating is higher, which affects the actual deployment application of the sensor network. invention Content:
[0005] In order to solve the sensor network environment, the software update of each sensor node is difficult problem, the present invention provides a remote software Update method based on U-boot, the main content is:
[0006] A remote software Update method, including the following steps:
[0007] (I) for the sensor node hardware platform, custom u-boot, U-boot can realize the hardware platform software image download, transmission, write, check, wireless communication and update feedback and other functions;
[0008] (2) The U-boot is written to the network joint point of the memory device;
[0009] (3) Background server using 3G or GPRS or mobile wireless network or WiFi or Ethernet and sensor networks in the network joint point to establish communication;
[0010] (4) Use the Supporting development tool chain to compile the software image file used to generate the update, and deploy the software image file to the background server, managed by the background server management software;
[0011] (5) The background server to the sensor nodes issued software update instructions;
[0012] (6) the sensor node after receiving the update instruction, the sensor node system automatically restarts, u-boot back to the server to request the update of the required software image file, and the file is written to the network nodes on the memory device;
[0013] (7) After the completion of the write operation, the sensor node system restarts, the node to the server-side query verifies that the software version is consistent with the update success status data, or issue update failure status data;
[0014] (8) Repeat steps (4) ~ (7) until all nodes in the network have been updated. [0015] Further, the memory is an off-chip memory chip.
[0016] Further, the mesh joint point between the use of ZigBee or 433Mhz communication
[0017] Further, each node in the sensor network, in the communication chain by the near and far from the update software.
[0018] The present invention provides a remote updating of the sensor network solution, for a specific target hardware platform of the sensor node, on the node's boot loader added software update image file transfer, write and other functions, combined with the background server software functions, Thus, the software updates of the nodes of the whole sensor network are realized.
[0019] The innovative point of the present invention lies in the following aspects:
[0020] The present invention provides a method for each node in the sensor network, which is based on a non-cable connection of the software in the batch update network.
[0021] The present invention in the background server on the software to achieve the target node update software image management.
[0022] The present invention is used in the u-boot of the sensor node customization, the addition of file download, check, write to a specific type of memory device and other functions.
[0023] Using this scheme, it is convenient for the node in the sensor network to achieve software batch update. description of the drawings:
[0024] Figure 1 for the IoT Network Connection diagram.
[0025] 1-Background server sensor network
[0026] 3-Background server and sensor network communication mode in the sensor Network ZigBee Communication protocol
[0027] 5-sensor network joint point 6-sensor node specific implementation mode:
[0028] The following combined with the drawings of the present invention, the remote software Update method of the specific process described in detail.
[0029] The implementation of the present invention is divided into two stages of the sensor node before the deployment of the U-boot customization and the entire sensor network after the deployment of the software update phase.
[0030] (I) before the deployment of each node, the U-boot is customized and written to the memory node;
[0031] (2) After deployment, using the supporting development tool chain to compile the software image file used to generate the update, through the background server to the sensor network nodes issued update instructions, in turn, the non-u-boot part of the software on each node to update, in order to achieve the entire sensor network node software updates.
[0032] The technical scheme of the present invention is specified as follows:
[0033] U-boot custom. For the hardware platform of the sensor node, it realizes the function of the image file writing, file transfer, file check, wireless communication, etc. on the u-boot of the node hardware, and increases the ability to send the update status to the background server after the system automatic start instruction and the image file update is completed.
[0034] Establish a background server communication with the node. The backend server uses 3G or GPRS or mobile wireless network or WiFi or Ethernet and network nodes in the sensor network to establish communication, each node using ZigBee or 433Mhz communication.
[0035] application and software update phase work.
[0036] After the deployment of the sensor nodes, the formation of a sensor network, the need to update the software on each sensor node, the following process is performed:
[0037] The tool chain associated with the sensor node compiles the updated program into the image file used for the update and deploys the file to the backend server, which is managed by the server management software. [0038] The background server issues software update instructions to each node of the sensor.
[0039] After the sensor node receives the update instruction, the node system automatically restarts, u-boot back to the server to request the update of the required software image file, and the file is written to the nodes on the network memory device. After the write operation is complete, the node system restarts, and the node initiates the update success status data after the server-side query verifies that the software version is consistent, otherwise the update failed state data is issued. Each node in the sensor network updates the software from near and far on the communication link until all nodes in the network have been updated.
[0040] The following combination of drawings and specific embodiments of the present invention is further described:
[0041] Figure 1 depicts the schematic diagram of the scheme.
[0042] Background server I use 3G or GPRS or mobile wireless network or WiFi or Ethernet network with the Gateway 5 node communication, the nodes using ZigBee or 433Mhz communication.
[0043] The tool chain associated with the sensor node 6 compiles the updated program into the image file used by the update and deploys the file to the backend server I, which is managed by the server management software.
[0044] Background server I issued software update instructions to each node 6 of the sensor.
[0045] Sensor node 6 after receiving the update instruction, the Sensor node 6 system automatically restarts, u-boot back to server I request to update the required software image file, and write the file to the network nodes 5 on the memory device. After the write operation is complete, the Sensor node 6 system restarts, sensor node 6 back to server I query verifies that the software version is consistent after the update success status data is issued, otherwise the update failed status data is emitted. Each node in the sensor network updates the software from near and far on the communication link until all nodes in the network have been updated.
[0046] Finally, it should be stated that: The above embodiments are only used to illustrate the present invention is a technical solution rather than limitations; Although the present invention is described in detail by reference to a better embodiment, the ordinary technical personnel in the field shall understand: The specific embodiments of the present invention can still be modified or partial technical characteristics of the equivalent replacement, without departing from the spirit of the technical scheme of the present invention, which should be covered in the present invention is requested to protect the scope of the technical program. Drawings: