Welcome, Guest. Please Login.
Surveyor Corporation Surveyor SRV-1
Home Help Search Login

Surveyor Robotics Forum

Welcome to the user support forum for Surveyor SRV-1 robots, SRV-1 robot controllers and SVS stereo vision systems. To register for this forum, please send an email to support@surveyor.com which includes your desired forum user name, your registration email address, and a brief explanation of why you wish to join, and we will create a forum account for you.

Please note that there is a Search button in the forum toolbar for forum topics. Another effective search method for the entire surveyor.com site is to use Google, e.g. "xyz site://www.surveyor.com" where "xyz" is the search topic.



Pages: 1 2 3 ... 6
Send Topic Print
configuring Matchport module via serial (Read 90432 times)
admin
YaBB Administrator
*****




Posts: 3602
configuring Matchport module via serial
01/16/08 at 12:23pm
 
*** IMPORTANT NOTE *** - The Matchport WLAN module is a 3.3V device.  If you try to interface to the Matchport with an RS232 interface (+/-12V levels), you will likely damage the Matchport and render it unusable.  Besides the USB interface described below, there are some alternative USB serial devices with 3.3V interfaces listed at the bottom of this post.
 
If you are unable to reconfigure the Matchport using Lantronix DeviceInstaller software -  
    http://www.lantronix.com/device-networking/utilities-tools/device-installer.html
you will need to use a 3.3V serial interface to access the Matchport setup menu.
 
We recently started to modify our leftover Zigbee USB interface boards with Silicon Labs CP2102 bridge chips for configuring the Matchport.  It's a simple modification requiring the USB board, a 4-pin male header (2x2), and 3 wires.
 

 
We connect the GND signal from the USB board to pin position 2 of the header, TX to pin position 3, and RX to pin position 4.
 

 
We then remove the SRV-1 Blackfin camera card from the robot and plug the new header into the 32-pin expansion port, as shown here -
 

 
The drivers for the CP2102 are built into Linux, and can be downloaded for Windows or OS/X from here:
 
======================
Download for Windows
    https://www.silabs.com/Support%20Documents/Software/CP210x_VCP_Win2K_XP_S2K3.zip - Driver
    https://www.silabs.com/Support%20Documents/Software/CP210x_VCP_Win2K_XP_S2K3_Rel ease_Notes.txt - Revision History - Note that for Windows, you only need to run PreInstaller.exe in the WIN_PREINSTALL directory before plugging in the USB radio.
 
Download for Mac OS/X
    https://www.silabs.com/Support%20Documents/Software/Mac_OSX_VCP_Driver.zip - Driver
    https://www.silabs.com/Support%20Documents/Software/Mac_OSX_VCP_Driver_Release_N otes.txt - Revision History
 
For additional drivers, check http://www.silabs.com/tgwWebApp/public/web_content/products/Microcontrollers/USB /en/mcu_vcp.htm - CP210x USB to UART Bridge VCP Drivers download page
======================
 
To configure the Matchport, start a terminal program that interfaces to the USB board, change the baud rate to 9600, turn on the robot power and quickly (within a few seconds) type 3 'x' characters, and you should get the configuration menu for the Matchport.
 

 
When restoring the Matchport to 2500kbps, the settings you need to change are:
 
  Expert (5) -  
     for CPU performance, enter FF
     for clk?, enter 81
     change MTU Size from 1400 to 1024
     skip the rest of the options
  WLAN (4) - set ssid and infrastructure/adhoc  - default is adhoc with SSID set to SRV1
  Channel 1 Serial (1) -  
     for Baudrate, enter -1
     for divisor, enter 2
     for flow control, enter 2
     further down, for FlushMode, enter 80
     for Pack Cntrl, enter C0
     for InterCh Time, enter 3
     skip the rest of the options
  Network (0) - set IP address - default for adhoc setup is 169.254.0.10
  Save and exit (9)
 
If you really get stuck with the Matchport configuration, send an email to support@surveyor.com and we'll send a board, though it will be in kit form (you will have to solder the wires and header yourself).  We may eventually include the board with the robots or possibly sell it as an option, but for now, there is no charge except possibly postage for non-US customers.
 
Additional note - some users are reporting problems getting this to work on Windows with Hyperterminal, perhaps because of flow control settings.  A much better terminal program for Windows is Br@y Terminal, which can be downloaded from http://www.surveyor.com/srvdownload/termv19b.zip , or Tera Term, which is found here - http://hp.vector.co.jp/authors/VA002416/teraterm.html .  The one other option is puTTY - http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html - which seems to work when all of the other terminals have problems.
 
For Mac OS/X users, you can use the 'screen' command as your serial terminal.  Instructions are found here - http://www.surveyor.com/cgi-bin/yabb2/YaBB.pl?num=1208615397
 
For users who do not have access to a USB serial interface as described above, here are some alternatives:
 
    from Germany:  http://www.chip45.com/index.pl?page=littleUSB&lang=en&tax=bcde
    from US:  http://www.pololu.com/catalog/product/391
    more US:  http://www.sparkfun.com/commerce/product_info.php?products_id=198
 
