Writting propeller data to a file on my PC
accmeint
Posts: 6
Hello,
I reciently bought a "prop plug" serial to USB converter in an effort to collect data from my propeller demo board and save to to file on my PC.· I downloaded the driver according to the instructions on the parallax web page but it dosn't seem to do anything.· Its loaded and working correctly according to the device manager but I dont understand· how or if I can use the "prop plug" to ultimatly save propeller data to a file on my PC.
Is there something that exists that can read data from the "Prop plug" and then understand my PC's file system enough to save the iincoming propeller data to a binary file on my PC?
Thank you for reading this.
Post Edited (accmeint) : 2/8/2010 8:24:52 PM GMT
I reciently bought a "prop plug" serial to USB converter in an effort to collect data from my propeller demo board and save to to file on my PC.· I downloaded the driver according to the instructions on the parallax web page but it dosn't seem to do anything.· Its loaded and working correctly according to the device manager but I dont understand· how or if I can use the "prop plug" to ultimatly save propeller data to a file on my PC.
Is there something that exists that can read data from the "Prop plug" and then understand my PC's file system enough to save the iincoming propeller data to a binary file on my PC?
Thank you for reading this.
Post Edited (accmeint) : 2/8/2010 8:24:52 PM GMT
Comments
Is far as I know, you would need to load a program into the RAM of your Prop and have it dump the data into a terminal on the PC end.
Then copy the data into a text file.
I know there are quite a few proficient PC programmers out here, one of them might be able to throw something together.
MacGeek
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
BS2: $49
SX48 Protoboard: $10
Propeller Protoboard: Priceless
www.apple.com
www.parallax.com
www.goldmine-elec.com
www.expresspcb.com
www.jameco.com
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
The FTDI chipset found on the demoboard, protoboard USB and on the prop stick allows your PC to see the usb port as a serial port. As Leon says there are objects for the propeller that allow serial output, you then just need a PC program to collect the data and save to disk. If you can program on a PC at all it is normally easy to find serial objects or libraries for this purpose or use a terminal as Leon mentioned.
Graham
... am I missing something here? ... orrrrr, has everyone overlooked the statement "propeller demo board?"
Why does accmeint need the Prop Plug? It is, in effect, already there on the demo board! Did he make a typo and meant to say "proto board?" ... but then he would have needed a Prop Plug or equivalent just to program it.
I think some clarification is needed before a coherent solution can be formulated ...and then it should be not a lot more than opening P30/P31 in a cog doing high speed serial and bringing up PST or equivalent.
cheers ... BBR
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
cheers ... brian riley, n1bq, underhill center, vermont
The Shoppe at Wulfden
www.wulfden.org/TheShoppe/
I have both the "propeller demo board" and a "prop plug". I know that I can download from the PC to the propeller via USB but I thought I needed the "prop plug" to bring data in from the propeller and store if in files on my PC. I guess what I am missing is a program on my PC that that can read the USB port and write that data into a file. Does anyone know where I can find a program like that?
Thanks
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
I have been playing with the terminal emulator function that comes with the propeller starter kit but it will only display or echo the propeller data onto its own terminal window. It dosnt have any setting to write the data it is receiving to a file.... So, Im half way there, I can get the data I want to my PC but I cant save it.
Thanks for your time
There is a list of 3rd part emulators on the wikipedia page:
http://en.wikipedia.org/wiki/Terminal_emulator
Some are open source.
Graham
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
John Abshier
The following links around the javax.comm library will help you in coding up a java based client (A .Net C/VB/C# client is possible as well using their libraries)
I capture the output of a cog running FullDuplexSerial pushing data back to the PC and write (fprintf in C) it to the file system - this runs fine using the library on Window 7 under the latest 1.6.0 JRE from SUN (now part of Oracle).
Java as a host for Propellers:
For reference, here is a procedure to get the SUN javax.comm API working on Windows - thank you to Rick Proctor of MIT.
References:
Sun Java Communication API
See the following tutorial by Rick Proctor for the Lego RCX Brick at
http://dn.codegear.com/article/31915
Prerequisites:
Java Serial Support on Windows
See "PC Serial Solution" for the Lego(TM) RCX Brick at the following URL at MIT
- it explains how to get the SUN javax.comm API working on Windows (it is officially supported only on Solaris and Linux but works fine on Windows up to V7).
http://llk.media.mit.edu/projects/cricket/doc/serial.shtml
SUN Java communications API (1998-2004)
http://java.sun.com/products/javacomm/
- copy comm.jar and javax.comm.properties to both yourJDK and JRE lib directories
- copy win32com.dll to both your JDK and JRE bin directories - no need for a registration via regsvr32
- in your IDE (IE: eclipse.org) project add a library reference to comm.jar to get your javax.comm java code to compile
thank you
/michael
There many other solutions out there most of which work better and some of which are also free, but that's the one your computer comes with.
What's the update rate - how much data and how long is the sample period?
I miss the old DOS days!
COM1>Data.txt would do it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Signature space for rent!
Send $1 to CannibalRobotics.com.
sites.google.com/site/braypp/terminal
Features
* without instalation, only single and small .exe file
* simple file send
* character counter
* baudrate up to 256kbps & custom baudrate
* up to 20 com ports
* log to file (hex & string)
* transmit macros
* scripting (with graph/visualization support)
Open the USB device, read the data to an array, use fwrite to write the array to a file.
Done.
Variants on that still work in *nix based OS.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Life may be "too short", but it's the longest thing we ever do.
Andy also has a Terminal program with file transfer.
Be careful that DTR on some of these programs cause the prop to reset.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Links to other interesting threads:
· Home of the MultiBladeProps: TriBlade,·RamBlade,·SixBlade, website
· Single Board Computer:·3 Propeller ICs·and a·TriBladeProp board (ZiCog Z80 Emulator)
· Prop Tools under Development or Completed (Index)
· Emulators: CPUs Z80 etc; Micros Altair etc;· Terminals·VT100 etc; (Index) ZiCog (Z80) , MoCog (6809)·
· Prop OS: SphinxOS·, PropDos , PropCmd··· Search the Propeller forums·(uses advanced Google search)
My cruising website is: ·www.bluemagic.biz·· MultiBlade Props: www.cluso.bluemagic.biz
Its very simple, com port settings etc at the very top few lines. just need python 2.6 and pyserial module installed to run.
www.parallax.com/ProductInfo/Microcontrollers/PLXDAQDataAcquisitiontool/tabid/393/Default.aspx
Jonathan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
lonesock
Piranha are people too.