-
-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change RX/TX pins #58
Comments
maybe have a look at ESP32SJA1000.h line 11,12 #define DEFAULT_CAN_RX_PIN GPIO_NUM_4 try some other pins... it should work.... |
I've tried this on RX=32/TX=33 and RX=25/TX=26. I've also tried changing the pins in the ..esp32\hardware\esp32\1.0.4\cores\esp32\HardwareSerial.cpp (https://hackaday.com/2017/08/17/secret-serial-port-for-arduinoesp32/) With no success. Any other ideas? I have the same hardware that is using this library successfully with another ESP32 and the standard pins 16/17. |
Do you want to interface via serial connection? im not shure what you want. what is the problem using default pins? for CAN bus?... |
So I'm using the lib and the standard RX=16/TX=17 lines connected to the SN65HVD232 transceiver without issue. This is with the ESP-32 board below. I also want to use the lib with this board. This board does not have the standard serial pins available though. Therefore I need to interface with the SN65HVD232 using other RX/TX lines. Ideally I'd like to use X=32/TX=33 or RX=25/TX=26. I've used 25/26 before as serial lines with another library by using this library https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/HardwareSerial.cpp |
im still not shure what you want to do with the Serial Interface with a CAN tranciver?!? Pins 16/17 are normaly used for Serial1 Please tell us what exactly is your plan so we can move on. If you have problems with the Serial infertace look for SoftSerial emulation.... this works on any pins. |
Should have looked closer at the readme, sorry. This is the answer to my question: CAN.setPins(rx, tx). Not working yet but will update. |
Is there a way to configure different RX/TX pins?
The text was updated successfully, but these errors were encountered: