Integration Docs
Knowledge BaseSelf-hosting
  • Overview
  • Beam
    • Quick Start
    • Web Server Daemon
    • Connect to a Somewear Device
    • Inbound Payloads
  • TAK
    • Direct Server Connection
    • Plugin to Plugin
  • Client SDKs
    • Android
    • iOS
  • Webhooks
    • Quick Start
  • REST API
    • Send Package
Powered by GitBook
On this page
  • Enable USB Line-in
  • Send over Somewear device
  1. Beam

Connect to a Somewear Device

Your data is about to become an astronaut.

Last updated 10 hours ago

Enable USB Line-in

Before connecting your Somewear device, you will need to switch it to connect over USB instead of Bluetooth.

  1. In the Somewear Android app, pair to your hotspot.

  2. Tap the device status pill in the top right.

  3. Tap “Advanced Settings” down at the bottom.

  4. Tap “Change” under the “Connection Mode” row. Tap USB & “Change and disconnect” to confirm.

  5. The hotspot will disconnect and you can now connect to your hotspot over usb.

Send over Somewear device

Install tio:

# mac
brew install tio

# linux
sudo apt install tio
  1. Connect your hotspot with usb to your machine & power it on.

  2. ls /dev | grep tty.usb – list your usb devices. Should look something like tty.usbserial-D30EPUJZ. Copy this.

  3. tio -b 115200 -d 8 --line-pulse-duration RTS=200,DTR=400 -p even --socket inet:9092 /dev/YOUR_DEVICE_HERE - Connect to the device & proxy over port 9092

  4. beam up – Start Beam as a .

  5. beam device connect or curl -v -X POST http://localhost:9091/api/device/connect – Tell beam to connect.

  6. You're all set! Try sending a message (see Usage section above). Disable your network connectivity on your OS or use beam --disable-http to force satellite transmissions.

  7. Use tail -f ~/.somewear/beam/log/output.log in a new terminal window to see your logs.

https://github.com/tio/tio
daemon