Parallax Forums
  HomeLog InRegisterCommunity CalendarSearch the ForumHelp
   
Parallax Forums > Public Forums > Propeller Chip > Updated: the PropTerminal  Forum Quick Jump
 
New Topic Post Reply Printable Version
105 posts in this thread.
Viewing Page :
 1  2  3  4  5 
[ << Previous Thread | Next Thread >> ] | Show Newest Post First ]

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 495
 
   Posted 5/9/2007 5:24 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Hi all, after many nights of work, I will present you my Propeller Terminal.

The PropTerminal is not just another Terminal-program for a PC. It is specially made for the Propeller
in such a way, that it can emulate a keyboard, mouse and TV-Text-Display with the PC.
If you use a PropStick, or, like me, the Propeller chip direct on a breadboard, it can be
very handy to use this emulation instead of connecting the real PS2-devices and a TV or VGA-Monitor.
You only need the serial (USB) connection with P30 and P31 and have all other Pins free for other
purpose. It can be also very usefull to get a second Display for debugging, I used it for example
with POD to debug assembly code (see appended screenshots).
To easy include the Emulation in existing spin applications, I adapted the original drivers for
keyboard, mouse and text display in such a way that they communicate over the serial interface
with the terminal. You only have to replace the driver-objects in the OBJ section, and mostly
it will work. It is also possible to mix real and emulated devices, for example use PropTerminal
as keyboard and mouse, and a real TV as Display.

Because PropTerminal has to share the COM-Port with the Propeller Tool, I implemented a special mode
that allows fast switching between the two applications. Every time the PropTerminal is minimized
to the Taskbar, it closes the COM-Port and the Propeller Tool can download the new code. When
finished, you click on PropTerminal in the Taskbar, then the Window and the COM-Port opens again.

Other features of PropTerminal are:
- included loader for binary files
- displays the special propeller-font characters
- can also draw some simple graphics

What is not possible:
- keystate methode of keyboard object not yet supported (used often by games)
- no direct emulation of Graphics object, only Text
- not the original color palette

The actual PropTerminal is a Beta-version for Windows. I have tested it only on one single computer
with a swiss-german keyboard layout. So I don't know how good it is working on other computers,
OSes, keyboard-layouts etc.... Try it out and let me know your impressions.

Andy

Attached is now also the new version 0.4 of PropTerminal.
See posting on page 2 for the new features.

Post Edited (Ariba) : 10/20/2007 1:47:24 AM GMT


Image Attachment :
Image Preview
ShotTerminal.gif
  9KB (image/gif)
This image has been viewed 1424 time(s).

File Attachment :
PropTerminal_0.3.zip   104KB (application/zip)
This file has been downloaded 514 time(s).

File Attachment :
PropTerminal_0.4.zip   94KB (application/zip)
This file has been downloaded 725 time(s).
Back to Top
 

Basil
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2006
Total Posts : 305
 
   Posted 5/9/2007 5:40 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
This is great! I was dreading having to write my own similar program for debugging.

Will try it out as soon as I have my board finished :) Looks good though!
Back to Top
 

mynet43
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 338
 
   Posted 5/9/2007 6:53 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
I tried your demo routines. They all worked without a problem.

The only suggestion is that you might want to include a keyboard cursor.

Keep up the good work!
Back to Top
 

Kaio
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 194
 
   Posted 5/10/2007 4:17 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Andy,

looks very nice. It's a great work of a little tool which is easy in use. But if you'd have told me that you are working on this, I did not spend so much time to make POD usable over serial connection. smilewinkgrin

On your homepage you has mentioned that the color palette could be configurated in a PropTerminal.ini, but you don't have described the format for this. Please can you provide this information.

I'd wish that you might want to support any kind of TV resolution, so the user could define his own size of screen. Currently your tool supports only a size of 40x13.
Another nice feature would be if your tool could also emulate a VGA display and this in any kind of resolution. Then we could be develop programs for the Propeller only with a Prop board and a PC/notebook.

Did you are interested to discuss possible features feel free to PM me. I like more to write in german too.

Thomas

Post Edited (Kaio) : 5/10/2007 12:29:31 PM GMT

Back to Top
 

simonl
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2006
Total Posts : 721
 
   Posted 5/10/2007 4:23 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
WOW, this should be part of the Propeller IDE!

Ariba: You've included the binary file loader - would you consider creating a standalone (command line?) exe that only does the loading? There are LOADS of us who've been asking for such a utility for AGES...

Thanks for sharing :-)


Cheers,
Simon

