#[Solved] - Dongle not work when re-insert

1 messages · Page 1 of 1 (latest)

fast dust
#

Hi everyone,

I built a Lily58 keyboard with both halves powered by NRF52840s functioning as nice!nano v2s. Until yesterday, I was using the left half wired, and the right half connected wirelessly to the left via Bluetooth. To remove the cable from the left side, I bought an nRF52840 MDK USB Dongle and followed the official documentation to configure it as a dongle.

After some adjustments, everything started working — with one issue: if I unplug and plug the dongle back in, the displays on both halves correctly indicate that the side was disconnected/reconnected, but after reconnecting, the dongle seems to stop sending data to the computer. The only workaround is to go through the whole bootloader/reset process again.

This becomes a bigger problem because I use two computers and rely on a KVM switch. Every time I switch the computer via the KVM, the dongle stops working in the same way.

Ideally, I’d like the dongle to work not only through the KVM — switching between machines — but also be plug-and-play when I connect it directly to one of the computers.

Can anyone help me with this?

Here’s my current configuration:
https://github.com/GAPrado/zmk-config

GitHub

Contribute to GAPrado/zmk-config development by creating an account on GitHub.

olive mauve
#

You didn't enable the flash storage, so the pairing between the parts must be getting lost on reboot?

#

The display widget might not be accurate perhaps

#

You can add these to a file boards/shields/lily58/boards/nrf52840_mdk_usb_dongle.conf

fast dust
#

I think the display is right because if i keep taking it off and on, the displays updates correctly

olive mauve
#

non-DK like Xiao is probably closer to what you have, but not sure

#

I seem to remember a bug with the peripheral connection widget, so might be related

fast dust
#

oh, i didn't see the dk in the name. building your suggestion to try on

#

thx a lot @olive mauve !

#

Do you know if i need CONFIG_ZMK_BLE=y in the dongle? I dont know if it specify to enable the bluetooth to receive the parts connection or if its for connect dongle in another device via bluetooth

olive mauve
#

You usually need to, yes

#

IIRC disabling it might disable the split functionality, but not sure

#

You can try setting max conn/paired Kconfigs to 2?

fast dust
#

yeah,i will try. now im lookingi f something can make it faster. it was working but really slow now

#

oh, i think the antenna is really bad and i need it to be closer