CN104407898A - Software remote upgrade system and method for photovoltaic array smart junction box - Google Patents

Software remote upgrade system and method for photovoltaic array smart junction box Download PDF

Info

Publication number
CN104407898A
CN104407898A CN201410722003.6A CN201410722003A CN104407898A CN 104407898 A CN104407898 A CN 104407898A CN 201410722003 A CN201410722003 A CN 201410722003A CN 104407898 A CN104407898 A CN 104407898A
Authority
CN
China
Prior art keywords
upgrade
data
controller
junction box
header box
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
CN201410722003.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.)
SHENZHEN JINGFUYUAN TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN JINGFUYUAN TECHNOLOGY Co Ltd
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 SHENZHEN JINGFUYUAN TECHNOLOGY Co Ltd filed Critical SHENZHEN JINGFUYUAN TECHNOLOGY Co Ltd
Priority to CN201410722003.6A priority Critical patent/CN104407898A/en
Publication of CN104407898A publication Critical patent/CN104407898A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention relates to a software remote upgrade system and a method for a photovoltaic array smart junction box. The system comprises a controller and a junction box hanged on the bus, the controller and the junction box exchanges the data through the RS485 serial communication standard, the junction box further comprises a serial port upgrade execution module and an application program execution module. The serial port upgrade execution module sends the upgrade request command to the controller, the controller feeds the response command back to the junction box according to the upgrade request command; according to whether to receive the response command during the schedule time, the junction box adopts the serial port upgrade execution module for receiving the upgrade data for upgrading the program, or adopts the application program execution module for executing the application program. Moreover, the power is not cut off during the upgrade process, the MCU program of the junction box can work automatically after finishing upgrading with low cost, the special person is not needed for site operation for realizing remote remote.

Description

