DMX HEX Help Needed
 
Notifications
Clear all

DMX HEX Help Needed

12 Posts
6 Users
0 Reactions
6,042 Views
Posts: 181
Topic starter
(@mangrove)
Estimable Member
Joined: 16 years ago
[#15914]

Does anyone have a DMX HEX file that can use to flash my 16F688 PICs? I downloaded the firmware file from the Wiki but I always get the compiling part wrong. It's much simpler and cleaner if I have a HEX file I can load into my PICkit2 software and program away.

I just built a Lynx Dongle and I'm trying to get it to work. I know the controller works as I had it working fine with the standard Renard protocol. So I figured I'd start with the HEX file and reflash my PICs and see if that works (given my history with compiling HEX files I figured I a good place to start is making sure the PICs have good firmware).

I've searched but don't see any threads on using a Lynx Dongle and Renard boards; can anyone point me in the right direction of a thread that might help me troubleshoot the entire DMX to Renard process?

Thanks in advance for the help!


11 Replies
mlkren
Posts: 745
(@mlkren)
Prominent Member
Joined: 16 years ago

See if this works.


Reply
budude
Posts: 10400
(@budude)
Illustrious Member
Joined: 18 years ago

Both the Lynx and RPM's Enttec-like dongles have different pinouts than Renard (or LOR for that matter). Follow THIS wiring diagram from the Wiki. What I did was to cut a Cat5 patch cable in half and then rejoined the wires to match the diagram and marked one end as "RENARD" (to the controller) and the other as "DMX" (to the dongle). You can make your own cable as well of course.

Anyway - let us know if the code isn't working for you - I can recompile one for you if necessary. What controller are you using? I do have one already prepared in the file library for the Ren48LSD (works for the Ren24LV as well).


Reply
bcstuff
Posts: 449
(@bcstuff)
Reputable Member
Joined: 16 years ago

I too initially had problems with compiling a hex file until I watched WayneJ's videos.
http://www.doityourselfchristmas.com/wiki/index.php?title=WayneJ%27s_video_series_on_PIC_programming
Its very easy to make your own hex using MPASMWIN which is Video #2.
You can't set your DMX start address if you can't compile your own hex files.

Make sure you have an adapter cable like budude said, that threw me off at one point too.


Reply
Posts: 181
Topic starter
(@mangrove)
Estimable Member
Joined: 16 years ago

Thanks for the HEX mlkren, I reflashed my PICs this morning. Unfortunately the lights are still dark.

Let me back up and explain what I’m doing. I’m going to have a large channel count so instead of messing with two or three USB to RS485 converters, I decided to go the DMX dongle route. I purchased and built the Lynx dongle. Now I’m trying to make the switch to DMX. I know my controllers work as I’ve run extensive tests on them using the Renard protocol. At this point I'm just trying to get the SS 24s to work. I'll move on the 48LSDs once I get the 24s working.

As I see it there are a few places that can be causing my issues.

1. Is the dongle working? Unfortunately I don’t know how to check this. I built multiple dongles so chances are one should work. I flashed the PIC in the dongle (the HEX file was provided so no compiling to worry about), so I’m fairly certain that it is working. I downloaded and installed the drivers for the dongle. Looks like windows decided this device will live at com 7 and above. The red and green LEDs are on (the green LED appears to be flickering very fast) so it appears the dongle is working but again, I don’t really know.

2. Are the PICs on the Renard SS 24 flashed with the correct firmware? As I said above, I used mlkren’s HEX and reflashed this morning; still no light.

3. Wire. I’m using the wiring diagram Budude pointed me to. I verified the wires are in the correct positions.

4. Software. I created a new profile using the Entec DMX USB Pro. I followed the instructions from the Lynx manual. I made sure the com port windows assigned the dongle matches with the profile I set up on vixen.

So at this point I’m a little stumped. Everything I see points me to PICs that aren’t flashed properly.

Any suggestions?


Reply
bcstuff
Posts: 449
(@bcstuff)
Reputable Member
Joined: 16 years ago

Do you have a DMX device to test the Lynx Dongle?
Make sure the firmware you loaded on the dongle is not the pixelnet firmware.
They have also posted checksums for the dongle firmware now on the wiki too.
Can you test your cable for continuity to make sure the the connections are good?

Also in Vixen make sure under Add-ins that you do not have DMX checked.

As far as the hex, no offense to mlkren, I have not tried his to see if it works. I have tried and used the one posted below by RPM for DMX that is set to channel 1.
http://doityourselfchristmas.com/forums/showthread.php?8516-Renard-DMX&p=82697#post82697

Hope this helps.
Brian


Reply
Posts: 181
Topic starter
(@mangrove)
Estimable Member
Joined: 16 years ago

Bcstuff, thanks for the suggestions. I’m sure the firmware loaded on the dongle is NOT the pixlenet version. When I started down this road, the importance about the dongle firmware was pointed out (regular versus pixelnet) and I made sure I got the correct version. The checksum was helpful and all went well when I flashed that chip (but again, you never know if you got that part right until later in the process).

Unfortunately I have no way to check if the dongle is working or not; as I said the LEDs are on and it appears to be working but I don’t know for sure. So there’s another member who lives close by which I’ll see if I can take my dongles to him and check if the dongles work. Seems like that may be the best place to start.

Dumb question, how do I check the continuity of the cable? I have a continuity tester for network cables, and it works great for straight through cables, but as these are not straight through, how do I test the continuity of this cable? This very well could be the problem so I need to know how to test the continuity of the cable. As an example, the tester is expecting to see wires 7&8 in the same place but they switch to 1&2 so the tester shows a failure.

I verified the DMX add in is not checked (I didn’t know that was there; what’s that for?)

So at this point I’m not going to reflash my PICs until I can verify the dongles work…

The suggestions are great and I really appreciate the support of this community, I’m sure I’ll get this working it’s just a matter of time… please keep the suggestions coming!

Thanks,
Mike


Reply
bcstuff
Posts: 449
(@bcstuff)
Reputable Member
Joined: 16 years ago

Unfortunately those cheap network testers only test if it doesn't match the other side.

Continuity info:
http://www.ladyada.net/library/metertut/continuity.html

If you do not have a multimeter that does continuity, for just checking the wire, maybe hook a AA battery to 2 of the pins and test for voltage at the other end at the appropriate pins.


Reply
dmcole
Posts: 2196
(@dmcole)
Noble Member
Joined: 19 years ago
Mangrove wrote:The suggestions are great and I really appreciate the support of this community, I’m sure I’ll get this working it’s just a matter of time… please keep the suggestions coming!

Mike:

I can mail you a known working Lynx SSR4/DMX ... it's in a case, so it'll need to go in a non-flat-rate box, but mail from SF to the greater Riverside area shouldn't be too bad.

Just PM me if you want the loan ...

\dmc


Reply
Posts: 181
Topic starter
(@mangrove)
Estimable Member
Joined: 16 years ago

Wahoo! It’s fixed…. As I said early on, the issue was going to be in one of four places:

1. The dongle
2. The cable
3. The controller
4. The software

Turns out it was the dongle! More specifically the assembly of the dongle. The dummy who assembled the dongle, reversed the RS485 and optocoupler chips. The good news is I had the cable, controller and software correct! Once I put these chips in the correct places, everything came to life!

So the lesson is a tried and true one… when assembling any components, make sure everything is installed correctly! In my defense, these chips look very similar and if they look that similar, seems to me they should work the same… lol…. Gotta have a sense of humor about dumb mistakes!

As always, thanks to this great community for providing great suggestions and support. I got a good DMX HEX file; or two, learned how to test cat 5 cables for continuity and solved the problem.

Dmcole, thanks for the offer to send a DMX device… another terrific example about how the group is always willing to help!

Now I’m off to figure out why I get flicker… I’m sure I’ll be back looking for help on that issue…

Thanks again everyone, I really appreciate the help!

Mike


Reply
Page 1 / 2
Share: