<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>i.MX ProcessorsのトピックRe: CAN messaging</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152426#M1423</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set the baudrate of the CAN signal. The baudrate needs to be 500 kHz. I use the command:&lt;/P&gt;&lt;P&gt;canconfig can0 bitrate 500000&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2012 19:29:23 GMT</pubDate>
    <dc:creator>AlexanderKelle1</dc:creator>
    <dc:date>2012-04-23T19:29:23Z</dc:date>
    <item>
      <title>CAN messaging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152421#M1418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know the CAN settings to read a 500 kHz baudrate CAN signal? Thanks for your help?&lt;/P&gt;&lt;P&gt;-Alexander Keller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2012 00:05:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152421#M1418</guid>
      <dc:creator>AlexanderKelle1</dc:creator>
      <dc:date>2012-04-10T00:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: CAN messaging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152422#M1419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Additional questions from Alexander:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Everytime I try to configure the BITTIME using the canconfig command I always get an error that says ,”unable to get bittime.” I was wondering how to &amp;nbsp;configure the BITTIME using the canconfig command?&lt;/LI&gt;&lt;LI&gt;Do I need to install the socketcan library in order to run the can utilities, and where is the binary located when I build the socketcan libraries using litb?&lt;/LI&gt;&lt;LI&gt;Also what are the setting used for a 500 kHz baud rate CAN message?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;The final question is how is the data stored when using the canecho command, meaning was is the variable type and name when the canecho command is used?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:12:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152422#M1419</guid>
      <dc:creator>Frias</dc:creator>
      <dc:date>2012-04-23T19:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: CAN messaging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152423#M1420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use pages 46 and 47 as a reference to set the&amp;nbsp;timing, let us know if you have issues and I'll ask the CAN experts to comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't need to install the libraries, just copy them to your file system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check you the source code for the CAN packages by typing:&lt;/P&gt;&lt;P&gt;- $ ./ltib -m prep -p &amp;lt;package&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source will be extracted to &amp;lt;ltib install&amp;gt;/rpm/BUILD/&amp;lt;pkg name&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Renato&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:19:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152423#M1420</guid>
      <dc:creator>Frias</dc:creator>
      <dc:date>2012-04-23T19:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: CAN messaging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152424#M1421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to set the timing, but every I always get an error saying, "Unable to get bitrate." I can set no parameters for the CAN bus. Is there anyway to set the parameters using the canconfig command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Alexander Keller&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152424#M1421</guid>
      <dc:creator>AlexanderKelle1</dc:creator>
      <dc:date>2012-04-23T19:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: CAN messaging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152425#M1422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share the commands you are using? Just paste the commands you are issuing on the terminal and the output you are getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:26:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152425#M1422</guid>
      <dc:creator>Frias</dc:creator>
      <dc:date>2012-04-23T19:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: CAN messaging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152426#M1423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to set the baudrate of the CAN signal. The baudrate needs to be 500 kHz. I use the command:&lt;/P&gt;&lt;P&gt;canconfig can0 bitrate 500000&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2012 19:29:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152426#M1423</guid>
      <dc:creator>AlexanderKelle1</dc:creator>
      <dc:date>2012-04-23T19:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: CAN messaging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152427#M1424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexander,&lt;/P&gt;&lt;P&gt;Please double check that your CAN driver is up and running by executing the below command:&lt;/P&gt;&lt;P&gt;&amp;gt; ip link show can&lt;/P&gt;&lt;P&gt;If any of the CAN interfaces is up, the procedure to configure the bitrate is as follows:&lt;/P&gt;&lt;P&gt;-echo 125000 &amp;gt;&amp;gt; /sys/devices/platform/FlexCAN.0/bitrate&lt;BR /&gt;(this command sets CAN0 interface to run at 125Kbps, to setup CAN1 interface use the same command above but changing FlexCAN.0 to FlexCAN.1)&lt;BR /&gt;&lt;BR /&gt;-ip link set canX up&lt;BR /&gt;(the X needs to be replaced by the can interface to use. E.g can0 or can1)&lt;BR /&gt;&lt;BR /&gt;-cantest can0 121#DEADBEEF&lt;BR /&gt;(cantest utility needs to be selected from: ltib-&amp;gt;package list)&lt;BR /&gt;&lt;BR /&gt;To listen messages from CAN, please run the below command:&lt;BR /&gt;-cantest can0 &amp;amp;&lt;BR /&gt;(this command will put the can0 to listen from any incoming messages from CAN bus)&lt;BR /&gt;&lt;BR /&gt;After using this configuration settings, you should be able to see CAN frames&lt;BR /&gt;&lt;BR /&gt;Btw, which BSP release are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2012 21:34:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152427#M1424</guid>
      <dc:creator>OscarLuna</dc:creator>
      <dc:date>2012-04-24T21:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: CAN messaging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152428#M1425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the ip link show command and it display which can buses were running so I think I install the can utilities correctly. However,I tried to use the cantest command but I get an error saying "command not found." I looked in the can utilities file and could not find any files relating to the cantest command. Do I need a different can utilities?&lt;/P&gt;&lt;P&gt;I however used to settings provided by the workshop and I was abl to read CAN frames at 33 kHz baud rate. The configurations for the 33 kHz baud rate were:&lt;/P&gt;&lt;P&gt;ifconfig can0 down&lt;BR /&gt;echo 99 &amp;gt; /sys/devices/platform/FlexCAN.0/br_presdiv&lt;BR /&gt;echo 8 &amp;gt; /sys/devices/platform/FlexCAN.0/br_propseg&lt;BR /&gt;echo 8 &amp;gt; /sys/devices/platform/FlexCAN.0/br_pseg1&lt;BR /&gt;echo 3 &amp;gt; /sys/devices/platform/FlexCAN.0/br_pseg2&lt;BR /&gt;echo 3 &amp;gt; /sys/devices/platform/FlexCAN.0/br_rjw&lt;BR /&gt;ls -lha /sys/devices/platform/FlexCAN.0/br*&lt;BR /&gt;cat /sys/devices/platform/FlexCAN.0/br*&lt;BR /&gt;ifconfig can0 up&lt;/P&gt;&lt;P&gt;I do not know where to find the settings for the 500 kHz baudrate though. I can not find the prescaler, prop_seg, Phase_seg1, or Phase_seg2. If you how I can find theses values then I think I can read the CAN frames using canecho command.Thanks for your help.&lt;/P&gt;&lt;P&gt;-Alexander Keller&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2012 17:53:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152428#M1425</guid>
      <dc:creator>AlexanderKelle1</dc:creator>
      <dc:date>2012-04-25T17:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: CAN messaging</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152429#M1426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexander,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The cantest tool need to be selected in the package list from ltib tool:&lt;/P&gt;&lt;P&gt;-- Package Selection&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Package List --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*] cantest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest way to configured the CAN interface to run at 500Kbps is to select the below options in the kernel menuconfig:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Ltib choose the option:&lt;/P&gt;&lt;P&gt;[*] Configure Kernel&lt;/P&gt;&lt;P&gt;then run the ltib by typing ./ltib&lt;/P&gt;&lt;P&gt;A new window (Kernel Menu) will open:&lt;/P&gt;&lt;P&gt;Choose:&lt;/P&gt;&lt;P&gt;[*] Networking Support ---&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; [*] CAN bus subsystem support ---&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CAN Device Drivers ---&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [*] CAN bit-timing calculation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WIth that option selected, the dirver will solve the br_*&amp;nbsp; values by itself. The next step you need to perform is just to write the below command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo 500000 &amp;gt;&amp;gt; /sys/devices/platform/FlexCAN.0/bitrate&lt;/P&gt;&lt;P&gt;ifconfig can0 up&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After executing the above command you can consult all the br_* parameters by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cat /sys/devices/platform/FlexCAN.0/br_*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 22:53:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CAN-messaging/m-p/152429#M1426</guid>
      <dc:creator>OscarLuna</dc:creator>
      <dc:date>2012-04-27T22:53:29Z</dc:date>
    </item>
  </channel>
</rss>

