Comments (10)
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- dmx timing HOT 1
- Compile errors version 2 and up HOT 8
- Troubles with ETC Express HOT 6
- RDM discovery controller HOT 12
- Error on Sample DMX Sniffer HOT 1
- DMX read example - 'isr_handle' undeclared in arduino 2.14 HOT 1
- DMX Output randomly stops for a few seconds HOT 1
- Interrupt conflict HOT 1
- rdm_register_dmx_personality missing in 3.1.0 HOT 4
- DMX Read - Unstable packet.size depends on the number of DMX channels HOT 3
- compiling error with 3.10 but not with 3.0.3-beta HOT 3
- agent.h - error: C99 designator 'software_version_label' outside aggregate initializer HOT 2
- Can't get the Read Example to work on ESP32 Arduino in PlatformIO HOT 3
- ESP_DMX on ESP32-S2 HOT 6
- esp_dmx on ESP-IDF 5.1 not work? HOT 3
- Threadsafe-ness of this library HOT 2
- General Question About Wireless Audio Transmitting HOT 3
- Commit f148f7b (fix idf v5 timer error) breaks dmx_receive and rdm HOT 8
- Calling dmx_receive with wait_ticks=0 does never return data HOT 4
- ESP32-C6 incompatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp_dmx.