Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Receive Serial IR?


Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 12-08-2007, 11:11 PM
Junior Member
 
Join Date: Nov 2007
Posts: 10
Default Daq

Quote:
Originally Posted by taximania View Post
@Spamme0:
PocketDAQ, it's a new one to me. Many thanks for pointing me to it.
It actually see's the data I'm transmitting from the Microchip PIC16F877A I'm using.

@Erel:
My PPC can see IR data from a microchip PIC. PocketDAQ proves this.
Any ideas on how the programmers of PocketDAQ use the serial port differently to B4PPC ??

2 years, looks like were getting somewhere :-)
PocketDAQ is VERY tolerant of misformed signals.

I've also found that it can receive much narrower pulses than my palm.
Don't know if it's the method or just that the palm is much slower.

Suggest you send something with PocketDAQ, look at it on the scope.
Then compare to the capture from your PIC. Make sure they look the same.
Reply With Quote
  #12 (permalink)  
Old 12-09-2007, 10:03 AM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 262
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by Erel View Post
Are you using Serial IR ? You can't read Native (Raw) IR data.
PocketDAQ can read ascii data sent via RS232 format from my PIC circuit.
9600 baud
8 data bits
1 stop bit
No parity



It also reads useable distinguishable data from my tv and dvd remote controls.

I even managed to code my own very 'rough' serial.dll but it still doesn't see IR data from any COM:

How do they manage it ??
__________________
I'm a little crazy at times . . . .

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #13 (permalink)  
Old 12-09-2007, 11:38 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,900
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by taximania View Post
How do they manage it ??
From a Groups Google - posted by one of the PocketDaq developers when it was in beta : " It also supports serial RawIR off the Pocket PC's irda port, and we are also planning to get into using Bluetooth. " You can see it is doing this, not using a COM port, from your screenshot.

Further Googling found this

http://prototronix.com/articles/irdapda/

I don't know how relevant this is to your problem however. You will understand the PIC end better than I.
Reply With Quote
  #14 (permalink)  
Old 12-09-2007, 11:14 PM
Junior Member
 
Join Date: Nov 2007
Posts: 10
Default compatibility???

I'm very confused about the terms. SIR and RAWIR seem to be used
interchangeably?? The comports program identifies the port as nativeIR??
I'm talking about the mode with no protocol. Short IR pulses that
are similar to RZ mode RS-232.

Here's my repeatable experiment.

I have two Dell Axim X51v pda's. Unit B is set up for PocketDAQ
in RawIR mode at 9600 baud and unchanged throughout the experiment.

Soft Reset Unit A. Run b4ppc. Run the serialterminal example.
Set for Com2. I can read/write data between the two X51v's.

Close b4ppc and open pocketDAQ on unit A. Set for rawir mode 9600 baud.
I can read/write data between the two X51v's.

Exit PocketDAQ, verify thru the running programs screen that it's really
exited. Reload b4ppc. Run serialterminal example on unit A.
Set for Com2.
Unit A receives NOTHING from unit B. Sending from unit A results in
garbage on unit B.

Soft Reset Unit A. Run b4ppc. Run the serialterminal example.
Set for Com2. I can read/write data between the two X51v's.

.....repeat as necessary, always same results.

Hypothesis: Either B4ppc or serialterminal example is not initializing
something that got messed up by PocketDAQ.

Ideas?

Just in case I'd botched the file, I reloaded the serialterminal app.
Now, I get an error message telling me it can't load,
but it seems to be the serialdevice.dll. So, I tried reloading that.
Now, I get a bunch of what look like diagnostic pop-up windows.
The app runs, but I get half a dozen popups per transmission.
I've got three different versions of b4ppc, multiple incompatible
dll files with the same name and who knows how many versions of the
serialterminal app. Not at all clear what is compatible with what.
I'm gonna go take a nap before my head explodes...oops...too late...
Reply With Quote
  #15 (permalink)  
Old 12-13-2007, 01:52 AM
Junior Member
 
Join Date: Nov 2007
Posts: 10
Default waveforms

OK, I started over with a fresh installation of windows 2000, installed
B4ppc version 5.80 and extracted the pocket pc cabfile, dll and samples
from that. Now, the serialterminal sample runs again on the X51v.

Reference the attached picture.
Positive pulses represent the infrared output from the pda.
I'm receiving the IR signal with an IR transceiver salvaged from a dead palmV.
The light pulses are clean, full amplitude and about 10 uS wide.
They look crappy because of the limited screen resolution of the scope
and the necessity to get the whole character on screen.

