Talking to robostix from gumstix

View: New views
3 Messages — Rating Filter:   Alert me  

Talking to robostix from gumstix

by gordu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all
 I have tried talking to my robostx on its UARTs every way I can think of. I have tried using a serial adapter  (on both uarts) and I have tried bridging the gumstix/robostix uarts together as mentioned on the robostix ISP page and then using minicom on the gumstix as well as Dave H's sertest. With the i2c-io program of Dave's I would expect to see some output but nothing. I do have some form of connection because as soon as I hit return in either minicom or sertest the i2c-io program on the robostix  stops blinking the LED. Anybody know what I've missed?

thanks
 gord u

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Talking to robostix from gumstix

by Dave Hylands :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Gord,

>  I have tried talking to my robostx on its UARTs every way I can think of. I
> have tried using a serial adapter  (on both uarts) and I have tried bridging
> the gumstix/robostix uarts together as mentioned on the robostix ISP page
> and then using minicom on the gumstix as well as Dave H's sertest. With the
> i2c-io program of Dave's I would expect to see some output but nothing. I do
> have some form of connection because as soon as I hit return in either
> minicom or sertest the i2c-io program on the robostix  stops blinking the
> LED. Anybody know what I've missed?

So just to clarify - you're trying to use i2c-io and you want to use
it to send some data out the robostix uart?

Looking at the i2c-io code, it appears to initialize UART-0 to 38400
baud and sets up the interrupt handler, but doesn't do anything with
the received characters.

It appears that the interrupt handler will grab any received
characters and shove them into an internal circular buffer, but nobody
is reading that.

I'm a little surprised that the LED stops blinking.

If you set IO_LOG_ENABLED to 1 in the robostix/i2c-io.c file (and
rebuild/redownload i2c-io.hex), then it will print some stuff on
UART-0 at bootup.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Talking to robostix from gumstix

by gordu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Duh...yeah that was it, thanks Dave

gord u

On Wed, May 14, 2008 at 5:20 PM, Dave Hylands <dhylands@...> wrote:
Hi Gord,

>  I have tried talking to my robostx on its UARTs every way I can think of. I
> have tried using a serial adapter  (on both uarts) and I have tried bridging
> the gumstix/robostix uarts together as mentioned on the robostix ISP page
> and then using minicom on the gumstix as well as Dave H's sertest. With the
> i2c-io program of Dave's I would expect to see some output but nothing. I do
> have some form of connection because as soon as I hit return in either
> minicom or sertest the i2c-io program on the robostix  stops blinking the
> LED. Anybody know what I've missed?

So just to clarify - you're trying to use i2c-io and you want to use
it to send some data out the robostix uart?

Looking at the i2c-io code, it appears to initialize UART-0 to 38400
baud and sets up the interrupt handler, but doesn't do anything with
the received characters.

It appears that the interrupt handler will grab any received
characters and shove them into an internal circular buffer, but nobody
is reading that.

I'm a little surprised that the LED stops blinking.

If you set IO_LOG_ENABLED to 1 in the robostix/i2c-io.c file (and
rebuild/redownload i2c-io.hex), then it will print some stuff on
UART-0 at bootup.

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users
LightInTheBox - Buy quality products at wholesale price