Photovoltaic array intelligent junction box remote software upgrade-system and method
Technical field
The present invention relates to photovoltaic array intelligent junction box software upgrading technology, particularly relate to a kind of photovoltaic array intelligent junction box remote software upgrade-system and method.
Background technology
Along with embedded electronic product more and more general be applicable to each department of national economy, follow-up maintenance and the software upgrading of embedded product are also more and more frequent.Photovoltaic array intelligent junction box carries out one-level as a kind of input to photovoltaic battery array and confluxes, and is linked into the line of inverter, optimization system structure for reducing photovoltaic battery array, improves reliability and maintainability.While the lightning protection function that confluxes is provided, also monitor the running status of cell panel, to conflux the functions such as after-current, voltage, lightning protection device state, DC circuit breaker state acquisition, and the function of header box address and communication baud rate can be set for customer selecting, device standard configuration has RS485 interface, can the data upload measured and gather to supervisory system.The follow-up maintenance of intelligent junction box and software upgrading become the problem that header box manufacturer and user are concerned about very much.Traditional header box method for upgrading software is the consumer turning off header box, opens header box cover and carries out software upgrading by JTAG cd-rom recorder connection computer.The method needs dedicated technician to operate to scene, concerning user and manufacturer, all can improve maintenance difficulties and maintenance cost.
Summary of the invention
The present invention is intended to solve above-mentioned problems of the prior art, proposes a kind of photovoltaic array intelligent junction box remote software upgrade-system and method.
One aspect of the present invention proposes a kind of photovoltaic array intelligent junction box remote software upgrade-system, this system comprises the controller of carry in bus and header box, described controller and header box carry out data interaction by RS485 standard for serial communication, and described header box comprises serial ports upgrade execution module and application program execution module further.Wherein, described serial ports upgrade execution module sends upgrade request order to described controller; Described controller according to described upgrade request order to the order of described header box feedback response; According to whether receiving described response command in the fixed time, described header box calls described serial ports upgrade execution module reception upgrade data and upgrades with executive routine, or calls described application program execution module executive utility.
The present invention proposes a kind of photovoltaic array intelligent junction box remote software upgrade method on the other hand, the method comprises the following steps: step one, header box starting up serial ports upgrading executive routine, and sends upgrade request order to the controller of carry on RS485 universal serial bus; Step 2, judge in setting-up time, whether to receive the response message for described upgrade request order, be perform step 3, otherwise perform step 4; Step 3, receive the upgrade data sent by controller, executive routine is upgraded; Step 4, exit serial ports upgrading executive routine, executive utility.
The photovoltaic array intelligent junction box remote software upgrade-system that the present invention proposes and method have following advantage: easy and simple to handle, taking out MCU circuit board, and only need receive in bus by RS485, just can realize upgrading by platform without the need to opening header box case lid.In addition, at escalation process without the need to power-off, rear header box MCU program of having upgraded can be run automatically, with low cost, without the need to professional's execute-in-place, just can realize remote upgrade.
Accompanying drawing explanation
Fig. 1 is the photovoltaic array intelligent junction box remote software upgrade-system network connection layout of one embodiment of the invention;
Fig. 2 is the photovoltaic array intelligent junction box remote software upgrade-system communication data packet format schematic diagram of one embodiment of the invention;
Fig. 3 is the photovoltaic array intelligent junction box remote software upgrade-system upgrade data packet format schematic diagram of one embodiment of the invention;
Fig. 4 is the photovoltaic array intelligent junction box remote software upgrade method process flow diagram of one embodiment of the invention;
Fig. 5 is the executive routine upgrade step process flow diagram after the monitoring upgrade of one embodiment of the invention;
Fig. 6 be one embodiment of the invention receive header box to upgrade response after upgrade data processing flow chart.
Embodiment
Below in conjunction with specific embodiment and accompanying drawing, the present invention is described in further detail.Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Being exemplary below by the embodiment be described with reference to the drawings, only for explaining technical scheme of the present invention, and not should be understood to limitation of the present invention.
One aspect of the present invention provides a kind of photovoltaic array intelligent junction box remote software upgrade-system.As shown in Figure 1, this system comprises the controller and header box that are connected by bus, and described header box passes through its MCU(micro-control unit, Micro Control Unit) carry is on the bus.The quantity of described header box can be multiple, and described controller and header box carry out data interaction by RS485 standard for serial communication.RS485 standard for serial communication adopts two line semiduplex modes, and support multipoint data communication, transmission range can reach 1200 meters, is usually used in the data communication in Industry Control.Wherein, the optional computing machine of described controller, server, panel computer etc. have the one in the equipment of data processing and analytic function.
Described header box comprises serial ports upgrade execution module and application program execution module further.The photovoltaic array intelligent junction box remote software upgrade-system specific works principle that the present invention proposes is: start serial ports upgrade execution module during header box start, serial ports upgrade execution module sends upgrade request order by bus to described controller; Described controller is receiving the rear to the order of described header box feedback response of described upgrade request order; If receive described response command at the appointed time, described serial ports upgrade execution module starts to receive the upgrade data sent by described controller, and executive routine is upgraded; If not at the appointed time in receive described response command, described header box calls described application program execution module executive utility.In the present invention, the described fixed time is preferably set to 3 seconds.
Fig. 2 is the data packet format that photovoltaic array intelligent junction box remote software upgrade-system middle controller of the present invention and header box carry out communication and adopt.Wherein, packet start bit is the address of header box of will upgrading, and function code is 0xB0, and originating register is 0x00, and register number is 0x80.In the present invention, data check mode is CRC check.As shown in Figure 3, the upgrade data data packet format that controller is sent to junction station is followed successively by header box address, function code 0xB0, data block coding, data block, the CRC library file that CRC check adopts Atmel Studio to carry, its little and correction rate of taking up room is up to more than 99%.
Except header box mentioned above is except described this technical scheme of controller application software upgrading, the present invention also provides described controller initiatively to send this preferred version of software upgrade data bag to header box.Particularly, described controller initiatively sends upgrade to described header box, and when the header box of corresponding address receives described upgrade, header box calls described serial ports upgrade execution module and receives upgrade data, performs online program upgrade.Preferably, after receiving the response that header box makes described upgrade, described controller just starts to send upgrade data to header box.
Preferably, described serial ports upgrade execution module comprises Data Analysis unit, CRC check unit and date read-write cell further.First described data resolution module resolves described upgrade data; Described CRC check unit carries out CRC check to data after parsing; Described date read-write cell carries out page erasing, page programming according to data after verification, and rewrites page address.Programming terminates rear page address and adds 1, then judges whether the superlatively location of application layer is greater than current address, is greater than and then sends programming success command, the order otherwise transmission data are crossed the border.After controller receives programming success command, then issue next frame data.Until receive programming the finish command that header box MCU returns.
The present invention provides a kind of photovoltaic array intelligent junction box remote software upgrade method on the other hand.As shown in Figure 4, photovoltaic array intelligent junction box remote software upgrade method of the present invention comprises the following steps: S100, header box starting up serial ports upgrading executive routine, and sends upgrade request order to the controller of carry on RS485 universal serial bus; S200, judge in setting-up time, whether to receive the response message for described upgrade request order, be perform step 3, otherwise perform step 4; S300, receive the upgrade data sent by controller, executive routine is upgraded; S400, exit serial ports upgrading executive routine, executive utility.
In an embodiment of the present invention, shown controller and header box MCU are provided with corresponding serial ports upgrade communication program.Under original state, in header box MCU, burning has two engineerings, be respectively bootloader program and the application program that normally works of responsible header box monitoring function of the upgrading of responsible serial ports, be positioned at the different entry addresses of flash by configuration make file by these two engineerings.When will when changing to other engineering from the project cutting run, as long as redirect just can be switched to other engineering from running engineering the entry address jumping to other engineering.Run Bootloader program during header box starting up, Bootloader program initiatively sends upgrade request order, receives upgrading response command in 3 seconds, then executive routine upgrading, otherwise exits Bootload program, executive utility.Preferably, when header box executive utility, if controller described in user operation sends to header box start the instruction of software upgrading, after the header box of corresponding address receives upgrade command, just proceed to Bootloader program and run, perform online program upgrade.
Preferably, after the described upgrade of reception, first described header box sends response message based on described upgrade to controller, then receives the upgrade data sent by controller, and executive routine is upgraded.
As shown in Figure 5, after monitoring the upgrade sent by controller, executive routine upgrading preferably includes following steps: close total interruption and house dog program; Response message is sent to controller based on described upgrade; Receive upgrade data, and described upgrade data is resolved; CRC check is carried out to data after parsing; Carry out page erasing, page programming according to data after verification, and rewrite page address.In the present embodiment, header box MCU receives each frame data is 133bit.After MCU receives enough 133 data, first judge whether address mates.If coupling, carries out CRC check, otherwise abandons data, require controller retransmission data.After data check passes through, carry out page erasing and page programming.Programming terminates rear page address and adds 1, then judges whether the superlatively location of application layer is greater than current address, is greater than and then sends programming success command, the order otherwise transmission data are crossed the border.After controller receives programming success command, then issue next frame data.Until receive programming the finish command that return channel MCU returns.Wherein, if after start asked upgrade command to be performed in 3 seconds, then jump in serial ports ROMPaq and run.Serial ports ROMPaq is an endless loop, the order that continuous detecting upper computer software is put forward and data, and performs corresponding operation, only detects data and is sent rear ability escape leading program executive utility.
Preferably, as shown in Figure 6, receive header box to the response of described upgrade after, perform following steps successively: select serial ports, baud rate and address are set; Read .bin file; Upgrading initiation command is sent to described header box; Upgrade data is sent to described header box.Wherein, after transmission first frame data, whether successfully perform follow-up frame data according to acknowledgement command and send or data re-transmitting, if sending times is greater than 3 times, then be judged as upgrading unsuccessfully, after knowing that controller receives and upgrades successfully order, finally exit ROMPaq.
The photovoltaic array intelligent junction box remote software upgrade-system that the present invention proposes and method have following advantage: easy and simple to handle, taking out MCU circuit board, and only need receive in bus by RS485, just can realize upgrading by platform without the need to opening header box case lid.In addition, at escalation process without the need to power-off, rear header box MCU program of having upgraded can be run automatically, with low cost, without the need to professional's execute-in-place, just can realize remote upgrade.
Although the present invention is described with reference to current better embodiment; but those skilled in the art will be understood that; above-mentioned better embodiment is only used for explaining and technical scheme of the present invention being described; and be not used for limit protection scope of the present invention; any within the spirit and principles in the present invention scope; any modification of doing, equivalence replacement, distortion, improvement etc., all should be included within claims of the present invention.

