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 
Send Topic Print
Firmware upload freezes (Read 5781 times)
amadcow
YaBB Newbies
*




Posts: 43
Firmware upload freezes
03/06/09 at 1:42pm
 
Following the instructions found here:  
http://www.surveyor.com/blackfin/SRV_setup_bf.html#setup3
 
After entering XMODEM mode for the camera (where it sends 'C' character back) and selecting the file to transfer via XMODEM, Tera Term never finishes the transfer of my srv1.ldr file.  The number of packets sent varies before it freezes, but it usually freezes anywhere between 1% to 9%.
 
The output appears as:
##Version - SRV-1 Blackfin - 10:08:38 - Feb  1 2009 (stereo slave)
##Version - SRV-1 Blackfin - 10:08:38 - Feb  1 2009 (stereo slave)
##Version - SRV-1 Blackfin - 10:08:38 - Feb  1 2009 (stereo slave)
CCCCCC
 
I've been able to receive images at any resolution so I don't think the connection quality is an issue.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3675
Re: Firmware upload freezes
Reply #1 - 03/06/09 at 2:24pm
 
Make certain you have "telnet" disabled when configuring the connection to the robot from TeraTerm.
Back to top
 
 

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




Posts: 43
Re: Firmware upload freezes
Reply #2 - 03/06/09 at 3:56pm
 
I have it disabled.  Is there another way to upload the firmware that doesn't involve wireless?
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3675
Re: Firmware upload freezes
Reply #3 - 03/06/09 at 4:06pm
 
There's JTAG and direct serial interface, but this shouldn't be causing a problem if you're normally able to connect and receive video.
 
Are you selecting XMODEM-CRC or XMODEM-1K protocol ?  I don't remember the options on TeraTerm.
Back to top
 
 

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




Posts: 43
Re: Firmware upload freezes
Reply #4 - 03/06/09 at 4:26pm
 
It tells me XMODEM-CRC
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3675
Re: Firmware upload freezes
Reply #5 - 03/06/09 at 4:33pm
 
Well ... I'm stumped.  If you have a good connection for video feeds, then the comm setup should be good.  Within TeraTerm, if you have "telnet" disabled and XMODEM-CRC selected, you shouldn't be having problems.
Back to top
 
 

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




Posts: 43
Re: Firmware upload freezes
Reply #6 - 03/06/09 at 4:35pm
 
Well the I cant really select any specific type fo XMODEM.  It's simply XMODEM->Send File
 
 
Also, are there instructions to alternative methods for firmware updating?
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3675
Re: Firmware upload freezes
Reply #7 - 03/06/09 at 4:41pm
 
Are you connecting to port 10001 ?
 
The only real alternative is a JTAG cable.  You can go through the serial uart boot mode process, but that still has an XMODEM transfer component.
Back to top
 
 

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




Posts: 43
Re: Firmware upload freezes
Reply #8 - 03/06/09 at 4:55pm
 
So once I'm in the matchport configuration, is there an option to upload the firmware from the filesystem?
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3675
Re: Firmware upload freezes
Reply #9 - 03/06/09 at 4:59pm
 
No.  The connection from host computer to Blackfin is just pass-through on the Matchport.
 
We use XMODEM transfers ALL the time without problem.  Maybe you can try the transfer from a different system.  If you have Mac or Linux, you can use the lsz command for transfer, as described here -  
    http://www.surveyor.com/blackfin/SRV_setup_bf.html#setup3
Back to top
 
 

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




Posts: 43
Re: Firmware upload freezes
Reply #10 - 03/06/09 at 5:08pm
 
Finally got it working again.  It seems the WPA encryption was causing problems.
Back to top
 
 
  IP Logged
AndreiSk
Full Member
***




Posts: 168
Re: Firmware upload freezes
Reply #11 - 03/06/09 at 5:37pm
 
Also, you can use scripts with TeraTerm. For me, upload of firmware to SVS takes few seconds and one click at bat file.
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3675
Re: Firmware upload freezes
Reply #12 - 03/06/09 at 5:45pm
 
Andrei - could you post your script ?
Back to top
 
 

SRV-1 Development Team
Surveyor Corporation
Email WWW   IP Logged
AndreiSk
Full Member
***




Posts: 168
Re: Firmware upload freezes
Reply #13 - 03/07/09 at 7:15am
 
I am using bat file for compilation of firmware and uploading to SVS if compile succeed.
 
I have two files:
C:\SRV\svs1_compile_and_flash_ldr.bat
C:\SRV\svs1_flash.ttl
 
A. "C:\SRV\svs1_compile_and_flash_ldr.bat"
It makes:
1) compile sources
2) copy firmware file to "C:\SRV\svs1.ldr"
3) upload it to SVS using TERATERM script
Content:
======================
@echo off
c:
cd "C:\SRV\blackfinSVS\srv\"
if exist *.o del /q *.o
if exist *.bin del /q *.bin
if exist *.ldr del /q *.ldr
if exist "C:\SRV\*.ldr" del /q "C:\SRV\*.ldr"
make clean
make
if exist *.o del /q *.o
if exist *.bin del /q *.bin
if not exist "C:\SRV\blackfinSVS\srv\srv1.ldr" goto exit
 
copy "C:\SRV\blackfinSVS\srv\srv1.ldr" "C:\SRV\svs1.ldr"
"C:\Program Files\TTERMPRO\ttpmacro.exe" "C:\SRV\svs1_flash.ttl"
 
:exit
pause
======================
 
 
 
B. "C:\SRV\svs1_flash.ttl"
It makes:
1) show current version info
2) upload to SVS
3) soft reset
4) show new version info
Content:
===================================
connect '192.168.0.34 10001 /B'
if result=0 goto error
 
sendln 'V'
if result=0 goto error
 
sendln 'X'
if result=0 goto error
 
xmodemsend 'C:\SRV\svs1.ldr' 1      
if result=0 goto error
 
if result=1 goto flush
 
; error. stop macro
:error
messagebox 'Error!' 'Tera Term'
end
 
:flush
sendln 'V'
if result=0 goto error
 
sendln 'zZ'
pause 3
 
sendln '$!'
pause 1
 
sendln 'V'
pause 1
 
disconnect
===================================
 
All files can be downloaded from here:
http://81.17.152.8/download/test/svs1.zip
 
Need to change sources path if required and IP.  
I am using 192.168.0.34, you have something else
Only one click at bat file and work done!
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3675
Re: Firmware upload freezes
Reply #14 - 03/07/09 at 7:29am
 
Thanks !   I posted a link to this in the SRV-1 Blackfin setup document.
Back to top
 
 

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