HumanWare BrailleNote Apex and FreeBSD via Bluetooth

Posted on December 3, 2026

This is the third post in a series of personal notes about using the HumanWare BrailleNote Apex with FreeBSD.

3) HumanWare BrailleNote Apex and FreeBSD via Bluetooth. <- This post
2) HumanWare BrailleNote Apex and FreeBSD via USB.
1) Exploring the HumanWare BrailleNote Apex with FreeBSD.

This post includes images and tables. If they are not accessible to you, I can provide a plain-text version by email or through the FreeBSD accessibility mailing list.

The previous posts cover the features of the Apex, the conventions for Braille characters (aka patterns) and the first connection to FreeBSD through a USB cable in USB Serial and USB Client mode.

Apex top view

This post does not yet cover using the Apex as a fully functional refreshable Braille display with FreeBSD. It describes how to:

  1. Establish Bluetooth communication between the device and FreeBSD.
  2. Receive bytes from the device and read them on FreeBSD.
  3. Send bytes from FreeBSD to the device.

Bluetooth

In the previous posts we connected the Apex to FreeBSD with a USB cable. We set the Apex to terminal for screen reader mode, using USB Serial and USB Client. FreeBSD received the bytes sent by the Apex for each key pressed, and it sent back data to raise the dots of the Braille cells.

Apex connected to a FreeBSD laptop via USB

In this post we will keep the same terminal for screen reader mode, but this time the data will travel over a wireless Bluetooth connection.

How to configure and use Bluetooth on FreeBSD is described in the Handbook and in many guides and howtos you can find online. My laptop has an Intel AX200 Bluetooth adapter, which shows up as ugen1.4:

# usbconfig list
...
ugen1.4: <AX200 Bluetooth Intel Corp.> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA)
...

So I installed comms/iwmbt-firmware, read the manual page iwmbtfw(8), and loaded the firmware:

% pkg search iwmbt
iwmbt-firmware-20251111        Intel Wireless bluetooth adaptor firmwares used by iwmbtfw(8)
# pkg install iwmbt-firmware
# iwmbtfw -I -d ugen1.4 -f /usr/local/share/iwmbt-firmware

Setting up the Apex

There are two ways to enable the terminal for screen reader mode over Bluetooth.

1. Navigating through the menus

  • Press SPACE + {123456} to open the Main Menu.
  • Press Next Thumb or SPACE repeatedly until you reach Terminal for Screen Reader.
  • Press ENTER to check the current setting.
  • If the current setting is not Braille Terminal port currently bluetooth, press b {12} to select bluetooth. If Bluetooth was off, the Apex announces starting bluetooth please wait. Then the Apex announces bluetooth.
  • Press ENTER to confirm. You should hear a beep and read braille terminal on the cells.

2. Using shortcuts

  • Press SPACE + {123456} to open the Main Menu.
  • Press t {2345} to go directly to the Terminal for Screen Reader setting and hear the current value.
  • If the current setting is not Braille Terminal port currently bluetooth, press b {12} to select bluetooth. If Bluetooth was off, the Apex announces starting bluetooth please wait. Then the Apex announces bluetooth.
  • Press ENTER to confirm. You should hear a beep and read braille terminal on the cells.

TIP

The previous commands turn Bluetooth on if it was off.

Apex rear view with the Wi-Fi and Bluetooth LEDs on

To turn it off afterwards:

  • Press SPACE + {123456} to open the Main Menu.
  • Press SPACE + o {135} to go to the Option Menu.
  • Press c {14} to go to the Connectivity Menu.
  • Press b {12} to select Bluetooth.
  • If you hear “bluetooth on currently yes” or read “bluetooth on? yes”, type n {1345}.

Extra: if you also want to turn off Wi-Fi, the first three steps are the same.

  • Press SPACE + {123456} to open the Main Menu.
  • Press SPACE + o {135} to go to the Option Menu.
  • Press c {14} to go to the Connectivity Menu.
  • Press w {2456} to select Wireless Internet.
  • If you hear “wireless internet on currently yes” or read “wireless internet on? yes”, type n {1345}.

Apex rear view with the Wi-Fi and Bluetooth LEDs off


Connecting the Apex to FreeBSD

Let’s set up Bluetooth on FreeBSD and connect to the Apex:

# service bluetooth stop ubt0
# service bluetooth start ubt0

Check the netgraph nodes of the Bluetooth stack:

