Help with motoscript on wm6.5 (networking) - Windows Mobile Development and Hacking General

hey guys,
I hope that this is in the right section..... (mods, please move if not)
At work I have several vbs scripts that i use to do day to day task within Active directory. I'd like to write a motoscript that enables me to start these scripts from my device (touch HD running 6.5) when I'm at work.
I know that I need to do a few things in my script.
1 - start a wifi connection and connect to my work access point
2 - input a few parameters like username and such
3 - start a script thats on my work machine passing the inputed details on.
So far I can start the wifi connection by using Run("wifinetworks.exe") which is cool, but when i do it opens the available networks. Now if i leave the phone for a minute or two it does connect to the correct network but I still have the available networks screen open.
Is there a way of starting the connection without any GUI at all??
Also (and more importantly) how would I go about starting a app on a remote machine??
I'm think along the lines of mapping a network drive and then using RUN("X:\scripts\run me.vbs") but I'm worried that it would try to run the app on the phone and not on the remote machine.
Does anyone have any experience with these scripts? specially with networking with them??
Any help is greatly appreciated.
Thanking you in advance
Blastman

Related

ActiveNotQuiteSync Doing My Head in

>>>
Yo!
Saw the other thread where the other guy initially could and then lost the ability to ActiveSync to his PC - exactly the same has happened to me.
http://forum.xda-developers.com/viewtopic.php?t=42520
Here is what I tried and it worked:
* Connect Pocket PC
* Go to Network Connections and Find the Local Area Network Connection for the Pocket PC
* Properties
* Make sure TCPIP is selected
Click to expand...
Click to collapse
"Find the Local Area Network Connection for the Pocket PC" - NOPE!! no matter how many icons & tabs etc I tap, i simply CANNOT find this!
What I get on my PC is:
USB Device not recognised: Q: Is there a USB driver I need to install & if so where can I get it from (via the internet).
What I get on my Uni (eventually) is:
Pocket PC Networking
Unable to obtain a server-assinged
IP address. Try again later or
enter an IP address in Network Settings
Click to expand...
Click to collapse
Server-assigned IP address??? You're kidding me right? I think I need some insight into what ActiveSync is actually doing here!
Yep, it's rant time boys & girls....
Now as an aside, is it just me but is something basically amiss with these things - Sync'ing to a PC SHOULD BE A BLOODY DODDLE- EASY - NO DICKING ABOUT, but hell no - infinite levels of crap to wade through encountering insane use of TLAs (yep, there you go, another one). God, why can't they K I S S ???? (and another one). What I mean is that I've been using PCs since day dot. I am an honours degree qualified electronics engineer - I desgin hardware & write real time embedded software systems, so if I am getting pi$$ed off with the damn thing, what chance has your average mug in the street??????? :shock:
Andy (currently rigging up a sturdy hessian rope with a noose in it)
PS
TLA = Three Letter Anacroynims (sp)
K I S S KEEP IT SIMPLE! STUPID.
Good-o, know one knows how to do this (what should be simple, but hell no) task.
Bloody great!
Can't sync to a PC, can't install any programs, utterly useless as a PPC device all down to some sh1te convoluted bollocks piece of software.
I can now measure time wasted in YEARs on similar, badly written software.
Andy
hey dude
take a few deep breaths and lets start at the beginning eh
this should be a simple straight forward process and suspect you have missed the simple bit and launched straight into complex related issues, I suspect that it relates to the using of a USB Hub.
so lets "KISS" ehm, slight cough, blush
1. Dont use a USB hub
2. Delete all partnerships that you have created on both the PC and the PPC
3. Ensure you are running XP SP2 on the PC
4. Ensure you are running ActiveSync 4.1
5. Reboot both the PC and soft reset PPC
6. Go into task manager on the PPC and ensure activesync didnt auto start on soft reset
7. Open outlook on the PC and ensure it is upto date and connected if you are running it with exchange
8. Plug the PPC via the Sync cable directly into the USB port on the PC (not a hub)
9. Wizard should start, at this point, untick the box about exchange server
10. Following the wizard, deselect all options for synchronisation
(we can add some options later, but lets get to the basic partnership setup first)
Now then, those are the simple basic steps. What I would like to know before we get much further is:
1. What do you see? Did you get a wizard pop up to create the partnership?
2. Did you successfully create the partnership
3. Did it synchronise on the activesync screen
4. Did you get an error message on the PC? If so what is the description? If so, go to the PPC open up activesync on the PPC and tell me what the error code is, if any and details of last sync?
If you have successfully created your partnership and it says synchroniZed even though nothing is actually sync'd yet, we have a good start. You can now start installing programs before we sync any data.
I personally choose to extract the cab files that are used during the sync file and copy them to my SD card so I dont need an activesync connection to install.
The CAB files are normally located in \program files\microsoft activesync\ once you have run the setup program on the PC. Alternatively, they can be found in their own personal program directory. I have only ever found one situation that I couldnt find the cab file for. Now all of my source programs are on an SD card and can be reinstalled anytime, anywhere without my PC.
Eitherway, if this is now working, and you have your partnership, first sync something simple like your favourites, or files.
Once this happens, can you now choose just your contacts, then your calendar, then your tasks.
At this point, you can move one step further and decide whether you would like to use your outlook email to sync directly, or through a GPRS/WIFI facility directly to an exchange server.
Okidoki
Thats enough for now. Lets get back to the beginning and work through this simply.
Some other forums that may help....
Morphosin found solutions to his here:
http://forum.xda-developers.com/viewtopic.php?t=40646&highlight=
and some more
http://forum.xda-developers.com/viewtopic.php?t=42540&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=37039&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=24184&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=42088&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=40900&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=39259&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=38453&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=35449&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=34598&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=31478&highlight=85010014
http://forum.xda-developers.com/viewtopic.php?t=27636&highlight=85010014
as is obvious, you are not the only one. So some deep breaths, tell me what is going on, try to follow the above, read up on issues faced by others and see if they can assist, then let me know how you go and we can start to trouble shoot. I assure you it will be simple, and even if I cant help, each time we communicate this discussion will bounce to the top again and people far more knowledge that us will but in say, hey morons, click here and its done... and all will go away.
Cheeers
@simon_darley thank you very much that was very helpful (btw, no hubs to speak of).
Story so far.
Let me get this off my chest first...
OH MY GOOOOOOOOOOOOOOOOOOOOOD!
How friggin COMPLICATED can something get???? 2 days of searching, reading, installing, uninstalling, falling down holes & climbing out again, faffing & frigging about. All of it needlessly!
Bad buggy software - as a result, many hoops to jump through.
See these were my goals & I think I have it (almost) all sussed now:
1) Sync to PC via a physical USB cable - easy? - nope. ONLY reason to do this is for installation of software. (Sod that sync tasks bollocks, I couldn't give a toss). A little snipped from some dude (here) mentioned the fact that this was unnecessary & could be achived via copying CAB files onto SD media & then installing software on the PPC itself - GREAT :lol:
2) WiFi connection (at work) so I could browse the internet - why? Because it was there & I was interested to see if I could do it. 3 hours later I'm in - thankyou very much! :wink: Some arsehole programmer thought it would be a good idea to make the SSID (a 26 character HEX code), CASE SENSITIVE and relay the keystrokes back to the user as a series of sodding '*'s.... :evil: In the process I've had to learn all sorts of stuff about EAP, LEAP, WiFi LAN access point (Beacons), Wireless clients, The 802.11 standard & hence WEP (and dynamic WEP keys), SSID, EAP, LEAP, WPA TKIP & finally the fact that of all those listed, my PDA uses the adapter: "tiacxwln Compatable Wireless Ethernet": to use server-assigned IP addresses (i.e. use DHCP).
3) A nice simple BlueTooth connection to my PC so that I can browse the internet on my PDA while my wife does the same on the PC - This turned out to be a TWO DAY exercise: Let me list some problems.
Bug - Can't use the WinXP SP2 Bluetooth drivers.
Bug - Can't install the WIDCOMM drivers as they are not certified. (There is a workaround guide, but COME ON GUYS!!).
Bug - If you've pissed about with BlueTooth COM ports, WIDCOMM can't 'go back' as it were to use the lower COM ports (COM9 & below), the assigned COM ports keep increasing. This would be fine if it were not for a ...
BUG - PDA BlueTooth can only use COM ports up to COM9 :twisted: :twisted: :twisted: :twisted:
ARRRRRRRRRRRGH
Hence: Had to uninstall WIDCOMM
Hence: Had to reinstall WinXP BlueTooth driver
Hence: could then (in a convoluted manner) 'recover' the com ports from COM9 and below.
Hence: Then had to uninstall the WinXP USB Driver
Hence: Then had to reinstall the WIDCOM drivers (and go through all that certification bollox again).
Hence: The PC Could then be set up to use a Serial Comms 'service' on a COM port assignment on a COM9 port or less!!!!
Hence: Then had to REBOOT
Hence: Then had to remove any partnerships
Hence: Then had to use a password OF MORE THAN 8 CHARACTERS - some guy mentioned It does allow you to enter less than 8 characters but doing so screws thing up. ARRRGH AGIAN :twisted:
Hence: New partnership on PPC
FINALLY A BLUETOOTH LINK to the PPC
More dicking about making my internet connection an available 'service' over Bluetooth'
FINALLY get to connect to the internet :lol: :lol: :lol:
But, hold on, the fat bird isn't singing yet, GPRS is now sticking it's nose in insisting it's the (expensive) path to the internet & keeps popping a nag up, regardless of the fact that I keep telling it to f-off!
Oh, and the damn thing seems to keep disconnecting every 5 mins. FOR THE LOVE OF GOD!!!!!!
ARRRRRRRRRRRRRRRGGGGGGHHHHHH
Anyway, getting there :wink:
Phew. Anyone who knows how to get rid of that poxy GPRS - 3G thing (yes I know its a medium so I guess I mean that useless boil on the arse of humanity called WAP) & also how to keep the damn thing connected - I think it's an Activesync issue....
Anyway, I'm now off to the top of my local bell tower with a fully loaded high-powered rifle with telescopic sights & 10,000 rounds of ammo, disguised as a postman.
Andy
hey andy
werent you the guy that got a nice cheap phone hacked the parts, put it back together, and now over the moon.... ?? thought it was you i read about, may be not.
Hmmmm gprs..... hmmmm fun aint it.
try this cab file..... it stops the auto detect and thus removes the "G" in the screen, I found it effective.
I think you can still connect it, but have to go through the manual process of going into connections, press and hold, select connect. otherwise it wont auto connect at all, it saved me heaps, and I never really used it at all. Otherwise, you can simply go in and delete the settings yourself when you like.
Re Activsync, you may find that it auto starts, and thus tries to start the gprs. this can be rectified by going to activesync on the PDA, create a server source, as fictitious entry. find the connection periods and set all to manual. Then delete the settings entirely. This should prevent activesync from autostarting, and more importantly kick starting GPRS.
oh well, think of it on the bright side, you are getting to use all tha education you paid a fortune for....
let me know how you go with activesync and gprs...
werent you the guy that got a nice cheap phone hacked the parts, put it back together, and now over the moon.... ?? thought it was you i read about, may be not.
Click to expand...
Click to collapse
Tha's me!
Hmmmm gprs..... hmmmm fun aint it.
Click to expand...
Click to collapse
And WiFi
And BlueTooth
And USB
And ActiveSync
And this qVGA thing (still amazed at that - "hey guys lets put a full 640x480 expensive top of the range VGA display on these things", followed by "hey guys lets NOT use the full display capabilites, let's piss everyone off and only actually design an OS that uses a QUARTER of it's capabilites and use 320x240?!?!?!?!" - my God in Heaven!!!!!!!!! :evil: )
try this cab file..... it stops the auto detect and thus removes the "G" in the screen, I found it effective.
Click to expand...
Click to collapse
Thank-you Thank-you Thank-you (again)
I think you can still connect it....
Click to expand...
Click to collapse
I think I can safely say that I will NEVER EVER connect to the internet using crappy WAP. Crap & expensive & slow & useless & what's the point?
oh well, think of it on the bright side, you are getting to use all tha education you paid a fortune for....
Click to expand...
Click to collapse
You cheeky little a-rab. :lol: Anyway I'm old enough to have missed tuition fees here in the UK, so my 4 years Honours Degree course was not paid for by yours truley :wink: Hell I even got a grant :wink: :wink:
Anyway I must say this, you have been more than helpful & understanding of my foul temper! You see my fault is that as an engineer (my wife is now rolling her eyes skyward), when I see things badly designed it just does my head in because it does not take much more effort to make things so much more better - it beggers belief sometimes and I have to wonder if they actually try using some of these God awful programs & drivers - like I may have already mentioned, how is your average guy in the street meant to cope????
Andy
underwurlde said:
And this qVGA thing (still amazed at that - "hey guys lets put a full 640x480 expensive top of the range VGA display on these things", followed by "hey guys lets NOT use the full display capabilites, let's piss everyone off and only actually design an OS that uses a QUARTER of it's capabilites and use 320x240?!?!?!?!" - my God in Heaven!!!!!!!!! :evil: )
Click to expand...
Click to collapse
Thats not strictly true...
it is running at 640x480, always!!!!
its the font sizes and dpi the applications run at that makes it look like qvga.
try the latest pocket breeze, full vga support, looks amazing.
Click to expand...
Click to collapse
my old mans an engineer (marine/mechanical).
i left home early....
he is a great guy from 15,000km away (he is in Perth, WA and I moved to Brisbane, QLD), same continent, just opposite sides of it. now we get along great
one advantage of the GPRS, quizz shows.... you can win the prize competitions by googling whilst in the show, and it doesnt look as obvious and it isnt WAP, it should be full internet access with googling ability.
if you get 3g on the correct plan its reasonably usable and also gives you TSC/RDP connections into your servers whilst on the road. note, beware the standard 3G is voice capable only at 128kbps, but it should be able to and can be requested to run at 384kbps.
either way, i dont really use it either, its simply to expensive. i just run wifi at home and works a treat.
it is running at 640x480, always!!!!
its the font sizes and dpi the applications run at that makes it look like qvga.
Click to expand...
Click to collapse
I think that was what I was trying to say... :roll: Anyway what's that pocket breeze thing then????? Link / file DEFINATELY needed!!!! :lol:
my old mans an engineer (marine/mechanical).
i left home early....
Click to expand...
Click to collapse
Probably because he spent most of his time shouting at his PC. (Just like what I've spent the entire weekend doing... Saying that I seem to be missing a daughter - and she's only 3 1/2... The other one is packing her suitcase - not bad for a 2 year old).
one advantage of the GPRS, quizz shows.... you can win the prize competitions by googling whilst in the show, and it doesnt look as obvious and it isnt WAP, it should be full internet access with googling ability.
Click to expand...
Click to collapse
Wierd. chaps here at work are intregued... Can you expand a little (I'm a bit slow at these things) & provide some site addresses please?
Thanks guys - now the dust is finally settling, things are getting (even) more interesting on this little Xda Exec..
Andy
re quizz shows, what i meant was things like quizz nights and business nights out when there are prizes and games such as "the most poisonous snake" or the longest river or biggest river etc etc
you can google this sort of information and get the right answer inside the show. it doesnt stand out as much when you are using a phone rather than a laptop or computer, but with fast internet access you can get the answer 99% of the time, in the time frame.
just dont get caught...
underwurlde
pocket breeze is a today plugin pim system,
i hardly ever use calendar, tasks, inbox, notes, etc thats to pocket breeze,
http://www.sbsh.net/products/pocketbreeze/
take a look and install the demo, it roxx, just get rid of the mail, calendar, tasks plugins from today and use this as an all in one, it hardly impacts performance with the right settings, eg, turn off expand/collapse, turn off the entry counters etc, with these little tweaks its nice and smooth.
reduce the font sizes down aswell, you get vga res text.
personally i think breeze is the best pim management system there is, i tried pocket informant but for impact it had.
lost again!
@simon_darley,
LOL...I get you now, sneaky git! :wink: Like it, my kind of scam.
Just another question...
The rar file you sent me, erm , now I've installed it now what? Is it a program (if so where is it hiding) or is it a reg hack?
Steep learning curve going on here!
Thanks again,
Andy
Andy
Re
FINALLY get to connect to the internet
But, hold on, the fat bird isn't singing yet, GPRS is now sticking it's nose in insisting it's the (expensive) path to the internet & keeps popping a nag up, regardless of the fact that I keep telling it to f-off!
Then
Just another question...
The rar file you sent me, erm , now I've installed it now what? Is it a program (if so where is it hiding) or is it a reg hack?
The rar file, is actually a cab file, and can simply be downloaded to your device, and click to run, it will auto install and from that point, not be removable. It was an "O2" release not an Imate release, but works on both.
I dont know what it is, I dont know how it works, but I do know that it stopped my JJ from auto connecting to the internet whenever i clicked or touched something that needed an internet address. It basically stops the device from detecting that the option is available, and thus if the system detects a need, it cant find the connection directly.
It basically set the system to have no internet connection, unless you manually open a connection, eg via WIFI, Bluetooth AS, or manually making the GPRS connection by going start > connections > connections and locating the connection, then press and hold to make the connection. It was so long and convoluted, that it never happened and i never connected using GPRS/3G unless i was desperate (like quizz shows ...
There are other reasons why it connects in the first place and somethings that you need to look at was why was it trying in the first place.
1. Activsync automatically starting as mentioned
2. Pressing the "Web" key on the keyboard, which auto starts PIE, which if you havent changed to \windows\default.thm rather than the default www.clubimate.com or other similar, then it would auto start the GPRS as it "detected" that GPRS was available.
3. MSN Messenger not closing properly and trying to reconnect
4. Closing a WIFI connect when the device hasnt shut down an Internet connection
So, what it is supposed to do is shut the direct availability detection method the system uses. I dont really know how successful it was, but you should now see the removal of the "G" and "U" icon, which should now have a symbol similar in nature to the active connection, but with a cross through it.
In summary, i dont know... it was something that was given to me in this forum months ago as i also got "upset" by the auto connect feature. After adjusting the AS settings, and changing the Internet shortcut button, i didnt need it anymore, and still dont run it on my device as it doesnt auto connect as much anymore at all.
Now, it only auto connects when i click on a link in my email and i dont have wifi open, which was my fault not the device fault for clicking the link in the first place.

Remote Shutdown of PC from WM5?

Does anyone know of a freeware program that can remotely shutdown the home PC from a Wifi network? I found a free Wake-On-LAN program and I can turn on my computer from anywhere in my home with it, but I don't have the means to turn it off. Thanks.
Using a VNC client on your phone and the server on your pc you could remote in and shut it down as if you were in front of it.
Hmmm, call me ignorant but I just wonder what putpose does it serve? If it is a home network and your house is not as large as CENTRAL PARK New York you should be able to actually walk to your computer and shut it down instead of sitting room next door and do it from there!
How much more lazy the human race can get?
Junner2003 said:
Hmmm, call me ignorant but I just wonder what putpose does it serve? If it is a home network and your house is not as large as CENTRAL PARK New York you should be able to actually walk to your computer and shut it down instead of sitting room next door and do it from there!
How much more lazy the human race can get?
Click to expand...
Click to collapse
note that he mentioned swhithing a pc on using wake on lan - thats why he mentioned his house - lan limitation. the real purpose of what he looks for would be turning your pc off while being away.
Curious D: i didn't hear of any app written especially for this, but for example emule can do it. if you use emule on your home pc - try checkin out it's mobile client - mobiemule - a java applet that lets you manage your downloads as well as turning your pc off. if it's not suiteble for you, i would suggest setting up apache server with a special php code on it, execing an app to close windows and then using your phone browser to access this php code. a bit of a workaround but in my opinion the easiest. (i used to controll winamp this way
This might be a solution! I did not digg in to it because of such tasks are not interesting to me but I am sure you can do what you need to do with it:
http://www.microsoft.com/windowsxp/using/networking/expert/bridgman_02june10.mspx
it's another option, yes it is possible but not very handy. i know setting up apache or any other web server is not very handy task neither. i would just code a simple app for desktop pc that would listen on telnet port and after receiving specified command would shut windows down. maybe even code a simple version of "web server" so it would be accessed using web browser? huh, i'll try in my spare time ;]
:update:
i could wrap up an application that would sit launched at your pc and listen for a connection. you would have to open a web browser (not only at your phone, it could be anything computer like and browse for an adress like:
http://your.ip.address:some_port/specific_command
to force my application to perform any action. it could be shutting down your windows or anything else.
note - it requires you to have a public ip address, and you would have to forward some_ports for it in your lan - just like any other serverlike application. would you be interested? it is quite easy so i can do it for you. cheers
Thanks for all the replies.
Raceit: I thought about VNC, but my VNC program incorporates an RC4 encryption which isn't supported for the WM5 platform at this time (at least I couldn't find any. This would be the ideal situation since then I can control my computer from my phone to do some simple operations. (I can do this already with my laptop, but it takes a long time to start up whereas the phone is fairly immediate)
Banannq: No no...Junner2003 is right. I AM lazy. I'm actually looking for it because there have been some nights that I remembered I forgot to shut down the computer and when you are in bed, you don't really want to go across the house to shut something off. I'm a light sleeper and when I wake up, I think about stuff. The idea that you had is over my head. Thanks for the offer for setup, but it seems I would have to open my firewall which I would rather not do. Again, thanks.
Junner2003: Thanks. I'll look into that link from Microsoft.
Curious D: too late mate, i already did the base of program ;]
now i can only finish it ;] it receives a message from a www browser and all i need to do now is to make it respond with an action, which is quite easy job - i'll add a procedure of shutting windows down and i'll upload it somewhere this evening. if you want it, you can get it, if you prefer not - no problem. for me it was a good oportunity to code something new ;]
forget evening. it's done. remember it is very simple...
so you need to launch included exe file on your windows machine. i tested it on xp, it should also work on older OS's, but i cannot be sure.
as i said - if you have lan at your home (and probably you have if you use your phone to connect to wifi) you need to access your router menu to allow connections to the pc my app is running on. depending on manufacturer it is done a bit different but still quite simple. you need to find a function called "port forwarding" and set up a new rule. You allow traffic to "your pc ip number" on "99" port (thats my app specification). you basicly need to allow traffic via tcp, but can be also tcp+udp
when it's done thats it.
providing that the programm is running, you can first try opening you pc's browser and type a specified url in your browser:
http://localhost:99/hello_world
you should see "/hello_world" message in return.
you can then try
http://ip_address:99/some_message
your ip can be checked by typing "ipconfig" in command line (windows_start>run>cmd) on your pc.
then you can do the same on your phone : http://your.pc.ip.address:99/message
if it works it means that everything is ready to go. then go:
http://your.pc.ip.address:99/shutdown
and that should do the magic.
i hope it's quite clear for you, if not - please ask. i'll try to help you if you think my program would be worth it ;]
i hope you like it
Wow. That's really cool. Thanks. I'll look into it more on my next day off. (Schedule's a little wacky, but it brings food to the table) Thanks again. Out of curiosity (not asking for more because you have already been very generous with your time and effort), can something be set up without port forwarding? If it is within a home network, can something be setup like VNC (without the remote desktop) simply to shutdown a computer within my own Wifi network?
Yes, should be possible either if you use STATIC IP ADDRESSES (which is always a problem if you have a linksys router) or just via computer name in the network: " \\MyComputerName " (you will have to turn file sharing in for that!)
Cool. I'll try it soon. Thanks again.
Curious D said:
Does anyone know of a freeware program that can remotely shutdown the home PC from a Wifi network? I found a free Wake-On-LAN program and I can turn on my computer from anywhere in my home with it, but I don't have the means to turn it off. Thanks.
Click to expand...
Click to collapse
Can you please post the free Wake-On-LAN app that you have??
sorry guys, i didn't have time to post anything sooner - had a terrible day with my wizard - 4 hard resets and finally rom upgrade :/ huh, looks good now...
anyway - i didn't code anything that would communicate through windows network neighbourhood - it sounds like an interesting idea, but i dont think i could be able to accomplish any success here very soon ;] sorry.
freeyayo50 said:
Can you please post the free Wake-On-LAN app that you have??
Click to expand...
Click to collapse
Here you go...
http://www.modaco.com/index.php?showtopic=240773&mode=threaded

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

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

Android basic WiFi tether - new project

Hello everyone,
I'm a computing student and Ive got the task to develop a basic version of the WiFi router found here: http://code.google.com/p/android-wifi-tether/
Ive learned to program in Java during my 3 years of college and I consider that Ive got the basics covered but Im really bad at programming.. I am willing to learn a lot more to complete this project and in the process Im also planning to learn some serious programming skills considering the complexity of the application development.
Can someone please bring some light on this and help me with it? I actually dont even know where to start coding for this. All I managed to do in the last 24h is to find the below websites but I dont know how to put everything together and start coding. Ah, and I want to mention that once I finish it I will share it with the open source community, not looking for any profit. Its just a college project for me. Thanks in advance for any help that anyone can give me!
Android Developers
http://developer.android.com/
Wireless Tether for Root Users (Opensource)
http://forum.xda-developers.com/showthread.php?t=486767
Tethering my laptop with android
http://forum.xda-developers.com/showthread.php?t=577590
Tetherbot
http://graha.ms/androidproxy/
Tethering VIA USB - Install and troubleshooting
http://forum.xda-developers.com/showthread.php?t=443025&highlight=tether
tether Wifi
http://www.androidactivity.com/tetherWifi.html
iptables
http://www.netfilter.org/projects/iptables/index.html
Dnsmasq
http://www.thekelleys.org.uk/dnsmasq/doc.html
and of course wikipedia
http://en.wikipedia.org/wiki/Tethering
Well this is a functionality scenario for it. Id appreciate if one of the experienced programmers would give an opinion on it. Thanks!
#1 User starts the program by tapping the app icon.
#2 Code to check for Internet connection over GSM network (check gsm state. if off, go to 3. if on go to 7)
#3 Code to send instructions to the GSM modem to establish an internet conection.
#4 If the connection cant be established due to various technical errors like no signal, wrong APN settings etc then 5
#5 Code to show info message on the screen to inform user
#6 Once the device has a valid internet connection(check) then 7
#7 Code to show settings to user and allow customization of SSID (network name). [and security key(optional for now, we'll do it later if we have time)]
#8 The user presses the start button.
#9 Code to activate the wifi card in adhoc mode and broadcast the adhoc chosen SSID
#10 Code to accept connection from a valid device and communicate with it over wifi
#11 Code to share the established internet connection over GSM network with the device connected over wifi
Hi!
I'm one of the authors of "Wireless Tether for Root Users".
What means "a basic version of the WiFi router"?
You know that most wifi-interface-drivers of android-devices do not support master-mode which would be mandatory to implement a "wifi router/access-point" (that's the reason why we support adhoc-mode only)?
Harry
harry_m said:
Hi!
I'm one of the authors of "Wireless Tether for Root Users".
What means "a basic version of the WiFi router"?
You know that most wifi-interface-drivers of android-devices do not support master-mode which would be mandatory to implement a "wifi router/access-point" (that's the reason why we support adhoc-mode only)?
Harry
Click to expand...
Click to collapse
Hi Harry, I appreciate the reply, thanks a lot!
"a basic version of the WiFi router" means a functional application that will run on an android phone (hopefully not rooted), will accept an ad-hoc connection with another wifi device over wifi and share its built in Inet conneciton with the device that connects to it. If I manage to get this running within 3 weeks I will complete the project in time.
I didnt know about the android wifi-interface-drivers..I was planning to try and develop this (hopefully successful app) into a proper wifi router (the full version) as my last year project, but now that plan is down the drain
Could you please help me start this? Where did u start when u actually started coding for this project? Any advice you can give me will be very welcome!
Cheers m8, have a good weekend!
harry_m said:
Hi!
I'm one of the authors of "Wireless Tether for Root Users".
What means "a basic version of the WiFi router"?
You know that most wifi-interface-drivers of android-devices do not support master-mode which would be mandatory to implement a "wifi router/access-point" (that's the reason why we support adhoc-mode only)?
Harry
Click to expand...
Click to collapse
Hi Harry,
By ad-hoc mode do you mean that the phone has to be rooted?
My understanding is that there is no way to have GPRS/3G running at the same time as a WiFi connection on the normal Android OS on a non rooted phone?
@atl4ntys,
Nice to see another Irish developer on Android
What your trying to do in 3 weeks seems like a big task and the normal Android SDK wont be much help for the reason I have stated above unless you root the phone.
cheers draffodx, I appreciate the interest!
Abt your question, to my knowledge wifi can run at the same time with 3g on a stock non rooted phone but it will not run in adhoc/ap mode. Unless some found a workaround that.. I'd prefer to develop a very basic app that will run on any android but if it proves to be an impossible task (also given the dev time available) then I will be happy with a function one on a rooted android. Dont need security and fancy graphics I just need it to work, so Im sure between me and my project partner we'll get it done (hopefully with a bit of help from the android devs)
Have you got any resources for how to run 3G and Wifi at the same time?
Its something I need to be able to do and from a few days research it seems that the OS only switchs between Wifi and 3G and never runs both at the same time.
From the SDK API's I cant find anything allowing me to turn both 3G and Wifi on.
Can you also define what you mean by adhoc/ap mode?
Thanks
draffodx said:
Have you got any resources for how to run 3G and Wifi at the same time?
Click to expand...
Click to collapse
No, not yet.
draffodx said:
From the SDK API's I cant find anything allowing me to turn both 3G and Wifi on.
Click to expand...
Click to collapse
I havent looked into it properly yet. Maybe Harry will answer or if not, try here: http://forum.xda-developers.com/showthread.php?t=474470
draffodx said:
Can you also define what you mean by adhoc/ap mode?
Thanks
Click to expand...
Click to collapse
Adhoc is computer to computer connection, without an access point. Info here: http://compnetworking.about.com/cs/wirelessfaqs/f/adhocwireless.htm
ap is an access point
The difference is(wiki):
Wireless Access Point vs. Ad-Hoc Network
Some people confuse Wireless Access Points with Wireless Ad-Hoc networks. An Ad-Hoc network uses a connection between two or more devices without using a wireless access point: the devices communicate directly when in range. An Ad-Hoc network is used in situations such as a quick data exchange or a multiplayer LAN game because setup is easy and does not require an access point. Due to its peer-to-peer layout, Ad-Hoc connections are similar to Bluetooth ones and are generally not recommended for a permanent installation.
Internet access via Ad-Hoc networks, using features like Windows' Internet Connection Sharing, may work well with a small number of devices that are close to each other, but Ad-Hoc networks don't scale well. Internet traffic will converge to the nodes with direct internet connection, potentially congesting these nodes. For internet-enabled nodes, Access Points have a clear advantage, being designed to handle this load.
Thanks for that atl4ntys!
If you get wifi & 3G working at the same time let me know it would be very interesting.
Good luck with the project
draffodx said:
Thanks for that atl4ntys!
If you get wifi & 3G working at the same time let me know it would be very interesting.
Good luck with the project
Click to expand...
Click to collapse
hey draffodx, wifi and 3g do work in the same time but the wifi works in client mode not adhoc. the catch is to find out how to get it to work in adhoc mode while an inet connection is established over gsm
*1st post edited. Added possible functionality scenario opinions anyone? Thanks!
Hey atl4ntys,
How are you getting on with this?
draffodx said:
Hey atl4ntys,
How are you getting on with this?
Click to expand...
Click to collapse
hey draffdox,
I managed to get it working in the end but I had to base my code on harry's 9.3 http://code.google.com/p/android-wifi-tether/source/browse/#svn/branches/0.9.3
If u want to see my final report, wait a few days as I will upload it online somewhere.
cheers, have a good weekend!
atl4ntys said:
hey draffdox,
I managed to get it working in the end but I had to base my code on harry's 9.3 http://code.google.com/p/android-wifi-tether/source/browse/#svn/branches/0.9.3
If u want to see my final report, wait a few days as I will upload it online somewhere.
cheers, have a good weekend!
Click to expand...
Click to collapse
Thanks for that atl4ntys, excellent read, its a pity it still cant be done on a non rooted phone
Hey guys,
It's nice to meet some Irish People on this forum,
good luck with the project.
Sorry I can't add anything but I am an Android Developement newbie.(aswell as a java newbie)
I can't wait to see the app.
harry_m said:
I'm one of the authors of "Wireless Tether for Root Users".
Harry
Click to expand...
Click to collapse
Hi Harry, i'm using your software, all work fine except i have to use "proxoid" to re-write the user-agent. When not using it, no web surfing for my computer is impossible.
The problem is Poxoid is written in java, and slow down the internet connection from the phone. I'm downloading at about 100kB without proxoid, and only 20-30KB with.
I'm asking you if you know another program that does same thing (user agent rewriting) , easy to install for rooted android phones, or why not include that fonctionnailty to Wifi Tether?
Thanks for Wifi Tether, nice program !
is this - (the above posts)
a form of uma or gan???
mikob2d said:
Hi Harry, i'm using your software, all work fine except i have to use "proxoid" to re-write the user-agent. When not using it, no web surfing for my computer is impossible....
Click to expand...
Click to collapse
Hey mikob2d, I think its best if u send him a private msg or if u contact him here http://code.google.com/p/android-wifi-tether/
Don't think he's monitoring this thread anymore
Rptynan said:
Hey guys,
It's nice to meet some Irish People on this forum,
good luck with the project.
Sorry I can't add anything but I am an Android Developement newbie.(aswell as a java newbie)
I can't wait to see the app.
Click to expand...
Click to collapse
hey 2u2 and welcome here but I finished this project and will not release an open source or a commercial app. The project was way harder than I expected and I had to base my app on Harry's harry's 9.3 version of the app.
I sent u2 a pm with a link to the final technical specs. Hope you'll find the info useful

Categories

Resources