Changes between Version 25 and Version 26 of Hardware/jCM/dCM3/dUsage


Ignore:
Timestamp:
Jan 11, 2013, 1:46:41 AM (12 years ago)
Author:
Ilya Chigirev
Comment:

Legend:

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

    v25 v26  
    11[[TOC(Hardware/cCM/cCM3/*, depth=3)]]
    22
    3 === Installing the CM3 ===
    4 ==== Connections to the CM3 ====
     3==== Installing the CM3 ====
     4===== Connections to the CM3 =====
    55The CM3 card has a few external connections. The power connector (on board revision 4) uses a Tyco Electronics 2 pin surface mount header, the mating side to this header is [http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=A98602-ND here]. Using vampire clips connect the positive power cable to the standby voltage from the node power supply (PS), which is typically the purple cable, or pin 9 on the 20(+4) pin power power connector. The ground wire can be connected to any of the PS ground cables.
    66
     
    99The serial header is used to connect to the serial port on the mother board, the J4 header is another way of accessing the serial lines and uses a standard 2x5 100mil pin spacing. In the present configuration the serial cable should be a straight cable, and not a crossover (or null modem). If you wish to use a null model cable the resistors R17 and R18 must be populated, and R15 and R16 removed. The last connection that needs to be made is the power monitoring cable, which is the floppy power cable from the PS. This feeds the voltage that the CM will monitor to determine the state of the node.
    1010
    11 ==== Turning the CM3 on ====
     11===== Turning the CM3 on =====
    1212
    1313The Lantronix Xport AR does not refresh its IP address when an ethernet cable is plugged in to is it important the that MAC address of the device already be in DHCP with the appropriate address, and that the ethernet cable be already plugged in when the device is powered on. If it is not in DHCP and plugged in to the network it will default to some unknown IP address, and will not change until reset or power cycled.
     
    1515When the CM3 turns on the software will start sending UDP packets to the CMC and waiting for responses as well as monitoring the hardware status of the node. This will only happen after the Xport AR has gone through it's own boot sequence, which includes getting its IP address from the DHCP sever and booting into the custom code loaded with the CM3 image.
    1616
    17 === Using the CM3 ===
     17==== Using the CM3 ====
    1818The CM3 board, once properly plugged in and powered up will find an IP address and then load the custom software written automatically. Once the node has and IP and is powered up it should start communicating with the CMC right away. For details on the way the software works please refer to the [http://www.orbit-lab.org/wiki/Hardware/CM/cCM3/02-SoftwareDescription Software Description] or look at the code repository in the SVN. The UDP commands are described in more detail in the software description.
    1919
    20 ==== UDP ====
     20===== UDP =====
    2121UDP commands are no longer being used as over firmware version 4.0
    2222
    23 ==== HTTP commands ====
     23===== HTTP commands =====
    2424
    2525These are the commands that can be accessed through HTTP. They all return XML pages with the success or failure of the command
     
    3939
    4040Format for the XML return pages is as follows.
    41 ===== Success =====
     41====== Success ======
    4242<<command>> OK </<command>>
    4343e.g.
     
    4646}}}
    4747
    48 ===== Failure =====
     48====== Failure ======
    4949<error><command></error>
    5050e.g.
     
    5353}}}
    5454
    55 ===== Status =====
     55====== Status ======
    5656<power>on/off</power>
    57 ==== Command line interface (CLI) access ====
     57===== Command line interface (CLI) access =====
    5858
    5959Base on telnet to port 8023 (also used for Lantronix access). You can find more about implemented commands with "?" e.g.:
     
    7373}}}
    7474
    75 ===== Command line commands =====
     75====== Command line commands ======
    7676
    7777 || '''''Node related commands''''' ||
     
    110110}}}
    111111
    112 ==== Serial to Telnet tunnel ====
     112===== Serial to Telnet tunnel =====
    113113 
    114114Telnet to IP address of CM and you will get access to serial console of the node. The default serial settings for the serial-to-telnet tunnel are:
     
    119119|| Flow Control || None ||
    120120
    121 ==== Custom Phone control firmware ====
     121===== Custom Phone control firmware =====
    122122
    123123There is a slightly altered version of the standard firmware designed for controlling a phone though the 3 most common buttons: power, up, and down. All the existing commands from the standard firmware still exist, so depending on the physical connections enacting the 'reset node' command may activate the 'down button' command because they access the same control pins. For this reason, for this firmware it is encuraged to only use the button 1/2/3 commands and nothing else. 
    124124
    125 ===== HTTP commands =====
     125====== HTTP commands ======
    126126|| Http address || function description ||
    127127|| /1l || 5 second 'button press on button 1 ||
     
    132132|| /3s || same as above for button 3 ||
    133133
    134 ===== UDP =====
     134====== UDP ======
    135135
    136136no UDP support for this
    137137
    138 ===== CLI =====
     138====== CLI ======
    139139
    140140{{{
     
    154154}}}
    155155
    156 ===== Connections =====
     156====== Connections ======
    157157Right now the connections are as such
    158158