Central MN, USA
Offline
Faraday Member
Karma: 38
Posts: 6050
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« on: June 23, 2011, 03:22:22 pm » |
I am thinking about developing an ASCII text console program that can be addressed with serial port and displays on an LCD. It will be similar to the serLCD sparkfun sells except it still needs an arduino to control. So if you have a project that needs input and output, you can connect your arduino to this console (1 arduino + 1 lcd button shield). You then use it as a serial output and dumps output on it. It will also support as many as possible control characters for formatting (form feed, new line, carriage return, tab, backspace, maybe even bell, but certainly escape sequence for future functions). For other characters it will just print out, wrap to next line, then scroll up screen if cursor goes beyond bottom right corner. Then in the future, you can press the keys on the pad and the console relays back the keys pressed via serial to the arduino. This will be a very easy interface any project can have by spending only two I/O lines.
Does this sound like a useful thing to anyone?
For old timers, any input on how the old terminals / consoles do this type of stuff?
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 38
Posts: 6050
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #1 on: June 23, 2011, 10:42:16 pm » |
OK, got it working with most functions I planned. Does anyone know a good and free hyper terminal I can use to connect to it? I want to be able to send /r and /n as I need so the Arduino serial monitor is not good enough (unless I don't know how to). I also implemented back space and line feed so I definitely need something better than Arduino serial monitor. I use vista so the hyper terminal has been removed by MS and I'm using a trial license with 29 days left  Any suggestions?
|
|
|
|
|
Logged
|
|
|
|
|
'round the world...
Offline
Edison Member
Karma: 21
Posts: 2385
|
 |
« Reply #2 on: June 23, 2011, 11:34:22 pm » |
Any suggestions?
Changing the date on your computer and hope it stops counting the days? TeraTerm?
|
|
|
|
|
Logged
|
Eu não sou o teu criado. Se respondo no fórum é para ajudar todos mediante a minha disponibilidade e disposição. Responder por mensagem pessoal iria contra o propósito do fórum e por isso evito-o. Se realmente pretendes que eu te ajude por mensagem pessoal, então podemos chegar a um acordo e contrato onde me pagas pela ajuda que eu fornecer e poderás então definir os termos de confidencialidade do meu serviço. De forma contrária toda e qualquer ajuda que eu der tem de ser visível a todos os participantes do fórum (será boa ideia, veres o significado da palavra fórum). Nota também que eu não me responsabilizo por parvoíces escritas neste espaço pelo que se vais seguir algo dito por mim, entende que o farás por tua conta e risco.
Dito isto, mensagens pessoais só se forem pessoais, ou seja, se já interagimos de alguma forma no passado ou se me pretendes convidar para uma churrascada com cerveja (paga por ti, obviamente).
|
|
|
|
Phoenix, Arizona USA
Offline
Faraday Member
Karma: 30
Posts: 5123
Where's the beer?
|
 |
« Reply #3 on: June 24, 2011, 12:56:01 am » |
|
|
|
|
|
Logged
|
|
|
|
|
Netherlands
Offline
Tesla Member
Karma: 101
Posts: 9551
In theory there is no difference between theory and practice, however in practice there are many...
|
 |
« Reply #4 on: June 24, 2011, 04:25:54 am » |
Not exactly what you are after but I recently bought this one - http://microvga.com/ - and although it needs a hardware handshake for the higher baudrates (still experimenting with it) it gives me an 80x25 terminal! and I have keyboards and old monitors enough in my personal scrapheap. It will enable me to show the state of all sensors I have in one screen (not userfriendly maybe but that is another question;)
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 334
Posts: 36449
Seattle, WA USA
|
 |
« Reply #5 on: June 24, 2011, 07:54:48 am » |
Does anyone know a good and free hyper terminal I can use to connect to it? I want to be able to send /r and /n as I need so the Arduino serial monitor is not good enough (unless I don't know how to). The beta 1.0 version of the IDE has a drop down box on the bottom of the Serial Monitor window that allows you to choose what to append to each string sent. Carriage return, carriage return and linefeed, nothing...
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 38
Posts: 6050
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #6 on: June 24, 2011, 02:28:46 pm » |
Thanks Paul. I haven't checked out 1.0 IDE yet  I'm on 0022. What I want is a real dummy terminal that relays every key press to the serial port, including tab, and back space or even ctrl. Remember the old-school BBS system? I want to do that on this tiny screen, maybe using escape sequence to attach to my phi_prompt library so if the host (arduino/main frame) sents out \esc yn_dialog "Destroy stupidity?" \n then the terminal (arduino + Phi-2 shield) will show a yes/no dialog and prompts the user to choose an answer and relays back to host so the host just needs 2 I/O lines to use screen, keys, and all possible and expandable interactive functions via escape sequence. BTW, I tried realterm - crashed and burnt on vista 64bit termite - too simple not relaying every key press but like Arduino IDE serial monitor (ie, you press enter and it relays everything in a bunch, no back spaces or else) Tera Term - will try in the afternoon thanks cr0sh putty - heard of it will try afternoon thanks bubulindo Rob, that is nice find. I believe either you or someone else linked to that uVGA a while ago. I want to do something similar but less awesome. On the other hand, mine will have onboard display and some keys and possibly a ps/2 for key board in the future. This pad I envision will be plugged in an arduino project and provide input (key pad and choices via TUI) and output (LCD, LED indicators, and buzzer) in one package and consumes 2 I/O lines only, wouldn't that be nice? I'll start working on escape sequence. Anyone with old-school BBS experience or other ASCII terminals with escape sequence experience give me a pointer please! I want to make the escape sequence as close to any historically significant system as possible. One is to get their blessings from their holy graves, two is if that scenario has been used then probably someone straightened out most kinks already. 
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 38
Posts: 6050
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #7 on: June 24, 2011, 05:24:07 pm » |
putty is pretty good with all features I needed to test out my code. Just one problem, it only sends \r when I press enter, no option to change it. I can live with it (do ^M then ^J for \r and \n manually)
I can also see what escape codes it sends for F1-F12, arrow keys and else. At least I'm getting some most common escape sequences.
Also I can resize the screen to 20X4, sweet!
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 22
Posts: 1374
|
 |
« Reply #8 on: June 24, 2011, 07:20:05 pm » |
Why do you say that the serial LCD Sparkfun sells needs an Arduino? They are stand-alone and don't need anything else to work
@PaulS & liudr, that drop-down box is on 0022 aswell Just use Coolterm, uses post 2000 technology, has a clean interface and raw and ascii view, selectable enter representation, etc Putty lacks some key functionality as a serial terminal, and the others where before 2000 when last updated
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 38
Posts: 6050
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #9 on: June 24, 2011, 07:37:36 pm » |
Why do you say that the serial LCD Sparkfun sells needs an Arduino? They are stand-alone and don't need anything else to work
@PaulS & liudr, that drop-down box is on 0022 aswell Just use Coolterm, uses post 2000 technology, has a clean interface and raw and ascii view, selectable enter representation, etc Putty lacks some key functionality as a serial terminal, and the others where before 2000 when last updated
My panel, utilizing the phi-2 shield hardware with 20X4 display, will need an arduino, not sparkfun serLCD. It will be similar to the serLCD sparkfun sells except it still needs an arduino to control. Although, I can just integrate a 328 on it to become standalone panel. Then the difference will be: mine has larger display, buzzer, LED indicators and keys  I'll try Coolterm. Yes, Putty can't change what it sends when you press enter.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 22
Posts: 1374
|
 |
« Reply #10 on: June 25, 2011, 05:52:39 pm » |
I still don't know why you have to put a 328 to the serLCD to work, they have a PIC controller, so it would be similar to the shield+arduino you are designing, although yours will have more functionalities as you say. 
|
|
|
|
|
Logged
|
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 38
Posts: 6050
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #11 on: June 25, 2011, 06:37:53 pm » |
"It" meant my solution, not serLCD. You read my post think "it" meant serlcd. Miscommunication
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 22
Posts: 1374
|
 |
« Reply #12 on: June 26, 2011, 06:14:00 am » |
Ops! Sorry for that, now everything is clear
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
UK
Online
Brattain Member
Karma: 143
Posts: 19368
I don't think you connected the grounds, Dave.
|
 |
« Reply #13 on: June 27, 2011, 05:39:41 am » |
that relays every key press to the serial port, including tab, and back space or even ctrl "Ctrl" is a modifier like "shift", and is not sent by a serial terminal as a separate code.
|
|
|
|
|
Logged
|
Pete, it's a fool looks for logic in the chambers of the human heart.
|
|
|
|
Central MN, USA
Offline
Faraday Member
Karma: 38
Posts: 6050
Phi_prompt, phi_interfaces, phi-2 shields, phi-panels
|
 |
« Reply #14 on: June 27, 2011, 08:48:53 am » |
that relays every key press to the serial port, including tab, and back space or even ctrl "Ctrl" is a modifier like "shift", and is not sent by a serial terminal as a separate code. Right!
|
|
|
|
|
Logged
|
|
|
|
|
|