1. Hi,
   2.
   3. I bought the RS485 Cap and i'm trying to use it correctly.
   4.
   5. The connection is set to the UART 2 with the switch. ( rx and tx )
   6.
   7. i correctly set the pin mux to enable the uart 2:
   8.
   9. echo 21 > /sys/kernel/debug/omap_mux/spi0_sclk
   10. echo 1 > /sys/kernel/debug/omap_mux/spi0_d0
   11.
   12.
   13. In my code, i'm able to open the connection, but not to initiate it :
   14.
   15.
   16.     int fd = open ("/dev/ttyO2", O_RDWR);
   17.     if (fd < 0) {
   18.         printf("error\n");
   19.         /* Error handling. See errno. */
   20.     }
   21.     // it works
   22.     struct serial_rs485 rs485conf;
   23.     rs485conf.flags |= SER_RS485_ENABLED;
   24.     rs485conf.delay_rts_before_send = 0x00000004;
   25.     int test = ioctl(fd, TIOCSRS485, &rs485conf);
   26.     if(test<0){
   27.         test=0;
   28.        /// i'm stuck here .........
   29.     }else{
   30.         test=1;
   31.     }
   32.
   33.
   34. Would you like to explain me what is wrong with me ?


   I just discovered something new for me, I looked at the documentation of
   the BeagleBone rs485 cap. And I discovered that I need to control GPIO1_4
   and GPIO1_0. But I don't think it's the reason actually for my problem. No ?
   35.
   36. Thx you very much,
_______________________________________________
Angstrom-distro-users mailing list
Angstrom-distro-users@linuxtogo.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/angstrom-distro-users

Reply via email to