TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker and becoming a Supporting Member. For more info: Support TMC

Connecting with an incar web server (with no outside data connection)

Discussion in 'Technical' started by jordanthompson, Feb 18, 2020.

  1. jordanthompson

    jordanthompson 2018 P100D Model X

    Joined:
    Apr 27, 2011
    Messages:
    589
    Location:
    Satellite Beach, FL
    I want to connect to a raspberry pi web sever while parked but the server will have no outside data connection (I want to be able to serve pages local to the pi)

    Currently, when I try to connect, theccar to the pi, I get:
    Could not connect to network
    Unable to obtain IP Address. Please check DHCP server settings.

    I have tried rebooting the car.
    The car connects fine with my 5g and 2g home networks.
    Yet I am able to connect to the pi with a laptop or cell phone.

    Any suggestions would be most helpful!
     
  2. jmaddr

    jmaddr Member

    Joined:
    Mar 29, 2019
    Messages:
    818
    Location:
    Florida
    Too little information to help here. I assume the pi is setup as a hotspot/access point? And you configured your Tesla to connect to that hotspot? Are you not seeing the SSID in the Tesla drop down? Or is the SSID hidden? If so, have you configured the SSID and PSK manually? Have you tried to unhide the SSID and see the car now sees it?
    I remember reading the antenna for the wifi is on one of the wing mirrors. Not sure how the aluminum and steel would affect signal nor how powerful the pi in AP mode can transmit. Try moving the pi out side the car and try again.
     
  3. idoco

    idoco Member

    Joined:
    May 7, 2013
    Messages:
    534
    Location:
    Outside Philly
    The Tesla browser won't connect to the RFC 1918 local address range. You need to change the IP address of the RP to something out of that range.
     
    • Informative x 1
  4. ewoodrick

    ewoodrick Well-Known Member

    Joined:
    Apr 13, 2018
    Messages:
    5,285
    Location:
    Buford, GA
    So you have a DHCP server running on the Pi?
    All the car is wanting is a IP address
     
  5. jordanthompson

    jordanthompson 2018 P100D Model X

    Joined:
    Apr 27, 2011
    Messages:
    589
    Location:
    Satellite Beach, FL
    Correct
    Correct
    Correct
    I can see it
    Not a problem as I can access it from the center console as well as outside of the garage(!) I didn't realize the pi had that kind of range!
     
  6. jordanthompson

    jordanthompson 2018 P100D Model X

    Joined:
    Apr 27, 2011
    Messages:
    589
    Location:
    Satellite Beach, FL
    Correct
    It is not connecting to the pi at all. I can see the SSID but cannot connect. My laptop and phone can connect to it.
     
  7. jordanthompson

    jordanthompson 2018 P100D Model X

    Joined:
    Apr 27, 2011
    Messages:
    589
    Location:
    Satellite Beach, FL
    Thanks for the suggestion! This is probably the problem. What range should I be using?
     
  8. ewoodrick

    ewoodrick Well-Known Member

    Joined:
    Apr 13, 2018
    Messages:
    5,285
    Location:
    Buford, GA
    Because it can't get an IP address
     
  9. idoco

    idoco Member

    Joined:
    May 7, 2013
    Messages:
    534
    Location:
    Outside Philly
    Been a while since I hooked mine up. If you're just using it as access point for a local server an not passing any traffic beyond the RP then it doesn't matter. Just pick something not in the RFC1918 range.

    If you are using as a hotspot and passing traffic through to the internet then you need to configure it to not pass through the address your giving the RP. Can't remember which configuration file off hand(IPtables or Hostapd or sysctl).
     
  10. jordanthompson

    jordanthompson 2018 P100D Model X

    Joined:
    Apr 27, 2011
    Messages:
    589
    Location:
    Satellite Beach, FL
    #10 jordanthompson, Feb 19, 2020
    Last edited: Feb 19, 2020
    I'm not home at the moment and cannot run any tests, but according to RFC 1918:
    "In Class A, 10.0.0.0/8 prefix range.
    Class A private IPv4 addresses starts from 10.0.0.0 to 10.255.255.255. 10.0.0.0/8 is the network IPv4 address and10.255.255.255 is the directed broadcast IPv4 address."

    My home range is 10.13.xxx.xxx and the car connects to it without any issues. I am not a network engineer and I am confused. Please explain...
     
  11. jordanthompson

    jordanthompson 2018 P100D Model X

    Joined:
    Apr 27, 2011
    Messages:
    589
    Location:
    Satellite Beach, FL
    Has no one connected to an in-car web server before?
     

Share This Page

  • About Us

    Formed in 2006, Tesla Motors Club (TMC) was the first independent online Tesla community. Today it remains the largest and most dynamic community of Tesla enthusiasts. Learn more.
  • Do you value your experience at TMC? Consider becoming a Supporting Member of Tesla Motors Club. As a thank you for your contribution, you'll get nearly no ads in the Community and Groups sections. Additional perks are available depending on the level of contribution. Please visit the Account Upgrades page for more details.


    SUPPORT TMC