Claims (10)

1. a photovoltaic array intelligent junction box remote software upgrade-system, comprise the controller of carry in bus and header box, described controller and header box carry out data interaction by RS485 standard for serial communication, it is characterized in that, described header box comprises serial ports upgrade execution module and application program execution module further, wherein
Described serial ports upgrade execution module sends upgrade request order to described controller;
Described controller according to described upgrade request order to the order of described header box feedback response;
According to whether receiving described response command in the fixed time, described header box calls described serial ports upgrade execution module reception upgrade data and upgrades with executive routine, or calls described application program execution module executive utility.
2. photovoltaic array intelligent junction box remote software upgrade-system according to claim 1, it is characterized in that, described controller sends upgrade to described header box, and described header box calls described serial ports upgrade execution module reception upgrade data and upgrades with executive routine.
3. photovoltaic array intelligent junction box remote software upgrade-system according to claim 1, is characterized in that, described serial ports upgrade execution module comprises Data Analysis unit, CRC check unit and date read-write cell further, wherein,
Described data resolution module is resolved described upgrade data;
Described CRC check unit carries out CRC check to data after parsing;
Described date read-write cell carries out page erasing, page programming according to data after verification, and rewrites page address.
4. photovoltaic array intelligent junction box remote software upgrade-system according to claim 2, is characterized in that, after receiving the response that header box makes described upgrade, described controller sends upgrade data to header box.
5. photovoltaic array intelligent junction box remote software upgrade-system according to claim 1, is characterized in that, described controller is the one in computing machine, server, panel computer.
6. a photovoltaic array intelligent junction box remote software upgrade method, comprises the following steps:
Step one, header box starting up serial ports upgrading executive routine, and send upgrade request order to the controller of carry on RS485 universal serial bus;
Step 2, judge in setting-up time, whether to receive the response message for described upgrade request order, be perform step 3, otherwise perform step 4;
Step 3, receive the upgrade data sent by controller, executive routine is upgraded;
Step 4, exit serial ports upgrading executive routine, executive utility.
7. photovoltaic array intelligent junction box remote software upgrade method according to claim 6, it is characterized in that, after execution step 4, monitor the upgrade sent by controller, according to described upgrade from just proceeding to described serial ports upgrading executive routine at executive utility.
8. photovoltaic array intelligent junction box remote software upgrade-system according to claim 7, is characterized in that, after the described upgrade of reception, performs following steps: send response message based on described upgrade to controller; Receive the upgrade data sent by controller, executive routine is upgraded.
9. the photovoltaic array intelligent junction box remote software upgrade method according to claim 7 or 8, is characterized in that, according to described upgrade, perform following steps successively:
Close total interruption and house dog program;
Response message is sent to controller based on described upgrade;
Receive upgrade data, and described upgrade data is resolved;
CRC check is carried out to data after parsing;
Carry out page erasing, page programming according to data after verification, and rewrite page address.
10. photovoltaic array intelligent junction box remote software upgrade method according to claim 8, is characterized in that, receive header box to the response of described upgrade after, perform following steps successively:
Select serial ports, baud rate and address are set;
Read .bin file;
Upgrading initiation command is sent to described header box;
Upgrade data is sent to described header box.
CN201410722003.6A 2014-12-03 2014-12-03 Software remote upgrade system and method for photovoltaic array smart junction box Pending CN104407898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410722003.6A CN104407898A (en) 2014-12-03 2014-12-03 Software remote upgrade system and method for photovoltaic array smart junction box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410722003.6A CN104407898A (en) 2014-12-03 2014-12-03 Software remote upgrade system and method for photovoltaic array smart junction box

