Capture the complete CAN frame in binary?
  • 0
  • I downloaded the 29Bit branch but get a bunch of errors when I verify. What am I missing??

    -K

    Arduino: 1.6.1 (Windows XP), Board: "CANBus Triple"

    In file included from CANBusTriple.ino:31:0:

    SerialCommand.h:109:5: error: 'IDENTIFIER_INT' does not name a type

     IDENTIFIER_INT btMessageIdFilters[][2];
    
     ^
    

    SerialCommand.h: In member function 'void SerialCommand::setBluetoothFilter()':

    SerialCommand.h:350:7: error: 'btMessageIdFilters' was not declared in this scope

       btMessageIdFilters[cmd[0]][0] = (cmd[1] << 8)+cmd[2];
    
       ^
    

    In file included from CANBusTriple.ino:31:0:

    SerialCommand.h: In member function 'void SerialCommand::logCommand()':

    SerialCommand.h:410:73: error: no matching function for call to 'CANBus::setFilter(int, int, int)'

         bus.setFilter( 0x00, (cmd[2]<<8) + cmd[3], (cmd[4]<<8) + cmd[5] );
    
                                                                         ^
    

    SerialCommand.h:410:73: note: candidate is:

    In file included from CANBusTriple.ino:11:0:

    C:\Arduino\hardware\arduino\avr\libraries\CANBus\src/CANBus.h:200:10: note: void CANBus::setFilter(int, int)

     void setFilter(int, int);
    
          ^
    

    C:\Arduino\hardware\arduino\avr\libraries\CANBus\src/CANBus.h:200:10: note: candidate expects 2 arguments, 3 provided

    In file included from CANBusTriple.ino:32:0:

    ServiceCall.h: At global scope:

    ServiceCall.h:27:5: error: 'IDENTIFIER_INT' does not name a type

     IDENTIFIER_INT filterPids[ NUM_PID_TO_PROCESS ];
    
     ^
    

    In file included from CANBusTriple.ino:32:0:

    ServiceCall.h: In member function 'void ServiceCall::setFilterPids()':

    ServiceCall.h:203:7: error: 'filterPids' was not declared in this scope

       filterPids[ii] = IDENTIFIER_INT ((cbt_settings.pids[i].txd[0] << 8) + cbt_settings.pids[i].txd[1]) + 0x08;
    
       ^
    

    ServiceCall.h:203:104: error: 'IDENTIFIER_INT' was not declared in this scope

       filterPids[ii] = IDENTIFIER_INT ((cbt_settings.pids[i].txd[0] << 8) + cbt_settings.pids[i].txd[1]) + 0x08;
    
                                                                                                        ^
    

    In file included from CANBusTriple.ino:34:0:

    Naptime.h: At global scope:

    Naptime.h:19:5: error: 'IDENTIFIER_INT' does not name a type

     IDENTIFIER_INT resetId;
    
     ^
    

    Naptime.h: In constructor 'Naptime::Naptime(SerialCommand*)':

    Naptime.h:32:3: error: 'resetId' was not declared in this scope

    resetId = 0;

    ^

    Naptime.h: In constructor 'Naptime::Naptime(int, SerialCommand*)':

    Naptime.h:43:3: error: 'resetId' was not declared in this scope

    resetId = resetMessageId;

    ^

    Naptime.h: In member function 'virtual void Naptime::tick()':

    Naptime.h:87:32: error: 'resetId' was not declared in this scope

     busses[0].setFilter( 0x00, resetId, resetId );
    
                                ^
    

    Naptime.h: In member function 'virtual Message Naptime::process(Message)':

    Naptime.h:188:23: error: 'resetId' is not a member of 'Naptime'

    if( msg.frame_id == Naptime::resetId )

                       ^
    

    CANBusTriple.ino: In function 'boolean sendMessage(Message, CANBus)':

    CANBusTriple.ino:224:68: error: 'class Message' has no member named 'ide'

    CANBusTriple.ino:228:68: error: 'class Message' has no member named 'ide'

    CANBusTriple.ino:232:68: error: 'class Message' has no member named 'ide'

    CANBusTriple.ino: In function 'void readBus(CANBus)':

    CANBusTriple.ino:264:73: error: 'class Message' has no member named 'ide'

    CANBusTriple.ino:276:73: error: 'class Message' has no member named 'ide'

    Error compiling.

    This report would have more information with
    "Show verbose output during compilation"
    enabled in File > Preferences.

  • 0
  • I too am curious to know what became of 29 bit processing.

  • 0
  • administrators

    It's building for me, I was doing some tests with it last week. Still waiting on some new CAN tools to properly verify the code as I don't have a vehicle that uses extended message ids.

    What version of Arduino are you using?

  • 0
  • I'm running ver 1.6.1 on XP.

    Tried several things related to file directories and such, with no luck. Had fixed previous compiling issues that way. However with the limited time I have to mess with it, hard to debug. Would love to get this one going since my main uses are 29bit related.

    Anyone gets time to help me debug this please let me know and I'll make time to collaborate.

  • 0
  • Works great, Have it reading 29bit on can1 and sending out modified data 11 bit on can 3. Great work!

  • 0
  • How about his Derek. Could you compile a 29bit version with the Windows Wireshark output settings like before and just post it for download? I've thought about having someone do that for me until we get this bug figured out. Really like to get this running.

  • 0
  • @KidTurbo: I had the same issue. If you used the standard version first uninstall Arduino, delete everything and start over. This worked for me...

  • 0
  • @KidTurbo: Holding the 'Shift' Key and clicking compile to recompile the libraries might work as well...

  • 0
  • Thanks @Reto I'll give that a try and post up my results. I upgraded my windows version but that alone didn't do it.

  • 20
    Posts
  • 4675
    Views
  • Log in to reply