wm5.0, raw ir, c# - Windows Mobile Development and Hacking General

hi!
is it possible to use raw ir in .net?
i found this note in msdn:
If a Windows Embedded CE–based device shares serial hardware with the IR port and the serial port, an application must instruct the COM driver to route data through the IR port.
To route data using the IR port
1. Use the EscapeCommFunction function with the dwFunc parameter set to SETIR.
2. Use the standard serial communications functions to transmit and receive data. For more information about these functions, see Programming Serial Connections and Serial Communications Functions.
3. Call the EscapeCommFunction with the dwFunc parameter set to CLRIR to set the port back to normal serial mode.
Click to expand...
Click to collapse
but it is for c++! is it possible to call escapecommfunction in c#? how can i extract win32 hande from SerialPort object?
i've bouhgt ir-503 wireless keyboard, but there are no drivers for wm5.0 and the wm2003 driver doesn't work with my xda neo(htc prophet). so i'm trying to develop a c# application wich will receive data from ir-503 keyboard, but i did not found yet any possibility to set the ir port to raw mode.

it's a part of the compact framework .net 2.0
dont recall it being in 1.1

Rudegar said:
it's a part of the compact framework .net 2.0
dont recall it being in 1.1
Click to expand...
Click to collapse
i'm using cf .net 2.0. can you please tell me how to switch the serial port to ir mode?

http://msdn2.microsoft.com/en-us/library/system.net.irdaendpoint(VS.80).aspx
found from this search
http://www.google.dk/search?q=ir+port+in+compact+framework&btnG=Søg&hl=da
maybe the msdn link could have been more general but msdn really hate opera

ir-503 keyboard does not use irda

Related

bluetooth stack + api, sdk