BTW: I type as I'm thinking, so please don't take any offense at my writing style :-)

-------------------------------
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)

Back to Top
 

Gerry Keely
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Nov 2006
Total Posts : 38
 
   Posted 5/10/2007 4:36 AM (GMT -8)    Quote This PostAlert An Admin About This Post.

You can run program from the commandline to download binaries. See "Readme.txt"

 

Gerry

Back to Top
 

simonl
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2006
Total Posts : 721
 
   Posted 5/10/2007 4:51 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Hi Gerry,

Yeah, read that too, but it seems that it uses the PropIDE to achieve it. Ariba's notes suggest that it might be possible to do it completely standalone though :-)

The reason I, and others, would like this functionality is so we can deliver firmware updates (in binary) without the end-user needing to install the IDE.


Cheers,
Simon

BTW: I type as I'm thinking, so please don't take any offense at my writing style :-)

-------------------------------
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)

Back to Top
 

Baggers
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 1773
 
   Posted 5/10/2007 5:56 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Hi Ariba,
Nice App :)
I was wanting to do some deving without a tv out, ie on my laptop and since it doesn't have AV in, it's a tad awkward, but this is great, thanks for the neat app.
I'm sure lots of others will use it too.
And putting them all onto one cog, perfect :)
I look forward to any advances you make on it.

Baggers.
Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 495
 
   Posted 5/10/2007 2:33 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
I'm glad to hear that it works well.

@mynet43
The next version will have a Text Cursor, switchable on and off in the menu.

@Kaio
I does not know, that you work on a serial version of POD, (I will send you a PM in the next days because of my next project..).
To get a INI-file, click on Save Settings in the menu. The created file is PropTerminal.ini and there you will find the RGB values for each of the 8 colors in the palette (format is $GGBBRR). You can also change the size of the Terminal window to others then 40x13 by changing the parameters cols= and rows= !
I don't have used VGA until now, is there a difference between TV_Text and VGA_Text (exept the size of 32x15)?
I think I have to add also a 'Load Settings' in the menu, to switch easy between different sizes, and colors.

@simonl
PropTerminal.exe can be used as download-tool without the IDE (Propeller Tool). But currently it loads the binary only into the RAM, I think to use it as update-tool you will write in the EEPROM. To download a file in the RAM, call this:

PropTerminal.exe filename.binary -L COMnr


Andy
Back to Top
 

Paul Baker
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 6316
 
   Posted 5/10/2007 2:44 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
simonl said...
WOW, this should be part of the Propeller IDE!

Something akin to this is in development, he has just been pulled away by other more pressing issues recently.

Andy, he says your method of COM port negotiation is very clever.


Paul Baker

Propeller Applications Engineer

Parallax, Inc.

Back to Top
 

Kaio
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jan 2007
Total Posts : 194
 
   Posted 5/11/2007 1:27 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Andy,

I have played yesterday with POD and your PropTerminal and have found how I can create the PropTerminal.ini. I have also found that you support any kind of TV resolution. Anyway thanks for your explanation about this.

The usage of PropTerminal for POD is for a user more comfortable than the Basic Stamp Debug Window which I have tried to use before, also while the Debug Window does not support colors.

Thereby I have found that PropTerminal does not work properly with Ctrl-character sequences, e.g. when I have tried Ctrl-H I got $2C8 instead $268. But Ctrl-Fkey works fine.

Ariba said...

I don't have used VGA until now, is there a difference between TV_Text and VGA_Text (exept the size of 32x15)?

I think the text mode of VGA, except HiRes text, could be emulated in the same manner as TV mode. The others VGA drivers uses a bitmap to display. This would require another concept of communication and large effort to realize it. I don't know if these effort would be warrantable.

I have also tried your background watch which I have found on your homepage. This is the tools I was looking for to observe variables in realtime in my spin code. Many thanks for sharing. jumpin

I'm glad to hear from you in PM and be excited about your project.

Thomas
Back to Top
 

simonl
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2006
Total Posts : 721
 
   Posted 5/11/2007 3:22 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Ariba: Thanks for the info. Do you have any plans to get the download to programme EEPROM?

Paul: Yeah, Ken indicated he'd be working on a standalone loader early last year. I guess I'm just getting a little frustrated at the extended wait :-(


Cheers,
Simon

BTW: I type as I'm thinking, so please don't take any offense at my writing style :-)

-------------------------------
You'll always have as many take-offs as landings, the trick is to be sure you can take-off again ;-)

Back to Top
 

