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 
Send Topic Print
SRV-1 uClinux port (Read 23972 times)
admin
YaBB Administrator
*****




Posts: 3676
Re: uClinux revisited
Reply #15 - 07/09/10 at 7:50am
 
I have working capture code for ov9655 and ov7725 with the 2008 codebase, but video capture is broken with both sensors in Martin's 2009 port.  Other iasues woth 2008 and 2009 are timer2 pwm and support for higher console baud rates.  I am hoping that these issues will be resolved quockly.
Back to top
 
« Last Edit: 07/09/10 at 7:51am by admin »  

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




Posts: 3676
Re: uClinux revisited
Reply #16 - 07/11/10 at 11:16am
 
Update for srv1-linux has been posted.  
    http://code.google.com/p/srv1-linux/updates/list
 
The TIMER2 problem seemed to be specific to the Blackfin board I was using and went away when I changed boards.  So now we have motor control with the SRV-1 robot.  This can be tested using the "led" program in uClinux/user/blkfin-test/camera_test/led.c .   Eventually, this code will expand to test the various SRV_protocol functions and work directly with SRV1Console.
 
The video capture is still broken with 2009 linux.  Perhaps other users can look at the code to see if there is an obvious problem.  I created two versions of ov9655 driver - one with ov9655 registers and the other with ov7725 registers.  To build for ov9655, you just need to copy srv1-linux/uClinux/linux-2.6.x/drivers/media/video/blackfin/ov9655_9655.c to ov9655.c and ov9655_9655.h to ov9655.h.  To build for ov7725, copy ov9655_7725.c to ov9655.c and ov9655_7725.h to ov9655.h.  Hopefully we will eventually have a way to autodetect.
 
The other remaining issue is support for 2500kbps console.  There is no way from u-boot to set this speed, so my current idea is to change the default 38400 baud rate in the linux kernel to 38400.  I will post this if it works.
 
I have also posted SRV1 u-boot source as well as 115kbps u-boot.ldr to  
    http://code.google.com/p/srv1-linux/downloads/list
Back to top
 
« Last Edit: 07/11/10 at 11:21am by admin »  

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




Posts: 3676
Re: uClinux revisited
Reply #17 - 07/11/10 at 6:15pm
 
2500kbps console now works.  See
    http://code.google.com/p/srv1-linux/source/detail?r=18
 
Method uses setserial and stty commands which have been added to rc.setup script that is stored in /opt/etc.  We need a better solution that sets the baud rate from u-boot rather than directives in the rc.setup script, but at least we now have a fast interface.
Back to top
 
« Last Edit: 07/11/10 at 6:17pm by admin »  

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




Posts: 17
Re: uClinux revisited
Reply #18 - 07/12/10 at 12:23am
 
I see you didn't modify the i2c driver to support sccb protocol.
Maybe this helps:
http://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?_forum_action=ForumMe ssageBrowse&thread_id=35907&action=ForumBrowse
Back to top
 
 
  IP Logged
admin
YaBB Administrator
*****




Posts: 3676
Re: uClinux revisited
Reply #19 - 07/12/10 at 6:58am
 
Thanks for the link.  I have posted to the uclinux forum asking for others to take a look at the code to see if there are any obvious issues:
    http://blackfin.uclinux.org/gf/project/uclinux-dist/forum/?_forum_action=ForumMe ssageBrowse&thread_id=41742&action=ForumBrowse&forum_id=39
 
I don't think the problem is I2C/SCCB.  Even if the camera register settings were completely wrong, we would still be receiving pixels, though the image would be scrambled.  I suspect there is a more fundamental problem in changes to blackfin_cam / v4l architecture that have broken the drivers that previously worked in 2008 release.  I'm hoping that those who have already solved these problems will see a simple solution, because this is really the only remaining challenge before we can begin to add full robot functionality to the linux port.
 
==========
 
update - I added some more debug output and find that we seem to be hanging in  
    ioctl(video, VIDIOCMCAPTURE, &vmmap)
Back to top
 
« Last Edit: 07/12/10 at 10:07am by admin »  

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




Posts: 3676
Re: uClinux revisited
Reply #20 - 07/13/10 at 11:28am
 
Another update.  Rather than getting stuck on v4l capture, a shifting test pattern has replaced v4l capture.  The test program is now srv1.c, not led.c or v4l_test.c
    http://code.google.com/p/srv1-linux/source/detail?r=24
 
This actually works with SRV1Console.  It doesn't yet support the 'M' command for motor control, instead using the old keyboard commands ('8' = forward, '2' = back, '4' = spin left, '6' = spin right, '5' = stop).  Lasers work - 'l' = on, 'L' = off.  'I' captures and sends a JPEG frame.   There's something screwy with the first frame and serial buffers aren't getting flushed, so it takes a long time to get a response to a motor or laser command.  But this is a start.
 
This test program does unmask a new problem, which is that we seem to be losing data at 2500k baud, and it's not a lot better at 921k.  Even 115k glitches occasionally with the Matchport connection, but it is rare.
 
