foc.us - take charge
  • Store
    • Go Flow
    • V3
    • My Account
  • More
    • Placements
    • Instruction Manuals
    • Help
    • About Us
    • Contact Us
Menu
  • Store
    • Go Flow
    • V3
    • My Account
  • More
    • Placements
    • Instruction Manuals
    • Help
    • About Us
    • Contact Us
£0.00 Cart

Bluetooth®

The foc.us gamer is a licensed Bluetooth® Smart device.

In response to popular demand we are publishing our bluetooth API. If you want to write your own application to control your foc.us the information required to do so is on this page. If you have a question please post it on stackoverflow and then email the link to support@foc.us and we will respond there.

The information provided on this page is the property of foc.us. It may only be used to create client software for use with foc.us products. Usage of this information does not constitute or infer any rights to ownership or guaranteed access or continuation of usage.

UUIDPermissionsSizeNameValueUnitDescription
0xfff1Read1 byteBattery level0…1001%Battery level
0xfff2Read1 byteActual current0…2000.01mAThe current level on the electrodes in real time
0xfff3Read/Write1 byteModeSee description
ValuePermNameDescription
0WOffPower off device
1R/WPairedThe device is connected via Bluetooth
2R/WACTIVE_CONTActive conitunuous mode
3R/WACTIVE_PULSEActive pulse mode
4R/WACTIVE_SINUSActive sinus mode
5R/WACTIVE_NOISEActive noise mode
6R/WACTIVE_FAKEActive fake mode
7RERROR_ZEROThe current is equal to zero
8RERROR_OVFTarget current can’t be reached
0xfff4Read/Write1 byteElectrodes modeSee description Least nibble – left electrode
Most nibble – right electrode
This value can only be written in “paired” mode
Value of nibble:
ValuePermNameDescription
0R/WOffElectrode is switched off
1R/WNegativeElectrode is negative when active
2R/WPositiveElectrode is positive when active
0xfff6Read/Write2 bytesTime in active mode0…655351sDuration of the active mode
0xfff7Read/Write2 bytesFW version
FW update control
FW version can be read in FW_IDLE mode. Range 0…65535

FW update control:
ValuePermNameDescription
0WFW_IDLENo FW update process
1R/WFW_STARTStart of FW update process
2RFW_DATAFW data transmission
3R/WFW_END_DATAEnd of FW data transmission
4RFW_CRC_OKCalculated CRC value is true
5RFW_CRC_ERRORCalculated CRC value is false
6R/WFW_BURNStart of flash update process
0xfff8WriteItem 20 bytesFW data bufferBuffer for data during firmware update process
0xfff9Read/Write4 bytesPin code0…999999Pin code for pairing

Table 2

UUIDPerm.SizeContinuous ModePulse ModeSinus ModeNoise ModeFake Mode
0xfff5R/W1 byteMax current
20…200 * 0,01mA
Max current
20…200 * 0,01mA
Max current
20…200 * 0,01mA
Max current
20…200 * 0,01mA
Max current
20…200 * 0,01mA
0xfffaR/W1 byteN/ACurrent offset
0…200 * 0.01mA
Current offset
0…200 * 0.01mA
Current offset
0…200 * 0.01mA
N/A
0xfffbR/W1 byteCurrent rise/fall time
1…255*1s
Current rise/fall time
1…255*1s
Current rise/fall time
1…255*1s
Current rise/fall time
1…255*1s
Current rise/fall time
1…255*1s
0xfffcR/W2 byteN/APulse width
10…65335 * 1ms
Sinus wave period
2…65535 * 50ms
Min timestep
10…65535 * 1ms
N/A
0xfffdR/W2 byteN/APulse period
10…65535 * 1ms
N/AMax timestep
10…65535 * 1ms
N/A


FW update process description


  1. 1. Write FW_START value.
  2. 2. Send firmware file. Sending is made in blocks of 20 bytes, where least 2 bytes : data block number, and most 18 bytes : firmware data. Note. The size of any firmware file is a multiple of 18 bytes.
  3. 3. Write FW_END_DATA value.
  4. 4. Wait, while check sum is calculated. When it complete, device will set FW_CRC_OK or FW_CRC_ERROR state.
  5. 5. If state is FW_CRC_OK, write FW_BURN value for firmware rewriting. If state is FW_CRC_ERROR (firmware file was corrupted during transmission) go to step 1.

The Bluetooth® word mark and logos are registered trademarks owned by Bluetooth SIG, Inc. and any use of such marks by foc.us is under license. Other trademarks and trade names are those of their respective owners.

SIGN UP FOR OUR NEWSLETTER

Don't miss out on latest news

USEFUL LINKS

  • Contact Us
  • Instruction Manuals
  • tDCS Safety
Menu
  • Contact Us
  • Instruction Manuals
  • tDCS Safety

POLICIES

  • Terms and Conditions
  • Website Security
  • Terms of Sale
  • Payments
  • Delivery Times
  • Warranty Information
  • Exchanges & Returns
  • Privacy Policy
  • Cookies
  • GDPR
Menu
  • Terms and Conditions
  • Website Security
  • Terms of Sale
  • Payments
  • Delivery Times
  • Warranty Information
  • Exchanges & Returns
  • Privacy Policy
  • Cookies
  • GDPR

NEWS

2022 – Happy New Year

March 2021 Update

Foc.us Forums Down

Covid Update September

Foc.us 8th Birthday!

  • PRESS CONTACT

MY ACCOUNT

LOG IN OR CREATE AN ACCOUNT

CREATE ACCOUNT
LOGIN

SAFE PAYMENTS

WE PROVIDE THE FOLLOWING PAYMENT
METHODS

©2022 FOCUS. ALL RIGHTS RESERVED.

foc.us - take charge
Facebook-f Twitter Instagram Youtube