Arduino Uno and TSS463B VAN Datalink Controller

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

 

I've been struggling with a TSS463B VAN Datalink Controller and I'm not able to decrypt its datasheet. I'm using SPI to interface the controller (basically following this: https://github.com/lazarov-g/vanreader ) but could not find a reliable way to detect when a new message arrives. I can see that there is a Last Message Status Register which holds the channel number that was successfully transmitted or received, but it's a read only register, so I can't set it after reading out the contents of the corresponding mailbox. Maybe there is another way, but I couldn't figure it out. And also cannot figure out how to send a message, if I understand it correctly, I need to set the corresponding channel registers as seen on page 37 and 44, or am I wrong? Any help is greatly appreciated.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you seen this?   http://www.atmel.com/images/doc4...

Don't know if that will help, as I have no experience with VANbus, only some CANbus.

 

Jim

 

edit: could not get copy/paste to work, but when posted, all of my pastes show up in the text, but not when it is in edit mode?????

 

 

http://www.atmel.com/images/doc4205.pdf
http://www.atmel.com/images/doc4205.pdf
http://www.atmel.com/images/doc4205.pdf
http://www.atmel.com/images/doc4205.pdf

Mission: Improving the readiness of hams world wide : flinthillsradioinc.com

Interests: Ham Radio, Solar power, futures & currency trading - whats yours?

 

Last Edited: Thu. Dec 28, 2017 - 02:48 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes, it's almost the same as I've linked. I have figured it out that I need to play with the various message types which are described on page 44. I came to the conclusion that I need to set up channels for every message type, and even the order of the channels setup matters. For example I get more messages if I set up the channels like this:

Channel 0: reply request message

Channel 1: receive message

Channel 2: reply request message without transmission

 

Compared to this channel setup:

Channel 0: receive message

Channel 1: reply request message

Channel 2: reply request message without transmission

 

I don't know why...