*** IMPORTANT NOTE *** - The Matchport WLAN module is a 3.3V device.  If you try to interface to the Matchport with an RS232 serial interface (+/-12V levels), you will likely damage the Matchport and render it unusable.
Back to top
 
« Last Edit: 02/24/10 at 7:03am by admin »  

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
rwthomas
YaBB Newbies
*




Posts: 17
Re: more on configuring Matchport module via seria
Reply #1 - 01/22/08 at 1:40pm
 
Just some hands-on implementation notes:
 
If you are using minicom, on my setup you need to make sure and turn off both hardware flow control and software flow control.  Hardware is set by default.
 
It's 9600 8N1 (8 bits, no parity, 1 stop bit).
 
The pin configuration pictured seems right, as described it seems wrong.  If this is looking at the back of the robot
 

16 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01
32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17
 
                          [CHG]
                            0
                           ||
                            U

 
then  
TX = 02
GND = 17
RX = 18
 
You can also use the GND on the serial holes on the side rather than the one from the radio pins.  This allows you to keep the ZigBee radio in place.
Back to top
 
« Last Edit: 01/23/08 at 5:02am by rwthomas »  
  IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: more on configuring Matchport module via seria
Reply #2 - 01/22/08 at 2:23pm
 
Your pin positions are correct, but the pins are numbered such that the top row (further from the edge) is odd and the bottom row (closest to the edge) is even.
 
31 29 27 25 23 21 19 17 15 13 11 09 07 05 03 01
32 30 28 26 24 22 20 18 16 14 12 10 08 06 04 02
 
That definition matches the signal assignments in http://www.surveyor.com/blackfin/bfin-srv1-signals.txt
 
You can confirm this with the processor schematic - http://www.surveyor.com/blackfin/SRV1-bfin-schematic.pdf
Back to top
 
« Last Edit: 01/22/08 at 2:39pm by admin »  

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
kandyman
YaBB Newbies
*




Posts: 4
Re: more on configuring Matchport module via seria
Reply #3 - 02/05/08 at 12:33am
 
Hello,
 
I just received my SRV-1 today. I was able to briefly get the Lantronix Wiiport page on my browser and I followed the instructions verbetum. I was not able to get the java program to work. I then changed the wireless configuration from SRV1 Ad Hoc to my wireless network infrastructure (Linksys).  After that I was unable to see SRV-1 as a wireless network (zero to no signal) untill I disconected the power to the Linksys router, but I was unable to get back to the Wiiport page. I then hooked up the serial interface via the USB  CP2102 chip and I downloaded the driver and Br@y Terminal program that was suggested. I was thinking to restore the WLAN settings to the default values. I did not get up the setup menu shown in your Telnet terminal. Rather I got the following message:
 
MAC address 00204A9E3909
Software version V6.5.0.6 (070703)  
Press Enter for Setup Mode  
?!?
 
 
I would appreciate any information on how to debug my problem and establish connection with the SRV-1 using the Java console.
 
Thanks!
 
Back to top
 
« Last Edit: 02/05/08 at 12:35am by kandyman »  
  IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: more on configuring Matchport module via seria
Reply #4 - 02/05/08 at 7:16am
 
A couple of things to check -
 
1.  is flow control disabled in the terminal program ?
 
2.  are you pressing the Enter key with 1-2 seconds of getting the setup message ?
 
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
Trikky2
YaBB Newbies
*




Posts: 21
Re: more on configuring Matchport module via seria
Reply #5 - 02/06/08 at 8:26am
 
Quote from kandyman on 02/05/08 at 12:33am:
I then hooked up the serial interface via the USB  CP2102 chip and I downloaded the driver and Br@y Terminal program that was suggested. I was thinking to restore the WLAN settings to the default values. I did not get up the setup menu shown in your Telnet terminal. Rather I got the following message:

MAC address 00204A9E3909
Software version V6.5.0.6 (070703)
Press Enter for Setup Mode
?!?




 
I dusted off my SRV to try again and got the same results ( different MAC address of course Smiley ) with the settings :
Com Por : COM 5
Baud Rate : 9600
Data Bits : 8
Parity : none
Stop bits : 1
Handshaking : none
 
The '?!?' appears a few seconds after the main message, tied many times with different timing betwen hitting the xxx abd enter etc but can not get the main menu up.
 
Did you ever get it working Kandyman, and if so how Smiley
Back to top
 
« Last Edit: 02/06/08 at 8:29am by Trikky2 »  

As we slide down the banister of life, may the splinters never point
the wrong way.
Email   IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: more on configuring Matchport module via seria
Reply #6 - 02/06/08 at 8:50am
 
We have 3 different users reporting the same symptoms, though we can't duplicate the problem ourselves.  I sent an email to Lantronix support asking for suggestions, and will report what they suggest.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
kandyman
YaBB Newbies
*




