Connecting PocketPC to a BS2
Archiver
Posts: 46,084
Connecting PocketPC to a BS2
Hi everyone. I have been quietly lurking in this Egroup for about 3
weeks, ever since I bought my Wedge, (an OEM BS2) and I have been
having a blast reading the posts here and experimenting with the BS2.
I would like to use the BS2 and my PocketPC for data acquisition.
After following through the excellent series of articles by Jared
Hoylman "Understanding and using Visual Basic" at
http://rentron.com/VisualBasic.htm I tried connecting my PocketPC to
the BS2 but ran into a few problems.
Has anyone connected a BS2 to a PocketPC for data acquisition? If so
is there a web site where I can get more information on this? I'm
testing the design using a simple circuit to send pulses to a pin(15)
and using the BS2's Count and Serout function.
Cycles VAR WORD
Loop:
Count 15,250,Cycles
Serout 16,16780,[noparse][[/noparse]DEC Cycles]
GoTo Loop
Simple enough and works just how I expect it to and I'm able to
read
it just fine with the MSComm control but not with the PocketPC's
Comm
control.
I'm getting an error when I try to open port 2 using the comm
control. Port 1 opens fine but port 2 generates a "port
unavailable"
error on the PocketPC.
'Select Comm Port
If Option1.Value = True Then Comm1.CommPort = 1
If Option2.Value = True Then Comm1.CommPort = 2
'Settings = 2400 baud, no parity, 8 data bits, 1 stop bit
Comm1.Settings = "2400,N,8,1"
'Generate the OnComm event with every bit received
Comm1.RThreshold = 1
Comm1.SThreshold = 1
' Open the port
Comm1.PortOpen = True
Any help, comments or suggestions would be appreciated....
Hi everyone. I have been quietly lurking in this Egroup for about 3
weeks, ever since I bought my Wedge, (an OEM BS2) and I have been
having a blast reading the posts here and experimenting with the BS2.
I would like to use the BS2 and my PocketPC for data acquisition.
After following through the excellent series of articles by Jared
Hoylman "Understanding and using Visual Basic" at
http://rentron.com/VisualBasic.htm I tried connecting my PocketPC to
the BS2 but ran into a few problems.
Has anyone connected a BS2 to a PocketPC for data acquisition? If so
is there a web site where I can get more information on this? I'm
testing the design using a simple circuit to send pulses to a pin(15)
and using the BS2's Count and Serout function.
Cycles VAR WORD
Loop:
Count 15,250,Cycles
Serout 16,16780,[noparse][[/noparse]DEC Cycles]
GoTo Loop
Simple enough and works just how I expect it to and I'm able to
read
it just fine with the MSComm control but not with the PocketPC's
Comm
control.
I'm getting an error when I try to open port 2 using the comm
control. Port 1 opens fine but port 2 generates a "port
unavailable"
error on the PocketPC.
'Select Comm Port
If Option1.Value = True Then Comm1.CommPort = 1
If Option2.Value = True Then Comm1.CommPort = 2
'Settings = 2400 baud, no parity, 8 data bits, 1 stop bit
Comm1.Settings = "2400,N,8,1"
'Generate the OnComm event with every bit received
Comm1.RThreshold = 1
Comm1.SThreshold = 1
' Open the port
Comm1.PortOpen = True
Any help, comments or suggestions would be appreciated....
Comments
Teranishi. Then use the capture buffer.
This is for a Win CE device. I happen to use the Casio E-125...
I simply spew out data out of the Stamp at 9600 baud adding commas between
data words. I can then import as comma delimited to a spreadsheet.
It works fine.
Bill
Original Message
From: tunatunup2000@y... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=3QCVGW7YaNPI3fBZKS3XgFFKC7DfRuMduSrPtFVs5mSMtq4enOPUZa7XMvkO2us_ejRlslxYS9dAcdATrTr0t8w]tunatunup2000@y...[/url
Sent: Saturday, February 24, 2001 2:06 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Connecting PocketPC to a BS2
Connecting PocketPC to a BS2
Hi everyone. I have been quietly lurking in this Egroup for about 3
weeks, ever since I bought my Wedge, (an OEM BS2) and I have been
having a blast reading the posts here and experimenting with the BS2.
I would like to use the BS2 and my PocketPC for data acquisition.
After following through the excellent series of articles by Jared
Hoylman "Understanding and using Visual Basic" at
http://rentron.com/VisualBasic.htm I tried connecting my PocketPC to
the BS2 but ran into a few problems.
Has anyone connected a BS2 to a PocketPC for data acquisition? If so
is there a web site where I can get more information on this? I'm
testing the design using a simple circuit to send pulses to a pin(15)
and using the BS2's Count and Serout function.
Cycles VAR WORD
Loop:
Count 15,250,Cycles
Serout 16,16780,[noparse][[/noparse]DEC Cycles]
GoTo Loop
Simple enough and works just how I expect it to and I'm able to
read
it just fine with the MSComm control but not with the PocketPC's
Comm
control.
I'm getting an error when I try to open port 2 using the comm
control. Port 1 opens fine but port 2 generates a "port
unavailable"
error on the PocketPC.
'Select Comm Port
If Option1.Value = True Then Comm1.CommPort = 1
If Option2.Value = True Then Comm1.CommPort = 2
'Settings = 2400 baud, no parity, 8 data bits, 1 stop bit
Comm1.Settings = "2400,N,8,1"
'Generate the OnComm event with every bit received
Comm1.RThreshold = 1
Comm1.SThreshold = 1
' Open the port
Comm1.PortOpen = True
Any help, comments or suggestions would be appreciated....
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
so
> is there a web site where I can get more information on this? I'm
> testing the design using a simple circuit to send pulses to a
pin(15)
> and using the BS2's Count and Serout function.
I have been using PocketC on an iPaq to receive data from a Basic
Stamp and from a PIC16F877 programmed with PBP. Both work well at
9600 baud. If you are interested in using PocketC, try their
website at www.orbworks.com. They supply some code snippets for
serial interfacing. I'll also be happy to send you a short snippet
that works for me.
Best regards,
Michael
It appears that I can open port 1 but not port 2 on the PocketPC. Are
you using port 1 or port 2 on your PocketPC?
My PocketPC has a 9-pin serial connector with cable so I'm using a
male to male connector (3 bucks at Fry's) to connect it directly to
the BS2. How did you connect your BS2 to the PocketPC?
Also, I'm using the Visual Basic MSComm control for the desktop and
the Comm control for PocketPC's. Both are similar COM/ActiveX
controls that are fairly easy to use for reading the serial buffer.
The desktop control (MSComm) works just like I expect but the
PocketPC control (Comm) didn't.
If and when I figure this out I guess I should write a web page
describing how it was done so others can do it. Using the BS2 and
PocketPC's for data acquisition is such a natural progression for
both devices.