Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soft_uart Transmission ends marking OR spacing #12

Open
skiddaw opened this issue Jun 16, 2019 · 0 comments
Open

soft_uart Transmission ends marking OR spacing #12

skiddaw opened this issue Jun 16, 2019 · 0 comments

Comments

@skiddaw
Copy link

skiddaw commented Jun 16, 2019

I am trying to transmit 110 baud to an actual 20mA current loop Teletype using GPIO-2 (SDA) as the Tx line. I can see the data on an oscilloscope but the transmission often ends in a spacing state (0= no current) instead of marking (1=20mA).
Since finding this on the original I loaded soft_uart_hippy but with similar results except when I tried changing the baud to 2400 the inversion appears to have taken over. At 300 baud the final state is random again.
Test line: echo "U" > /dev/ttySOFT0
Raspbian 9.8 stretch
kernel 4.14.98+
model B Rev 2
firmware Feb 12 2019 10:42:42
stty -F /dev/ttySOFT0 110 cs8
sudo insmod soft_uart.ko gpio_tx=2 gpio_rx=3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant