Pairing wireless keyboard with new dongle

first off, my first big project, bear with me.

ive in my possesion one "Rii mini i8" keyboard, on arduino uno r3 board, and a dongle i aim to pair to the keyboard.

ive arduino IDE running and reading my board, ive wireshark reading 2.4g bluetooth.

now, i understand, that im supposed to now, identify the dongle with i assume ports, or a mac address, that matches the keyboard, but im unsure of what methods, and i am unfamiliar with the necessary coding.

i explored around and came round to thinking the syntax being easy enough, i am unaware of the semantics, and triggers required to initate the transaction im attempting.

as well as what protocol bluetooth is running , and to what, and/or how to utilize the information in which wire shark provides me.

a little direction would be greatly appreciated

The only advice that I can give is that, assuming your dongle is a USB device, you will need a host shield to connect the dongle to the Uno.

I've got a USB type female pinned onto my board I was sure it would work in place

Pinned ofc on "rx tx 5v gnd"

USB works completely different from a UART (the Rx/Tx of the Uno). It will not work and definitely NOT as you think it might work.

USB uses one bidirectional data pair with D+/D- which is not the same as the data pair (Tx/Rx) of the UART where each one is unidirectional.

Further the Rx/Tx of the Uno are also used for communication with the PC.

Alright. This clears up my confusion concerning the Arduino IDE and how it's been interacting. Would I be correct in assuming this is the reason my home made otg doesn't work as expected

Where it's just pinned straight across.

You need to use a USB host shield.

Unfortunately the official Arduino one is retired, but there are others on the market.

ordering a part will push this project to next weekend. this USB host shield seems similar to raspberry pi. Which I have on hand. im assuming there are fundamental differences ofc, and which i havent looked into yet.

and the parts been ordered, thanks for the discussion/ assistance. TBC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.