mumumusuc / pi-joystick

使用raspberry zero模拟nintendo switch的手柄与声卡
GNU General Public License v3.0
52 stars 10 forks source link

dwc2_hsotg_ep_sethalt after insmod js_audio.ko #7

Closed fusigi0930 closed 4 years ago

fusigi0930 commented 4 years ago

Hi, I used rpi-zero-w and test it in my ubuntu, that works, but it did not work in my switch (OS version: 9.1.0) after I connect to switch, and I can see the log dwc2_hsotg_ep_sethalt is displayed.

and Switch no response while I send input report to /dev/hidg0

Do you have any idea about this? Thanks, ChuYuan

mumumusuc commented 4 years ago

Send (1) and (2) sequentially to connect to Switch(trigger R+L):

//1
echo -ne "\x00\x00\x00\x00\x00\x00\x00\x00" > /dev/hidg0
//2
echo -ne "\x30\x00\x00\x00\x00\x00\x00\x00" > /dev/hidg0
fusigi0930 commented 4 years ago

that works, thanks