I wish to daisy chain a 3rd REN64 so I can add more blinky to 2009 display. I'm running two REN64s/1 RENT at 38400 baud rate, PWM firmware from wiki through my Dell pentium4 laptop. I'm using Vixen with one Serial port on laptop, which is converted to RS485.
In order to run 196 channels with dimming, minimum 100ms is required per Christmas wiki at 57600. I reprogrammed all pics and tested 3 REN64, daisy chained with single RENT. At 57600 baud rate, LEDs for each channel come on but sometimes they randomly are on or off when using the all on/all off check in Vixen. Initially thought pics were issue but since the channels come on randomly, I ruled out bad programming on PICs, for now.
The REN64s (x3) were tested at 115200 but no led activity. In between each baud test, I changed serial port setting in XP device manager and rebooted laptop. Baud rate in Vixen was set to the proper baud rate accordingly, so don't believe Vixen SW is the problem.
Any suggestions in what to check to run 3 REN64 on one serial port and one RENT?
Another thought... has anyone used USB to RS232 serial converter? Only downside to this approach is it will require an additional RENT. At least, I might be able to add more lights this way.
Did you reflash your pics with the 115200 firmware?
The thing to do is try 1 Ren64 at a time with the new baud rate first. If they work correctly individually then you can start putting them together in a daisy chain.
If they don't work individually, then you need to find where the data problem is occurring.
azcap21 wrote:
...
I'm using Vixen with one Serial port on laptop, which is converted to RS485.
...
The REN64s (x3) were tested at 115200 but no led activity. In between each baud test, I changed serial port setting in XP device manager and rebooted laptop. Baud rate in Vixen was set to the proper baud rate accordingly, so don't believe Vixen SW is the problem.
...
First thought - did you reprogram the PICs between each baud test?
Secondly - IIRC there was some discussion about certain RS232 to RS485 converters that didn't do well at 115,200. I believe the comments were from Phil. You may want to search the forum for that info.
I was simply repeating the comments from someone else on this forum.
PICs were flashed at each baud rate. Since testing was done at 19200 and 38400 with perfect operation with 3 boards, I ruled out bad PIC or programming procedure with MPLAB. (That was a lot of programming for the pics).
The only line that was changed in 20070430.ASM file => #define_baudrate "57600 or 119500".
Is this the only line that needs to be changed in ASM file for 115200 at 50ms?
After changing baud rate in ASM file, I ran "Build All" in MPLAB - no errors. Reflashed pics.
Single REN test resulted in same issue as 3 RENS. RS232 to 485 adaptor cannot be ruled out. I do read Phil's report on RS232/RS485 adaptor problem and maybe should find a better one. Since I did not populate my RENT with Serial parts I cannot bypass the 485 adaptor to test accurary of the 485 adaptor. I really want to keep 485 adaptor because the REN64s are about 60 feet from the computer.
Your suggestions are greatly appreciated.
azcap21 wrote:.Single REN test resulted in same issue as 3 RENS. RS232 to 485 adaptor cannot be ruled out. I do read Phil's report on RS232/RS485 adaptor problem and maybe should find a better one. Since I did not populate my RENT with Serial parts I cannot bypass the 485 adaptor to test accurary of the 485 adaptor. I really want to keep 485 adaptor because the REN64s are about 60 feet from the computer.
Your suggestions are greatly appreciated.
You can still use it, just make a cable and solder the leads to the Ren-T (you can always desolder them if you want later). Just match pin 3 to pin 3, and pin 5 to pin 5. (pcb to pc serial port.) That will at least get you a test. The Ren-T design is a very high quality RS485 convertor. I would use it if at all possible.
I agree, 485 is the way to go! I have been very happy with the REN64 and RENT. An excellent design and implementation by the folks from this forum made that happen! Thanks!
I'll test with RS232 first to see whether there's a limitation with 485 converter I am using.
The baud rate issue was solved! The RS232 to RS485 adaptor that I purchased from EBAY, was not able to handle faster data transfer rate >38.4K baud.
I reconfigured RENT as case #3 "Connecting PC to first controller, converting to RS485 in the process" and reprogrammed REN PICs for 115.2K. 3 REN64 boards work flawlessly with Vixen. I tested RENT connection to the first REN board with 100' CAT5 cable to ensure data is good to the 1st. REN board being I will put RENT in it's on enclosre that will be less than 5 feet from my PC.
Thanks for the help and guidance. One project down many more to go...Next project is building more SSRs for more lights.