Paul Baker
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 6316
 
   Posted 5/11/2007 9:32 AM (GMT -8)    Quote This PostAlert An Admin About This Post.

Jeff, the programmer, is impatient to get it done as well. But he is the product owner of the entire Stamp line and there have been some QA issues that he has had to deal with. Making sure manufacturing is running smoothly always takes precedance over development. 


Paul Baker

Propeller Applications Engineer

Parallax, Inc.

Post Edited (Paul Baker (Parallax)) : 5/11/2007 6:13:46 PM GMT

Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 495
 
   Posted 5/11/2007 11:20 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Paul Baker said...

Something akin to this is in development, he has just been pulled away by other more pressing issues recently.
Andy, he says your method of COM port negotiation is very clever.

Thanks to him for the compliment :)
Can you say me what exactly is in development? A Terminal window as part of the IDE or a standalone Downloader or both?
This will have some influence to my future plans with PropTerminal.

Kaio said...

Thereby I have found that PropTerminal does not work properly with Ctrl-character sequences, e.g. when I have tried Ctrl-H I got $2C8 instead $268. But Ctrl-Fkey works fine.

Thomas,
You're right this is a bug. I will change this in the next version. I let Windows do the translation from VirtualKeycodes to Ascii, but if Control is pressed it seams to produce other codes (the F-Keys have no ASCII value, so I have programmed the translation for that by myself).

