Re: RS485/COM2 Error in SBC84500 documentation

From: Frencia (jean.pierre.frencia_at_wanadoo.fr)
Date: 06/20/05


Date: Mon, 20 Jun 2005 21:17:49 +0200

Hi

There is an error in the SBC84500 documentation concerning RS485/COM2 pins
assignment.
The signal is between pin 1 (DATA-) and pin 2 (DATA+) instead of pin 1 and
pin 3 as stated page 29 of the documentation.

I also have removed CRTSCTS flag when tuning the termios.

Here is my OpenDevice routine (if it could be helpful for somebody else).

int OpenDevice (char* device)
{
  int fd;

  fd = open(device, O_RDWR | O_NOCTTY );
  if(fd<=0) {
    fprintf(stderr, "Error opening %s\n", device);
    exit(-1);
  }
  tcgetattr(fd,&oldtio); /* save current port settings */
  tcgetattr(fd,&newtio); /* get current port settings */
  newtio.c_cflag = BAUDRATE | CS8 | CLOCAL | CREAD;
  // BAUDRATE | CRTSCTS | CS8 | CLOCAL | CREAD does NOT work
  newtio.c_cflag &= ~PARENB; /* no generation of parity bit */
  newtio.c_cflag &= ~CSTOPB; /* 1 Stop bit */
  newtio.c_iflag &= ~INPCK; /* no input parity check */
  newtio.c_iflag = IGNPAR;
  newtio.c_oflag = 0;

  /* set input mode (non-canonical, no echo,...) */
  newtio.c_lflag = 0;

  newtio.c_cc[VTIME] = 10;
  newtio.c_cc[VMIN]= 0;

  tcflush(fd, TCIFLUSH);
  tcsetattr(fd,TCSANOW,&newtio);
  return(fd);
}

Grant Edwards wrote:

> On 2005-06-18, Frencia <jean.pierre.frencia@wanadoo.fr> wrote:
>
>> I'm trying to use the RS485/COM2 port on an embedded Axiom
>> SBC84500 card running kernel 2.4.26. I have configured the
>> JP9,JP10,JP10 according to the documentation but there is no
>> output signal when writing to /dev/ttyS1.
>
> You might have to assert RTS in order to enable the RS-485
> drivers.
>
>> I read somewhere that I should use ioctls to write to the port
>> instead of the standard write function.
>
> I really doubt that. I've been doing serial stuff under Unix
> for 15 years, and I've never heard of using ioctl() to write
> data to a serial port.
>



Relevant Pages

  • Re: Spartan 3 documentation confusing...
    ... Steve Knapp (Xilinx Spartan-3 Generation FPGAs) wrote: ... E-mail me directly for Spartan documentation or use the Feedback link ... FAE about using resistors to set the mode pins ("Why do the app notes ...
    (comp.arch.fpga)
  • Re: IDTech monitor IBM
    ... Can't find any documentation, Sony ... have a 200 dpi $10,000 monitor I need documentation for, namely the power pins. ... Model MD22292-B2 or IBM 9503-DG1/DG3. ... Probably uses all 6 pins. ...
    (sci.electronics.repair)
  • Re: reversing a gate array
    ... the majority of the leads are used by the other documented functions. ... I have pinout information and there appears to be a 1->1 relationship for input and output pins. ... There could be all kinds of sequential things happening in a gate array so that something might come out of it umpteen clock cycles after some input has been static. ... Documentation of that part? ...
    (sci.electronics.design)
  • Re: IDTech monitor IBM
    ... zekfrivo@xxxxxxxxxxxxxxxx (GregS) wrote: ... have a 200 dpi $10,000 monitor I need documentation for, namely the power ... I don't know if Sony ever sold ... Probably uses all 6 pins. ...
    (sci.electronics.repair)
  • Seeking Older Ampro Documentation/Info
    ... output via the serial port if you don't have a video adapter, ... without any sort of documentation on how to get these things to work, ... For example, I've also read that the PC/104 bus is identical to ISA, so ...
    (comp.arch.embedded)