Difference between revisions of "IO12-Update"

m
Line 64: Line 64:




(*) the X8 has a built in bridge rectifier, so polarity of the power connection is unimportant.
=== Firmware Update Quick Guide ===
 
The follwing steps give a quick run down on how to update the firmware on an IO12.
=== procedure ===
#Load a Barionet 50 or 100 with the latest Firmware
 
#Connect the IO 12 to the Barionet (BA50 4pin cable, BA100 2pin power & 2pin RS-485)
1) Reset the Barionet. You should see the prompt of the MBT application. If you select "2" - service, you get
#Load the MBT application (either the T version for TCP terminal or the S for serial terminal on RS-232 into the Barionets WEB4 and reboot
into the modbus testing/exercising menu. note that the software will automatically set the serial parameters to 19200,e,8,1
#Connect the terminal (T: open TCP terminal to Port 12345 / S: open serial Terminal 9600,8,N,1 NoHW). The terminal shows:
and if a change is needed, it will automatically reboot/restart.
#:<code>Modbus and X8/R6 Test Application</code>
 
#:<code>Please select: 1 for factory, 2 for service mode, 3 for loader</code>
2) check if the connected X8 is working, for example, with a "read command":
#Hit the number '''2''' and hit the '''Enter (&crarr;)''' key for sevice mode. The terminal shows:
R0,256,4<CR>
#:<code>Wadr,reg,val | Radr,reg,num or | sSadr,coil,val | bBadr | Is1,s2 | Cs1,s2 | Fs1,s2 | X ?</code>
 
#To check if talking to the IO12 is possible enter '''R0,256,4''' (capital R, zero, comma, two, five, six, comma, four) and hit the '''Enter (&crarr;)''' key. The terminal shows:
Answer (example): READ: 00B2 0005 0005 0001
#:<code>R0,256,4</code>
 
#:<code>READ: 00B3 0008 000C 0052</code>
this shows 8 bytes from the eeprom of the X8, being type, firmware version (5) , serial number 1 (5) & 2 (1). The device will respond independent of its modbus address as this is a read to the "broadcast" address. ** note ** the numbers displayed are in hexadecimal notation. A serial number of an X8 such as 10-31 would be displayed as 000A 001F !
#:The first group of digits tells the HW Type (B3=IO12), the 2nd tells the current version (V8), the 3rd the Serial 1 (0xC=12 decimal) and the 4th the Serial 2 (0x52=82 decimal). Both serials can be found on the data plate of the IO12 !
 
#Now that we know that the connection works we can start with deleting the existing firmware by entering '''F12,82''' (capital F, serial1, comma, serial2)
3) send the "firmware erase" command to the X8 - it needs the serial number of the X8 as two decimal numbers as parameter as a security feature. For example, X8 with serial number 5-001 needs the following command
#:&rArr; Make sure you use the correct serial numbers 1 and 2 (decimal values not hex) of '''YOUR''' device !!!
F5,1<CR>
#:and hit the '''Enter (&crarr;)''' key. The terminal shows:
 
#:<code>F12,82</code>
4) the X8 will turn three of the four visible LEDs on, and after about 6 seconds 2 will stay iluminated.
#:<code>?</code>
 
#:<code>Wadr,reg,val | Radr,reg,num or | sSadr,coil,val | bBadr | Is1,s2 | Cs1,s2 | Fs1,s2 | X ?</code>
...you can repeat this now for as many X8 as you wish. The X8 devices will be "erased" after this procedure. And new software will be loaded in the next step.
#:&rArr; Do NOT be fooled by the question mark. The IO12 will carry out the Erase command and after 3 seconds the PWR LED will go dark.
 
#::*If the PWR LED stays lit then repeat step 7 carefully.
5) enter "X" command to leave the service mode, then select "3" for the firmware loader
#::*If after repeating step 7 the PWR LED stays lit then check if your devices production week information on the data plate (bottom of the device):
 
#:&rArr; If it was produced on or between PW30/10 and PW03/11 then you can NOT updated the device using this MBT method !
6) the barionet will reconfigure the serial port, restart. Select "3" again for the load app (or wait it will be entered automatically).
#:&rArr; If this is the case the device must be returned to Barix for '''[[#Updating using a PIC programmer|updating using a PIC programmer]]'''.  
 
#Hit the '''X''' (capital X) and then hit the '''Enter (&crarr;)''' key to exit the service mode. The terminal shows:
7) if the X8 is still connected (and erased), press "S" to send the firmware to the X8. Otherwise, any X8 connected will start loading automatically after approx. 6 seconds.
#:<code>Modbus and X8/R6 Test Application</code>
 
