Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: How to send information via J1939?
PostPosted: Thu May 30, 2013 12:34 pm 

Joined: Sat May 04, 2013 7:23 am
Posts: 12

Offline
Thanks a lot! I'll try to work it out.


 Profile  
 
 Post subject: Re: How to send information via J1939?
PostPosted: Mon Jun 03, 2013 4:24 am 

Joined: Sat May 04, 2013 7:23 am
Posts: 12

Offline
As i understand, we have only int32-type for tags on transmission.
Is it possible to form 8-bytes message at once. In other words: how to prevent sending a message which is not finished?


 Profile  
 
 Post subject: Re: How to send information via J1939?
PostPosted: Mon Jun 03, 2013 8:56 am 

Joined: Tue Mar 13, 2012 9:53 am
Posts: 824

Offline
You need to update the tag value with the complete value you want to send. There is no way to partially update a tag's value, then send out the data when you are done.

In the FreeCAN Excel spreadsheet I always thought that you could limit the data you wanted to send to a single bit up 4 bytes, and any combination in between. Obviously only values that can be contained in the CAN memory register that you have specified would work.

_________________
Best Regards,
Mark Monroe

Beijer Electronics, Inc. | Applications Engineer


 Profile  
 
 Post subject: Re: How to send information via J1939?
PostPosted: Thu May 05, 2016 6:39 am 

Joined: Fri Mar 04, 2016 6:04 am
Posts: 1

Offline
Hi
with CAN bus sometimes it is really necessary to control *when* a telegram is sent. For example, a telegram contains four tags (A, B, C, D), and the value of those tags shall be aligned.
Let's say initially A=0, B=0, C=0, D=0.
I want to send a telegram with A=1, B=2, C=3, D=4.
So I write a script:

A = 1;
B = 2;
C = 3;
D = 4;

The problem is: as soon as the first instruction is executed, the CiX module sends a telegram with A=1, B=0, C=0, D=0, which is wrong. Is it possible to send a single telegram at a given time? As the original writer of this post alredy mentioned, document "First steps with CiX-CAN FreeCAN.pdf" at page 35 explains something about HRA, HRB but the information is not complete.

Please explain how to use HRA, HRB to send a telegram by direct command


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron