Linux, BlueZ, Initiating an hid BlueTooth Connection -
use-case
- ubuntu machine simulating keyboard
- ubuntu machine ( virtual keyboard ) imitates connection remote device controlled
question
in normal scenario, hid desc reported through sdp, , thus, when device connects keyboard knows hid desc used, in use-case, virtual keyboard ( ubuntu machine ) initiate connection, , thus, it's not triggered using sdp, having said, how should send device hidreport descriptor used? possible, at-all, connect keyboard device in manner? can push hid report desc device ( controlled ) ?
implementation
- pair device ubuntu machine ( done manually )
- initiate l2cap connection on psms 0x11 & 0x13
- handshake
all working far, point when expect report hid descriptor device, how should done ?
as far understand it, hid host reads service descriptor once. afterwards, can initiate connection must conform have told host via sdp.
i have not come across way push information hid host later.
if need change something, must clear host's memory of device ("uninstall device" in windows, example) , reconnect (host initiating connection), reading new information updated sdp records.
if don't need change hid descriptors, believe don't need have sdpd running after initial connection. ever.
Comments
Post a Comment