Get data from Notepad into Propeller
zpua
Posts: 33
Hello All,
I would like to use attached Propeller code to get data from notepad by FullDuplexSerialPlus into the propeller via serial port.
Can anyone provide some comments for my programming please? I am learning that from the propeller manual v1.1 pg 107.
Thank you so much.
I would like to use attached Propeller code to get data from notepad by FullDuplexSerialPlus into the propeller via serial port.
Can anyone provide some comments for my programming please? I am learning that from the propeller manual v1.1 pg 107.
Thank you so much.
Comments
-Phil
Can you please give more information about the print driver? Where can I look for the print driver and turn it on?
Thank you.
-Phil
I have installed a new Generic/Text Only printer driver. But I am still lost on how to use my propeller code to control the data transmitted from notepad to my propeller chip. Can you give more comment please?
Thank you.
-Phil
what are you gonna do with the text if it is t
The data stay the same when it is in the propeller. They are not text but they are values, around 200 data.
I would like to use those values transmitted into propeller and compare(subtraction) them with the values that are already executed by the propeller.
Any suggestion please? Thank you.
May I know where can I look for the example of propeller programming code that programs wait for and read data?
Thank you.
'
Have you looked at how PST works? (Parallax Serial Treminal)
Typing 200 values into the propellertool into a DAT-section will take half an hour. (9 seconds per value)
Trying to code a program receiving data from a generic printer will take half a week. With low programming skills half a month.
As you are asking I guess you want to finish the project. So typing the values directly into the propeller-tool is faster.
best regards
Stefan
I have attached a code here. Is that what you mean by typing it into the propeller?
Thank you.
What, exactly -- in detail -- are you trying to do? Maybe there's another way to accomplish your objective. If the data are static, which appears to be the case, cut-and-paste or the FILE statement will probably do the job.
-Phil
I was practicing filling and reading arrays.
I'll look and see if I still have the code.
Here is a link to visual basic express, it's free. http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-basic-express
Bruce
I have used true PC serial ports for similar functions in the past (not to the propeller though) and it works very well. Of course then I had complete control over what signals I connected. Could the programming cable not be connected to another header that is wired to different pins on the prop and use one of the serial objects? As long as the reset is not connected to the prop it should be ok shouldn't it?
Does it work if you just copy the file to the com port from the command prompt ?
COPY myfile.txt COM1:
Bean
'
Super Simple to use.
'
download a free version of JustBASIC v.1.01 to open the file with.
'
www.justbasic.com
'
This isn't any different then the PST though.
'
Sorry for the typo in the file name, But it still works
'
set Baud to 115200 for the Prop.
Hmmmm..... Now that is very interesting.
Your right, the Propeller could not do that, but a serial monitoring program on the PC side could easily accomplish this, but this would exclude the Parallax Serial Terminal. However, I am sure it would not be to difficult to replicate the Serial Terminal functionality with a monitoring program.
Suppose that the Propeller stored a known file path, for example C:\Documents and Settings\Bruce\Desktop\Data.txt, and let's suppose this file had a known structure of two values, each on a seperate line within the text file. In the Propeller there is an object, with the various methods, Start(which includes the previously mentioned file path), GetValue1, and GetValue2.
Just a thought. Does anyone else have a use for something like this?
Bruce
You say this is just like PST. Have you used it with the Propeller?
My previous post gives me a bunch of fresh ideas for machine control, and passing data between a PC and a Propeller.
Yes, it is... http://www.parallax.com/OpenSourceHardwareDesigns/tabid/865/Default.aspx
I appreciate the effort and post. I believe that must be Delphi, because it looks Greek to me. I wish it was in Visual C++.
Bruce
Of course your right about the reset problem but I overcame that using P0 and P1 with a MAX3232 while using P30 and P31 for the debug terminal, there was also a header and footer that had to be stripped from the text.
Anyway the MAX chip with printer driver is possibly another solution for zpua.
Jeff T.
You can eliminate the header and footer in Notepad's Page Setup menu.
-Phil
'
Yes it works really well with the Prop. @ 115200 Baud.
'
I had the Baud set to 9600 in the file I sent for use with the BS2. I added a note to use 115200 Baud for the Prop.
'
PropBASIC will really crank-up the Baud rate.
'
Add a 6.25MHz xtal and crank-it up some more.
'
I have used this method to send "home made (G) type code" info to the Prop with PropBASIC a 300K Baud +
'
My point in the reply was to show how easy it is to write a serial terminal program that one could easily send " txt " files at speed.
'
The PST will do this, But you would have to paste the code in the PST window.
'
My Serial Terminal is really open and easy to modify.One could easily go and find the txt file with some added code and send it out to what ever you wanted.
'
I can add some more info if needed.
-Phil
For the last hour, I have been looking at a multiple VC++ Serial Comm project. It contains 5 different programming workspaces rolled into one. If I could just figure this out, I am sure it would be a breeze to accomplish the task as presented.
'
Basic is all around so much easier to use to Me.
'
But if you like all the Voids and // 's Then roll with it.
'
I'm thinking you like to type more then Me?......LOL..!!!!!
C++ is so much more powerful
I would never take a knife to a gun fight