Connecting microcontroller and pda with USB

General Robotics Forum - All aspects of robots and their applications. 

Page 2 of 2       << first < 1 2 Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
Connecting microcontroller and pda with USB gidesa 10-17-2007
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Jon Hylands on October 18, 2007, 1:38 pm
wrote:

> There are a couple books that have been written about using PDAs in
> robots. I have two of them and I think one is called PDA robotics. I
> can't remember how exactly they did it, if they used the usb port or
> not. I will have to look it up later.

MicroSeeker used to use a Dell Axim PDA running Squeak, talking to a PIC
microcontroller. I used a 19,200 baud serial link (RS-232) between them.

Right now, I'm using a gumstix verdex (which has host USB) running Squeak
to talk through an FT232 USB transceiver chip to an ATmega168 at 1.0 Mbps.
In Squeak I open the USB port as though it was a serial port, and
everything works great.

Later,
Jon

--------------------------------------------------------------
Jon Hylands Jon@huv.com http://www.huv.com/jon

Project: Micro Raptor (Small Biped Velociraptor Robot)
http://www.huv.com/blog

Posted by Wayne C. Gramlich on October 18, 2007, 3:16 pm
Jon Hylands wrote:
> wrote:
>
>> There are a couple books that have been written about using PDAs in
>> robots. I have two of them and I think one is called PDA robotics. I
>> can't remember how exactly they did it, if they used the usb port or
>> not. I will have to look it up later.
>
> MicroSeeker used to use a Dell Axim PDA running Squeak, talking to a PIC
> microcontroller. I used a 19,200 baud serial link (RS-232) between them.
>
> Right now, I'm using a gumstix verdex (which has host USB) running Squeak
> to talk through an FT232 USB transceiver chip to an ATmega168 at 1.0 Mbps.
> In Squeak I open the USB port as though it was a serial port, and
> everything works great.

Jon:

Your experience is not matching mine.

I am only having so-so success with my FTDI USB-to-RS232 serial
converter. I need to do some more research, but it looks
like there is some serious overhead in the USB protocol stack
that adds some significant delays. I am running at 115200
and I am getting pathetic performance. My commands are really
short -- send one or two bytes and get 1-3 bytes in return.
I need to do some more sluething to verify that it is some
stupid software bug tho'.

In a week or two I hope to have some more solid numbers as to
what is really happening. (I need to order some more parts.)

-Wayne

Posted by Joe McKibben on October 18, 2007, 3:49 pm
> Jon Hylands wrote:
> > wrote:
> >> There are a couple books that have been written about using PDAs in
> >> robots. I have two of them and I think one is called PDA robotics. I
> >> can't remember how exactly they did it, if they used the usb port or
> >> not. I will have to look it up later.
> > MicroSeeker used to use a Dell Axim PDA running Squeak, talking to a PIC
> > microcontroller. I used a 19,200 baud serial link (RS-232) between them.
> > Right now, I'm using a gumstix verdex (which has host USB) running Squeak
> > to talk through an FT232 USB transceiver chip to an ATmega168 at 1.0 Mbps.
> > In Squeak I open the USB port as though it was a serial port, and
> > everything works great.
> Jon:
> Your experience is not matching mine.
> I am only having so-so success with my FTDI USB-to-RS232 serial
> converter. I need to do some more research, but it looks
> like there is some serious overhead in the USB protocol stack
> that adds some significant delays. I am running at 115200
> and I am getting pathetic performance. My commands are really
> short -- send one or two bytes and get 1-3 bytes in return.
> I need to do some more sluething to verify that it is some
> stupid software bug tho'.
> In a week or two I hope to have some more solid numbers as to
> what is really happening. (I need to order some more parts.)
> -Wayne

The other book I have is The Ultimate Palm Robot. It seems to give the
same type of setup as PDA Robotics does.

Yeah Acroname's PPRK robot used to have a kit that hooked up to a PDA
through there brainstem controller.

Joe McKibben


Posted by Jon Hylands on October 18, 2007, 6:30 pm
On Thu, 18 Oct 2007 19:16:12 GMT, "Wayne C. Gramlich"

> I am only having so-so success with my FTDI USB-to-RS232 serial
> converter. I need to do some more research, but it looks
> like there is some serious overhead in the USB protocol stack
> that adds some significant delays. I am running at 115200
> and I am getting pathetic performance. My commands are really
> short -- send one or two bytes and get 1-3 bytes in return.
> I need to do some more sluething to verify that it is some
> stupid software bug tho'.

It must be something you're doing. I know with at least one C++ library a
friend was using, he was getting pathetic performance because the library
was doing a 100 ms delay/timeout on every receive.

(update - I just asked him, and he said it was the lserie library from
cppfrance, or something like that)

I can send and receive at 1,000,000 baud with no trouble, with very little
delay. From windows, I get approximately 1-2ms of overhead with each round
trip (after I reset the port latency to 1ms from its default 16ms).

The packets I send are between 10 and 150 bytes each, and receive packets
are typically 10-15 bytes.

Later,
Jon

--------------------------------------------------------------
Jon Hylands Jon@huv.com http://www.huv.com/jon

Project: Micro Raptor (Small Biped Velociraptor Robot)
http://www.huv.com/blog

Posted by Wayne C. Gramlich on October 18, 2007, 2:25 pm
Joe McKibben wrote:
> On Oct 18, 3:50 am, Jens Peter Lindemann <j...@bioneuro18.uni-
> bielefeld.de> wrote:

> There are a couple books that have been written about using PDAs in
> robots. I have two of them and I think one is called PDA robotics. I
> can't remember how exactly they did it, if they used the usb port or
> not. I will have to look it up later.

The book _PDA_Robotics_ by Doublas Williams (ISBN 0-7-141741-9)
uses an IRDA interface to communicate with the rest of the robot.
Old PDA's have IRDA's but newer ones have dropped that interface
entirely in favor of USB.

> You may also want to check out www.acroname.com, they have some PDA
> robot kits that are pretty cool.

Could you be more specific?

-Wayne

Page 2 of 2       << first < 1 2

The site map in XML format XML site map
other useful resources:
Official Robosapien Website
Lego Mindstorms Website

Contact Us | Privacy Policy