x
This website is using cookies. We use cookies to ensure that we give you the best experience on our website. More info. That's Fine
HPC:Factor Logo 
 
Latest Forum Activity

Connecting the device via IR?

1 2
torch Page Icon Posted 2024-02-21 10:30 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
C:Amie - 2024-02-21 1:10 PM


If the IR port is acting as a keyboard input device then either it is wired in directly as a human interface device, in which case that identity will be part of the chip on its USB controller and you are not going to be able to change it.

If however it is a serial FIR port and there is a driver DLL performing the conversion into ASCII, then in theory, you might be able to change the driver to re-use the COM port with ActiveSync. You are going to have to look through the HKLM driver sections and look at the device COM port availability to ascertain what my be what. If it is a standard serial port then in theory you could take the registry and (if needed) driver from another CE device, import it and is might work.

Would us knowing the exact chipset help? I saw I dunk for bananas mentioned it's a Serial - USB adapter style driver

Not trying to get ahead of/bother you both, just thinking of ideas
 Top of the page
C:Amie Page Icon Posted 2024-02-21 10:37 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,976
Location:
United Kingdom
Status:
Looks as though it is from http://ftp1.digi.com/support/driver/

One of
4/4/2006 2:30 PM 1756672 ce2960.exe
4/4/2006 2:30 PM 3887 ce2960.txt
4/4/2006 2:30 PM 1730498 ce2960.zip
4/4/2006 2:30 PM 1718784 ce3000.exe
4/4/2006 2:30 PM 3993 ce3000.txt
4/4/2006 2:30 PM 1693013 ce3000.zip
3/29/2006 6:07 PM 1712640 ce3100.exe
3/29/2006 6:07 PM 4184 ce3100.txt
3/29/2006 6:07 PM 1674120 ce3100.zip

If it is exposing the com port, then there must be a driver or daemon running to handle the IR to key mappings. Anything in startup, run or if you load a task manager, the tasks list that if killed stops the IR from working?
 Top of the page
I dunk for bananas Page Icon Posted 2024-02-21 11:15 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
Let's find out! I just got the remote and put in some batteries, let's see
 Top of the page
I dunk for bananas Page Icon Posted 2024-02-21 11:24 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
Alright, looks like I must've accidentally disabled whatever was running the IR port, the remote control isn't working now - the front shield buttons work fine though
 Top of the page
I dunk for bananas Page Icon Posted 2024-02-22 12:08 AM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
I've been able to identify the IR controller: it's a PIC12F629
 Top of the page
I dunk for bananas Page Icon Posted 2024-02-22 12:46 AM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
Could this be at all helpful?



(2004_8_1__9_4_11.jpg)



Attachments
----------------
Attachments 2004_8_1__9_4_11.jpg (68KB - 0 downloads)
 Top of the page
torch Page Icon Posted 2024-02-22 1:02 AM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
the person here had the same IrDA as you
http://www.taximania.co.uk/pic3.html

and recommended some kind of .net compact framework program.

maybe this is helpful? not sure
Quote
The following project source code files use Basic4PPC.
The .exe files should work on any PPC with the required .NET CF installed.

Basic4ppc homepage

Here's an addition to my Graphic LCD board
No, not the zif socket, the circuit to the right, a Microchip Pic to PPC IR board.


Ignore the date

You need to buy the PSXIR.hex file from sirpic.com
Please don't ask me for the PSXIR hex file. You can buy it from www.sirpic.com like I did ;-)




The following circuit is from www.sirpic.com



The circuit was originally designed to talk to Palm handheld PDA's.
I decided to try the circuit with a Pocket PC.

Please don't email sirpic.com with Pocket PC questions. They will probably be ignored.

The PSXIR chip is a PIC12F629 or PIC12F675 device.



So, armed with a, 'Registered version', of Basic4ppc.

Basic4ppc homepage

I wrote a short program that sends a string via IR RS232, then reads the response from the PIC controlling the IR board.

