Hello again
I'm thinking of making a PIC terminal.
It'd take commands from a PC via serial, display them on serial, process data(ex: from sensors) and then perhaps send them back to the PC.
What's new to me is the command interpreter part of the software.
Commands would be structured something like this
$PPCCAABB
$-adress the uC
PP-command prefix, ex CM for command, SU (for set-up) to set options, MD (mode select)
CC-command code
AA-1st param (optional)
BB-second param (optional)
Does anyone know of a documented attempt of doing this? I'd REALLY like some inpiration
Well you can create your own terminal very easily, you first need to set up a rs232 serial link between a pic and Hyperterminal on your PC.
(if you have a Pickit2 you can even use its Eusart Tool to simulate the PC without all the extra rs232 hardware)
Once you have established basic communication then its down to you what code you send from the PC and how you receive and interpret them on the PIC.
Just search for the many Pic RS232 turotials and start from there.
Thank you!
That looks like one of the most complete tutorials on RS232 I've seen so far...
wp100 said:
Hi,
Well you can create your own terminal very easily, you first need to set up a rs232 serial link between a pic and Hyperterminal on your PC.
(if you have a Pickit2 you can even use its Eusart Tool to simulate the PC without all the extra rs232 hardware)
Once you have established basic communication then its down to you what code you send from the PC and how you receive and interpret them on the PIC.
Just search for the many Pic RS232 turotials and start from there.
Commands would be structured something like this
$PPCCAABB
$-adress the uC
PP-command prefix, ex CM for command, SU (for set-up) to set options, MD (mode select)
CC-command code
AA-1st param (optional)
BB-second param (optional)
Does anyone know of a documented attempt of doing this? I'd REALLY like some inpiration
This looks similar to parsing the data from a NMEA183 sentence (i.e., $GPWPL,4917.16,N,12310.64,W,003*65) coming out of a GPS unit. I've done this in various flavors of BASIC before, but not in C. In PicBasic Pro (and even with the old Basic Stamp 2) it was dead easy.
Google "gps parse nmea" and I think you'll find something to start with, then go from there.