Receiving CANbus data from external devices

For MIAC users to discuss projects, applications, and any other issues related to the MIAC unit.

Moderators: Benj, Mods

Post Reply
thusharag
Flowcode v5 User
Posts: 46
Joined: Wed Jun 22, 2011 10:42 am
Has thanked: 9 times
Been thanked: 3 times
Contact:

Receiving CANbus data from external devices

Post by thusharag »

hi,
I tried to receive CANBUS data from an external relay (Woodward MFR2) to a MIAC. But some data comes. but very difficult to filter the data. such as difficult to read exact CAN IDs. I have attached here the transmission details of the external device. Could you please help me to read them out?

regards,

thushara.
Attachments
CAN details2.jpg
2
(207.6 KiB) Downloaded 2260 times
CAN details.jpg
1
(192.13 KiB) Downloaded 2260 times
Thanks & Regards,
Thushara Goonathilake.

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: Receiving CANbus data from external devices

Post by dazz »

Hi thrusharag
I dont have a miac but can you post your flowchart, sign up to the v4 or 5 forums link in my sig, this will allow others to see what version of flowcode you use and also will enable people to see how far you have got with your flowchart, and you will then get more help

Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

thusharag
Flowcode v5 User
Posts: 46
Joined: Wed Jun 22, 2011 10:42 am
Has thanked: 9 times
Been thanked: 3 times
Contact:

Re: Receiving CANbus data from external devices

Post by thusharag »

hi,
actually I have done only a sample flowchart according to the normal way by using normal CAN (not extended CAN -CAN2). because I use this CAN normally to communicate with my HMIs in my projects successfully. But I cannot understand for this special application which one should I use. So please follow the above details of the requirement and guide me by which (CAN or CAN2) and how the flow chart should be.
Anyway I will put this in FLOWCODE 5 forum also.

thanks in advance,

Best regards,
thushara
Thanks & Regards,
Thushara Goonathilake.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Receiving CANbus data from external devices

Post by LeighM »

Hi Thushara

It looks like the device is sending out data on a single CAN ID of 0x320 (plus “item number”)
So looks like a standard frame 11 bit identifier.
Presumably the CAN ID can be configured on the device by changing its “item number”.

All data is then output on this CAN ID, but split across multiple messages.
Of the 8 data bytes available, byte 0 contains 0xdd, byte 1 contains the MUX number that tells you which section of data is contained in the remaining 6 bytes (or 3 data words).
So each “Telegram” message is made up of multiple words, so is sent 3 words at a time in each CAN message, where the MUX number tells you the part number.

So when the MUX number is 0 the data that follows contains words 1, 2 and 3, when the MUX number is 1 the data contains words 4, 5 and 6 and so on.
So to say get the “Bus bar frequency” you would need to read the word value in bytes 6 and 7 when the MUX value in byte 1 is equal to 4.
(Although that might be MUX = 3, because the table starts at MUX = 1, but the formula in the appendix starts at MUX = 0 for Line = 1 so that is a bit confusing)

That’s how I read these documents.
Hope that might be of some help.
Regards.
Leigh

thusharag
Flowcode v5 User
Posts: 46
Joined: Wed Jun 22, 2011 10:42 am
Has thanked: 9 times
Been thanked: 3 times
Contact:

Re: Receiving CANbus data from external devices

Post by thusharag »

Hi LeighM,

Yes the way you thought is correct. I did it and now its working perfectly. Thanks a lot for the support.

Thanks again,

thushara.
Thanks & Regards,
Thushara Goonathilake.

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: Receiving CANbus data from external devices

Post by LeighM »

Thanks for letting us know it worked.
Leigh

Post Reply