Hello Dave, I try to capture 30 bytes that are binary numbers and convert
them to int. UART1_IsCharAvailable() or UART1_GetChar() doesn't work. Are
there another functions? Maybe I'm using them wrong?
Play 100s of games for FREE! http://games.mail.com/
From: Dave Hylands <dhylands@gm...> - 2006-03-08 21:38:42
> Hello Dave, I try to capture 30 bytes that are binary numbers and convert
> them to int. UART1_IsCharAvailable() or UART1_GetChar() doesn't work. Are
> there another functions? Maybe I'm using them wrong?
Have you tried Flash-LED?
It outputs data to both UARTs.
How are you trying to capture the data? If on the gumstix, did you put
the serial port into raw mode?
Are interrupts enabled on the robostix? The UART routines are all
Is the baud rate set correctly?
There are also a couple of CFG_ options that control how the UARTs
work. These are normally defined in Config.h and if any of them are
activated it could mess around with binary data streams.
#defining CFG_UART1_LF_TO_CRLF to 1 will cause UART1_PutChar will
translate LF's (0x0A) to CRLFF's (0x0D 0x0A)
#defining CFG_UART1_CR_TO_LF to 1 will cause UART1_GetChar to
translate received CRs to LFs
#defining CFG_UART1_ECHO_INPUT will cause UART1_GetChar to echo its input.
I'll do a test tonight to make sure everthing is working as I expect,
just to make sure I haven't overlooked something simple.
Vancouver, BC, Canada
Get latest updates about Open Source Projects, Conferences and News.