Posts: 4
Re: more on configuring Matchport module via seria
Reply #7 - 02/06/08 at 2:57pm
 
Yes, I was able to get serial communication via the USB port eventually but not with the Br@y terminal program.  I got it to work with PuTTy which is a different terminal program. You can download it for free from http://www.putty.org/
 
Trikky2, your communication settings are correct (COM port may vary for different users); try the same settings with PuTTy. It should work.
 
The default settings in PuTTy are different so make sure they are correct before activating your session. Once you apply the new settings, you can save them so you don't have to set them every time.
 
type in 'xxx', hit enter and a menu should appear.  
 
***
 
Admin,
 
After changing the IP address/Gateway to the original values, I was able to ping the SRV, (average response time of about 40 ms), so I know there is wireless communication back and forth between the laptop and the SRV, however the java consol is not receiving any images to the screen, nor can I control the motors even though the event log shows that successful commands were sent.
 
Any ideas on why that is?
 
Thanks,
 
 
kandyman
Back to top
 
« Last Edit: 02/06/08 at 2:57pm by kandyman »  
  IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: more on configuring Matchport module via seria
Reply #8 - 02/06/08 at 3:13pm
 
Thanks for the suggestion on PuTTY - I'll pass the word.
 
Did you change the IP address at the end of srv.config in the SRV1Console directory ?  I think the default file is set to 192.168.0.15.
 
Also, to make certain things are working, just telnet to the robot on port 10001, and try sending some basic commands such as 'V' (version string) or 't' (clock time since reset).  You may have to hit ENTER after each command, depending on your telnet program.
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
kandyman
YaBB Newbies
*




Posts: 4
Re: more on configuring Matchport module via seria
Reply #9 - 02/06/08 at 3:52pm
 
I did change the IP address in the srv.config file.
 
Though I was able to 'ping' the SRV, I tried to telnet via port 10001 using the correct IP address, but was unsuccessful in getting a response after sending a 'V'.
 
I would appreciate any more suggestions you may have.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: more on configuring Matchport module via seria
Reply #10 - 02/06/08 at 4:09pm
 
Go back and check your Matchport settings.  Make certain the serial channel is configured for 921600 baud and hardware (CTS/RTS) flow control.
 
Also, you have to send ENTER after the commands such as 'V', since telnet seems to default to line mode on some systems.  You can fix this by hitting the telnet escape (usually control-]) and setting mode to char
 
^]mode char
 
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
Trikky2
YaBB Newbies
*




Posts: 21
Re: more on configuring Matchport module via seria
Reply #11 - 02/07/08 at 3:15am
 
Just a quick note of thanks, putty worked so I can now access the configuration ..... Just got to get it working now Smiley
Back to top
 
 

As we slide down the banister of life, may the splinters never point
the wrong way.
Email   IP Logged
kandyman
YaBB Newbies
*




Posts: 4
Re: more on configuring Matchport module via seria
Reply #12 - 02/07/08 at 3:57am
 
The Matchport settings were indeed different. When I changed the settings to:
 
Expert (5) -cpu speed high
Channel 1 Serial (1) 921600 baud rate nand hw flow control (2)
 
It worked and I recieved images via the java console.
 
Thanks for your help.
 
Next I'm going to see if I can interface the robot images/control to LabVIEW & Matllab for some rapid image processing development. I know LabVIEW can communicate with the 802.11b/g WiFi and Matlab code can be called from within LabVIEW.
 
kandyman
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: more on configuring Matchport module via seria
Reply #13 - 02/07/08 at 6:39am
 
Quote from kandyman on 02/07/08 at 3:57am:
Next I'm going to see if I can interface the robot images/control to LabVIEW & Matllab for some rapid image processing development. I know LabVIEW can communicate with the 802.11b/g WiFi and Matlab code can be called from within LabVIEW.
kandyman

 
Take a look at http://www.swarthmore.edu/NatSci/mhsieh1/Courses/E28/ - the instructor has developed a Matlab interface to the SRV-1 for this course which can be downloaded from the SRV-1 link
 
 
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
admin
YaBB Administrator
*****




Posts: 3602
Re: more on configuring Matchport module via seria
Reply #14 - 02/07/08 at 12:27pm
 
One additional note on the serial setup issue that was reported.  Here's what Lantronix said about the '?!?' message -
 
============================
 
'?!?' means that the unit got into the setup mode (saw the initial 'xxx') however timed out on the required Enter. Once the setup page is displayed, there is no time outs, however before that there are two timers.
 
First timer starts on accepting the 'xxx'. This is a two seconds timer after initialization. Since initialization is variable based on the hardware and firmware version, it is recommended that to wait 1 second after a power cycle and then hold the x key down. This will force the unit to the setup mode.  
 
After the initial prompt, an Enter is required to go into the actual setup page. There is another timer and it responds back with '?!?' to indicate that it did not receive the required Enter in time. This was to prevent an accidental series of x's at startup lock the unit without a self recovery.
 
============================
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
Pages: 1 2 3 ... 6
Send Topic Print