Page 1 of 1

Pi 2 - /dev/ttyS0 ?

Posted: Thu Jun 11, 2015 9:09 am
by lentas
Hi Boris,
i´v set up a Pi2 and want to migrate from Alix. Problem: My VP2 has RS232 Connection, tried to connect via USB-232 Converter but failed.
So i connected a TTL->RS232 Level Shifter to get a normal RS232.
Image

But when i boot up, no serial is detected:
USB seriell keine
USB HID keine.

Could you implement it in the Code? /dev/ttyS0 port should be available.
thx,
Lentas

Re: Pi 2 - /dev/ttyS0 ?

Posted: Thu Jun 11, 2015 11:41 pm
by admin
You can enter it manually at the weather station settings. Adding this to the drop down
list will confuse hundreds of users selecting this and not having a home-brew adapter like yours.

Re: Pi 2 - /dev/ttyS0 ?

Posted: Fri Jun 12, 2015 1:50 am
by AlaskaWX
On my rpi2 the TTL serial port is available on /dev/ttyAMA0

Code: Select all

crw-rw---- 1 root tty     204, 64 Jun  4 11:08 /dev/ttyAMA0
I use it for a serial console connection via a TTL to USB adapter. If ,you want to use a serial console there are a few other config items that need editing also.

Re: Pi 2 - /dev/ttyS0 ?

Posted: Fri Jun 12, 2015 5:34 am
by lentas
@boris, seems clear, but probably i´m not the only vp2 owner with this prob. anyway.
@ alaskaWX: your hint ttyAMA0 was the right one... seems rpi2 and vp2 are talking, but in the end there´s a timeout. do i have to change baudrates etc? keep in mind, i only tried the meteohub gui, no other things like putty, but could do so. here´s some log.

logger (12.06.2015 05:26:36): data logger (version 5.0f, build 69) started.
logger (12.06.2015 05:26:37): connect station 0 (Vantage via USB serial).
logger (12.06.2015 05:26:37): station 0 (Vantage), wakeup sent.
logger (12.06.2015 05:26:37): station 0 (Vantage), internal logger activated.
logger (12.06.2015 05:26:37): station 0 (Vantage), syncing.
logger (12.06.2015 05:26:47): station 0 (Vantage), gettime request sent.
logger (12.06.2015 05:26:47): station 0 (Vantage), time offset of Vantage: 7 minutes
logger (12.06.2015 05:26:47): station 0 (Vantage), eeprom request sent.
logger (12.06.2015 05:26:57): station 0 (Vantage), gettime request sent.
logger (12.06.2015 05:27:07): station 0 (Vantage), gettime request sent.
logger (12.06.2015 05:27:46): disconnect station 0 (Vantage): timeout