Serial Terminal for Pi Zero?
Tristan M. (2946) 1039 posts |
Hi everyone. Anyway I’ve been looking high and low for a serial terminal program. All I want is a terminal that lets me talk to the UART pins. I’ve already given it the GPIO and PiSerial modules. A terminal is pretty much step 0 for getting the hardware up and running. While I’m at it, because it may well not be the incorporated, is there an X/Y/Zmodem application floating around? Currently the UART has an HC-06 Bluetooth slave module plugged into it. In Raspbian I use it to access the serial tty. In RISC OS it does nothing of course. I’d like to use the UART for initially transferring files (or SLIP/PPP if I’m feeling adventurous), and after that swap it out for an esp8266 WiFi module, which is where the serial terminal really comes in. Of course I can do the last bit in Raspbian but it involves editing files before and afterward to disable and re-enable the serial tty. If anyone can help me, please let me know. I’d even be happy with a BASIC listing if it can handle 115kbaud, and has an easy way to change baud rate. Thanks again in advance. |
Bryan Hogan (339) 592 posts |
Info in this thread might help: |
Ronald May (387) 407 posts |
Currently the UART has an HC-06 Bluetooth slave module plugged into it If you intend to leave that connected, you could check out the recent developments on this forum for USB serial adapters, there is support for several types and a simple 115200 terminal for testing or building from the source. |
Ronald May (387) 407 posts |
duplicate removed |
Ronald May (387) 407 posts |
Duplicate removed, I’m wondering now if duplicates are made by multiple presses of the save key? |
Colin (478) 2433 posts |
If you just want some program to test with I’ve modified the demonstration !SerialTerminal program that comes with my SerialUSB module to work with all serial devices – not just USB ones. If you want to change the baud rate or word format you will have to change it in the program and recompile. Just keep running the program until the serial device of your choice gets opened and then close the other windows. |
Matthew Phillips (473) 721 posts |
If you are looking for a general terminal application, David Pilling has made Hearsay available free: I don’t know whether it does what you need or could be adapted to do so. |
Mike Freestone (2564) 131 posts |
Also !Connector updated and covered in the 2nd news story on the rool front page |
Tristan M. (2946) 1039 posts |
Well, I feel silly. I spent ages looking for the updated version of !Connector. I’d even read that article previously yet somehow missed it. I’ve been doing some troubleshooting. I’ve narrowed it down to something in RISC OS. Ie. I’ve probably done something wrong. There was however one point where I managed to get one directional communication between putty on the PC and !Hearsay. I could get characters typed in putty to appear in !Hearsay but not the other way round because it had that telnet address / port prompt. !Connector sees the PiSerial driver which I have selected. I tried a simple loopback by removing the HC-06 and bridging RX and TX with a DuPont wire. The !Loop test program I found buried in PiSerial reports a Data Lost error. Trying to type characters in !Connector didn’t appear to be doing anything at first either. It appears !Connector has a window redraw issue. If I scroll the window or use another window to “paint over” it I can see the output. It appears to fill the buffer with the last character typed. I’d really appreciate some further feedback on this. I have a USB-Serial module. Trouble is I’ve searched everywhere and can’t find my null modem cables so I never pursued that option. I know they are somewhere… I’m contemplating connecting my recently repaired Arduino Mega R3 workalike up to the UART via a level converter of course to use it as a smart sniffer to tell me what’s coming in and out. Colin, I’d be interested in that program. While I’m no stranger to computers and electronics, RISC OS is new to me so I have no clue how to talk to serial devices yet. |
Tank (53) 375 posts |
Tristan, at present there is no support for Pi Zero in the HAL device, so the PiSerial module doesn’t know what hardware its running on. |
Tristan M. (2946) 1039 posts |
Thanks everybody for the information so far. I don’t have much time I can allocate to “play” so my replies are pretty slow. Sorry about that. Tank, I appreciate your input. That really does explain a lot. My memory is pretty hazy but I recall I typed something in to the CLI that gave me feedback on the Pi model. I remember it detected some other version. Possibly it was the Mk2 B. Colin, incredibly stupid newbie question, but where do I put the SerialUSB module? I’m still feeling my way around. Beginner information is really hard to come by! |
Colin (478) 2433 posts |
Ah right well here are your options. 1) If you just want to temporarily test it out just double click on it. 2) You can load it with your program If your program is !MyProg (which is actually a directory – shift double click to open it), inside !MyProg you have an ‘obey’ file called !Run, the SerialUSB module and your executable program which you call !Runimage. The !Run file will look like this
The first line sets the minimum amount of memory your program will run in. The second line copies the full path of the directory containing the !run file to a system variable for you to use in you program as required to access resources in your !Myprog directory. line 3 checks if version 0.07 or later of SerialUSB is already loaded and loads the version in your application directory if it isn’t. The 4th line runs your program. So when you double click on !MyProg <obey$dir> is the full path name of the directory containing the obey file. By using this your application can be put anywhere and it will still work. There are other ways like putting it in !boot.choices.boot.predesk and it will be loaded when you boot but loading it with your application ensures it will work for anyone if you give them your app. Edit: If !Runimage is something you want to run in a task window make !Run a TaskObey file instead of an Obey file |
Tristan M. (2946) 1039 posts |
I really have to stop tiredposting. Sorry about that. e: As I read through the book, Tank’s asm is slowly starting to become more meaningful to me too. |