Jump to content

Mimic DTA S80 Can Stream


orac12

Recommended Posts

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.

 

 

 

 

can stream.PNG

can mode.PNG

Link to comment
Share on other sites

The first frame with ID 0x2000 would look like below.

The main mistakes:

  1. 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.
  2. 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"). 
  3. 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.  

BCGvPmO.png

ugJUqcI.png

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...