#:<code>Please select: 1 for factory, 2 for service mode, 3 for loader</code>
8) after about 20 seconds, the firmware load is complete and the X8 will start blinking with one LED. power off/on the X8, it may still blink with the middle LED, repower again. The X8 now will blink only with one corner LED, all others will be off. The device has been loaded with the firmware and is operative.
#Do NOT wait and hit the number '''3''' and hit the '''Enter (&crarr;)''' key for loader mode. The terminal shows:
#:<code>wrong serial setup - correcting & rebooting ..</code>
#After the reboot the loader mode will be started automatically. The terminal shows:
#:<code>Modbus and X8/R6 Test Application</code>
#:<code>Please select: 1 for factory, 2 for service mode, 3 for loader</code>
#:<code>loader started, please reset unit. Press F for erase command, S to send firmwar</code>
#Hit the '''S''' (capital S) and then hit the '''Enter (&crarr;)''' key to start the firmware update. The terminal shows:
#:<code>sending firmware</code>
#:<code>end programming</code>
#:&rArr; This will take about 20 seconds (the RS-485 LED of the Barionet will flicker) and when done the PWR LED will be lit.
#::*If it stays dark power cycle the IO12 (disconnect the power wires, wait 4 seconds and reconnect power wires)
#::*If it still stays dark repeaet power cycling up to 3 more times
#::*If it stays dark go back to step 10 and repeat the erase command
#Hit the '''X''' (capital X) and then hit the '''Enter (&crarr;)''' key to exit the loader mode. The terminal shows:
#:<code>Please select: 1 for factory, 2 for service mode, 3 for loader</code>
#Do NOT wait and hit the number '''2''' and hit the '''Enter (&crarr;)''' key for service mode. The terminal shows:
#:<code>wrong serial setup - correcting & rebooting ..</code>
#After the reboot the terminal shows:
#:<code>Modbus and X8/R6 Test Application</code>
#:<code>Please select: 1 for factory, 2 for service mode, 3 for loader</code>
#Hit the number '''2''' and hit the '''Enter (&crarr;)''' key for sevice mode. The terminal shows:
#:<code>Wadr,reg,val | Radr,reg,num or | sSadr,coil,val | bBadr | Is1,s2 | Cs1,s2 | Fs1,s2 | X ?</code>
#To check if the update of the IO12 went fine enter '''R0,256,4''' (capital R, zero, comma, two, five, six, comma, four) and hit the '''Enter (&crarr;)''' key. The terminal shows:
#:<code>R0,256,4</code>
#:<code>READ: 00B3 000B 000C 0052</code>
#:The second group of digits tells the current firmware version (now 0xB = V11).
#:&rArr; If it still says the old version then the update failed. Start over from the beginning.
Gratulations, you succesfully updated the device.




Back to [[FAQ]]
Back to [[FAQ]]

Revision as of 11:10, 17 February 2011

IO12 Update procedure

This page describes how to update the firmware on an IO12. The IO12 can be update using a Barionet and a PC/Mac using a terminal program to control the application. The terminal program can connect to the application either via TCP or a serial (RS-232) connection.

Prerequisites

Prepare the following material:

  • PC or Mac with e and a terminal program such as hyperterm
  • Optionally: a serial port (HW or USB2serial) and a serial cross cable (DB9 femaleto DB9 female)
  • A Barionet 50 (FW 2.00 or higher) or a Barionet 100 (FW 2.08 or higher)
  • Modbus Test & Load BCL application (MBT_Vxx_S.cob for serial cable or MBT_Vxx_T.cob for TCP terminal)
  • Power supply 9VDC (min.) to 30VDC (max.), to supply both Barionet and IO12, 300mA (min.)
  • 4pin Extension cable to connect to Barionet 50 or 4 wires to connect to Barionet 100

⇒ Tips:

  • Using a Barionet 50 is simpler as it needs no wiring: The supplied 4 pin extension cable can be used !
  • Using the TCP version of the application is simpler as it needs no serial port and serial cable !


Hardware setup

  1. Connect the PC/Mac and the Barionet to your network switch or hub
  2. Depending on the kind of application control connection do the following:
    If you plan to use the TCP version of the application skip to step 3.
    If you plan to use the serial version of the application:
    • Connect the PC/Mac to the serial port of the Barionet with the cross cable
  3. Wire the IO12 with the Barionet and power supply as following:

Software setup

  1. Connect the PC/Mac and the Barionet to your network switch or hub
  2. Depending on the kind of application control connection do the following:
    If you plan to use the TCP version of the application:
    * Load the file MBT_Vxx_T.cob (xx is the version, at the time of writing: 11) into the Barionet's page WEB4 (Barionet 50: via extended web update, Barionet 100: via tftp), reboot when done and wait 10 seconds
    * Connect the PC/Mac to the serial port of the Barionet with the cross cable
    * Start a terminal program with the serial settings 9600,8,N,1 no HW control
    If you plan to use the serial version of the application:
    • Load the file MBT_Vxx_S.cob (xx is the version, at the time of writing: 11) into the Barionet's page WEB4 (Barionet 50: via extended web update, Barionet 100: via tftp), reboot when done and wait 10 seconds
    ** Connect the PC/Mac to the serial port of the Barionet with the cross cable
    ** Start a terminal program with the serial settings 9600,8,N,1 no HW control
  • Wire the X8 with the Barionet and power supply as following:


