Changes between Version 13 and Version 14 of Hardware/jCM/dCM3/cSoftware


Ignore:
Timestamp:
Dec 16, 2011, 9:23:30 PM (13 years ago)
Author:
Ilya Chigirev
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Hardware/jCM/dCM3/cSoftware

    v13 v14  
    3131The other thread that is opened is udpPkt(). udpPkt() is the function that is responsible for sending registration and status packets. Initially the function will send out registration packets, until it gets a registration ACK, and then a status update packet every 20 seconds. If the CM sends out 3 status update packets and does not receive an ACK from the CMC, it will go back to the assumption that it is no longer registered in the CMC and send out registation packets again. The two UDP threads are responsible for most of the functionality of the CM3 as the majority of commands come from the experiment controller through the CMC over the UDP lines. HTTP and CLI commands are added functionality for when there is no CMC.
    3232
    33 4.4. Loading software
    34 There are two primary methods to reflash a CM3, over the network and also through
    35 the serial port. This section will describe how to load new firmware onto the device
    36 using both methods. The latest ’known good image’ can always be found on the SVN
    37 Repository
    38 4.4.1. Flashing firmware over network
    39 1. open FTP session directly to the CM Lantronix device in terminal client
     33=== Flashing Firmware ===
     34There are two primary methods to reflash a CM3, over the network and also through the serial port. This section will describe how to load new firmware onto the device using both methods. The latest 'known good image' can always be found on the [http://www.orbit-lab.org/browser/CM3/trunk/images SVN Repository]
     35
     36==== Flashing firmware over network ====
     37 1. open FTP session directly to the CM Lantronix device in terminal client
     38{{{
    4039ftp xxx.xxx.xxx.xxx
    41 2. when prompted for the username and password enter the following
     40}}}
     41 2. when prompted for the username and password enter the following
     42{{{
    4243username: admin
    4344password: PASS
    44 3. using the image taken from the SVN repository REV_A_B_C.rom.gz
     45}}}
     46 3. using the image taken from the SVN repository {{{REV_A_B_C.rom.gz}}}
     47{{{
    4548put REV_A_B_C.rom.gz xport_ar.rom.gz
    46 The image must be sent to the Xpor AR named xport_ar.rom.gz, otherwise the
    47 device will not recognize it as new firmware and will not re-flash. Re-flashing the device
    48 will take a few minutes, it will reset itself and should come back online with no issues.
    49 4.4.2. Flashing firmware over serial
    50 Re-flashing as CM over the serial port should be done when the node is not accessible
    51 aver the network, it is a generally slower method than via FTP. Before you can recover
    52 the firmware over serial you will need to install Device Installer on your PC. Device
    53 Installer is free to download off the lantronix website.
    54 1. Open DeviceInstaller
    55 2. Go to ’Tools’->’Advanced’->’Recover Firmware’ (or simply the F8 key)
    56 3. Configure the options, and hit OK to load the image
    57 a) Choose the COM port being used
    58 b) Select "Xport AR A1" as the device
    59 c) Make sure that the "Erase all flash" option is checked
    60 d) Enter the path of the image to be loaded
    61 The program will prompt you to power off the device, you can just ignore this and
    62 hit next. The serial recovery will have started, but you must still power cycle the device
    63 before the transfer begins, either hit the reset button on the CM or just pull and reapply
    64 the power to the CM.   
    65 [wiki:Hardware/cCM/cCM3/SoftwareDescription/Programming How to program the Lantronix module]
     49}}}
     50 * The image '''must be''' sent to the Xpor AR named xport_ar.rom.gz, otherwise the device will not recognize it as new firmware and will not re-flash. Re-flashing the device will take a few minutes, it will reset itself and should come back online with no issues.
     51
     52==== Flashing firmware over serial ====
     53Re-flashing as CM over the serial port should be done when the node is not accessible aver the network, it is a generally slower method than via FTP. Before you can recover the firmware over serial you will need to install Device Installer on your PC. Device Installer is free to download off the lantronix website, and can be found [http://ltxfaq.custhelp.com/app/answers/detail/a_id/644 here].
     54
     55 1. Open DeviceInstaller
     56 2. Go to 'Tools'->'Advanced'->'Recover Firmware' (or simply the F8 key)
     57 3. Configure the options, and hit OK to load the image
     58  a. Choose the COM port being used
     59  b. Select "Xport AR A1" as the device
     60  c. Make sure that the "Erase all flash" option is checked
     61  d. Enter the path of the image to be loaded
     62[[Image(serial_recovery.jpg, 600px)]]
     63 4. The program will prompt you to power off the device, you can just ignore this and hit next
     64 5. The serial recovery will have started, but you must still power cycle the device before the transfer begins, either hit the reset button on the CM or just pull and reapply the power to the CM.