rassie Posted February 6, 2022 Report Share Posted February 6, 2022 I am testing the connection of a cancheked switch board called CFE18 to the Link G4. I cleared the analog input without any problem, but the digital input has a bit mask item and cannot be recognized. I also saw the stream data file of the switch board V3 of the ECU master which has a similar frame configuration in G4X, but there was no item of digital input only for analog input. Should I think that such a feature is not available in linkecu? Could someone lend me some knowledge? Thank you. Quote Link to comment Share on other sites More sharing options...
essb00 Posted February 6, 2022 Report Share Posted February 6, 2022 Quote Link to comment Share on other sites More sharing options...
rassie Posted February 6, 2022 Author Report Share Posted February 6, 2022 thank you. I tried to reassemble it referring to the article and I was able to move it. I am very grateful Quote Link to comment Share on other sites More sharing options...
Adamw Posted February 6, 2022 Report Share Posted February 6, 2022 So have you figured it out or still need help? Bit flags or masks can be achieved just by assigning 1 bit width to the parameter. Quote Link to comment Share on other sites More sharing options...
rassie Posted February 7, 2022 Author Report Share Posted February 7, 2022 Since I was able to confirm the operation of the switch input by arranging 1 bit on byte 2, I think that the content of the initial question is okay. The use of items after byte 3 of Dashi base ID + 2 is not well understood. Quote Link to comment Share on other sites More sharing options...
Adamw Posted February 7, 2022 Report Share Posted February 7, 2022 Base ID+2, Byte 2 is what most would refer to a bit field - this is one byte that covers the status of 8 DI's. Byte 3 onwards has only the same information but instead of squeezing it all into one byte they give each DI status it's own byte. For example Byte 3 will be 0 when DI0 is off, or 1 when DI0 is on. Byte 4 will be 0 when DI1 is off, or 1 when DI1 is on. You dont need byte 3 onwards since you can get all the information you need in byte 2. The data in Byte 3 onwards may be needed for a less flexible device that cant interpret single bits or do bit masks. Quote Link to comment Share on other sites More sharing options...
rassie Posted February 8, 2022 Author Report Share Posted February 8, 2022 I didn't have enough understanding about CAN, so I was grateful for the explanation. I finally understood the meaning of what was written. I would like to study while touching it a little more. Thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.