Signal Barionet X8
RS485 B J7 pin 5 J3 pin 3
RS485 A J7 pin 4 J3 pin 2
Power + J6 pin 15 J3 pin 1*
Power - J6 pin 16 J3 pin 2*


Firmware Update Quick Guide

The follwing steps give a quick run down on how to update the firmware on an IO12.

  1. Load a Barionet 50 or 100 with the latest Firmware
  2. Connect the IO 12 to the Barionet (BA50 4pin cable, BA100 2pin power & 2pin RS-485)
  3. Load the MBT application (either the T version for TCP terminal or the S for serial terminal on RS-232 into the Barionets WEB4 and reboot
  4. Connect the terminal (T: open TCP terminal to Port 12345 / S: open serial Terminal 9600,8,N,1 NoHW). The terminal shows:
    Modbus and X8/R6 Test Application
    Please select: 1 for factory, 2 for service mode, 3 for loader
  5. Hit the number 2 and hit the Enter (↵) key for sevice mode. The terminal shows:
    Wadr,reg,val | Radr,reg,num or | sSadr,coil,val | bBadr | Is1,s2 | Cs1,s2 | Fs1,s2 | X ?
  6. To check if talking to the IO12 is possible enter R0,256,4 (capital R, zero, comma, two, five, six, comma, four) and hit the Enter (↵) key. The terminal shows:
    R0,256,4
    READ: 00B3 0008 000C 0052
    The first group of digits tells the HW Type (B3=IO12), the 2nd tells the current version (V8), the 3rd the Serial 1 (0xC=12 decimal) and the 4th the Serial 2 (0x52=82 decimal). Both serials can be found on the data plate of the IO12 !
  7. Now that we know that the connection works we can start with deleting the existing firmware by entering F12,82 (capital F, serial1, comma, serial2)
    ⇒ Make sure you use the correct serial numbers 1 and 2 (decimal values not hex) of YOUR device !!!
    and hit the Enter (↵) key. The terminal shows:
    F12,82
    ?
    Wadr,reg,val | Radr,reg,num or | sSadr,coil,val | bBadr | Is1,s2 | Cs1,s2 | Fs1,s2 | X ?
    ⇒ Do NOT be fooled by the question mark. The IO12 will carry out the Erase command and after 3 seconds the PWR LED will go dark.
    • If the PWR LED stays lit then repeat step 7 carefully.
    • If after repeating step 7 the PWR LED stays lit then check if your devices production week information on the data plate (bottom of the device):
    ⇒ If it was produced on or between PW30/10 and PW03/11 then you can NOT updated the device using this MBT method !
    ⇒ If this is the case the device must be returned to Barix for updating using a PIC programmer.
  8. Hit the X (capital X) and then hit the Enter (↵) key to exit the service mode. The terminal shows:
    Modbus and X8/R6 Test Application
    Please select: 1 for factory, 2 for service mode, 3 for loader
  9. Do NOT wait and hit the number 3 and hit the Enter (↵) key for loader mode. The terminal shows:
    wrong serial setup - correcting & rebooting ..
  10. After the reboot the loader mode will be started automatically. The terminal shows:
    Modbus and X8/R6 Test Application
    Please select: 1 for factory, 2 for service mode, 3 for loader
    loader started, please reset unit. Press F for erase command, S to send firmwar
  11. Hit the S (capital S) and then hit the Enter (↵) key to start the firmware update. The terminal shows:
    sending firmware
    end programming
    ⇒ This will take about 20 seconds (the RS-485 LED of the Barionet will flicker) and when done the PWR LED will be lit.
    • If it stays dark power cycle the IO12 (disconnect the power wires, wait 4 seconds and reconnect power wires)
    • If it still stays dark repeaet power cycling up to 3 more times
    • If it stays dark go back to step 10 and repeat the erase command
  12. Hit the X (capital X) and then hit the Enter (↵) key to exit the loader mode. The terminal shows:
    Please select: 1 for factory, 2 for service mode, 3 for loader
  13. Do NOT wait and hit the number 2 and hit the Enter (↵) key for service mode. The terminal shows:
    wrong serial setup - correcting & rebooting ..
  14. After the reboot the terminal shows:
    Modbus and X8/R6 Test Application
    Please select: 1 for factory, 2 for service mode, 3 for loader
  15. Hit the number 2 and hit the Enter (↵) key for sevice mode. The terminal shows:
    Wadr,reg,val | Radr,reg,num or | sSadr,coil,val | bBadr | Is1,s2 | Cs1,s2 | Fs1,s2 | X ?
  16. To check if the update of the IO12 went fine enter R0,256,4 (capital R, zero, comma, two, five, six, comma, four) and hit the Enter (↵) key. The terminal shows:
    R0,256,4
    READ: 00B3 000B 000C 0052
    The second group of digits tells the current firmware version (now 0xB = V11).
    ⇒ If it still says the old version then the update failed. Start over from the beginning.

Gratulations, you succesfully updated the device.


Back to FAQ