Video data transfer from PPC to Desktop - Windows Mobile Development and Hacking General

Hi everybody.
I just wonder how I can estabilish a remote connection between my pocket pc a nd the desktop pc, for video and camera capture still image.
Shall I have to use Winsocket or there is another way, maybe using Activesync manager?
Thank you very much in advance.

Visit www.ateksoft.com

Did you mean with an existing app or by code?
In the first case you should follow Chatty's suggestion and look at CoolCamera.
If you want to write something of your own, communication method depends on who initiates the connection.
If it is the device than winsock is the way to go, but if it is the PC you should look in to CeRapiInvoke function which allows you to extend activesync functionality with your own DLLs.
There is an option for block and stream data transfer with CeRapiInvoke and your custom functions.

levenum said:
Did you mean with an existing app or by code?
In the first case you should follow Chatty's suggestion and look at CoolCamera.
If you want to write something of your own, communication method depends on who initiates the connection.
If it is the device than winsock is the way to go, but if it is the PC you should look in to CeRapiInvoke function which allows you to extend activesync functionality with your own DLLs.
There is an option for block and stream data transfer with CeRapiInvoke and your custom functions.
Click to expand...
Click to collapse
Exactly: I would like to implement it by my own.
I don't know exactly if the communication should begin from ppc or pc: there could be both scenarious.
Thank you very much for your suggestions.
Another (perhaps stupid) question: in WM5 is there a way to host a WCF service (webservice), like in WInfx 3.0? Perhaps exists a Compact Winfx3.0? I should stop my imagination ... ;-)

Related

Is there an easy way? non PPC programs running on a ppc?

I know the answer is likely NO hell no, but I am going to ask anyway.
I want to run a program called BE2 manager on my BlueAngel, but... of course its a non windows mobile program.
The program is used for flashing information to the communication interface inside a slot machine. The current setup we have now is very bulky and cumbersome, and I am trying to downsize the whole operation. I have the rs232 to TTL cable worked out, and now just need the software to work.
Thanks guys.
Hi LandRaider!
I wouldn't say 'hell no' but it's not easy.
It depends on what OS the program is for:
If it runs under DOS (not likely these days) there is an emulator for it. DosPPC or something, don't remember exactly.
If it's a windows program I am pretty sure you are out of luck, no emulator.
If you have the source code for the program, I shouldn't be too difficult to port it, specially if it's written in c / c++.
You can also install the program on a terminal server (Citrix is a very good solution), and connect to it from your PocketPC over WiFi or GPRS.
Citrix supports mapping of COM-ports, but I dont know how this feature would work on PocketPC.
There isn't an easy way however there are always ways depending on how much you need it to be done. Citrix is an option worth investigating.
Provide more information about your app and it will be easier to guide you in the right direction

Tethering in linux [SOLVED]