@simonl
Yes I will add download to EEPROM in the next version (I have extended the code today for that, but I can't test it, I have to order a EEPROM first!). I have plans to include some fuctionality that PropTerminal can be used as a Installer/Updater with User-Interaction. But I think if this will be used for commercial products, it can't be totaly free (gratis).

Andy
Back to Top
 

Paul Baker
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 6316
 
   Posted 5/11/2007 12:49 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Andy,

He is working on a terminal (sorry I missed the fact your program can do stand alone downloads, this feature isn't currently in development). He is working on the underpinnings of an extensible (by us) interface that is integrated with the PropTool but also availible in a stand alone configuration. Originally it will only support a terminal functionality, but there are plans to incorporate various graphics modules. Part of why it is taking so long is that he has thought about everything that can be occuring even making sure that if a user program switched clock frequencies the system will still work.


Paul Baker

Propeller Applications Engineer

Parallax, Inc.

Back to Top
 

Oldbitcollector
Professional Stuntman



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 3367
 
   Posted 5/11/2007 6:29 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
This is likely a newbie question, but (since I'm new) what is the setup for the left-hand image of the
Parallax Digital Storage Scope reading? Would that be the USB scope offered by Parallax?
The output looks extremely useful for some of my projects.

Oldbitcollector


The comments and code above are proof that a million monkeys with a million propeller chips *could* write Shakespeare!

Back to Top
 

Paul Baker
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2004
Total Posts : 6316
 
   Posted 5/11/2007 6:33 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
It's an application I released, and is availible here: http://forums.parallax.com/forums/default.aspx?f=25&m=145310
 
Since it is an application and not an object, it doesn't have a home yet. At least until I create a couple more and we can justify making a dedicated place for it.


Paul Baker

Propeller Applications Engineer

Parallax, Inc.

Back to Top
 

Oldbitcollector
Professional Stuntman



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 3367
 
   Posted 5/11/2007 6:41 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Wow.. I'm blown away.. Thanks for posting this, perhaps it should be added to the "Good Thread Index"

Oldbitcollector


The comments and code above are proof that a million monkeys with a million propeller chips *could* write Shakespeare!

Back to Top
 

Graham Stabler
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2006
Total Posts : 1730
 
   Posted 5/15/2007 4:38 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
added to index
Back to Top
 

codemonkey
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 34
 
   Posted 5/20/2007 9:29 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
This looks like a really, really cool tool, if i could get it to work (i suspect hdw issue [isn't it always a hdw problem?]). So, my first try was on a dell latitude (xp pro up-to-date) to a prop usb thingie (as com4) and while proptool works just fine, propterm gets a checksum error. So, i loaded eeprom with proptool and then with propterm up hit the reset button (on a bare proto board i.e. no mouse, kbd, etc) hoping to get a message, then nothing happened. So, i motored on over to a compaq (xp home up-to-date) and tried the same thing with almost the same result. I did get the checksum err, but then resetting the protoboard produced the attached message (it should read "starting"). Everything in propterm is at the default. After a number of attempts i finally got it to verify ram, but always am receiving the wrong "text". I then messed with the baud rate in pc_text but it didn't seem to have much effect. Any ideas? TIA roll

Image Attachment :
Image Preview
propterminal gibberish.jpg
  7KB (image/pjpeg)
This image has been viewed 256 time(s).
Back to Top
 

Ariba
Registered Member



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 495
 
   Posted 5/20/2007 10:41 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Hello codemonkey

There are some problems with the Loader of PropTerminal. I work on that, and I hope I have found the solution.
If you want, you can download a preliminary version of PropTerminal.exe from the next release, and give me some feedback about the loader. This file is only temporary on my website, I will delete it in some days.

http://www.insonix.ch/propeller/prop_term.html

On this website you can always find the newest version. The next official version comes in circa one week.

But if you load the code with the Propeller Tool and then switch to PropTerminal, it should also work with the version that you have. It seems there is a problem with the baudrate. Have you set the right clock frequency in the top-spin file? For a ProtoBoard with 5 MHz Crystal, you can use for example this settings:

CON
  _clkmode = xtal1 + pll16x
  _xinfreq = 5_000_000

Have you tried the demos in the PropTerminal.zip ? You can minimize PropTerminal, then upload a spin code with F10 in the PropellerTool, and switch back to PropTerminal. There is no need to load it in the eeprom.

Andy
Back to Top
 

codemonkey
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Apr 2007
Total Posts : 34
 
   Posted 5/20/2007 11:12 AM (GMT -8)    Quote This PostAlert An Admin About This Post.
Ariba,
Demos? blush Ok, next time i look there before driving.
 
However, Re my problem and the new v .291 -- First the good news: Putting in the constants did wonders, i now get back "starting" like i should.
Then the not-so-good news: Downloading binary now always gives "Checksum Error".
 
I saved into eeprom only because i couldn't bring back the propterm window fast enough to see my initial message.
 
If you want, i'll keep checking fairly frequently and trying new versions as i find them, then let you know. I would like to get this working off the laptop as sometimes TVs are not always handy.
 
 
 
 
Back to Top
 

Oldbitcollector
Professional Stuntman



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 3367
 
   Posted 5/20/2007 1:10 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Andy,

Finally got some time this afternoon to play "in depth" with Propterminal spin objects.
I'm extremely impressed!! I've adapted a copy of FemtoBASIC to work with it.

Attached is a copy of Femtobasic for Propterminal. I created this with a friend in mind
who wants to get started with a bare Protoboard. This should also be handy for
robotics projects. I've added just a few Propterminal specific commands to play
to some of the graphics controls.

Oldbitcollector


The comments and code above are proof that a million monkeys with a million propeller chips *could* write Shakespeare!

Post Edited (Oldbitcollector) : 5/21/2007 2:35:13 AM GMT



File Attachment :
FemtoBasic_Propterminal.zip   32KB (application/x-zip-compressed)
This file has been downloaded 554 time(s).
Back to Top
 

Oldbitcollector
Professional Stuntman



Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Mar 2007
Total Posts : 3367
 
   Posted 5/20/2007 6:38 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
Interesting note:

When I use Propterm on my PC, when I minimize, and bring it back up, it resets the Propeller.
This doesn't happen on my laptop.

Oldbitcollector


The comments and code above are proof that a million monkeys with a million propeller chips *could* write Shakespeare!

Back to Top
 

M. K. Borri
Registered Member

Email Address Not AvailablePersonal Homepage Not AvailablePrivate Messaging Not AvailableAIM Not AvailableICQ Not AvailableY! Not AvailableMSN Not Available
Date Joined Jul 2006
Total Posts : 152
 
   Posted 5/20/2007 6:40 PM (GMT -8)    Quote This PostAlert An Admin About This Post.
That's got to do with the serial port more than the type of PC... is either of your ports a usb-to-serial dealie?


forums.parallax.com/forums/default.aspx?f=25&m=190494

meow, i have my own topic now? (sorta)

Back to Top
 
[ << Previous Thread | Next Thread >> ]
New Topic Post Reply Printable Version
105 posts in this thread.
Viewing Page :
 1  2  3  4  5 
 
Forum Information
Currently it is Friday, November 20, 2009 4:39 PM (GMT -8)
There are a total of 393,676 posts in 55,518 threads.
In the last 3 days there were 88 new threads and 708 reply posts. View Active Threads
Who's Online
This forum has 17684 registered members. Please welcome our newest member, Dogg.
75 Guest(s), 11 Registered Member(s) are currently online.  Details
stamptrol, CSmith, mikediv, BradC, mctrivia, Kal_Zakkath, karirafn, MasterC, adranus, Kye, Nick McClick