Chat freely about anything...

User avatar
By sfranzyshen
#9925 I have not tested this code myself yet ... I kept things the same if no frame splitting happens ... meaning I do not copy the data to a seperate array before sending it to the ws2812 code. But if a frame split occures ... we copy the contents of the frame to a seperate array and loop until we have all the frames. I have made the assumption that all packets will arrive in order. So, there could be problems if your network is cluttered ...

If you try this please give us feedback here!
User avatar
By folny82
#9929
sfranzyshen wrote:I have not tested this code myself yet ... I kept things the same if no frame splitting happens ... meaning I do not copy the data to a seperate array before sending it to the ws2812 code. But if a frame split occures ... we copy the contents of the frame to a seperate array and loop until we have all the frames. I have made the assumption that all packets will arrive in order. So, there could be problems if your network is cluttered ...

If you try this please give us feedback here!


It seems that the code does not work when you set the number of channels Jinx 1536 and Chan/Block at 768 and run as ESP freezes and nothing happens.
User avatar
By sfranzyshen
#9931
folny82 wrote:It seems that the code does not work when you set the number of channels Jinx 1536 and Chan/Block at 768 and run as ESP freezes and nothing happens.


:oops:

I did this based on what pixelcontroller does ... I can not see how either jinx or glediator handle things because thier source code is not available ... also ... I am not the best programmer ... so I may have screwed up the new array and pointers stuff ... any good c coder want to look at that?

I am making assumptions on how the tpm2net set the packagenum & numpackages values ...

I have been meaning to create a tpm2net to tpm2ser gateway ... maybe looking closer at that project can give me a better idea of how the packets are being sent from jinx ...
User avatar
By sfranzyshen
#9944
folny82 wrote:It seems that the code does not work when you set the number of channels Jinx 1536 and Chan/Block at 768 and run as ESP freezes and nothing happens.


does the firmware work with the lower channels? And does the esp8266 lockup (needs to be reset/restarted) or can you drop down again and it works?

I can't tell if the program seg faults ... maybe need to setup a serial debug routine ... if it doesn't lockup maybe it is caused by the "if (packagenum == numpackages)" is not correct and the frame never seems complete leading to overunning the framebuffer array ... or I am passing this array incorrectly to the ws2812 code ... I am just shooting in the dark here ...