I spent a lot of time getting the 6800 to sync under linux. Finally, using synce, I have done it, all access to the phone.
Now I want to tether. I have noticed under wm6, the wmodem app is in \windows folder, but it will not start. I know you used to have to enable it via a ## code, but it wont work on the 6800.
So I either need to figure out how to get the wmodem app to work under wm6, so i can have the phone emulate a modem. Or, the second option being to possible use ndiswrapper to use it, since it does show up as a generic rndis device, and under my system as soon as i plug it in (with adv net. function tab checked under connections>usb to pc) it shows up as an ethernet device.
Please linux users jump in and lets figure this out!!
I'm not a big linux user, but this would be very good to know!
I know they tethered the iphone by setting up some sort of proxy on the phone then tethering via wifi,surely this could also be possible using windows mobile given the right app. Please dont tell me im the only linux user out there that cares!!
BTW.. the iphone runs a modified *NIX/BSD im jealous
EDIT: I have also been successful in use the program 'synce' to initiate an activesync connection with the pda. Doesnt pdanet tunnel through a connection like this?? surely there are some fancy iptables or route commands to accomplish this in linux.
USBModem
USBModem is supposed to be able to work with Linux.... There is a free trial to check out.. I'm planning on using it once the Asus Eee comes out..
http://www.mobile-stream.com/usbmodem_wm.html
usbmodem will only give you some dialup scripts which wm6 DOES NOT supoport over usb. I did however solve my problem. The svn version of synce's usb-rndis-lite is the holy grail.
watson540 said:
I spent a lot of time getting the 6800 to sync under linux. Finally, using synce, I have done it, all access to the phone.
Click to expand...
Click to collapse
Can you post the resources you used, or the steps you took, to accomplish this? I'd like to tackle that problem before getting into tethering.
I see the device in dmesg as an RNDIS device (not handled by the ipaq module), but then I can't get multisync or synce to do anything with it after that. All I need to do is save my contacts, and be able to transfer files. I'm going to be replacing my Mogul soon, and I'd like to be able to restore everything once I get the new one. But in my apartment, windows machines are a rare commodity.
Can you post a wlkthrough as I joined the site for practically this very reason. Thanks in advance
J
watson540 said:
I spent a lot of time getting the 6800 to sync under linux. Finally, using synce, I have done it, all access to the phone.
Now I want to tether. I have noticed under wm6, the wmodem app is in \windows folder, but it will not start. I know you used to have to enable it via a ## code, but it wont work on the 6800.
So I either need to figure out how to get the wmodem app to work under wm6, so i can have the phone emulate a modem. Or, the second option being to possible use ndiswrapper to use it, since it does show up as a generic rndis device, and under my system as soon as i plug it in (with adv net. function tab checked under connections>usb to pc) it shows up as an ethernet device.
Please linux users jump in and lets figure this out!!
Click to expand...
Click to collapse
i'm going to guess you can follow this guide but use the svn steps for the driver
http://www.synce.org/index.php/Connecting_your_Windows_Mobile_2005_device_via_USB_(usb-rndis-lite)
Anyone know how to BROWSE the contents of the HTC 6800/MOGUL on Ubuntu? I dont even want to sync, i just want to browse the contents of my Device & Storage card on my phone...
Cant seem to figure this out, SYncE doesnt seem to work for me...
please help
watson540 said:
I spent a lot of time getting the 6800 to sync under linux. Finally, using synce, I have done it, all access to the phone.
I have been searching for a way to get my 6800 to sync if you could help point in the right direction that would be great thanks. all i can find is how to get wm5 phones to sync
Click to expand...
Click to collapse

Internet sharing on WM5 with Wifi and proxy

