Hi  Andrea
I still have  problems

I followed the code proposed by Tanzilli, but it does not work. Although I
have included the proper files TIOCSERSETRS485 constant is not known. I have
to  redefine it  myself.

like this

 #define TIOCSERSETRS485 0x5460  ///* enable rs-485 */
#define TIOCSERWRRS485  0x5461  ///* write rs-485 */

in my program
the call of

 if(ioctl(fd,TIOCSERSETRS485, &ctrl485))
 {
  cout<<"-- Erreur Config RS485"<<endl;
   return false;}
}
 return  to me errors

Do I need to recompile the kernel  to activate the RS485, could you help me
elaborate on the procedure?

Eric !!!

> 
>

Reply via email to