# ngctl list
There are 8 total nodes:
  Name: ubt0            Type: ubt             ID: 00000001   Num hooks: 1
  Name: btsock_l2c      Type: btsock_l2c      ID: 00000002   Num hooks: 1
  Name: btsock_l2c_raw  Type: btsock_l2c_raw  ID: 00000003   Num hooks: 1
  Name: ngctl8769       Type: socket          ID: 00000024   Num hooks: 0
  Name: btsock_hci_raw  Type: btsock_hci_raw  ID: 00000004   Num hooks: 1
  Name: btsock_sco      Type: btsock_sco      ID: 00000005   Num hooks: 0
  Name: ubt0hci         Type: hci             ID: 0000001a   Num hooks: 3
  Name: ubt0l2cap       Type: l2cap           ID: 0000001e   Num hooks: 3

Three of these nodes belong to the adapter:

  • ubt0: the USB driver for the AX200. It is the link between FreeBSD and the Bluetooth hardware.
  • ubt0hci: the HCI (Host Controller Interface) layer. It controls the adapter: inquiry, pairing, and connections.
  • ubt0l2cap: the L2CAP (Logical Link Control and Adaptation Protocol) layer. It multiplexes data channels over HCI, and RFCOMM, the serial port protocol, runs on top of it.

The other nodes (btsock_*) are the sockets used by userland programs.

Let’s continue with a few commands:

# hccontrol -n ubt0hci reset
# hccontrol -n ubt0hci read_local_name
# hccontrol -n ubt0hci read_bd_addr

The reset is useful if something stops working after a few attempts. The local name and the address are just curiosities: we do not need them to configure the adapter or to connect to the Apex. However, they confirm that the Bluetooth device is working. Note that read_local_name may show an empty name if there is no previous configuration.

Now we can look for the Apex and connect to it:

# hccontrol -n ubt0hci inquiry
Inquiry result, num_responses=1
...
Inquiry result #0
	BD_ADDR: 00:25:ec:01:15:04
	Page Scan Rep. Mode: 0x1
	Page Scan Period Mode: 00
	Page Scan Mode: 00
	Class: 92:01:00
	Clock offset: 0x7cf6
...
Inquiry complete. Status: No error [00]

Many devices may be found within range of the computer. Pass each BD_ADDR to remote_name_request to identify the Apex:

# hccontrol -n ubt0hci remote_name_request 00:25:ec:01:15:04
BD_ADDR: 00:25:ec:01:15:04
Name: APEX002691

At this point we know the address of the BrailleNote Apex, 00:25:ec:01:15:04, and its name, APEX002691.

Add the Apex to /etc/bluetooth/hcsecd.conf:

device {
    bdaddr  00:25:ec:01:15:04;
    name    "APEX002691";
    key     nokey;
    pin     "0000";
}

Then enable and start the daemons:

# sysrc hcsecd_enable=YES sdpd_enable=YES
# service hcsecd onestart
# service sdpd onestart

If something does not work, check /var/log/messages. In my case I found hcsecd: syntax error in line 59, which means there is a mistake in the configuration file. Fix it and restart the daemon with service hcsecd restart. Restart the daemon every time you edit the file.

Now let’s find out what the Apex offers over Bluetooth:

# sdpcontrol -a 00:25:ec:01:15:04 search SP

Record Handle: 0x00010001
Service Class ID List:
	Serial Port (0x1101)
Protocol Descriptor List:
	L2CAP (0x0100)
	RFCOMM (0x0003)
		Protocol specific parameter #1: u/int8/bool 10
	OBEX (0x0008)
Bluetooth Profile Descriptor List:
	Serial Port (0x1101) ver. 1.0

A plain browse returned nothing: many devices do not publish their services in the public browse group. search SP shows a Serial Port (0x1101) service on RFCOMM channel 10.

TIP: the previous command may fail with:

# sdpcontrol -a 00:25:ec:01:15:04 search SP
Could not execute command "search". Host is down

In that case, check the state of the HCI node. It should be 0x3 (ready):

# hccontrol -n ubt0hci read_node_state
State: 0x3

If it is not, restart the Bluetooth stack:

# service bluetooth restart ubt0

You may also need to wait a few seconds before running sdpcontrol again.


Receiving data from the Apex on FreeBSD

The next step is to see which bytes the Apex sends to FreeBSD when a key is pressed.

Let’s try rfcomm_sppd(1) right away, because the previous command showed that the Apex offers a serial port.