My first downer was that the IR board only ever received the first byte of the string my PPC sent.
I cured this by sending the string from a FOR NEXT loop with a short pause between bytes. Sorted :-)

Obviously, all the error checking for a bad received byte must be catered for in the PIC code.

Downer two. I can't get my PPC to read a byte or string sent from the IR board.
Not really a problem, but I would like 2 way communication.




Using PocketDAQ proves that the PPC 'can' read data sent from a Pic.

Then I came across Franson Serial tools.

Download SerialNET.dll for .NET Compact Framework and buy a licence .


The SerialNET.dll gives you access to the Raw IR port of your computer or PPC using VB, C#, VB.NET, CF.NET etc.

Using #Develop , I've managed to create my own RawIr.dll for Basic4ppc that uses code from within SerialNet.dll

RawIr.dll functions, properties etc are here

Warning.
You must use the Dispose function of RawIr.dll before quitting or exiting any source code examples in your own apps that use RawIr.dll. If you don't, SerialNET.dll will eat your memory and you will have to soft reset your device on a regular basis. If you end your app by clicking the 'X' top right of screen, the Dispose function is still not called. It will EAT your device memory ;-)

Basic4PPC IR application for Microchip 16F628 control. More here.

Basic4PPC IR serial terminal application. More here.

Download the zip file for both projects here.
 Top of the page
torch Page Icon Posted 2024-02-22 7:47 AM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
I found this for an ActiveSync style connection over LAN

https://www.hpcfactor.com/scl/1636/All-locations/Partnership_Creator...
 Top of the page
C:Amie Page Icon Posted 2024-02-22 8:21 AM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,976
Location:
United Kingdom
Status:
Based upon the fact that the documentation for the PIC12F629 mentions IrDA, I assume that it it's possible. Of course your IR lamp needs to have a modulator as well as a demodulator in it for it to be possible (transmit and receive).

Can you create a dial up networking connection that can bind to infrared or what might be the COM port number for this USB serial connection?
 Top of the page
I dunk for bananas Page Icon Posted 2024-02-22 2:01 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
C:Amie - 2024-02-22 8:21 AM


Based upon the fact that the documentation for the PIC12F629 mentions IrDA, I assume that it it's possible. Of course your IR lamp needs to have a modulator as well as a demodulator in it for it to be possible (transmit and receive).

Can you create a dial up networking connection that can bind to infrared or what might be the COM port number for this USB serial connection?


At the moment the only network adapter I can see in my control panel is LAN one, I'd have to see how to add the infrared connector
 Top of the page
C:Amie Page Icon Posted 2024-02-22 5:08 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,976
Location:
United Kingdom
Status:
i would be in what on old CE was start > programs > communications > remote networking > make new connection.
 Top of the page
I dunk for bananas Page Icon Posted 2024-02-22 9:52 PM
#
Avatar image of I dunk for bananas
H/PC Elite

Posts:
702
Location:
Europe
Status:
C:Amie - 2024-02-22 5:08 PM


i would be in what on old CE was start > programs > communications > remote networking > make new connection.


Sadly the only option is ethernet
 Top of the page
C:Amie Page Icon Posted 2024-02-22 10:57 PM
#
Avatar image of C:Amie
Administrator
H/PC Oracle

Posts:
17,976
Location:
United Kingdom
Status:
Now is that a CE 5 thing, a config thing or the dll's missing. Is it different on your CE 6?
 Top of the page
torch Page Icon Posted 2024-02-26 8:22 PM
#
Avatar image of torch
Subscribers
H/PC Guru

Posts:
5,713
Location:
United States 
Status:
We also had an infrared blaster utility in the SCL
https://www.hpcfactor.com/scl/2132/ASIX/IrDABlaster
 Top of the page
1 2
Jump to forum:
Seconds to generate: 0.296 - Cached queries : 52 - Executed queries : 30