brook has quit [Remote host closed the connection]
brook has joined #beagle
brook has quit [Read error: Connection reset by peer]
ikarso has joined #beagle
florian has joined #beagle
mvaittin has quit [Ping timeout: 252 seconds]
Shadyman has quit [Quit: Leaving.]
florian has quit [Quit: Ex-Chat]
buckket has quit [Quit: buckket]
buckket has joined #beagle
mvaittin has joined #beagle
Siegurd has joined #beagle
marcheu has quit [Ping timeout: 252 seconds]
<Siegurd>
Hello! How to set internal pull-up of TX pin of uart (/dev/ttyS2)?
marcheu has joined #beagle
<Siegurd>
I'm receiving leading zero when using RS-485 and it might help
<Siegurd>
config-pin -l p1.10 shows uart or gpio_pu but not something like uart_tx_pu
otisolsen70 has joined #beagle
marcheu has quit [Ping timeout: 252 seconds]
marcheu has joined #beagle
mvaittin has quit [Ping timeout: 240 seconds]
buzzmarshall has joined #beagle
brook has joined #beagle
jfsimon1981 has joined #beagle
brook has quit [Remote host closed the connection]
lucascastro has joined #beagle
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #beagle
lucascastro has quit [Read error: Connection reset by peer]
lucascastro has joined #beagle
lucascastro has quit [Remote host closed the connection]
lucascastro has joined #beagle
michaelo has joined #beagle
Stat_headcrabed has joined #beagle
michaelo has quit [Changing host]
michaelo has joined #beagle
michaelo has quit [Quit: leaving]
michaelo has joined #beagle
Stat_headcrabed has quit [Quit: Stat_headcrabed]
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #beagle
Stat_headcrabed has joined #beagle
<zmatt>
Siegurd: uart txd pin is an output and continuously driven (as long as the pin is configured to uart txd function), hence pull-up/down will have no effect
Stat_headcrabed1 has joined #beagle
Stat_headcrabed has quit [Ping timeout: 264 seconds]
Stat_headcrabed1 is now known as Stat_headcrabed
<zmatt>
also the uart mode actually has pull-up enabled (even though it will do nothing for the txd pin)
<zmatt>
p1.10 also has pull-up enabled in its default mode
<zmatt>
oh wtf, but its default mode is spi ... who thought that was a good idea
<zmatt>
yiiikes why do so many pocketbeagle pins have a non-gpio default in its dts
<zmatt>
some of which will be output by default (which means there's no safe way to use them as input since they'll get configured to output before software has the chance to configure them correctly)
<zmatt>
this is fixable with an overlay of course, but it seems like an ill-conceived default
<zmatt>
also, some are configured as gpio (default input) with no pull enabled, which is also bad
vagrantc has joined #beagle
<Siegurd>
thanks, yhe problem solved with pull a
<Siegurd>
and b
<Siegurd>
of RS-485
<Siegurd>
a to +3v3 and b to GND
<Siegurd>
hmm but now both tx and rx are +3v3 between transferring data
<Siegurd>
rx should be in LOW when no data is coming
<zmatt>
??
<zmatt>
if your bus needs a default state then yes you should use correct termination that includes pull-up/down (this is part of your bus termination since your termination resistor may need to be adjusted depending on the value of the pull-up/down
<zmatt>
and is your default bus state is high (which is typical) then obviously you're going to receive high by default
brook has joined #beagle
<zmatt>
a bus needs a default state unless either 1. there's only one node that's continuously driving the bus, everyone else is receive-only, or 2. all receivers are of a fault-tolerant type that can cope with an open bus (a == b, undriven)
<zmatt>
why would you want rx to be low? that's a break, not an idle state
brook has quit [Remote host closed the connection]
<Siegurd>
thanks bro! now I can sleep well)
<Siegurd>
I just worked with uart only and rx was always in low by default
brook has joined #beagle
<zmatt>
rx is never low (logic 0, "space") by default with an uart, it's always been high (logic 1, "mark") by default
<zmatt>
unless you mean actual RS232 which is inverted (3V to 15V for logic 0, -15V to -3V for logic 1)