Giter VIP home page Giter VIP logo

Comments (5)

javmarina avatar javmarina commented on June 23, 2024

You said the board is recognized as a controller. Does that mean that the Switch shows it as a USB controller in the menu? You should see that and you can also try connecting it to the PC, when it has to appear as "HORIPAD S" or something like that.
If that is the case, it means you flashed the firmware correctly, so the issue is about communications. I didn't make any relevant change in respect of SwitchInputEmulator.
Does your FT232 adaptor has LEDs? In that case, you can check if the commands are being sent. You should see both RX and TX leds on, because the board responds with an ACK message after every corerctly received packet (or NACK).
If you use the Java program, the connection status is shown in the GUI. If the Arduino doesn't recognize packets correctly, you will see the message "Syncing..." very often, because the host will try to resync after some NACKs.
Finally, the error might be the baudrate. The baudrate is programmed in the firmware and my code has it set to 1Mbps. If you select a different baudrate in the Java program, it won't work.

Tell me if some of those things work!

from nintendo-switch-remote-control.

SequentialBase9915 avatar SequentialBase9915 commented on June 23, 2024

Thanks a lot for the feedback, that was a good place to start and appeared to in fact to be a part of the problem. I adjusted the baud rate to match on the serial/USB adapter and made sure the serial port initialization matched those values and did get it to recognize on a separate testing laptop.

I found that the order of connecting the USB Serial, Arduino and Switch was important. I had to disconnect all three parts, first plug in the Arduino USB to Switch, then plug in USB Serial adapter to PC and finally wire the adapter to the Arduino (TX->TX RX->RX GND->GND 5V->5V) led to consistent successful connectivity. After that I had to make sure the sync protocol ran (I used the one from SwitchInputEmulator which initialized at 19200 baud) and it worked as needed.

I hope this can maybe help anyone else struggling to connect and thanks for your help!

from nintendo-switch-remote-control.

javmarina avatar javmarina commented on June 23, 2024

Hi @SequentialBase9915, can you check if the order in this README works? It's:

  1. Arduino to adapter (your last step).
  2. Adapter to PC.
  3. Arduino to Switch (your first step).

This is the order I have always used and don't recall getting errors. If you can test it, I would really appreciate it. That means the steps in that README are correct. Otherwise, I will test your method and update the README if it works for me too.

Thanks in advance!

from nintendo-switch-remote-control.

SequentialBase9915 avatar SequentialBase9915 commented on June 23, 2024

Apologies I hadn’t had the time to test but I tried the steps you mentioned and those worked fine as well, thank you.

from nintendo-switch-remote-control.

javmarina avatar javmarina commented on June 23, 2024

Ok, so I will leave the readme as it is now. Thanks!

from nintendo-switch-remote-control.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.