Hi All,
Results of access tests via a Linux laptop
==================================
LINUX MINT 19.3 (TRICIA)
PUTTY - Set up the configuration as follows:
Category: Terminal
- tick 'implicit CR in every LF'
- tick 'implicit LF in every CR'
NOTE: This ensures that the returned text is correctly formatted.
Category: Connection/Serial
- Serial Line to connect to: /dev/ttyUSB0
- Speed: 115200
- Data: 8
- Stop: 1
- Parity: None
- Flow Control: None
Click on 'Category: Session'
Click on 'Serial', a radio button
In 'Saved Sessions' click on 'Default Settings'.
Click on 'Save'
PUTTY METHOD#1
Open: a Terminal window
Type: 'sudo chmod -R 777 /dev/ttyUSB0'
Enter: [password]
Type: 'sudo putty'
Select 'Open'
Enter: 'CTRL + m' then 'CTRL + j' to wake up the Zero MBB and display the '>'.
After each entry, ie, 'help', finish with 'CTRL + m' then 'CTRL + j' to make the MBB respond.
PUTTY METHOD#2 - I forgot to try this one!
By default, PuTTY sends the Telnet New Line code when you press Return, instead of sending Control-M as it does in most other protocols.
PuTTY emulates xterm which emulates vt100. To have putty send CR/LF when pressing enter, type ESC[20h in putty after connecting to the serial device. This sets VT100 LNM true.
PUTTY METHOD#3
Sending CR+LF is possible in modified PuTTY. Source code is available at
https://github.com/gniemirowski/putty-crlf and Windows binary at
https://www.grzegorz.net/pliki/putty-crlf.zip When you run this version just go to Terminal -> Keyboard and select "CR LF" for "The Enter key" option.
===========================================
'CTRL + m' CR 13 or 0D
'CTRL + j' LF 10 or 0A
===========================================
COOLTERM
http://freeware.the-meiers.org/CoolTermLinux32Bit.zipOpen: a Terminal window
Type: 'sudo chmod -R 777 /dev/ttyUSB0'
Enter: [password]
Run CoolTerm
- Speed: 115200
- Data: 8
- Stop: 1
- Parity: None
- Flow Control: None
Select Connect
===========================================
INSTALL PUTTY CR-LF
1. Delete all the putty files from any previous install attempts on the laptop, if exist.
2. sudo apt-get install build-essential libgtk-3-dev
3. git clone
https://github.com/gniemirowski/putty-crlfcd putty-crlf
./mkauto.sh
./configure --disable-git-commit
make
4. Run new putty-crlf:
cd putty-crlf
./putty
===========================================
CREATE BASH SCRIPT - serial.sh
path to serial.sh: /home/username/
touch /path/to/serial.sh
chmod a+x /path/to/script.sh
'mcedit /path/to/script.sh' and paste this code:
#!/bin/sh
echo logan | sudo -S chmod -R 777 /dev/ttyUSB0
/path/to/putty-crlf/putty
==========================================
TERMINAL
/home/username/serial.sh
LAUNCHER
/home/username/serial.sh
==========================================
I hope the above is of use to you. Whatever method I use, I always have to enter ctrl+m and ctrl+j after each command to get the MBB to respond. I don't know why. I maybe a Linux thing. I'm going to try the above using a windows 10 laptop. I'll let you know how I get on. Thanks to all of you for your help on this forum.
Cheers
Gary