GithubHelp home page GithubHelp logo

Comments (10)

cnf avatar cnf commented on May 26, 2024 1

Ha, I am stumped as well, i’ll give that a go and report back… I am also open to the idea that the M5 RS485 module has issues, though that would be sad :/

from esp_dmx.

cnf avatar cnf commented on May 26, 2024 1

Ok, I am getting output!

Reconnecting to COM5     Connected!
+Start code is 0x00 and slot 1 is 169
+++++++++++Start code is 0x00 and slot 1 is 169
+++++++++++Start code is 0x00 and slot 1 is 169
++++++++++++Start code is 0x00 and slot 1 is 169
+++++++++++Start code is 0x00 and slot 1 is 169
+++++++++++++Start code is 0x00 and slot 1 is 169
+++++++++++Start code is 0x00 and slot 1 is 169
++++++++++++Start code is 0x00 and slot 1 is 169
++++++++++++Start code is 0x00 and slot 1 is 169

what did it was dmx_set_pin(dmxPort, -1, receivePin, -1);
set TX and EN to -1

So now I am getting data, now I can try and figure out the rest :P

Thanks for your patience so far :P

PS: this is on v3.0.3-beta, all I changed was set TX an EN to -1

from esp_dmx.

someweisguy avatar someweisguy commented on May 26, 2024 1

Fascinating! I wouldn't think that would solve the problem. Good work with this solution. :)

I'll close this for now. Let me know if you have any more questions or issues!

from esp_dmx.

someweisguy avatar someweisguy commented on May 26, 2024

Thanks for reaching out!

As you probably read, the issue in #40 was a hardware error where something was shorted to ground. But since you are able to read data using Serial2.read() I'm guessing it isn't a hardware error. Do I understand correctly that you are initializing your Serial2 to 250kbaud, 2 stop bits, no parity? This library automatically initializes the serial port to that configuration so it could explain why you aren't receiving data using esp_dmx.

If that is not the issue, can you confirm for me which version of esp_dmx you are using? And are you using Arduino?

from esp_dmx.

cnf avatar cnf commented on May 26, 2024

Hi,

I have tried with and without Serial2.begin(250000, SERIAL_8N2, 26, 0);

I am running https://github.com/someweisguy/esp_dmx/blob/release/v3.0/examples/DMXRead/DMXRead.ino almost verbatim, but in a platformIO project, and with M5 specifics sprinkled in (mostly to use the LCD screen on it.)

dmx_receive(dmxPort, &packet, DMX_TIMEOUT_TICK); always returns 0, no matter what I do.

I am using someweisguy/esp_dmx@^3.0.2-beta

https://gist.github.com/cnf/36ff0779ba7639840cc90047da6f78ca is my latest try.

Thanks!

from esp_dmx.

someweisguy avatar someweisguy commented on May 26, 2024

Thanks for your patience on this. I admit, I'm a bit stumped. I just published v3.0.3-beta which contains fixes to a few issues. It should be live on the Arduino Library manager in a few hours (no more than 24 hours). Perhaps you can try to update to the new version to see if one of the fixes has solved this problem?

from esp_dmx.

someweisguy avatar someweisguy commented on May 26, 2024

Upon rereading, #51, I'm feeling somewhat confident that this is the issue you are experiencing. In short, if you received fewer than 512 addresses of DMX data, the driver would not receive any data whatsoever. If this is indeed the issue you are experiencing, it should be fixed in v3.0.3-beta!

from esp_dmx.

cnf avatar cnf commented on May 26, 2024

with v3.0.3-beta, it seems to be the same…
I am making sure to even send data on channel 1, and channel 512
Anything I can do to debug this?

from esp_dmx.

cnf avatar cnf commented on May 26, 2024

I just found out M5 has an actual DMX addon for their M5 core modules, with the same chipset:
https://docs.m5stack.com/en/module/DMX_Base

it seems to be wired the same, AND they use this library to drive it... so it should work? Reading their code to see if I am doing something wrong...

from esp_dmx.

someweisguy avatar someweisguy commented on May 26, 2024

Good find! It looks like M5 uses v2 of this library. Then something that should work would be to revert back to esp_dmx v2 and try the DMXRead example.

If you are still not able to read data using v2 of the library I would think that there is a hardware issue somewhere.

from esp_dmx.

Related Issues (20)

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.