Problems with terminal
I'm having a bugger of a time trying to communicate with the propeller over the P30/P31 serial port on USB. Is there a trick to it?· I'm using HyperTerminal in Windows.
Also, just a suggestion for the next version of Propeller Editor/Developer.· Why not add a menu item to open a terminal window on the same USB port?· Wouldn't that be convenient?
Ken
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
----
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Also, just a suggestion for the next version of Propeller Editor/Developer.· Why not add a menu item to open a terminal window on the same USB port?· Wouldn't that be convenient?
Ken
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
----
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Not sure exactly what you are doing, but the Parallax-DAQ has been working pretty good for me. It's an excel spreadsheet with macros that Parallax set-up. It really is a lifesaver for me who knows too little about VB. If you're just showing values, it may not be so good though... But, if you have a stream of data, it's awesome!
-Luke
I have a Rogue Robotics MP3 player that I'm controlling through the serial port on a different set of pins, and that works! By the way, does anyone know of any similar products out there?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
----
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Or you could just use the base chip for both those board on a custom board.
www.vlsi.fi/vs1033/vs1033.shtml
But I don't know of any other mp3 decoder chips or boards.
-Kit
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
http://www.datasheetcatalog.com/datasheets_pdf/M/A/S/3/MAS35X9F.shtml
The MAS 35x9F is a single-chip, low-power MPEG
layer 2/3 and MPEG2-AAC audio stereo decoder. It
also contains the G.729 Annex A speech compression
and decompression technology for use in memorybased
or broadcast applications. Additional functionality
is achievable via download software (e.g., CELP
voice decoder, Micronas SC4 (ADPCM) encoder/
decoder).
I found this chip in my Cybiko Xtreme MP3 player. It's laying in my parts bin just begging to make it work with the propeller! Since the company folded and the batteries are dead, parts are all the Cybiko is good for anymore.
You can see the code. It's the Monitor Demo that comes with the prop. Only thing I modified is to try different baud rates. All I wanted to do is verify that the com port works before using it to debug my software, but I didn't get past that.
Ken
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
----
The more I know, the more I know I don't know.· Is this what they call Wisdom?
First of all... I'm a mac guy. We don't have terminals on macs... no serial ports... no need for terminals. (Ok... we got them... but nobody uses them and you have to search for them to find them). So, it was a real treat to find something on the Windows side that isn't readily available on a Mac... usually it is the other way around.
I had a similar problem... my terminal program was working. I didn't use it for a week or two... forgot what I was doing and didn't know what I forgot.
First, put everything in your code back to the way it was... use multiple Ctrl-z to do your multiple undo-s.
Then see if it works... remember to load to your code into your eeprom... so you can run it automatically on reset.
Then start the terminal.
If it doesn't work... you have a setting problem.
There is a nice ... fully illustrated, step-by-step description for setting up the terminal in one of the first Propeller Education Kit labs... You probably have a setting wrong...
Remember to "echo" to the screen. That's a setting somewhere, which I forgot to set... and now that I have it set right, can't remember where it is[noparse]:)[/noparse]
Rich
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
----
The more I know, the more I know I don't know.· Is this what they call Wisdom?
You also have to be using the same COM port that the Spin Tool reports as it is downloading your program to eeprom of your Propeller (hit the F11 key to download to the eeprom).
Work? I didn't know anyone worked anymore[noparse]:)[/noparse]
By the way... the Propeller is addictive and I am happy to report that Suboxone is totally ineffective against it.
Rich
Yeah, I checked the com port. I chose "Identify Hardware" F7 to see what port the Spin Tool is using. So it's not that, but it still might be something obvious!
Ken
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
----
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Example: I send the "version " command which is V<cr> on the tx line to the mp3 player, then I copy the response from the rx line character by character to the display using tv_text.out(c). With Full Duplex Serial, I get the proper response "110.10 SN:UMM1-0000-0001" but if I use simple serial, I get garbage on the screen instead.
some code:
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
tx_pin = 0
rx_pin = 1
prompt = $3E
CR = $0D
OBJ
serial_u : "simple_serial"
tv_text : "tv_text"
PUB start | c
serial_u.start(rx_pin, tx_pin, 9600)
tv_text.start(12)
serial_u.str(@version)
repeat
c := serial_u.rx
if c <> -1
tv_text.out(c)
until c == prompt
DAT
version byte "V", CR, 0
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
----
The more I know, the more I know I don't know.· Is this what they call Wisdom?
It's a simple command / response interface with no unsolicited messages from the player, so I hope I can make this work somehow without having to use a cog.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
----
The more I know, the more I know I don't know.· Is this what they call Wisdom?
If you're looking to use your serial debugging from multiple cogs/objects, I would suggest SerialMirror. I am using it now on my project and it's great. Basically it is a modified FullDuplexSerial object, so most of the functions will be the same. The comments contain a little example of how you could use it.
This is the documentation section from it:
If you have questions, don't hesitate to ask. SerialMirror can be downloaded from here
Gr,
Mightor
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
| To know recursion, you must first know recursion.
Post Edited (Mightor) : 8/18/2007 6:07:29 AM GMT
Ken
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
PUB
· ...
· i := 0
· serial_u.str(@version)
· repeat
· until (inbuf[noparse][[/noparse]i++] := serial_u.rx) == ">"
· inbuf[noparse][[/noparse]i-1] := 0
· tv_text.str(@inbuf)
· ...
DAT
······· version········ byte··· "V", CR, 0
I intend to keep reading into a buffer until I get a ">" character.· I get the first 2 or 3 characters OK, but the rest is garbage.·
Ken
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Just a thought, what does your board use for a serial connection? If you are trying to use the simple transistor circuit then it won't work with standard serial coms programs as the DTR is taken positive by coms programs. There is a very simple fix for this.
For terminal software I always use Teraterm as it supports baud rates up to 921600, com ports up to, and also TCP/IP connections. It also includes a debugging mode and has very high throughput (i.e. it keeps up with the traffic).
*Peter*
EDIT: I didn't read the original question!!! The answer is 'NO' -- I used 3 cogs for 3 RS232 channels...
Yes, I've successfully used 3 instances of a FullDuplexSerial. Well, technically, one instance of the FullDuplexSerial object (for debugging on pins 30/31 via my Prop Plug) and 2 instances of the Extended_FDSerial (on pins 12/13 and 14/15 via a MAX232).
I am running all 3 RS232 ports @ 9600N81.
I will say that I have made the very same mistake that Paul cautions against below [noparse][[/noparse]er, above]: But I see from your posted snippet that you are setting the clock properly.
And if all else fails, reboot your PC.
-Wayne
Post Edited (Wayne Bartnick) : 8/22/2007 10:51:27 PM GMT
Do you understand the ping-pong multitasking in the machine code part ...*shudder*
Well it IS possible to extend it to another pair of pins... max bit rate will be cut by halves of course.
Cheers!
BTW: Is anyone using the propeller in mass production yet? I'm looking at proposing to use it for an automotive product, but everyone I work with is wide eyed and shaking their heads!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
Just interested, what would you define as the minimum requirements of a CPU for automotive product?
*Peter*
- robustness (especially temperature, not fomally but factually better than MIL!!)
- low price
- existing know-how in engeneering staff
The last one is a vicious circle...
deSilva, what do you mean by formal? Running the ESC demo from cold start at -73 C and 190 C isn't enough formal testing to prove the chip operates well beyond MIL spec temps? There is no other real world application that better tests the capabilities of the chip than the demo: hub access, spin execution, assembly execution, counters, PLLs, video generators are all being excercised in the chip. If what you are looking for is to see in in print, just wait a little while until I rev the datasheet from preliminary to non-preliminary, but I can tell you now it will be rated for military temp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.
Add this to your list:
- history
Nobody in Automotive trusts anything unless it's been done before. Somebody has to be first, but no one seems to want to be!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The more I know, the more I know I don't know.· Is this what they call Wisdom?
They will or will not require the parts fulfil MIL standards. What they want is that the parts do better, known from their own long time experience!
You see a car is a much worse environment than an aircraft or any "military" item can be. Aircrafts are very regularly maintained. The electronic parts are held in compartments luxuriously climatized by oversized fans. Most or even all are double or tripple redundant. Pilots will never really stress their aircrafts for fear of loosing their licence.