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
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
The T-Mobile HTC HD2 UnOff Service Packs 1 & 2, I created with the cabbing help of skr_xd with the connection setup files (files I developed Leo-Based Roms for the Xperia but had strange difficulties cabbing them for the HD2, so skr_xd did the great job in cabbing them) will fix the main problems on the T-Mobile HTC HD2 which i noted below...
This Service Pack is for those who rather not flash custom ROMS, and continue using the stock 2.13.531.1 ROM...
I personally think the stock rom is great except for what this service pack does...
The T-Mobile HTC HD2 comes bundled with bloatware and a mixture of square icons and default wm6.5 icons; to me, the mixture is ugly...
Features:
Connection Setup... All Countries Included...
user must delete t-mobile connection settings manually by going to settings>connections>connections>manage existing connections>general>delete settings
connection setup may run after first reset, device may experience a 4 second lag when this occurs
Default settings menu restored...
Default Windows Mobile 6.5 Icons system wide... including newer system icons for that uniform look...
LED notifications of missed calls, sms and mms...
Solitaire & Bubble Breaker...
Camera & Camcorder Image Quality Increased...
Back Button and Graphical Send Button in HTC Messaging...
Owner Information Setting restored to register those games...
Automatic lock disabled... Very annoying, especially when listening to music; no more wasting time having to unlock the screen every single time you wake the device... you lock when you want!
Optimized for MS Office 2010 with new icons...
Color Twist Theme...
Minor Icon Replacements...
Icon Cache Refresh...
After system resets, apply new theme - ColorTwist
***Check the G-Sensor icon***
Icons that were removed...
***you need to delete their folders for more space manually (very easy to do with file explorer)***
Blockbuster
Barnes & Noble eReader
MyAccount
Visual Voicemail
Telenav
Mobile Backup
Slacker Radio
MobiTV
T-Mobile Help
Ferrari GT Evolution
Prince of Persia HD
Millionaire 2010
Tetris Demo
Guitar Hero 5 Mobile
After Installation, You May Remove The Program Folders On Your Device
Location:>> Computer > T-Mobile T-Mobile_LEO > Program Files
Blockbuster
BN eReader
mobitv
Slacker
TeleNav
Visual VoiceMail
Game Folders Are Located On The SD Card
CLICK THE BELOW IMAGE FOR THE ROM VERSION
Does not work, can't install on TMobile HD2. Plz help.
thats weird, I am using the same device and this is what I am using until i start cooking
Installed the service pack, but can't connect to internet. Internet provider is airtel india
you need to go to connection setup
pretty much no feedback on this, is no one using your hard work?
stock rom
just flashed back to the stock rom so yea ill give this a shot.
Me too just went to stock rom if this works it is just what i want
Installed perfect, now test but really looks good! You might have save me alot of disappointment Thanks
thanks guys... as soon as my comp is back up, I will be developing roms for the T-Mobile HD2 as well, with the same concept as I did for the Xperia X1...
Dear Spikegotti, plz help me how to set it for airtel India. I tried so many ways, in advanced tab i select the network, my ISP, acess point name- airtelgprs.com then finish. Tried Airtel Live too. On first day when i purchased it, without doing any settings it worked a full day. I surf so many sites. Next day it did not connect to net. So i start finding help on net. Finally i find UR post. So help me plz.
Call Airtel Customer support and get the GPRS settings. Then manually insert them to setting --> all settings --> connections --> connections
Its simple
you need to go to connections>connections, delete the existing settings which might be t-mobile... then use connection setup to apply your settings
edit: ok cool, for some reason t-mobile setting doesn't delete when applying new settings, these settings must be deleted manually
works GREAT
good job.
how we can check the settings to delete manually.
connections> connections> manage existing connections> general> delete settings
thanks guys
satnam1 said:
Installed the service pack, but can't connect to internet. Internet provider is airtel india
Click to expand...
Click to collapse
go to setting
go to connection
go to comm manager
make sure that DATA CONNECTION is on
click done
NB this applies to those wifi too this data connection must always be on
Actually i already applied airtel settings, but it still not working for me.
Hello..I have the required tmo stock rom. If I install this it would erase the bloatware? or will that be an update you are working on. I noticed the zipped cab says service pack 1 but you say sp2 will erase folders.? I just want to erase the bloatware to give me more ram space so phone will be faster, is this cab for me?..thanks
about the bloatware, it will remove the links... its easy to remove the folders, just connect via usb and remove them, either via the pc or on the device... folders located in the programs directory... block buster, mobitv etc.
the game folders are located on the sd card
hey fellas! im a user of a company which has a contract with vodafone for free 0.facebook ! but it always takes me 1c or more on every entering. I installed SPB Wireless Monitor and see what i found (look attached pic) it says the opera min used 2M, and system 15.7kb, ignore that facebook app i usually dont use it. So what i think is that system files with these KB makes my operator cost me :/ i thought its browser's fault, i tried internet explorer, winwap, opera mobile , mini etc.. so this is last thing i can think of.. any help.. ?
edit: please if someone can help me disable the access for this file or i dont know.. i really need it emergency.. if you have any ideas shoot please..
hey fellas! im a user of a company which has a contract with vodafone for free 0.facebook ! but it always takes me 1c or more on every entering. I installed SPB Wireless Monitor and see what i found (look attached pic) it says the opera min used 2M, and system 15.7kb, ignore that facebook app i usually dont use it. So what i think is that system files with these KB makes my operator cost me :/ i thought its browser's fault, i tried internet explorer, winwap, opera mobile , mini etc.. so this is last thing i can think of.. any help.. ?
edit: please if someone can help me disable the access for this file or i dont know.. i really need it emergency.. if you have any ideas shoot please..