I soft reset the X51v, load b4ppc and use serialterminal to transmit
the letter "E", I get the top trace. GOOD.

Then I close B4ppc and open pocketDAQ and send the letter
"E", I get the identical top trace. GOOD

Then I exit PocketDAQ, Reopen B4ppc and run serialterminal.
I send the letter "E" and get the bottom trace. BAD

Then I soft reset the X51v, reopen B4ppc and run serialterminal.
I send the letter "E", I get the top trace. GOOD

This is absolutely repeatable.

Resetting the PPC is not acceptable. Is there some program addition
in B4ppc that
I can use to reinitialize whatever is getting messed up by pocketDAQ?
Attached Images
File Type: jpg trace3.jpg (41.9 KB, 18 views)
Reply With Quote
  #16 (permalink)  
Old 12-13-2007, 05:21 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,335
Default

You can try to open the port and then close it as a reset method.
Reply With Quote
  #17 (permalink)  
Old 12-13-2007, 07:20 PM
Newbie
 
Join Date: Nov 2007
Posts: 9
Default

Quote:
Originally Posted by taximania View Post
I've been trying to get my Micromaxx MDPPC150 (MIO168 Clone) to receive IR from a PIC for the best part of 2 years now, and still no success.

How are you transmitting the data from the controller, just plain 9600 serial ?
Depends on how you are driving the InfreRed Led's, direct or through an encoder like the MCP2120. With the encoder chip on the UART, it is just normal serial comms. Busy finishing off a project with one in.
Reply With Quote
  #18 (permalink)  
Old 12-13-2007, 07:27 PM
Junior Member
 
Join Date: Nov 2007
Posts: 10
Default

Quote:
Originally Posted by Erel View Post
You can try to open the port and then close it as a reset method.
First thing I tried...and second...
I did some experiments with Bluetooth serial talking to a GPS.
B4PPC has no trouble switching back and forth to the GPS virtual serial port.
Seems to be just the IR port that's not getting initialized.
Too bad that the IR port is the only thing I need.
Oh well, I'd not expect any engineering resources to be applied to checking
this...maybe I'll stumble across a workaround.
Thanks, mike
Reply With Quote
  #19 (permalink)  
Old 12-17-2007, 08:52 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 262
Awards Showcase
Beta Tester 
Total Awards: 1
Default Yyyyyyyeeeeeessssssss

Quote:
Originally Posted by taximania View Post
I've been trying to get my Micromaxx MDPPC150 (MIO168 Clone) to receive IR from a PIC for the best part of 2 years now, and still no success.
Finally done it. Nail on the head. Whhhoooaaaa

With the help of this .dll http://franson.com/serialtools/

I've wrote my own .dll (VB.NET) that embed's the code in serialtools.dll to establish an IR connection with my PIC project.

It works both ways.

I can now read and send IR info to a Microchip Pic16F877A processor 2 ways

Downer. The serialtools.dll is a 14 day trial version

I'm going to buy the 'Licence Key' from franson for my self, £25 ish
i'm currently using the trial licence key. 14 days.

So unless you buy a licence key, of the correct serialNET licence and can compile 'my dll' yourself with your (bought licence key) I'm not sure if any of my ramblings will work for you.

I obviously can't 'buy' a key and then share the DLL with you.
You need a key to enable serialNET.DLL functionality.

I'm also considering charging £5 for my DLL

Hey, no one else on the internet will give you this free.

@Dzt, @AGraham, dll masters

The code in my dll seems fine. Do you want a copy to sort out a few more error checks.

I'm so chuffed (Derbyshire) that it actually works
__________________
I'm a little crazy at times . . . .

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #20 (permalink)  
Old 12-17-2007, 09:48 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,900
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by taximania View Post
I'm so chuffed (Derbyshire) that it actually works
Nay - that's reet Lancashire (and North Cheshire) lad. I'm glad you finally made it work
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial data receive problem Aaron Padilla Bug Reports 3 08-01-2008 02:23 PM
Send/receive email on device aerohost Questions & Help Needed 1 06-30-2008 06:46 AM
FTP Receive Help jeterry Questions & Help Needed 6 04-04-2008 12:51 PM
serial Cor Questions & Help Needed 1 01-18-2008 01:49 PM
serial i/o Softselect Questions & Help Needed 1 07-24-2007 02:48 PM


All times are GMT. The time now is 06:44 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0