Quantcast
Channel: Intel Communities: Message List
Viewing all articles
Browse latest Browse all 18347

Re: Garbage on /dev/ttyMFD1 (Edison + Arduino Breakout)

$
0
0

Forgot to mention in the above that I use MRAA to configure the IO pins.  Example:

From my Commander test program:

 

char szDevice[] = "/dev/ttyXBEE";

Commander command = Commander();
...
int main()
{
    printf("Arbotox Commander XBee Test!\n");    // Install signal handler to allow us to do some cleanup...    struct sigaction sigIntHandler;    sigIntHandler.sa_handler = SignalHandler;    sigemptyset(&sigIntHandler.sa_mask);    sigIntHandler.sa_flags = 0;    sigaction(SIGINT, &sigIntHandler, NULL);    mraa_uart_context uart;    mraa_init();    uart = mraa_uart_init(0);    if (uart == NULL) {        printf("MRAA UART failed to setup\n");    }    // Lets try to open the XBee device...    command.begin(szDevice, B38400);

 

So on the Edison on an Arduino board this should setup digital pins 0 and 1 to work as a UART

On the Mini breakout board it should setup MRAA pins 26(J18-13) and 35(J19-8).

 

I know that I have tried the commander stuff out on Arduino board and I believe I did some testing on mini board, will be trying it again soon, as soon as I solder in the connectors to the new board.


Viewing all articles
Browse latest Browse all 18347

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>