Page 1 of 5 12345 LastLast
Results 1 to 10 of 42
Discuss [Project] iPhone as a 3G router at the Free Toolchain Software (Cydia App's) - Hackint0sh.org; I was wondering if in anyone was interested in working on a project to get ...
  1. #1
    Newbie Array

    Join Date
    Sep 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [Project] iPhone as a 3G router

    I was wondering if in anyone was interested in working on a project to get the iPhone to go beyond proxy-based tethering and have a program that will simply allow the iPhone to take its Internet connection and serve it up to a WLAN.

    I believe it has the hardware, and I would think that we would be able to at least get some ideas from dd-wrt for the source code (it's open, right?).

    Tethering is great, but zero config is better.



  2. #2
    Newbie Array

    Join Date
    Jul 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Whee, finally found the thread

    I'm definitely interested in finding a solution. Currently my plan is to inspect how it's done on desktop os x and use that as inspiration, but I'll also definitely have to see what the gnu method is.

    I did a quick 'ps ax -ocommand' with and without internet sharing, the diff shows the following processes:
    /usr/libexe/InternetSharing
    /usr/libexec/bootpd -P
    /usr/sbin/mDNSResponderHelper
    /usr/sbin/named -c /etc/com.apple.named.conf.proxy -f

    It also appears to have stopped the process /usr/libexec/service_helper (not sure if this is relevant)

    This makes sense, it needs a dhcp service (bootpd), bonjour support (mDNSResponder) and a DNS proxy (named). Looks like the interesting functionality is locked up inside the InternetSharing executable. When I have time later tonight I will see if the code for that is in the darwin repository for desktop os x, but I kinda doubt it. So we should probably start looking at the GNU tools to fill this gap.
    Last edited by Jewdass; 07-22-2008 at 01:54 AM.

  3. #3
    Rookie Array

    Join Date
    Jan 2008
    Posts
    17
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Check for a guide here:
    http://cre.ations.net/blog/post/how-...ing-your-3g-co
    Seems to work good.

  4. #4
    Newbie Array

    Join Date
    Jul 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    pispuso: That is "proxy based tethering".. Our goal is to get the iPhone acting as an access point so that computers connect to it directly and receive DHCP info from it, rather than connecting through an ad-hoc network and a proxy.

  5. #5
    Newbie Array

    Join Date
    Sep 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Code.

    Quote Originally Posted by Jewdass View Post
    Looks like the interesting functionality is locked up inside the InternetSharing executable. When I have time later tonight I will see if the code for that is in the darwin repository for desktop os x, but I kinda doubt it. So we should probably start looking at the GNU tools to fill this gap.
    Yeah, I'm not sure how we get that app running on the iPhone without the code, which I don't think is out there. Did you find anything?

    We don't absolutely need Bonjour for this, at least at the outset. I'd be happy just to get something up that let the iPhone function as an AP. Then we can add gateway functionality and DHCP (the latter being pretty easy).

    I know two things about wireless: jack and shit. I assume we have to change what the radio is putting out to get it to show up as a AP and provide some kind of response and cataloging for clients.

    I can't imagine we can't find code for that, though. It's getting it to talk to the iPhone's hardware that will be the challenge.


  6. #6
    Newbie Array

    Join Date
    Jul 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by stormj View Post
    Yeah, I'm not sure how we get that app running on the iPhone without the code, which I don't think is out there. Did you find anything?

    We don't absolutely need Bonjour for this, at least at the outset. I'd be happy just to get something up that let the iPhone function as an AP. Then we can add gateway functionality and DHCP (the latter being pretty easy).

    I know two things about wireless: jack and shit. I assume we have to change what the radio is putting out to get it to show up as a AP and provide some kind of response and cataloging for clients.

    I can't imagine we can't find code for that, though. It's getting it to talk to the iPhone's hardware that will be the challenge.

    I'm pretty sure using InternetSharing is a dead end. I browsed through the darwin source repo and it is not included. The one thing that puzzles me about it, though, is where some of the information is stored. There is a com.apple.Sharing.plist and com.apple.InternetSharing.plist located in various places in desktop os x, but they don't contain any information about the SSID, configured interfaces, etc. I'm thinking of setting up an app to watch what files get opened by system prefs when I start messing with internet sharing.

    I agree that once we have an SSID broadcasting and can join clients to the network, DHCP and bonjour should come easily.

    I've not yet identified what executable is responsible for doing AP-style functionality in linux. On BSD, it appears to be built into 'iwconfig', but all the hits for 'os x and iwconfig' refer to using the 'airport' executable on the mac to measure signal strength (something else iwconfig does) and does not deal with the AP functions...

    I don't have a dd-wrt router handy, but I might see later if it can be installed to a virtual machine. If you have easier access, maybe you could try to find out what daemon is running the access point.

    The weekend is coming up and I hope to at least identify one stand alone, open source executable for setting up an AP.

  7. #7
    Newbie Array

    Join Date
    Sep 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Sources

    Marvell 88W8686 is the chip. Apparently, none of the open router sources work with it, though there are driver. I can't confirm that it's even able to go into AP mode, nor do I know if that's even a hardware feature.

    Looking at the source code for Tomato (since apparently dd-wrt is closed source=wtf?) the stuff I'm looking at is low level C code, which would require a reference manual for the Marvell chip to port over.

    The rest of it might work just fine. Getting it to talk to the hardware is looking dauntng to me.

    Is there anyone on this board that knows about this low-level kind of stuff? It's just beyond my abilities at this point.

  8. #8
    Newbie Array

    Join Date
    Mar 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    If we can get some sort of reference manual for the chipset then there might be a chance, as I'm sure all of the needed tools exist (also have a look at open-wrt). We have basically no chance if the driver does not expose the functionality of AP creation.

    I've been wanting something like this for a while, so I would like to lend a hand. I have experience with low-level linux, kernel drivers, networking, ARM, etc. but not a lot with the darwin kernel and BSD, etc.

    -Patrick

  9. #9
    Newbie Array

    Join Date
    Sep 2007
    Posts
    9
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by kalfalfa View Post
    If we can get some sort of reference manual for the chipset then there might be a chance, as I'm sure all of the needed tools exist (also have a look at open-wrt). We have basically no chance if the driver does not expose the functionality of AP creation.

    I've been wanting something like this for a while, so I would like to lend a hand. I have experience with low-level linux, kernel drivers, networking, ARM, etc. but not a lot with the darwin kernel and BSD, etc.

    -Patrick
    If you are capable of doing that, then we probably have a chance of putting this together. I know the chip is documented--somewhere. If you google it, there are a few hits claiming that a driver for linux exists on Moblin.org. I couldn't find it, and even if I had, I wouldn't have been able to make much sense of it.

    Assuming we can get the code to that, would it be something you can do to get it to drive the iPhones?

    I'm assuming it's much easier to deal with the cellular connection since we just use the native connection that's open an bridge it, and so we don't have to do anything very low-level on that side. Does that sound right?

    I think something as full functioned as WRT is overkill, but is definitely possible. DHCP and UPnP would probably make it feature complete.

  10. #10
    Newbie Array

    Join Date
    Mar 2007
    Posts
    8
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I've been looking here: http://code.google.com/p/iphone-wireless/ where they are documenting the apple wireless framework, and it appears that there are no exposed method for initiating ad-hoc mode. I will have to look into this further and see what the driver exposes, but it doesn't look good.

    -Patrick


 

 
Page 1 of 5 12345 LastLast

Similar Threads

  1. MacNN: TP-Link intros 802.11n pocket router, portable 3G router
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 11-17-2011, 04:20 AM
  2. Replies: 0
    Last Post: 07-29-2010, 05:20 AM
  3. iphone 3g as wifi router?
    By bigfish2 in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 06-21-2009, 10:18 PM
  4. iPhone Router/Gateway/NAT - possible?
    By leshric in forum General
    Replies: 0
    Last Post: 07-25-2008, 04:35 PM
  5. [Req] Using the iPhone as a wireless router?
    By geuis dassin in forum Free Toolchain Software (Cydia App's)
    Replies: 2
    Last Post: 03-08-2008, 05:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 08:32 PM.
twitter, follow us!