Page 1 of 1
/dev/ttyUSBx connection
Posted: Fri Mar 17, 2023 9:45 am
by jaromir
Hi,
i am trying to use Tellstick trough minicom for example. I can see booting message (Tellstick firmware version mess..). I am using port parameters 4800 8N1. But no any other response. For example V+ etc.. There is not any HW info in Trac/Doc unfortunately - so i have no idea how to init stick correctly probably.
I have also another FTDI device here (different port of course) - which is working correctly.
Thx for any help.
J.
Re: /dev/ttyUSBx connection
Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
It should be possible to write V+ in the terminal. Please note that the timeout is quite short so you should probably paste the command rather than type it in manually.
Re: /dev/ttyUSBx connection
Posted: Fri Mar 17, 2023 9:45 am
by jaromir
Just responding.. as you said .. i am sending text by script. But i can send very short commands only. Probably some another timing (speed of sending) should be placed?
Because - i can send Skk+ but Skkk+ not accepted (or longer).
Re: /dev/ttyUSBx connection
Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
That sounds really strange. Does our software work?
Re: /dev/ttyUSBx connection
Posted: Fri Mar 17, 2023 9:45 am
by jaromir
Hi Micke,
so i tested for example:
stty -F /dev/ttyUSB0 4800; echo 'Sk$+' > /dev/ttyUSB0; cat /dev/ttyUSB0 , it is working
but
stty -F /dev/ttyUSB0 4800; echo 'Sk$k+' > /dev/ttyUSB0; cat /dev/ttyUSB0 , is dead.
May I can see two possible reasons.. but not sure if relevant.
1] should be consumed output ( port reading ) during sending string? (it is problem of some 3G modems also, but not after few bytes..)
2] string should be send by specific speed (if there no buffer on receiving side)?
For example Arduino has no troubles at all. As i see the string is consumed by stick but not applied.
Echo command is sending also "new line" on the end of string. But i suppose, it isn't problem, is it?
Windows appl. working ok. So stick is ok.
Any idea?
Re: /dev/ttyUSBx connection
Posted: Fri Mar 17, 2023 9:45 am
by micke.prag
Neither of your examples worked for me.
If I open the TellStick in minicom and paste this string:
S$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$k$kk$$kk$$kk$$}+
It works.
TellStick batch 11, firmare version 6.
Re: /dev/ttyUSBx connection
Posted: Fri Mar 17, 2023 9:45 am
by jaromir
Tellstick batch 14 V5, SN# 23
hmm looking like handshaking problem. After switching off all of them, minicom is working. Just i am looking how to setup stty..
Re: /dev/ttyUSBx connection
Posted: Fri Mar 17, 2023 9:45 am
by jaromir
So confirmed.. should be specific setting here (No HW hand. etc.). There are self explaining commands which are running well on my OpenWRT.
Code: Select all
stty -F /dev/ttyUSB4 1:0:cbc:0:3:1c:7f:15:1:5:1:0:11:13:1a:0:12:f:17:16:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0
timeout 1s cat /dev/ttyUSB4
echo 'Sk$k$$kk$k$k$$kk$k$k$$k$k$kk$$kk$$kk$$kk$$kk$$k$k$+' >/dev/ttyUSB4 on
timeout 1s cat /dev/ttyUSB4
echo 'Sk$k$$kk$k$k$$kk$k$k$$k$k$kk$$kk$$kk$$kk$$k$k$kk$$+' >/dev/ttyUSB4 off
timeout 1s cat /dev/ttyUSB4
There is important: of course 4800 8N1 but also modem/hw handshaking off and buffer flushing by cat command for example..