Martin is looking at v4l capture, so hopefully we'll have resolution soon.  It should be easy to start adding other SRV_protocol functions, but we're going to have to figure out the issue with data loss - this may be something that has to be fixed in the Blackfin serial driver, so we need to isolate it.
Back to top
 
« Last Edit: 07/13/10 at 11:29am by admin »  

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




Posts: 13
Re: SRV-1 uClinux port
Reply #21 - 07/23/10 at 1:53am
 
Hello,
 
Could you (or someone) please make available a compiled version of the software for testing purpose? I mean an uclinux ext2 file that i can upload by the bootloader to the SRV1?
 
Many thanks - Francesco
Back to top
 
 
  IP Logged
Robolab
YaBB Newbies
*




Posts: 17
Re: SRV-1 uClinux port
Reply #22 - 07/29/10 at 1:31am
 
Are there any news regarding the v4l-driver?
Back to top
 
 
  IP Logged
tjump
Global Moderator
*****




Posts: 412
Re: SRV-1 uClinux port
Reply #23 - 07/29/10 at 3:07pm
 
Hi All,
 
We are working on the uClinux port but need to work through some things. We will post updates once we have something to report.
 
Cheers,
T. Jump
Back to top
 
 
  IP Logged
Robolab
YaBB Newbies
*




Posts: 17
Re: SRV-1 uClinux port
Reply #24 - 08/04/10 at 12:11am
 
I checked your google-code project for the srv1.c boardconfig. I think you didn't adjust the MMC_SPI .chip_select for your pinout on the S-32 Header. You are using GPIO-H8 for the SPI chipselect, that should be pin 40, not 5.
Back to top
 
 
  IP Logged
ucrobotics_ZW
YaBB Newbies
*




Posts: 14
Re: SRV-1 uClinux port
Reply #25 - 11/16/10 at 4:11am
 
I have run uclinux on the SRV-1, but i can't see any frame from SRVControl.
 
My steps:
1. copy srv1-linux/uClinux/linux-2.6.x/drivers/media/video/blackfin/ov9655_9655.c to ov9655.c and ov9655_9655.h to ov9655.h before building (i heard the driver of ov7725 is not ready...)
2. enable the camera_test tool
3. after enter the uClinux, run "srv1 &", then control-C
4. start JavaControl to connect, i can see the "I" command are sent continuous, but no frame to display.
 
Quote:
It doesn't yet support the 'M' command for motor control, instead using the old keyboard commands ('8' = forward, '2' = back, '4' = spin left, '6' = spin right, '5' = stop).  Lasers work - 'l' = on, 'L' = off.  'I' captures and sends a JPEG frame.

I also have tried to send '8' to SRV-1, still nothing to display.
So how to test the "camera_test" tool ?
 
Another question: In file rc.setup, there has a line: stty -F /dev/ttyBF0 38400
to set the system baud rate to 2500kbps. but how to connect(or convert) the 38400 to 2500k ?
Back to top
 
 
Email   IP Logged
tjump
Global Moderator
*****




Posts: 412
Re: SRV-1 uClinux port
Reply #26 - 11/16/10 at 5:29am
 
I'm sorry to say we are not yet ready to start supporting the uClinux project since our uClinux developement team dissolved this past summer. We are getting this up and running and hope to have a new uImage to post within the next few weeks, but for now we are trying to understand what does and does not work from the last uImage and work through the road blocks that were holding up this project. I will post something here when we are ready to proceed.
 
Thanks for your patience.
 
T. Jump
Back to top
 
 
  IP Logged
ucrobotics_ZW
YaBB Newbies
*




Posts: 14
Re: SRV-1 uClinux port
Reply #27 - 11/17/10 at 6:57pm
 
the camera_test binary seems can works:
# srv1
srv1
8    ------> forward
2    ------> back
4    ------> spin left
6    ------> spin right
5    ------> stop
l    ------> lasers on
L    ------> lasers off
I    ------> grab frame
ESC  ------> exit program
 
but in terminal, the command 'I' just return some binary codes, and i can not connect the JavaConsole to robot.
 
somebody can share some experience about that ?
Back to top
 
 
Email   IP Logged
tjump
Global Moderator
*****




Posts: 412
Re: SRV-1 uClinux port
Reply #28 - 11/17/10 at 8:22pm
 
You are correct that you cannot connect. As I said in my reply yesterday, the uClinux firmware is not complete. There are no control functions active in the uClinux firmware. There are some test video functions and this is all. Until we release a new version your only option is to write your own changes to the firmware.
 
T. Jump
Back to top
 
 
  IP Logged
tchouk.leway
YaBB Newbies
*




Posts: 4
Re: SRV-1 uClinux port
Reply #29 - 12/18/10 at 6:33am
 
hallo,
please do someone have a console JAVA source for Linux or tell me how to modified the Firmware Console Version to get some picture. It will be great.
Thank
Back to top
 
 
  IP Logged
Pages: 1 2 3 
Send Topic Print