03-27-2015 10:49 AM
03-27-2015 11:05 AM
I'm being cagey because I'm trying to replace it under the noses of some large companies, using cRIO rather than custom electronics. It's at the stage of me being able to prove we can do it (demo in about a month). I don't want my potential competitors to know we are nosing around their cushy little world.
Today we managed to send a command and it was understood (obviously using a look-up rather than calculating), so that's a real bonus as we have only had the kit a day and it uses 9bit data on RS485 and that is one risk sorted.
Sadly we don't have any order coverage yet so we're having to do it free and amongst our other jobs.
If you're really interested Mike, pm me and I'll fill in some more details
Steve
Opportunity to learn from experienced developers / entrepeneurs (Fab,Joerg and Brian amongst them):
DSH Pragmatic Software Development Workshop
03-27-2015 11:32 AM
How big will your data packets be? Could a brute-force Look-up table be an option?
03-27-2015 11:38 AM
It may get us through the demo, but the actual working software has a configuration command that could be pretty much anything. Packet size varies from 2 bytes upto a maximum of about 20 I would think. The packet shown is waking up the 64 available channels.
Steve
Opportunity to learn from experienced developers / entrepeneurs (Fab,Joerg and Brian amongst them):
DSH Pragmatic Software Development Workshop
03-27-2015 12:15 PM
Looking over the problem again, a 32-bit LUT would probably be a bit overkill anyway.....
03-27-2015 05:41 PM
Try this.
03-28-2015 06:34 AM
Genius!
Now, how did you work this out?
03-28-2015 06:51 AM
@jamiva wrote:
Try this.
I could have sworn I tried that combination of CRC parameters. Maybe I just got distracted by some of the comments on Steve's front panel.
Well, there you go Steve. It is a standard CCITT 16-bit CRC.
03-28-2015 07:11 AM
I found an online CRC calculator and tried three of the common CRC-16 algorithms and none of them came up with these values. Wiki lists seven common ones, and CCITT is one of the ones I didn't try! D'oh!
03-28-2015 07:29 AM
I'm pretty sure I tried the standard CRC CCITT 16 (not that I really know what all this means!)
Is there a custom seed that is set that makes it non-standard? (the x1021 part?)
I'm still waiting on it to be converted to LV2013 before I can test it. So forgive me not yelling success!, Eureka! etc.
I really appreciate the input and owe all recipients at least a drink and probably a nice meal
Love Steve
Steve
Opportunity to learn from experienced developers / entrepeneurs (Fab,Joerg and Brian amongst them):
DSH Pragmatic Software Development Workshop