josefadamcik / SofleKeyboard

A split keyboard based on Lily58, Crkbd and Helix keyboards
https://josefadamcik.github.io/SofleKeyboard/
Other
1.88k stars 284 forks source link

I can't seem to get the Serial communication between the two halves working #175

Closed jm355 closed 6 months ago

jm355 commented 1 year ago

Kind of issue? Assembly

Which Board? Original

Which Board Revision? 1.1

What steps have you taken

What is the issue? Please also include what other components you are having issues with - is the software QMK or the configurator, include pictures of your LEDs or soldering issues etc. I have my keyboard all soldered and everything, however I'm having issues getting the two halves to communicate. Here are the relevant things in the config.h files:

#define USE_SERIAL
#define EE_HANDS 
#define FORCED_SYNC_THROTTLE_MS 100
#define SPLIT_CONNECTION_CHECK_TIMEOUT 500
#define SPLIT_TRANSPORT_MIRROR
#define SPLIT_MODS_ENABLE
#define SERIAL_DEBUG
#define SELECT_SOFT_SERIAL_SPEED 1
#define SOFT_SERIAL_PIN D2

I flash with qmk flash -kb sofle/rev1 -km foureight84 -bl dfu-split-right for the right side and qmk flash -kb sofle/rev1 -km foureight84 -bl dfu-split-left for the left, and whichever side is connected to the computer works as expected.

I've also tried wiring vcc->vcc, gnd->gnd, and D2->D2 directly, instead of using the trrs cable, but not even that worked. The other half gets power, which I know since all the leds turn on, but keys on the secondary half don't work

What you expected:

DaneEvans commented 1 year ago

Check your connectivity all the way through, micro to micro.

But that sounds like a firmware issue. Take it to the qmk GitHub.

On Sun, 12 Feb 2023, 3:09 pm Jeremiah Miller, @.***> wrote:

Kind of issue? Assembly

Which Board? Original

Which Board Revision? 1.1

What steps have you taken

  • I have searched the Issues page
  • I have read the documentation
  • For LED issues I have checked the following things
  • the pro micro is programmed (and currently telling the LEDs to do something)
  • the pro micro is powered (and showing LEDs)
  • the LEDs are powered (check 5v across pins 1 and 3 of J1)
  • are any of the LEDs showing

What is the issue? Please also include what other components you are having issues with - is the software QMK or the configurator, include pictures of your LEDs or soldering issues etc. I have my keyboard all soldered and everything, however I'm having issues getting the two halves to communicate. Here are the relevant things in the config.h files:

define USE_SERIAL

define EE_HANDS

define FORCED_SYNC_THROTTLE_MS 100

define SPLIT_CONNECTION_CHECK_TIMEOUT 500

define SPLIT_TRANSPORT_MIRROR

define SPLIT_MODS_ENABLE

define SERIAL_DEBUG

define SELECT_SOFT_SERIAL_SPEED 1

define SOFT_SERIAL_PIN D2

I flash with qmk flash -kb sofle/rev1 -km foureight84 -bl dfu-split-right for the right side and qmk flash -kb sofle/rev1 -km foureight84 -bl dfu-split-left for the left, and whichever side is connected to the computer works as expected.

I've also tried wiring vcc->vcc, gnd->gnd, and D2->D2 directly, instead of using the trrs cable, but not even that worked. The other half gets power, which I know since all the leds turn on, but keys on the secondary half don't work

What you expected:

  • keys on both halve of the keyboard to work when using a trrs cable or wiring the necessary serial pins directly

— Reply to this email directly, view it on GitHub https://github.com/josefadamcik/SofleKeyboard/issues/175, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIRN4PVPEK2SV7TMSX4AKDWXBO6BANCNFSM6AAAAAAUZCJ56M . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jm355 commented 1 year ago

I did wire the two halves directly together to not rely on the trrs, but sounds good, i'll ask there

DaneEvans commented 1 year ago

That's still missing the link between the Arduino and the Sofle board.

On Tue, 14 Feb 2023, 8:41 am Jeremiah Miller, @.***> wrote:

I did wire the two halves directly together to not really on the trrs, but sounds good, i'll ask there

— Reply to this email directly, view it on GitHub https://github.com/josefadamcik/SofleKeyboard/issues/175#issuecomment-1428727587, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIRN4ITUV36MPRXRDGGFX3WXKS7TANCNFSM6AAAAAAUZCJ56M . You are receiving this because you commented.Message ID: @.***>

jm355 commented 1 year ago

What do you mean? Both halves work as expected independently, it's only when connecting them that the slave side doesn't work. It still gets power since the leds turn on, just no data is transferred

DaneEvans commented 1 year ago

If that serial line is broken at any point, you'll get those symptoms. That includes:

You've eliminated the last 3 by direct wiring. The first is very unlikely, but I'd throw a new Arduino on in both combinations and see if that fixes it.

If you measure from the Arduino to Arduino on that data line then you can eliminate the rest. Which will just leave FW

On Tue, 14 Feb 2023, 9:30 am Jeremiah Miller, @.***> wrote:

What do you mean? Both halves work as expected independently, it's only when connecting them that the slave side doesn't work. It still gets power since the leds turn on, just no data is transferred

— Reply to this email directly, view it on GitHub https://github.com/josefadamcik/SofleKeyboard/issues/175#issuecomment-1428786243, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFIRN4J5K36GUL2PJJV55N3WXKYXRANCNFSM6AAAAAAUZCJ56M . You are receiving this because you commented.Message ID: @.***>

DaneEvans commented 6 months ago

Closing as linked QMK issue is closed