• Hi,


    I try to initialize the RS845 serial port. In several examples that I've got to use the
    TIOCGRS485 to get the struct and TIOCSRS485 to write the structure back.


    Everytime I call the ioctl I receive an Invalid Argument error, which I think means
    that it's not supported on PicoCOM4. Do you have an example to initialize the RS485 correctly?


    Thanks


    Marc


  • Hi,


    I've done some more investigations. It seems that the ttySAC1 is already used for console (may be it couldn't be set to rs485 when used).

    Code
    1. # cat /proc/cmdline
    2. console=ttySAC1,38400 mtdparts=pc4nand0:3m@0x100000(Kernel),-(TargetFS) init=linuxrc root=/dev/mtdblock1 rw rootfstype=jffs2 ethaddr=00:05:51:04:D1:89


    Is there a way to switch the console <> ttySAC1 binding off? Or, when its not possible to switch it to ttySAC0?


    Thanks for your help


    marc

  • The serial driver of the PicoCOM4 does not support TIOCSRS485 and TIOCGRS485. In other words it does not support RS485. Sorry.


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.