Publications (1)

Publication Number Publication Date
CN104407898A true CN104407898A (en) 2015-03-11

Family

ID=52645531

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410722003.6A Pending CN104407898A (en) 2014-12-03 2014-12-03 Software remote upgrade system and method for photovoltaic array smart junction box

Country Status (1)

Country Link
CN (1) CN104407898A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769280A (en) * 2018-04-21 2018-11-06 深圳市禾望电气股份有限公司 Method, equipment, storage medium and the electricity generation system of header box address information are set
CN108874451A (en) * 2018-06-01 2018-11-23 深圳市道通智能航空技术有限公司 Unmanned plane battery protecting method, device and storage medium
CN109188949A (en) * 2018-06-28 2019-01-11 郑州众智科技股份有限公司 The method that host computer passes through MODBUS protocol remote upgraded electricity generation generator set controller
CN109885331A (en) * 2019-03-01 2019-06-14 湖南汇博电子科技股份有限公司 Method for upgrading software, control method, system, storage medium and electronic equipment
CN114863667A (en) * 2022-04-29 2022-08-05 苏州迅奥电子科技有限公司 Header box data acquisition system
CN117687662A (en) * 2024-02-04 2024-03-12 成都态坦测试科技有限公司 Singlechip program upgrading method and device, readable storage medium and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040068721A1 (en) * 2000-11-17 2004-04-08 O'neill Patrick Network for updating firmware and / or software in wireless communication devices
CN101605189A (en) * 2008-06-13 2009-12-16 大唐移动通信设备有限公司 The online upgrade system of intelligent platform management controller and method
CN102880480A (en) * 2012-03-08 2013-01-16 深圳市华旭科技开发有限公司 Method for updating application program of intelligent water meter on line
CN103294513A (en) * 2013-06-25 2013-09-11 龙迅半导体科技(合肥)有限公司 Software upgrading method and device
CN103645921A (en) * 2013-12-24 2014-03-19 Tcl通力电子(惠州)有限公司 MCU software upgrading method and main equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040068721A1 (en) * 2000-11-17 2004-04-08 O'neill Patrick Network for updating firmware and / or software in wireless communication devices
CN101605189A (en) * 2008-06-13 2009-12-16 大唐移动通信设备有限公司 The online upgrade system of intelligent platform management controller and method
CN102880480A (en) * 2012-03-08 2013-01-16 深圳市华旭科技开发有限公司 Method for updating application program of intelligent water meter on line
CN103294513A (en) * 2013-06-25 2013-09-11 龙迅半导体科技(合肥)有限公司 Software upgrading method and device
CN103645921A (en) * 2013-12-24 2014-03-19 Tcl通力电子(惠州)有限公司 MCU software upgrading method and main equipment

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108769280A (en) * 2018-04-21 2018-11-06 深圳市禾望电气股份有限公司 Method, equipment, storage medium and the electricity generation system of header box address information are set
CN108769280B (en) * 2018-04-21 2021-07-13 深圳市禾望电气股份有限公司 Method and device for setting address information of combiner box, storage medium and power generation system
CN108874451A (en) * 2018-06-01 2018-11-23 深圳市道通智能航空技术有限公司 Unmanned plane battery protecting method, device and storage medium
WO2019228445A1 (en) * 2018-06-01 2019-12-05 深圳市道通智能航空技术有限公司 Unmanned aerial vehicle battery protection method and device, and storage medium
CN108874451B (en) * 2018-06-01 2022-07-12 深圳市道通智能航空技术股份有限公司 Unmanned aerial vehicle battery protection method and device and storage medium
CN109188949A (en) * 2018-06-28 2019-01-11 郑州众智科技股份有限公司 The method that host computer passes through MODBUS protocol remote upgraded electricity generation generator set controller
CN109188949B (en) * 2018-06-28 2021-10-22 郑州众智科技股份有限公司 Method for remotely upgrading generator set controller by upper computer through MODBUS protocol
CN109885331A (en) * 2019-03-01 2019-06-14 湖南汇博电子科技股份有限公司 Method for upgrading software, control method, system, storage medium and electronic equipment
CN114863667A (en) * 2022-04-29 2022-08-05 苏州迅奥电子科技有限公司 Header box data acquisition system
CN117687662A (en) * 2024-02-04 2024-03-12 成都态坦测试科技有限公司 Singlechip program upgrading method and device, readable storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN104407898A (en) Software remote upgrade system and method for photovoltaic array smart junction box
CN103024074B (en) DSP (digital signal processor) remote wireless upgrading method based on GPRS (general packet radio service)
CN104750506A (en) Intelligent appliance WiFi module software remote automatic upgrade method
CN104090796A (en) Embedded device program updating method and system
CN108180599A (en) Debugging method, debugging device and computer readable storage medium
CN111796849A (en) Firmware remote upgrading method and device
CN106095494B (en) The automatic updating system and method for elevator peripheral hardware program
CN204424942U (en) Charging of mobile devices device
CN112910714A (en) Remote firmware upgrading method for Internet of things terminal equipment with master-slave machine structure
CN105578238A (en) Automatic test method and system of turn-on and turn-off of electrical appliance device
CN105135599A (en) Air conditioner firmware upgrading device and method
CN112333022B (en) Intelligent electric energy meter remote upgrading system and method based on multilayer transparent transmission
CN112333278A (en) Intelligent equipment upgrading method and system and intelligent equipment
CN110727255B (en) Whole vehicle controller software upgrading test system and vehicle
CN111857084A (en) Automatic production control system for unattended panel machine
CN102999355B (en) A kind of client application software system managed by terminal management system
CN110480633B (en) Method and device for controlling equipment and storage medium
CN103634353A (en) Electricity utilization information acquisition terminal and realizing method thereof
CN110824336A (en) Test system and test method
CN111638672B (en) Automatic control system of industrial machine
CN111435227A (en) Smart home equipment testing method, device, equipment and medium
CN102938113A (en) Power grid failure recovery method and system based on power failure management system platform
CN112822254A (en) Data acquisition and transmission system and method for remotely upgrading and allocating parameters on line
CN103176433B (en) Power distribution unit and method for utilizing single internet protocol (IP) to control majority of power distribution units
CN205281471U (en) Printing terminal and 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: 20150311