generated from zmkfirmware/unified-zmk-config-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
What is the intended setup in order to send a custom report? raw_hid is logging an error code of -11 when I send some data.
CONFIG_RAW_HID=y is applied to the central shield of my split keyboard (nice!nano aurora sweep)
my module defines:
struct raw_board_event {
uint8_t event_type;
uint8_t value;
uint8_t state;
};and the code that sends the report:
struct raw_board_event board_event;
board_event.event_type = 0;
board_event.value = ev->position;
board_event.state = ev->state;
struct raw_hid_sent_event hid_event;
hid_event.length = sizeof(board_event);
hid_event.data = (uint8_t*)&board_event;
raise_raw_hid_sent_event(hid_event);the resulting USB log:
[00:29:23.150,146] <inf> zmk: USB - Sending Raw HID report of length 12
[00:29:23.150,177] <dbg> zmk: send_report: USB - Sending Raw HID report
00 be 05 00 0a 00 00 00 00 00 00 00 00 00 00 00 |........ ........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |........ ........
[00:29:23.150,207] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,238] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,238] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,268] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,268] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,299] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,299] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,329] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,360] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,360] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,390] <wrn> usb_device: Failed to write endpoint buffer 0x84
[00:29:23.150,390] <err> zmk: Failed to send report: -11
[00:29:23.150,421] <wrn> zmk: Not sending, no active address for current profile
[00:29:23.150,421] <err> zmk: Not connected to active profile
is there some extra configuration that needs to be applied to direct the report to the HID device channel?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels