11-bit CAN from script

Request New Features here.
mbowdich
Posts: 209
Joined: Tue Oct 05, 2010 10:54 am

11-bit CAN from script

Post by mbowdich » Wed Jul 06, 2016 8:57 am

Is there a way to send 11-bit CAN messages from a script? I had requested this years ago when requesting that CAN can be sent via a script (because speed was too slow via state machine). The current way of sending it in 29-bit now has the speed I require, but I need to be able to send 11-bit.
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: 11-bit CAN from script

Post by stalley » Wed Jul 06, 2016 9:28 am

Hello mbowdich,

There is a way to send standard frame messages from a script.

This is a link to a topic viewtopic.php?f=7&t=1068&p=2865&hilit=s ... rame#p2865 that provides some information and it has a demo config with examples of transmitting different messages types.

I'll be glad to help if you have additional questions.
Sara Talley
Software Engineer
Enovation Controls
mbowdich
Posts: 209
Joined: Tue Oct 05, 2010 10:54 am

Re: 11-bit CAN from script

Post by mbowdich » Wed Jul 06, 2016 11:39 am

Please excuse my ignorance, but I cannot find anything in your link that addresses standard frame (11-bit) messaging. All the examples have to do with extended frame (29-bit).

Edit - Let me be a bit more specific, I already know how to send an event driven FFCAN message, but it does not work for what I need, as the priority handler screws things up. To give you an example:

I want to send 256 CAN messages with the first byte incrementing from 0 to 255. When using a loop to increment the variable and send the FFCAN message (via event), the priority handling will do all 256 variable increments BEFORE sending the first CAN message. The result is 256 CAN messages all with the first byte value of 255. The only way to send the FFCAN message before the next increment is to transition with a timer, but I would need a timer of 0.5mS or faster.

This has been the issue I have had for 6 years, and what drove my request to have direct CAN access from scripts. It now exists for extended frame (which will do what I describe above correctly), but the original request came from an 11- bit application I have had on hold now since 2010 / 2011.
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: 11-bit CAN from script

Post by stalley » Wed Jul 06, 2016 3:32 pm

Hello mbowdich,

I apologize, I misunderstood your original post. You are correct, it is not possible to transmit standard frame messages from scripts at this time, unfortunately.

I have entered this in our backlog. The backlog is reviewed by marketing and product managers regularly.

Thank you for your years of support, I see where you have been a regular poster on the forum and we certainly appreciate your contributions.
Sara Talley
Software Engineer
Enovation Controls
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: 11-bit CAN from script

Post by stalley » Tue Jul 12, 2016 12:54 pm

Hello mbowdich and All,

I have good news! The feature to support transmitting standard frame messages from a script will be in the 2.8 patch 2 release!

We will be able to use the same CANMessageInfo, CANMessageBuffer and SendCANMessage() as the extended frame messages.

The message type enumeration has been extended to CANMessageInfoType.StandardFrame to indicate the message type. The messagebuffervariable.CanID must be a valid 11-bit identifier.

I'm not sure when the patch will be ready though, there are still some bugs and small features being finished up before we send everything to test. My guess is August, that's about three weeks away. I'll have more information as we get closer to the release date...

Best Regards,
Sara Talley
Software Engineer
Enovation Controls