On terminal 1:

% rfcomm_sppd -a 00:25:ec:01:15:04 -c 10 -t
rfcomm_sppd 11970 - - Starting on /dev/pts/4...
/dev/pts/4

On terminal 2, make sure to use the same /dev/pts device, and press some keys on the Apex:

% hexdump -v -e '1/1 "%02x\n"' /dev/pts/4
80
01
80
02
80
04
83
00
85
00
...

The key map is the same as for USB:

Key Byte 1 Byte 2
Braille dots 1-6 0x80 pressed keys bitmap
BACKSPACE 0x82 0x40 | dots pressed keys bitmap
SPACE 0x81 0x00 | dots pressed keys bitmap
ENTER 0x83 0x00 | dots pressed keys bitmap
Scroll Wheel Button 0x8B 0x06
Scroll Wheel Right 0x8B 0x01
Scroll Wheel Left 0x8B 0x00
Thumb key 1 PREVIOUS 0x84 0x01
Thumb key 2 BACK 0x84 0x02
Thumb key 3 ADVANCE 0x84 0x04
Thumb key 4 NEXT 0x84 0x08
Routing keys 1-32 0x85 pressed key: 0x00 - 0x1F

I did not test the routing keys in the previous posts. They are worth trying in the future, but the codes are most likely the same.


Sending data from FreeBSD to the Apex

The next step is to send characters/bytes from the laptop to the Apex and make the corresponding Braille dots rise on the display.

On terminal 1, open a new pty with rfcomm_sppd again:

% rfcomm_sppd -a 00:25:ec:01:15:04 -t -c 10
rfcomm_sppd 12193 - - Starting on /dev/pts/4...
/dev/pts/4

On terminal 2, we will send data to the Apex.

My first attempt was to send <0x1b, 'B'> (ESC B), followed by one byte for each cell, as described by the protocol and as I did in the USB communication. However, random dots rose, so I first sent the info query message 0x1b ? (ESC ?):

% python3.12 -c 'with open("/dev/pts/4","r+b",buffering=0) as f: f.write(b"\x1b?"); data=f.read(3); print("Reply:", [hex(b) for b in data])'
Reply: ['0x86', '0x0', '0x20']

The Apex replied as expected: 0x86 identifies the reply, followed by the number of status cells (0x00) and the number of text cells (0x20, that is 32).

Note that if we only want to send the query, without reading the reply, this shorter command is enough:

% python3.12 -c "import sys; sys.stdout.buffer.write(b'\x1b?')" > /dev/pts/4

Now let’s raise the dots of the first 3 cells, using the odd dots 1, 3, and 5 respectively, and all 8 dots of the fourth cell:

% python3.12 -c "import sys; sys.stdout.buffer.write(b'\x1bB' + bytes([1,4,16,255]) + bytes(28))" > /dev/pts/4

Then let’s lower all the cells:

% python3.12 -c "import sys; sys.stdout.buffer.write(b'\x1bB' + bytes(32))" > /dev/pts/4

Finally, I sent the Braille patterns for Hello World, FreeBSD!. In English UEB Grade 1, the text is represented by the following Braille cells. Capital letters are preceded by the capital indicator {6}.

H {6}{125} e {15} l {123} l {123} o {135} SPACE {}
W {6}{2456} o {135} r {1235} l {123} d {145} , {2} SPACE {}
F {6}{124} r {1235} e {15} e {15} B {6}{12} S {6}{234} D {6}{145} ! {235}

% python3.12 -c 'open("/dev/pts/4","wb",0).write(bytes([0x1b,0x42,0x20,0x13,0x11,0x07,0x07,0x15,0x00,0x20,0x3a,0x15,0x17,0x07,0x19,0x02,0x00,0x20,0x0b,0x17,0x11,0x11,0x20,0x03,0x20,0x0e,0x20,0x19,0x16])+bytes(5))'

Apex connected to a FreeBSD laptop via Bluetooth, displaying Braille text: Hello World, FreeBSD!


What comes next

This post describes only the first steps toward using the device.

Bluetooth support is interesting, but optional. USB has a higher priority for writing a device driver.

The next step is to exchange actual characters, rather than just raw bytes, between the laptop and the Apex, probably using conversion tables. liblouis is available in the FreeBSD Ports Collection and could be a useful option. Eventually, a dedicated utility could be developed to establish and manage the communication.