i'm looking for a sdk or api for the bluetooth stack on the magician. I'm planning on writing a tool that will enable some much needed stuff on wireless headsets (caller id and other stuff)
but i do need that api to do stuff, as i can't really find any info on the handling of the protocols and profiles
Justice Strike said:
i'm looking for a sdk or api for the bluetooth stack on the magician. I'm planning on writing a tool that will enable some much needed stuff on wireless headsets (caller id and other stuff)
but i do need that api to do stuff, as i can't really find any info on the handling of the protocols and profiles
Click to expand...
Click to collapse
I do not know if it can help you but this is a free compact framework library with many Bluetooth oriented classes
http://32feet.net/library/
i've seen it, it's seriously underdocumented. their is only the name of a specific function, but no explanation about it.
Hey,
the bluetooth stack on the magician is from microsoft. There are several commercial and non-commercial bluetooth API`s around. Commercial for example: www.franson.com. Non- Commercial: search for Peter Foot on Google.
Later,
sojakim

HOWTO: programmatically determine BT device type

hi all,
When I use comm manager in my PDA to scan for bluetooth devices it can detect the BT device type and shows different icons for PDAs, phones or workstations.
I want to implement this capability in my BT program, anyone knows how to do this or have some tips or links or anything useful????? I use eVC++ 4.0, 2003se sdk.
Thaaaaaaaaaaaaaaaaaaaaaanks alot
Mohammad
look for WSALookupServiceBegin
tons of lines of code

looking for API and/or SDK for HTC - specially Hermes - specially Camera API

I am trying to write small apps for my Hermes.
Unfortunately I couldn't find any device specific APIs such as Camera API for HTC.
Where can I find such APIs ?
Also, if it is possible to access camera without any device specific API , please point me to the correct address.
When I make a search with keywords API and SDK on this forum , I can't get any results because of the 3 character keyword limitation.
You can use standard WM 5.0 + function:
SHCameraCapture from AYGSHELL.DLL
read more about it here
https://msdn2.microsoft.com/en-us/library/aa454996.aspx
thanks. I couldn't understand how to use that.
I currently use WM6 SDK.
for camera, do I have to download WM5 SDK in addition ?
Also, how do I use it with C# ?
any idea ?

[REQ/REL] USB camera driver

I found source code for USB camera driver from Microsoft (usbcam.dll) it is for Windows CE and it is compatible with Windows Mobile. It need to be compiled for IntelXscale and/or ARM (depending on device)... Maybe someone here can try. It support around 30 usb web camera models with USB 1 and 2. It include also filter:
; Register JPEG -> RGB filter
; This filter is intended for use with the usbcam.dll, which
; produces output in the JPEG/MJPEG formats
Click to expand...
Click to collapse
There are 4 files:
usbcam.dll (Driver)
jpeg2rgb.dll (Support file - Filter)
usbcam.reg
jpeg2rgb.reg
Developer of this code confirm that it can be compiled for WM 5/6
Microsoft has released a webcam driver (with source) that does support a Direct Show interface. It is written for CE 6, but could be recompiled for Win Mobile 5/6 since they support Direct Show capture drivers.
Click to expand...
Click to collapse
Please help, im sure that it will work, there is many devices with USB Host and web cameras are so cheap... That would be great if someone will help !
so this means that with a usb-host capable device,
it is possible to use an external camera?
xeirwn said:
so this means that with a usb-host capable device,
it is possible to use an external camera?
Click to expand...
Click to collapse
If someone will compile it... yes
Here is quote from description:
"The driver supports both USB 1.x and 2.0 (high-speed) cameras. The driver will
expose both uncompressed and MJPEG modes, if supported by the camera."
anyone ? This should be simple...
This would be very cool
to connect a webcam to the phone
(right, that's what it's for?)
NisseDILLIGAF said:
This would be very cool
to connect a webcam to the phone
(right, that's what it's for?)
Click to expand...
Click to collapse
Yes, but USB host is requried...
Ehh it look like I must compile it myself... So many programmers here but noone can do it...
my device Xda Flame has USB OTG version 1.2 compliant. (USB On-The-Go)
and can connect to HD, flash memory, keyboard, mouse etc.
I have posted on our forum http://xdaflameusers.com/viewtopic.php?id=1447
Still no reply..
Really hope someone makes use of this
If you check the developer's link, you can download webcam.dll file (from WebCam_100.zip )
also checked the discussions, a CamTest app is mentioned but where is it??
webcamWhitePaper.doc is also interesting..
EDIT: found the Camtest but no exe file! dl from http://devpi.free.fr/wince/camtest2_cpp.zip
sorry for double posting, but I think I found the answer from the developer himself
As for your initial question, I'm not sure this driver will do what you want. You to want to use the webcam with a Windows Mobile system. If however, you want to display the image through media player, this driver won't help. It doesn't support a proper Direct Show interface.
Microsoft has released a webcam driver (with source) that does support a Direct Show interface. It is written for CE 6, but could be recompiled for Win Mobile 5/6 since they support Direct Show capture drivers. The link for that driver is
http://www.microsoft.com/downloads/...c0-a4ae-42cc-abd0-c466787c11f2&DisplayLang=en
Click to expand...
Click to collapse
copied from here:
http://www.codeplex.com/cewebcam/Thread/View.aspx?ThreadId=17584
I was very close to run it... I used webcam.dll from codeplex (version for arm) but it was compiled for win ce... I used registry key whiich was included to regiister hardware type. Wheen I connected camera it as usualy ask for drivver... but surprise here - it doesn't do this again as usualy, instead of this it show "error installing driver". Camera test is not exe becouse it like driver need to be compiled for windows mobile like driver. I am 100% sure that if driver, filter and cam test app will be compiled for windows mobile it will work fine.... but we need someone who will do it....
Shame that noone here can help us... developers...
What Happend
Wutsup ppl it seems no one is interested anymore in this, if anybody got progress or someone got compiled wm6,wm5 drivers plz share with us
I think nobody's interested because all our HTC devices have cameras in them already (and most new ones have 2). Why plug in another camera?
I need the same thing...
Industrial application with a USB camera hanging off a windows mobile device. Has anybody compiled this driver into windows mobile?
Thanks,
Linda
The project sounds interesting, but I don't think the ExtUSB in HTC devices support host mode. Plus, having a camera dangling from the only data/ power port on the device sounds like a waste.
What would be more interesting is to find a way to connect a web cam to a bluetooth device. My phone has a back camera, but I'd still love to buy a bluetooth camera to attach to the phone.

Asus VivoTab Smart GPS port

The built-in GPS works fine with the map/GPS programs from Win8 Microsoft Store. I have several desktop map programs (e.g., MapPoint, Microsoft Streets 2013, OziExplorer, etc.) which look for a serial or USB port in order to talk to the GPS unit. Does anyone know how to get these programs talk to the internal GPS unit (e.g., COM port #, baud rate, etc.)? THANKS.
That information may be available in Device Manager. An alternative, somewhat silly but actually viable option: hunt up a copy of Hyperterm (or similar) and, assuming it runs on Win8 (I haven't tried), check your COM ports for GPS traffic and tweak the baud rate until it looks like NMEA (I assume that's what your software expects).
With that said, it's possible that the internal GPS doesn't use the standard ports at all, and instead just uses the new Windows Location APIs. That would probably mean you would need to write a cross-over program that uses the new APIs to retrieve the location, translates them into NMEA, and pushes them to a virtual COM port. Probably possible to write, but not trivial. I hope/assume that the Location framework can be used in desktop apps, but I haven't actually checked; Metro apps may not be able to access COM ports in which case you would need to write to some inter-process-accessible resource that can be reached from the AppContainer - a loopback network connection or possibly a file may be workable, I don't know if named pipes are reachable - and then a desktop application to connect the metro app to the virtual COM port. HUGE kludge, I know.
GoodDayToDie said:
That information may be available in Device Manager. An alternative, somewhat silly but actually viable option: hunt up a copy of Hyperterm (or similar) and, assuming it runs on Win8 (I haven't tried), check your COM ports for GPS traffic and tweak the baud rate until it looks like NMEA (I assume that's what your software expects).
With that said, it's possible that the internal GPS doesn't use the standard ports at all, and instead just uses the new Windows Location APIs. That would probably mean you would need to write a cross-over program that uses the new APIs to retrieve the location, translates them into NMEA, and pushes them to a virtual COM port. Probably possible to write, but not trivial. I hope/assume that the Location framework can be used in desktop apps, but I haven't actually checked; Metro apps may not be able to access COM ports in which case you would need to write to some inter-process-accessible resource that can be reached from the AppContainer - a loopback network connection or possibly a file may be workable, I don't know if named pipes are reachable - and then a desktop application to connect the metro app to the virtual COM port. HUGE kludge, I know.
Click to expand...
Click to collapse
so there is no app that will work with the built in gps even for desktop mode? I tried Maps(that comes with windows 8) and only locates my ip not gps position

Categories

Resources