Skip to content
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

Getting serial debug print working #6

Open
geniusled opened this issue Apr 14, 2021 · 2 comments
Open

Getting serial debug print working #6

geniusled opened this issue Apr 14, 2021 · 2 comments

Comments

@geniusled
Copy link

Hello, i have been playing with this library while trying to make a RDM device+dmx inputneopixel following the examples and adding rdm functions calls (device info ,product category , etc) and have partial working project but need to troubleshoot(cant assign dmx address over 225 via lighting console rdm commands)

i see in the setup "Serial.setDebugOutput(1); //use uart0 for debugging"
but cant seem to find a way to get serial prints to work,
i have also defined: LXESP8266UARTDMX_DEBUG but that doesnt seem to change anything
is there a special trick i dont know?

Thanks for the amazingly put library btw!

@claudeheintz
Copy link
Owner

Getting Serial to work with the library can be an issue depending on which of the ESP8266's pins are available on the board you are using. The original code was developed for the Adafruit ESP8266 Huzzah which only had 3 UART pins exposed. So, bidirectional DMX and Serial for debugging was not possible.

Serial.setDebugOutput(1) sets the ESP8266's debug output to UART 1 or 0. This does not have anything to do with Serial. This is the ESP8266's own debugging/error messages. You want to direct those away from your DMX UART so you don't get debug messages going out the DMX line.

Unfortunately, debugging RDM can involve a logic probe to examine the serial line itself. You may need to look at that to see what the console is sending with the RDM set address message. The example RDMDeviceTest.ino shows how the address is divided into two bytes in the RDM message (line 168...)

@geniusled
Copy link
Author

Thank you for the response, i do have a logic analyzer i will pull out thank you for the suggestion.
i was thinking about using 2 esp and one dedicated only to listening and debug prints, a logic probe is better.

my lighting software can change the address successfully(1-512) when i send a "manual RDM message" "set address" with a hex value. but it can also set the address with a more "normal" method in regular decimal value(1-512), which only works up to 225 and only started working once i added the Get "device info" RDM command. i suspect something that is 8 bit needs to be 16 but need to spend more time looking at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants