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.
Receiving CANbus data from external devices
-
- Flowcode v5 User
- Posts: 46
- Joined: Wed Jun 22, 2011 10:42 am
- Has thanked: 9 times
- Been thanked: 3 times
Receiving CANbus data from external devices
- 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.
Thushara Goonathilake.
Re: Receiving CANbus data from external devices
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
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
-
- Flowcode v5 User
- Posts: 46
- Joined: Wed Jun 22, 2011 10:42 am
- Has thanked: 9 times
- Been thanked: 3 times
Re: Receiving CANbus data from external devices
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
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.
Thushara Goonathilake.
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
Re: Receiving CANbus data from external devices
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
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
-
- Flowcode v5 User
- Posts: 46
- Joined: Wed Jun 22, 2011 10:42 am
- Has thanked: 9 times
- Been thanked: 3 times
Re: Receiving CANbus data from external devices
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.
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.
Thushara Goonathilake.