Changes between Initial Version and Version 1 of WAM/PC104


Ignore:
Timestamp:
Oct 17, 2013, 9:54:02 PM (11 years ago)
Author:
bz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WAM/PC104

    v1 v1  
     1= Internal WAM PC =
     2The WAM has a built-in computer that you can use for controlling the WAM and writing software. This computer consists of small form factor PC/104-type motherboard and a CANbus ISA expansion card.
     3
     4== Specifications ==
     5||Motherboard || Aaeon TF-PFM-540I-A10||
     6||Processor || AMD Geode||
     7||Speed || 500MHz||
     8||RAM || 2GB||
     9||Disk || 8GB SLC CompactFlash||
     10||O/S || Ubuntu Linux 12.04 + Xenomai||
     11||Power || ~10W||
     12||Ethernet || 100Base-T||
     13||CAN || PEAK PCAN PC/104||
     14||Video || SVGA*||
     15||USB || 2 ports*||
     16||PS/2 || Yes*||
     17
     18*cables available upon request.
     19
     20== Ethernet / WiFi / DHCP ==
     21You can log into the WAM over wired Ethernet or over WiFi using the supplied Access Point (AP). The internal WAM PC is configured to obtain its IP address from a DHCP server. The WiFi access point included with the WAM has a built-in DHCP server. If you choose to plug the WAM into your own wired network, please make sure your DHCP server is configured to assign an IP address to the WAM PC.
     22* '''Wired Ethernet''' - You can use a Cat5e Ethernet cable to connect the ETHERNET port on the backplate of the WAM to an Ethernet switch on your network. Please note that unless you have a DHCP server running on your workstation (this is rare), you can not plug the WAM directly into your workstation.
     23* '''Wireless Ethernet''' - You can connect the ETHERNET port on the backplate of the WAM to the supplied WiFi access point. You will need to browse the available WiFi networks on your laptop/workstation and join the WAM's WiFi network. Please note that this will disconnect you from any other WiFi access points you were using previously. Unless you have a secondary Internet connection, this will prevent your workstation from connecting to the Internet.
     24
     25== Discovering the WAM's IP address ==
     26When the WAM's power supply is switched on, the internal WAM PC begins to boot up (you will hear a short "beep"). After about 30 seconds, the WAM PC will request an IP address from a DHCP server. Once the WAM PC obtains an IP address, it launches a small UDP discovery application. If your workstation is connected to the same network as the WAM, then you can use the [http://web.barrett.com/support/WAM_Installer/wamdiscover.exe wamdiscover.exe] Windows application or the [http://web.barrett.com/support/WAM_Installer/wamdiscover.py wamdiscover.py] Python script to determine the IP address of the WAM PC.
     27
     28== Logging into the WAM PC using ssh ==
     29Once you know the WAM PC's address, you can connect to it using ssh. If you have a Windows workstation, we recommend using [http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe PuTTY SSH].
     30
     31The default username is "robot". The default password is "WAM".
     32
     33== Navigating the WAM PC's directories ==
     34After logging into the WAM PC, you will find yourself in the /home/robot directory. If you type "ls" then hit <Enter>, you will see a listing of the files and folders in that directory. One of the directories should be called "libbarrett_examples". If you type "cd libbarrett_examples" then hit <Enter>, you will change to that directory.
     35
     36== Editing source code on the internal WAM PC ==
     37There are several options for editing source code on the internal WAM PC:
     38* The easiest way is to install/use [http://www.eclipse.org Eclipse] or [http://www.jedit.org jEdit] (with its FTP plugin) or some other editor on your workstation that supports file access over sftp (ssh).
     39* An alternative is to enable X11 forwarding in your ssh connection. At the command line, include "-Y" in your ssh connection command: ssh -Y robot@<your-WAM-IP>. In PuTTY, this setting is called Connection:SSH:X11:Enable X11 Forwarding. Then you can ssh into the internal WAM PC and edit files on your workstation using commands like "gedit ex01_initialize_wam.cpp &", or any other graphical editor you want to install on the WAM PC. You can also launch the file browser by typing "nautilus &". For this method to work, you will need an X11 server running on your workstation. For Windows workstations, we recommend using [http://sourceforge.net/projects/xming/ Xming].
     40* If you prefer text-based code editor like vi or emacs, you can use those directly on the WAM PC.