These are chat archives for nebrius/raspi-io

14th
Mar 2016
Bryan Hughes
@nebrius
Mar 14 2016 16:20
Hey @sesh-kebab, have you had a chance to try the git recipe I posted for your pingRead PR?
ajfisher
@ajfisher
Mar 14 2016 23:07
okay - I need to find someone who knows far more about bluetooth than I do... :(
Bryan Hughes
@nebrius
Mar 14 2016 23:30
That sounds…ominous. I don’t know much about Bluetooth myself, but what’s up?
ajfisher
@ajfisher
Mar 14 2016 23:45
So on new RPi, it has this onboard BT controller
I've got it working but right now I have to connect FROM the RPi TO some other device
so that is all working fine to eg keyboard, mouse, even another computer.
I can even connect FROM my RPI TO my MAC using BT networking
But really what I want to do is this:
  • RPI establishes a BT PAN service that is constantly discoverable and notes that it is a class of device that can allow networking etc.
  • Other computer connects to the RPI using BT
  • RPI does all the DHCP etc so establishes itself as DHCP server, other computer as DHCP client
  • Other computer uses internet connection sharing to allow BT connection access to the network
  • Configuration on RPI routes any internet traffic through the BT connection to access the wider internet.
ajfisher
@ajfisher
Mar 14 2016 23:51
Thus, what you end up with is a device that is entirely stand alone, but can use the computer it's connected to in order to access internet and provides a network interface so it can do stuff like:
  • Host web interface
  • ssh onto the RPI
  • Access NPM to install packages
Bryan Hughes
@nebrius
Mar 14 2016 23:51
hmm…sounds like a lot of sysadmin work. I don’t think anything there is RPi specific though, have you tried looking for Ubuntu/Debian tutorials of this?
ajfisher
@ajfisher
Mar 14 2016 23:51
Yeah, invariably it's going the other way
Have spent literally every night for the last week working on this and feel like I don't understand enough about how the bluetooth stack actually works in order to find the right approach...
I can make my RPI discoverable and then find it from my mac but it doesn't expose the right service to allow connections from that side as a networkable device.
My fall back (which is a totally crappy solution) which I've had working is this:
  • Wifi on RPi in host ap mode
  • Connect via wifi and ssh onto RPI
  • Connect BT from RPI to Mac using PAN
  • Drop SSH, Drop Wifi connection, connect back to main Wifi connection
  • SSH over BT to RPI
  • Turn off WIFI controller to preserve power.
and that does work, but not particularly elegant and can you imagine trying to explain that process in a workshop
Bryan Hughes
@nebrius
Mar 14 2016 23:56
yeah, that would suck. At this point, you’re knowledge outstrips mine though