![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Questions & Help Needed Post any question regarding Basic4ppc. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Quote:
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. |
|
||||
|
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 |
|
||||
|
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. |
|
|||
|
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... |
|
|||
|
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? |
|
|||
|
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.
|
|
|||
|
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 |
|
||||
|
Quote:
![]() 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 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |