orac12 Posted June 10, 2022 Report Share Posted June 10, 2022 Hi, I am trying to create my own canbus stream to mimic the DTA S80 stream for some existing devices, I have given it a go but cant get it to work. https://www.dtafast.co.uk/download_files/Manuals/S Series Manual.pdf DTA can bus spec starts at page 224. I have can enabled @ 1Mbit. Here is some screenshots of my can settings I have tryed to just get the first stream to work, I think I am probably understanding how the ID section works incorrectly. Quote Link to comment Share on other sites More sharing options...
Adamw Posted June 11, 2022 Report Share Posted June 11, 2022 The first frame with ID 0x2000 would look like below. The main mistakes: The "0x" on the front of the DTA ID number means it is in hexadecimal (FYI, some people instead of the 0x append a little h on the end of the number to specify Hex). The ID in Link is specified in decimal. You can use windows calculator (set to programmers mode) to convert between Hex and Dec. 0x2000 is 8192 in decimal. You didnt have the start positions and widths correct - it is easiest for a noob to just use the visual thing at the bottom, for example change the engine speed start position and width until the Engine speed is shown sitting nicely spread over Byte 0 & 1 (DTA are calling byte 0&1 "Data 1"). You had a frame ID set in Byte 0 (you can see the DDDD in the visual frame). Frame ID's are only used for compound messages where you send many frames on one ID. DTA are sending each frame with a unique ID so you dont need (or want) the frame ID. So frame ID position should be set to none. Quote Link to comment Share on other sites More sharing options...
orac12 Posted June 11, 2022 Author Report Share Posted June 11, 2022 Ok thanks Adam. I have something coming through making sense now, thanks for that. I guess the confusion started on the ID, didnt realise it was supposed to be in decimal, and then me trying to fit the (or some of the) ID into the first byte. Quote Link to comment Share on other sites More sharing options...
Adamw Posted June 11, 2022 Report Share Posted June 11, 2022 Im happy to help further if you run into any issues. There will be some that will need scaling - for example Lambda will need to be multiplied by 1000. 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.