Re: Can bus not sending ID

Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Vic wrote:
> Hi Folks
> 
> When trying to send a CAN frame from TINI to another
> CAN node (HC12 microcontroller based board), the 8
> byte message data goes through, however not the
> message ID. The receieving can node is set to accept
> all messages, both standard and extended format. When
> I retrieve the message on the node, the data is
> correct, however the ID is returned as 0. Any ideas?



Does the HC12 store IDs always?  It is not possible to send CAN frames 
without IDs.



> 		    // Look for all addresses
>             cb.set11BitGlobalIDMask(0xFFFF); 
> 		    cb.set29BitGlobalIDMask(0xFFFFFFFF);
> 		    cb.set29BitMessageCenter15IDMask(0xFFFFFFFF);		
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
These function calls have no effect while the CAN controller is enabled. 
  Put these before the enableController() call.

>            	cb.enableMessageCenter( 2 );
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Don't enable a TX message center, it will be enabled properly when 
sendFrame() is called.


-- 
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/[email protected]


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.