Surveyor SRV-1 Blackfin Setup


  • First unpack the SRV-1 robot, battery charger and antenna. You'll also find a cover plate for the Lantronix Matchport - it came with the Matchport module, but has no function.

  • Make certain that the run/charge switch is in the "charge" position. Attach the antenna to the connector. The Li-poly battery pack is probably already charged, but you can recharge the battery by first plugging in the charger to the robot with the power switch in the up position, and then plugging the charger into the wall. Charging shouldn't take more than 2 hours.

  • If you purchased just the SRV-1 Blackfin Camera + Wifi, you received the same electronics that are used with the SRV-1 Blackfin Robot. The most important thing to note is the orientation of the battery connector, which is marked with "BAT" and "GND" on the green circuit board (plus we have started to mark the BAT side with white paint).

    When you connect power to the board, make certain that your input power connection is correctly oriented, or at a minimum you will burn up the 3.3V regulator and quite possibly damage the Blackfin camera as well as Matchport radio.

Software setup

    There are two main steps in SRV-1 software setup - configuration of the Matchport WLAN module, and installation of the SRV1Console software:

  • download and unzip the java console software from the download page - If you create a \SRV (/SRV) directory, and unzip everything into that directory, you'll end up with a bunch of .class and .jar files, along with applet, archive and buttons subirectories.

    On Windows, create a desktop icon for SRV1Console.exe and double-click to launch.

    Alternatively, from a Windows command prompt ("Run cmd"), assuming you have Java 1.4.2 or later installed, type

       cd \SRV
       java -cp .;RXTXcomm.jar;ImageButton;wstreamd_embed.jar; SRV1Console

    On a Mac or Linux, from a terminal shell, type

       cd /SRV
       java -cp .:RXTXcomm.jar:ImageButton:wstreamd_embed.jar: SRV1Console

    Note - there are several command line options for SRV1Console
    • -c connects SRV1Console to the robot via the most recently used com port or network connection
    • -p xxxx where xxxx = Port Number, changes port number of WebcamSat module from default 8888

    These options can be used in any order, and also work from the Windows SRV1Console.exe command line, e.g.

       > java -cp .:RXTXcomm.jar:ImageButton:wstreamd_embed.jar: SRV1Console -c -p 9999 (from Mac/Linux)
       > java -cp .;RXTXcomm.jar;ImageButton;wstreamd_embed.jar; SRV1Console -c (from Windows)
       > SRV1Console -p 9999 -c (from Windows)

    Also note - on the Mac, you may need to download "" to install the RXTX serial comm library. You can also download the latest RXTX files from

    Once your WLAN has been correctly configured, you should end up with a display that looks like this:

  • One more quick note - the SRV-1 should arrive with the latest firmware, but in case it doesn't, the instructions for installing firmware are found further down in this document - click here for instructions on how to update the firmware.

  • Turn on the SRV-1 robot so that the Matchport is powered. Start your wireless network manager program, and connect to the SRV1 adhoc network (if we didn't configure the Matchport, it might instead be the LTRX_IBSS adhoc network). Note that the screenshot shows Matchport, but the setup is the same for the Matchport.

  • You should now be able to connect to the Matchport via your browser. We have configured the Matchport modules by default to IP address, so point to There are no passwords set, so just hit 'enter' if you get a message asking for passwords.

    IMPORTANT NOTE - if your host computer is configured for a static IP address instead of using DHCP to set its IP address, you need to configure your computer to use DHCP, at least for communication with the Matchport, or you need to assign a static IP address in the subnet. This is because the Matchport acts as a DHCP server for the "SRV1" adhoc network, assigning addresses in the subnet, and if your host computer has a static IP address of, it would never be able to communicate with because the network driver won't know how to route packets to a different subnet without explicit routing instructions.

  • If we configured the Matchport with V6.5.0.0GE firmware, then the serial port should already be configured correctly for 2500kbps with hardware flow control, though the serial settings screen will show 9600 baud. Don't worry - that is normal.

  • Now edit srv.config in the SRV1Console directory. Add a network entry that has the IP address of your Matchport module.

  • At this point, you should be able to connect to the SRV-1 using SRV1Console and the Matchport.

  • The final steps are to configure the Matchport to your infrastructure network instead of just connecting via the adhoc network. If you aren't familiar with WiFi network configuration, ask for some help. If you use the wrong settings, the Matchport won't be reachable, and you will physically have to remove it from the robot to reprogram via the alternative setup below.

    Make certain that you know the SSID of the wireless network you plan to use, and also make certain to find a free IP address, as you need to configure the Matchport with a static IP (or you won't know how to reach it).

    First change the WLAN settings from the SRV1 adhoc network to your infrastructure network -

    Next change the IP address from the adhoc IP to the IP address of your network -

    Click on Apply Settings. If you've done this correctly, the SRV1 network will disappear and your host computer will connect to the infrastructure WLAN. From here, confirm that you can reach the robot Matchport via your browser at the new IP address, then edit srv.config to set the new IP address of the robot, and try to connect via SRV1Console.

IMPORTANT NOTE - if Matchport configuration fails via the above-described setup, there is an option of configuring the Matchport via serial port. This option is described here on the Surveyor Robotics Forum.


  • Switch the robot power switch to the down (RUN) position. You should see a red LED on the SRV-1 Blackfin Camera Board light up, followed within a few seconds by some flashes of the yellow LEDs.

    Besides the SRV1Console program described above, the Surveyor firmware now includes support for direct control from a web browser (including those found on smart phones) without any special console software. By pointing a browser to "http://robot-ip-address:10001/index.html" (e.g., you can access an html script which displays video frames and supports direct robot control. As shown below, we have image mapped the robot controls with a graphical overlay that can be turned on/off to show the actual controls.

    The script that generates this display is stored in Blackfin flash sectors 10-11. As you will see below, we also have a new admin interface for uploading files to flash, and this facility can be used to upload the html scripts. A sample script is found here:
    A complete description of the SRV-1/SVS http command set is found here -

    With regard to running the SRV1Console program, select "Network" in the SRV1Console drop-down box. Push the "connect" button on the Java console, and you should start to see pictures.

    The control buttons might not be completely obvious, except perhaps for Forward and Back (up and down arrows). The upper steering buttons will allow the robot to drift left or right, and the lower steering buttons make fairly hard turns forward left/right or back left/right. The red button in the middle is STOP. There are 2 other steering buttons for rotating left/right approx 20-degrees, and the right-hand image buttons set resolution to 1280x1024, 640x512, 320x254, or 160x128, with correspondingly different frame rates. The fast/slow buttons will increase/decrease motor speed, though they don't take effect until one of the direction buttons is pushed.

    Note: additional robot functions are actively in development, so this display may change when firmware and java console software are updated.

    Also note: you can create your own buttons, edit the button assignments (e.g. changing the speed setting assigned to specific motion buttons), and change the button layout by editing the srv.config file and the button images in the SRV1Console/buttons subdirectory. The commands that are issued from SRV1Console are actually defined in
    with the hex ascii representation of those commands coded into the srv.config button assignments, as seen here -


  • SRV1Console includes a web server module called "WebcamSat" that enables remote network or Internet access to SRV-1 robot control. Once SRV1Console is launched, you'll see some messages in the command window that should look like this:

    indicating that the WebcamSat module is functioning, and the base station console can be remotely accessed via a local network or Internet.

  • To remotely control the console through the Internet or local network. Point your browser to

  • The WebcamSat module allows you to configure user access control, and also has an archiving function. To access the admin functions of WebcamSat, go to
          default user: webcamsat     password: admin
          (these can be changed through the setup menu accessed via the admin page)

    Click on the "Admin Tools", and then click on "Schedule New Archive" if you want to schedule an archive:

    Archives are stored in AVI format, but are easily converted to other formats such as Quicktime.

  • More information on WebcamSat is found here

Firmware updates

There is now a browser-based method for uploading firmware to the SRV-1. We added direct support of HTTP POST methods for uploads of firmware, html pages, picoC scripts, etc, to the SRV-1 / SVS firmware. Those already familiar with our existing firmware & file upload mechanism using XMODEM with Teraterm, lsz, etc, will recognize this as a significant enhancement.

Here is an example of the browser interface after selecting the srv1.ldr firmware image to upload:

and the browser display after upload has completed:

As with the web-based interface to the robot controls, no special console software is required - only a browser. Thus far, we have successfully tested with Firefox, Internet Explorer 8, Chrome and Safari, including iPhone and Google Android phone browsers. This capability is included in the latest version of SRV-1 / SVS firmware posted to

The original method for updating SRV-1 firmware updates is a simple file upload mechanism based on XMODEM / XMODEM-1K protocols. There is a memory buffer allocated on the Blackfin for handling incoming file uploads, and then several commands for writing the memory buffer to different areas of onboard flash memory.

The most important commands to know about are these -
  • 'X' - this command puts the SRV-1 into XMODEM / XMODEM-1K receive mode. It is ideal if you have a terminal program that can make a TCP connection and also transfer files with XMODEM or XMODEM-1K. We have tested this capability with mxOSX on OS/X, and TeraTerm on Windows. If you don't have a terminal program that combines TCP connection and XMODEM, you can use a script that combines nc (netcat) with sx or lsz (from lrzsz)

    There's also a Python-based program written by one of the SRV-1 users to completely automate this firmware upload process. Download link is here -, with a backup copy located here -

    • From your terminal program, send the 'X' command to initiate XMODEM transfer. From your terminal program, you may have send ENTER after 'X' if you are not in char mode. After you send 'X', you should see a series of 'CCC' characters indicating that the SRV-1 is waiting for the XMODEM transfer. From your terminal program, start the file transfer of srv1.ldr.

    • On Linux, use the following script:
           echo send X [enter] to initiate XMODEM transfer
           echo once you see CCC... characters, send control-C
           nc 10001
           lsz -Xkbv --tcp-client srv1.ldr
           sleep 1
           echo if transfer completed successfully, send zZ [enter] to write srv1.ldr to flash
           nc 10001

      During the actual transfer, you should see a message sequence like:
           connecting to [] <10001>
           Sending srv1.ldr, 576 blocks: ...
           Transfer complete

    • On Windows with TeraTerm, when you connect, the host is the IP address of the SRV1, the TCP port is 10001, and you want to UNCHECK Telnet. If you leave Telnet selected, you will have problems with file transfer. As soon as you connect, send a 'V' to get the version string - that will let you know that things are working. To transfer a file, send 'X' to start XMODEM receive on the SRV-1, then from Tera Term, select:
            File .. Transfer .. XMODEM .. send

      and select your file, or from the keyboard, use these shortcuts:
            ALT-F .. T .. X .. S

      From your terminal program, you should see:
           ##Xmodem success. Count: 73728
      Note: actual count will vary depending on version of firmware

    • If you do not see a message indicating successful transfer, try the transfer again. Do not write the buffer contents to flash memory until you are certain you had a good XMODEM transfer, or you may clobber the boot memory contents and the SRV-1 won't reboot.

    • After successfully completing the transfer, don't forget to issue the zZ command described below to write the new firmware to flash. The X command only transfers the firmware image to a temporary memory buffer, while the zZ command writes that buffer to flash.

    • Note that batch files to automate the firmware upload process via TeraTerm are found here -

  • 'zZ' - this command writes the contents of the file transfer buffer to the boot sectors of onboard flash memory. It does check that there is a valid boot image in memory before writing. If successful, you will see this message -
        "##zZ boot image write count: 131072"

    At this point, you can reboot the processor by issuing a $! command (dollar sign followed by exclamation point) via your terminal program or by shorting pins 1-2 on J1 header, and you should see the new firmware load.

  • Note that if you somehow clobber the flash memory boot sector, it is possible to reload the firmware through the serial port using the Blackfin's UART boot mode. The procedure to use this is described in the Troubleshooting section of the Surveyor Robotics Forum.

  • Also note that if you plan to run linux, you'll need to upload u-boot in place of srv1.ldr. You can use the procedure above with 'X' and 'zZ', but upload u-boot.ldr instead of srv1.ldr. Make note of the UART configuration on the Matchport if you are transferring via LAN, as srv1.ldr might be set up for 921kbps with hardware flow control, and u-boot might be set up for 57.6k or 115.2kbaud with no flow control. When we formally release the linux version of SRV-1 firmware, we'll have a separate web page documenting the setup.

Technical support

Last Updated - 24 April 2010 19:20 gmt

Click to return to Surveyor home page