Configuring and using COM port
Hi all,
We recently acquired an UP Xtreme and are searching for documentation on how to configure and use the COM port (especially the RS485 and RS232)...
Unfortunately we did not find a lot of info... We found on the UPC but nothing about UP Xtreme and are going in circles...
So how can we configure and use those ports?
Thanks a lot
Comments
-
Hi @gbeckers ,
For UP Xtreme, more information regarding configuration can be found on our UP Wiki here,https://github.com/up-board/up-community/wiki/Pinout_Xtreme#accessing-the-peripherals-on-the-up-xtreme
Feel free to browse the wiki for other UP Xtreme related information.
Regards,
Pratik -
Hi Patrik,
Thanks for your answer !However, you link is focus on the GPIO and not on the DB9 COM port.
I have configured into the BIOS the RS485, then I have try the communication without success.I don't find other information about the DB9 setting or get started...
So if you have other link or datasheet, can share it ?
Thank you for your help.
Have a nice day,
Benjamin. -
Hi @gbeckers ,
You can find the datasheet and other related hardware specification here, https://github.com/up-board/up-community/wiki/Hardware_Specification_UP_Xtreme
Regards,
Pratik -
The COM ports are configured in BIOS:
Advanced > SIO Configuration > Serial Port 1/2 > Mode
-
Hello, I have the same problem with my UP Board Extreme. I need to read and write to an external device connected to the COM1.
The external device uses RS485 serial interface.
I have configured in the BIOS COM1,2 as RS485.
I developed a python script using pyserial. If I attach an external USB to RS485 converter and I run the script accessing /dev/ttyUSB3 then it works properly. if I try using it accessing /dev/ttrySn (I tried every serial available) I am able to write (I have added my user to the dialout group) but I do not receive any answer.What is the device for COM1 (/dev/ttyS?) ?
How have I to set in order to use the RS485?
Have I to use libmraa?Best Regards,
Stefano -
I have resolved the issue:
COM1 is /dev/ttyS0
It is mandatory to connect the RS485 D+/D- to the correct pins on the DB9 connector on the Extreme:
- D- is PIN 1
- D+ is PIN 2
-
Hello guys,
All pin definitions can be found in the UP Xtreme user's manual
click here to download the manualIn general, the first COM1 port in linux becomes /dev/ttyS0, the second (COM2 port) becomes /dev/ttyS1