User Tools

Site Tools


rawmode

This is an old revision of the document!


Raw Mode

Raw Mode allows a developer to use BLE to connect to the Twiddler 4 to directly receive button and nav information to develop other applications or implementations not already offered by the Twiddler.

To enable Raw Mode,

  • Ensure your Twiddler 4 is running firmware 3.8.0 or later
  • Connect your Twiddler 4 to USB, and open settings.txt
  • Add a line rawmode=1, or if rawmode=0 is already present, change the value to 1
  • Save the file
  • Disconnect from USB

To disable Raw Mode,

  • Connect your Twiddler 4 to USB, and open settings.txt
  • Find the line rawmode=1 and change to value to rawmode=0, or delete the entire line.
  • Save the file
  • Disconnect from USB

Usage

Connect to the Twiddler 4 (Twiddler-XXXX), and discover the available characteristics.

  • Buttons: “00001523-efcd-ab90-7856-341200d11523”
  • Trackpad: “00001524-efcd-ab90-7856-341200d11523”

Buttons states are represented in a 4-byte report, the first 20 bits represent the Twiddler 4's 20 buttons. Trackpad X-Y swipe directions are represented by two signed bytes.

rawmode.1769201793.txt.gz · Last modified: by eric