I have wm5 with an old rom ... no ICS
After reading a lot
I thought that I try http://www.pocketpcmag.com/blogs/index.php?blog=3&p=453&more=1 and
http://www.pocketpcmag.com/blogs/in...tting_up_a_bluetooth_personal_area_net&more=1
HTTPSnoopProxy.class file, copy it to, say, the root of your "access point" Pocket PC and get a decent Java Virtual Machine (I recommend CrEme 4.00 because of its superior speed, reliability and moderate memory consumption).
Install CrEme on the device that you would like to act as the Bluetooth Access Point. Then, on the same PDA, write a link file that invokes CrEme on HTTPSnoopProxy.class.
The link file will be, assuming you install CrEme in the main memory, as follows:
255#"\Windows\creme\bin\CrEme.exe" -Ob -classpath \ HTTPSnoopProxy 8080
To make your life easier, I've uploaded an example file here – you only need to put it in, say, \Windows\Start Menu\Programs so that it's easily accessible. It, again, assumes that CrEme 4.00 is installed into main memory and HTTPSnoopProxy.class is copied to the root directory of your PDA. If not, you must modify either the path to CrEme.exe or the parameter of -classpath.
Then, just set up a Bluetooth PAN network and find out the IP address of the "server" (the "Access point") PDA
Click to expand...
Click to collapse
But I have a MS BT stack not sure if this Widcomm version is trouble free
http://forum.xda-developers.com/showpost.php?p=1072773&postcount=72
http://forum.xda-developers.com/showthread.php?p=1073003&posted=1#post1073003
http://forum.xda-developers.com/showthread.php?t=285696
using the HTC_PCM_Routing dll and is now using a custom dll. By using a custom dll I have complete control over the processing and can pass the multiple IO control calls need to get the audio routed. You may notice a funny icon in the phone app while audio is routed, I think this is tty mode (not sure), but, it works to do what I needed. Also, I have not messed with Voice Command activation yet, but, I do think that should be possible. I have not hard-reset tested this cab so please let me know if there are any issues. I also moved serial5 to serial9, so you may have to manually delete the serial 5 driver keys. After installing the cab if it does not work correctly, make sure the widcomm/plugins/handsfree/audiosetupdll says SD_PCM_ROUTING.dll
I'll also attach that dll separately for those who just want to replace the key and dll.
One note, the audio routing is full time, once activated all audio all the time will be routed.
,Dave
Edit: State management has been corrected, updated to v.03.
,Dave
Click to expand...
Click to collapse
I found The fluxist WiFi Hack -
These instructions will allow you to connect to the Internet connection on your Hermes via WiFi. Essentially, you will be turning your Hermes into a WiFi access point.
Click to expand...
Click to collapse
http://wiki.xda-developers.com/index.php?pagename=Hermes_accesspoint
So I wondered if The fluxist WiFi Hack could work with the proxy not sure how best to proceed.
Is it better to run the proxy and install the widcomm stack
or try to adapt the fluxist WiFi Hack to work with the proxy
or just to give up and wait until I falsh wm6 (i'd rather not go this way)
Can anyone provide a step by step on getting this to work?
starfish_001 said:
I have wm5 with an old rom ... no ICS
After reading a lot
I thought that I try http://www.pocketpcmag.com/blogs/index.php?blog=3&p=453&more=1 and
http://www.pocketpcmag.com/blogs/in...tting_up_a_bluetooth_personal_area_net&more=1
But I have a MS BT stack not sure if this Widcomm version is trouble free
http://forum.xda-developers.com/showpost.php?p=1072773&postcount=72
http://forum.xda-developers.com/showthread.php?p=1073003&posted=1#post1073003
http://forum.xda-developers.com/showthread.php?t=285696
I found The fluxist WiFi Hack -
http://wiki.xda-developers.com/index.php?pagename=Hermes_accesspoint
So I wondered if The fluxist WiFi Hack could work with the proxy not sure how best to proceed.
Is it better to run the proxy and install the widcomm stack
or try to adapt the fluxist WiFi Hack to work with the proxy
or just to give up and wait until I falsh wm6 (i'd rather not go this way)
Can anyone provide a step by step on getting this to work?
Click to expand...
Click to collapse
First, do you want to share your Wi-Fi or GPRS connection? It's only in the former case that you'd need the first (Java) app; with the latter case, go for the "hacked" one.
Thanks - i like to share my 3G/Gprs with my laptop ideally.
I'm guessing that I still need the proxy as I have a rom without ICS built in
WIFI to Bluetooth
First of all please don't mind my simple English.
I want to know if it's possible to do something similar.
Except:
My Device(HTC Wizard WM6) is connected to Wifi accespoint or using Desktop internet from USB.
can I share this connection over Bluetooth?
so my other mobile can use Wizards internet.
Internet from as desktop --> HTC Wizard --> BT on other mobile.
or
Wifi Accesspoint --> HTC Wizard --> BT on other mobile.
thnx.

Handy Sniffer v2.0

Hi IT people,
Handy Sniffer v2.0 has been released! It is cardinally altered.
11 protocol parsers are included and now anybody can develop new packet analyzers (.dll).
Unregistered version has a little restrictions but has no trial period.
You can find the program and module sample on our site.
http://winm-soft.atspace.com
Good Luck!
Great Release
Congratulations Alex, you managed to make cellular trafic capture, it's great news! Sorry that i didn't replyed to you about 1.6 but I had some personal problems that time. Anyway when we might expect WM5/6 version?
HS2 is specially designed for WM2003, WM5, WM6 and maybe smartphones (not tested). If there are some artifacts, ect. write me about it. I have WM5 and WM6 devices and HS2 and EDh work well. Play it! It is very great If anybody makes some additional protocol parser. Any ideas? Maybe some Instant Messenger protocol?
One more sample module
This is a sample module that can process each packet captured by sniffer. It replaces the main program module ("modules\hs_ether.dll") and calculates some Rx statistics. Maybe its source can be interested for somebody.
The link not work, now!
I clicked the previous link and all is ok. Copy is here.
Greetings AlexB,
I downloaded your program which sounds great. I installed the SDK certs and tried to get hsniffer running but it fails with an error message:
"Cannot activate the driver!" and then quits.
I'm using a HTC Kaiser with the latest official WM6 ROM from HTC.
If I start the program a second time, it starts without this error and if I click File->Tools->Adapters I get my adapters listed. Trying to start a capture generates the following error message: "Cannot get adapters list!"
Any hints? Did I miss something?
Hi c0rnholio,
I do not know why on some devices the sniffer cannot load the driver module (Windows\hsdriver.dll). The error 2 happens (ActivateDeviceEx, GetLastError, ERROR_FILE_NOT_FOUND) and next you see "Cannot activate the driver!". After this message the program works (you can open sample files) but cannot perform sniffing functions those need driver functionality. I think after this message the main window was behind and after next run you simply bring program window to top.
If anybody knows what causes such driver loading error I will be grateful for help. The program and driver are signed with SDK privileged certificate and it unfortunately does not help... **** happens.
Fixed it. The problem was that a GPRS connection was already established. After closing the existing connection the driver could be loaded and everything is working fine.
It is VERY strange! OK, if anybody ask me why HS does not work I'll say ask c0rnholio how need to do...
Hi,
i'm trying the new Handy sniffer into my TouchHD (Blackstone) but i can only get ARP packets (which are broadcasted). I also installed sdkcert as site advice, but nothing changes.
Alex, can you write down a list of devices which can capture in promiscuous mode?
In particular, how about Trinity and Blackstone?
Thanks!
sorry for my ignorance but what is the purpose of this? can i connect using gprs for free?
No, it's not for that purpose.
Handy Sniffer "Sniffs" (listen to) the traffic into a network. If working in "promiscuous mode" it can track down (and show to user) all the traffic (data in form of TCP packets) inside that network.
What's is supposed to?
There are many uses for this kind of tool, some legal and some ... "not legit".
While "sniffing" traffic of a given network, you can detect if someone is doing a unrightful use of the network, if an intrusion is being made, but also you can see passwords and other sensible data (like personal data).
It's like having a big hear cabable of listening network traffic. By itself, it can do nothing. It's up to the user to be capable of understanding packets of captured traffic.
So, forget a "stole the passwords" button. You'll not find it
woring with the HD2?
Hi, I have the HTC HD2, and I want to know if it was working with my phone?
I have actualy tried it, but the result was not good... (I only get ARP...).
thanks for any help
good for you guys, with my the HTC Kaiser I don't get anything...how do you do/set up the program
Thanks,
DOMy

Services & DLL's - Descriptions/Functionality

Many threads say you can just disable/enable services but don't get into enough detail.
Figured I'd try to start a nice thread on services/DLL's that are on devices.
Feel free to help out.
*Even asking about other services found on your device will even help.
Required - The service is required for common core functionality.
May Be Required - Should not effect basic device functionality, but necessary in some cases.
Not Required - Wont have a significant impact on device functionality.
==== SERVICES ====
SqmUpload/sqmsvc.dll - System Quality Metrics, not required. Used by Customer Experience functionality to monitor feedback. (Can be deleted with SQM disabled)
credsvc/credsvc.dll - Credential Manager Service, required for ActiveSync to sync properly.
LASSD/lassd.dll - Local Authentication Subsystem, required (GWES or SERVICES relies on it???)
DTPT/dtpt_srv.dll - Desktop Pass-through, may be required for ActiveSync. Allows ethernet access when connected via ActiveSync.
BTHIDSVC/bthidsvc.dll - Bluetooth Human Interface Service, may be required for connecting inout devices over Bluetooth.
OBEX/OBEXSrVr.dll - Object Exchange Server, may be required for IrDA/Bluetooth file transfering.
SNApi/regextdev.dll - State and Notification API, may be required for some applications monitoring devices states. ex: Incoming Calls, etc.
CERTENROLL/enrollsvc.dll - Unknown (Socket Certificate Enroll?), may be required for EAP-TLS Authetication.
BTAGSVC/kwag.Dll - Bluetooth Audio Gateway Service, may be required to activate Bluetooth and Audio over Bluetooth. (Some devices claimed to stream audio without)
BthAsPlugin/BthASPlugIn.dll - Bluetooth ActiveSync Plugin, only required for Syncing over a Bluetooth connection.
==== PROCESSES ====
filsys.exe - Internal Filesystem, required for basic operation. Manages registry and filesystem.
cprog.exe - Default Cellular Handler, required for basic phone operation.
device.exe - Device Handler, required for basic operation. Hooks system drivers and basic system functionality.
gwes.exe - Graphical Windowing and Event Subsystem, required for basic operation. Basically draws windows and controls.
shell32.exe- Windows Mobile Shell, required for basic operation. Basically creates the "desktop" and window functionality.
connmgr.exe - Connection Manager Application, required for basic network operation. Maintains a list of connections and profiles.
NK.exe - ??? Kernel, required for basic operation. Initilizes device and maintains system kernel.
poutlook.exe - Pocket Outlook ?Monitor?, may be required for some operation. May maintain connection to e-mail server.
==== DRIVERS ====
coming later
Nobody finds this the least bit useful?
I do! Give people a chance to reply, you posted late in the evening for Europe!
Thanks for the info.
I do too Maybe BTAGSVC means bluetooth audio gateway service?
MCSchermer correct
BTHIDSVC/bthidsvc.dll - Bluetooth Human Interface Service, required for connecting human interface devices over bluetooth (mice, keyboards and such)
BTAGSVC/btagsvc.dll - Bluetooth Audio Gateway Service, required to transfer audio over bluetooth.
thanks
good work
BR
Thanks Allot
as a Noob chef, I totally find this useful.. this isn't around anywere i've seen. Thanks allot sir!!
Thanks for the explaination. Should be a sticky thread IMO.
Very helpful. Thanks!
Tahnks a lot mate...A good effort. Share some more...
Very useful stuff
Great for building ROM's and speeding up the device by disabling some services.
You should post this on WIKI great info.
xplode said:
MCSchermer correct
BTHIDSVC/bthidsvc.dll - Bluetooth Human Interface Service, required for connecting human interface devices over bluetooth (mice, keyboards and such)
BTAGSVC/btagsvc.dll - Bluetooth Audio Gateway Service, required to transfer audio over bluetooth.
Click to expand...
Click to collapse
Thank you very much sir.
I kept thinking...HID...HID...what would a mobile device use HIDs for?
Basically exactly what an HID is, rather stupid to have it enabled by default...but makes sense.
If anyone can find out if device hotkeys (like headsets, etc) work with BTHIDSVC disabled, that would be great.
*Also could use assistance in determining core nature of poutlook.exe
Thanks
I found this lying around the internet. I don't have time to translate it, maybe someone does. I'll just post it here and hope You find it useful.
EDIT: Adding some keywords to make it googleable WM6 windows mobile Exe dll file description documentation
Dude, this is freakin' awesome! Thanks, bro
Thanks! Very useful information.
Nobody gonna help?
Nobody's gonna help until You very clearly state what is the problem. Currently You have one rhetorical question pending. Nobody has time to answer rhetorical questions.
Cool info
thanks for the info man.this will be a nice help for rom cookers.
btw, i'm not sure though, but is'nt poutlook.exe related to contacts or messaging for communicating to outlook on pc thru active sync?
I don't really know, I haven't flashed anything in my life except a router and CD-ROM Ant these were far more easy to flash than a PPC it seems.
Thanks, Great info..

Categories

Resources