Whatafreak wrote:Just so I am clear, when I go to set these up they each need 8 channels of data, but only the last 4 channels of each 8 channel set is used? If I have 4 floods, then do I need 32 channels set up?
Yes - think of it as a crippled Ren8Flood (doesn't quite have the same ring to it...).
One thing that might work - and I haven't tried it - is to set the starting address of the PICs at 1, 5, 9 and 13 and use the "THRU" jumpers on the boards. This bypasses the IN to the OUT directly so the PIC does not "eat" the 8 channels of data. You will want to use the TERM jumper on the last one to terminate the RS-485 line since the four floods will be connected to the same physical line. I'm not 100% sure if the code will like starting at the odd (5, 13) values but it might just work and then you can simply use the 16 channels directly.
budude wrote:Yes - think of it as a crippled Ren8Flood (doesn't quite have the same ring to it...).One thing that might work - and I haven't tried it - is to set the starting address of the PICs at 1, 5, 9 and 13 and use the "THRU" jumpers on the boards. This bypasses the IN to the OUT directly so the PIC does not "eat" the 8 channels of data. You will want to use the TERM jumper on the last one to terminate the RS-485 line since the four floods will be connected to the same physical line. I'm not 100% sure if the code will like starting at the odd (5, 13) values but it might just work and then you can simply use the 16 channels directly.
If you're talking Renard, the start address only works on 8-channel boundaries. A start address of 5 would mean the controller would start at channel 41. On the Ren4Flood, that would mean the flood would use channels 45,46,47,and 48.
If you're talking DMX, then I have no clue... which is pretty normal for me anyway...
Is this with standard Renard code (renard-20071229.asm) as well? The Ren48 code is not based off the 'starting address' version used for the Ren-W stuff... There *is* a 4-channel version of the DMX code available both in the Wiki and File Library for the Ren4Flood.
I don't believe that version had start address capability. Looking at the ASM, it doesn't appear that there's any facility for it. Besides, Phil dated the first release of start_address code in 2009 anyway. I believe it was version 20090915.asm.
dirknerkle wrote:I don't believe that version had start address capability. Looking at the ASM, it doesn't appear that there's any facility for it. Besides, Phil dated the first release of start_address code in 2009 anyway. I believe it was version 20090915.asm.
Well... then nevermind! 😉
I've actually never used Renard/Serial/16F688 code - been a Renard/Simple and DMX guy...
So far I haven't made any change to the standard (or start-address) versions of the Renard firmware in support the 4-channel controllers because I'm concerned about the amount of confusion that would generate (and I don't want it be a complete hack). I would want it to function as close as possible to the start-address firmware as possible, and to ensure that it operates properly with the Vixen 1.x plugin (if possible). At this point I haven't wrapped my head around how to do this, although I haven't spent much time on it.
P. Short wrote:So far I haven't made any change to the standard (or start-address) versions of the Renard firmware in support the 4-channel controllers because I'm concerned about the amount of confusion that would generate (and I don't want it be a complete hack). I would want it to function as close as possible to the start-address firmware as possible, and to ensure that it operates properly with the Vixen 1.x plugin (if possible). At this point I haven't wrapped my head around how to do this, although I haven't spent much time on it.
Wouldn't the pic have to re-packetize all data past it's 4 channels due to the 8-byte group size in the renard protocol? Is that the planned mode of operation? It seems that you would have to split all subsequent 8-byte packets and offset all address bytes by 4 bytes in the data stream.
Personally, I think that coming within 4 channels in firmware is "close enough" and the start_address firmware is fine as-is.
I designed the MiniRen8/4XB so that the user could choose which of the PIC's eight output channels were used as the "active" channels to control the board's 4 SSRs. This was done via a row of 8 header pins that matched the 8 outputs on the PIC and a corresponding set of 4 header pins for the 4 SSR outputs on the board. By connecting wire jumpers from the PIC side to the SSR side, you can choose which of the 8 channels you wanted to use. You could use 1-3-5-7, 1-2-6-8, 1-6-7-8 or 7-2-4-8, etc. Total flexibility. Coupled with the start_address firmware, this idea provides the opportunity to select any 4 channels of any contiguous 8-channel block in your whole layout.
With a Dremel and a little DIY ingenuity you could hack the Ren4Flood board and accomplish the same end result. Or, simpler yet, just use normal start address firmware, skip the 4 unused channels and move on...
OK, I've got a possible solution for this issue, although I think it's somewhat of a kludge. Also, I'm not really set up to test it...
The 'possible solution' starts with the start_address firmware, and adds two use-configurable flags (in the same manner as the start address was incorporated). The first flag (if set) simply swaps channels 1-4 with 5-8. The second flag (if set) causes all data sent to the given controller to be transparently sent through (as opposed to 'eating' data sent to it and potentially modifying the up-front command byte).
How would this be used? If you wanted to connect two budude Ren4 controllers in a row, you would program the FIRST one with the start address and set both of these flags, and the second controller would have the same start address with both flags clear. If you have just one Ren4Flood controller, you would still lose four channels (i.e. this change doesn't help).
The main benefit of using this firmware is that if you have a lot of Ren4Flood controllers in a row, you would end up using half as many channels as otherwise.
Is this useful, or too confusing? I've modified the start_address firmware according to the above description, but haven't tested it or uploaded it, pending commentary on whether it is useful and not too confusing. BTW, it doesn't do the re-packetizing that materdaddy alluded to, because that would require a lot of changes to the firmware, if it's at all possible to do safely.
Phil, I'll be glad to test it for you if that will help. Email is dave#clubdata.com where # is of course the famous Al Gore character...
-dave
