davidphilipbarr / Sweep

Sweep - a small promicro based keyboard inspired by the Ferris.
Other
1.69k stars 231 forks source link

[Sweep v2] Peripheral side not sending inputs #55

Closed rodrigocam closed 2 years ago

rodrigocam commented 2 years ago

Hey, I build a sweep keyboard v2 but it only works the half connected to the USB. I have a TRRS cable but it didn't work. I have tested the continuity of the holes of the TRRS jack in the PCB and I found a strange behavior, the two holes in the picture below give continuity, is it right?

front_c

davidphilipbarr commented 2 years ago

They should both be gnd, so that is normal. Do you have some pics of the top and bottom of your board?

On Fri, 20 May 2022, 20:49 Rodrigo Oliveira, @.***> wrote:

Hey, I build a sweep keyboard v2 but it only works the half connected to the USB. I have a TRRS cable but it didn't work. I have tested the continuity of the holes of the TRRS jack in the PCB and I found a strange behavior, the two holes in the picture below give continuity, is it right?

[image: front_c] https://user-images.githubusercontent.com/12930004/169601031-59f00873-a976-42be-a0e5-1fa0c4a3313e.png

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

rodrigocam commented 2 years ago

Yes, the one assembled and the other factory new:

image image

image image

duckyb commented 2 years ago

Unplug the keyboard from your PC, then plug in the TRRS cable.

  1. Test that all pins on the VCC net are connected
  2. Test that all pins on the switch 18 net are connected

VCC Net test

image

Switch 18 Net Nest

image

rodrigocam commented 2 years ago
  1. Test that all pins on the VCC net are connected ✅
  2. Test that all pins on the switch 18 net are connected ✅
duckyb commented 2 years ago
  1. Test that all pins on the VCC net are connected ✅
  2. Test that all pins on the switch 18 net are connected ✅

Then it shouldn't be a hardware issue 🤔

rodrigocam commented 2 years ago

Is it possible I'm flashing the wrong firmware? I'm using this one https://config.qmk.fm/#/ferris/sweep/LAYOUT_split_3x5_2

duckyb commented 2 years ago

@rodrigocam try to flash eeprom right/left on your respective micro controllers QMK Toolbox > Tools > EEPROM > Set L/R

daskygit commented 2 years ago

You're likely going to want to compile firmware with a option enabled.

Try add #define SPLIT_USB_DETECT to your config.h and flashing both sides.

This changes the USB detection so it doesn't use VBUS sensing which can be a problem with some promicros.

rsteube commented 2 years ago

Second on the SPLIT_USB_DETECT. Coincidentally also had the issue today where it seems the promicro always tried to be master. I think sth. is up with J1 which apparently is bridged although the pads are clean. Adding the config fixed it.

rodrigocam commented 2 years ago

You're likely going to want to compile firmware with a option enabled.

Try add #define SPLIT_USB_DETECT to your config.h and flashing both sides.

This changes the USB detection so it doesn't use VBUS sensing which can be a problem with some promicros.

This worked like a charm, thanks! I think the issue is solved 👍

mladedav commented 1 year ago

I've just run into the same issue. Is there a downside to using this option or can I try and add this option to the qmk firmware?

cgahr commented 9 months ago

I have the same issue. However, for me, #define SPLIT_USB_DETECT does not solve the problem. VCC net and switch 18 net are fine for me too.

Any help would be appreciated!

duckyb commented 9 months ago

I have the same issue. However, for me, #define SPLIT_USB_DETECT does not solve the problem. VCC net and switch 18 net are fine for me too.

Any help would be appreciated!

  1. Make sure you are using a TRRS cable and not a TRS.
  2. Connect the cable and test net 18 with the cable connected. Also test that parts that should be on different nets are not connected (shorts).
cgahr commented 9 months ago

I have the same issue. However, for me, #define SPLIT_USB_DETECT does not solve the problem. VCC net and switch 18 net are fine for me too. Any help would be appreciated!

1. Make sure you are using a TRRS cable and not a TRS.

2. Connect the cable and test net 18 with the cable connected. Also test that parts that should be on different nets are not connected (shorts).
  1. I'm using a TRRS cable
  2. VCC and net 18 both look good, with cable connected
  3. I couldn't find any short
  4. each half individually is working fine

I compile with the following command

qmk compile -kb ferris/sweep -km ryoku -e MAKECMDGOALS=uf2-split-left -e TARGET=sweep_ryoku_left
qmk compile -kb ferris/sweep -km ryoku -e MAKECMDGOALS=uf2-split-right -e TARGET=sweep_ryoku_right

and

# rules.mk
CONVERT_TO=elite_pi
SPLIT_KEYBOARD = yes
CONSOLE_ENABLE = yes
\\ config.h
#define SPLIT_USB_DETECT
#define SERIAL_DEBUG

When I run qmk console and conntect my keyboard, I get:

DPB:Ferris sweep:1: SPLIT: receiving handshake failed
DPB:Ferris sweep:1: SPLIT: receiving handshake failed
DPB:Ferris sweep:1: SPLIT: receiving handshake failed
DPB:Ferris sweep:1: Failed to execute slave_matrix
DPB:Ferris sweep:1: Target disconnected, throttling connection attempts
DPB:Ferris sweep:1: SPLIT: receiving handshake fail
duckyb commented 9 months ago

@cgahr I would recommend taking this to QMK's discord chat as I don't know how to help you and not many people will be looking at this page.

cgahr commented 9 months ago

Thank you anyways :)