Articles Posted by the Author:

  • init_Filt()

    init_Filt()

    Description Function to filter CAN ID. On the 86Duino platform, there are 32 groups of CAN ID filters. When receiving data from the CAN bus, these filter ID can be used to determine whether the data need to be handled. Combining with the init_Mask() function, receiving data can be limited to CAN ID within the […]


  • init_Mask()

    init_Mask()

    Description On an 86Duino platform, there are 32 group of CAN ID mask. When there are data from external CAN device, the mask is used to determine the range of device ID (0 ~ N) which their data is to be handled. Combine with the init_Filt() function, this function can limit the range of CAN […]


  • getCanId()

    getCanId()

    Description Retrieve CAN bus ID from receiving data, similar to the remoteID() function. (This function is created referencing the CAN bus library from Seeed Studio.) Syntax CAN.getCanId() Parameters None Returns Device ID Libraries Reference Home The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference […]


  • checkReceive()

    checkReceive()

    Desription Check CAN bus’ FIFO buffer to see whether there are data to read.(This function is created referencing the CAN Bus library from Seeed Studio. Note: This function must be used with the readMsgBuf() function. Syntax CAN.checkReceive(void) Parameters None Returns CAN_MSGAVAIL:Indicates there are data in FIFO buffer to be read. CAN_NOMSG:Indicates there is no data […]


  • readMsgBuf()

    readMsgBuf()

    Description Function to read data from the CAN bus.(This function is created referencing the CAN bus library from Seeed Studio, Depending on your preferences, you can use this function to read data instead of the requestFrom() and read() function.) Note: This function is used in conjunction with the checkReceive() function. Syntax CAN.readMsgBuf(&len, buf) Parameters len:Length […]


  • sendMsgBuf()

    sendMsgBuf()

    Description Transmit data to remote CAN device.(This function is created referencing the CAN bus library from Seeed Studio, Depending on your preferences, you can use this function to transmit data instead of the beginTransmission() and write() functions.) Syntax CAN.sendMsgBuf(id, ext, len, buf) Parameters id:Device ID for the remote CAN device ext:Data transmission format CAN_STDID:Standard data […]


  • remoteID()

    remoteID()

    Description Retrieve the remote CAN bus ID from receiving data. Syntax CAN.remoteID() Parameters None Returns CAN bus ID transmitted the data See also - remoteExt() Libraries Reference Home The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.


  • remoteExt()

    remoteExt()

    Description Retrieve data format from incoming data on the CAN bus. Syntax CAN.remoteExt() Parameters None Returns Received data format. There are 4 different formats: CAN_STDID:standard data format CAN_EXTID:Extended data format CAN_STDID_REMOTE:standard remote data format CAN_EXTID_REMOTE:Extended remote data format See also - remoteID() Libraries Reference Home The text of the 86Duino reference is licensed under a […]


  • available()

    available()

    Description Function to check whether there are data to read from the CAN interface’s FIFO buffer. Syntax CAN.available() Parameters None Returns Number of byte of data to read from the FIFO buffer. Examples See also - requestFrom() - read() Libraries Reference Home The text of the 86Duino reference is licensed under a Creative Commons Attribution-ShareAlike […]


  • read()

    read()

    Description Function to read data from the CAN FIFO buffer. Syntax CAN.read() Parameters None Returns When there are data in the FIFO buffer, return 1 byte of data. When there is no data in the FIFO, return -1. Example See also - requestFrom() - available() Libraries Reference Home The text of the 86Duino reference is […]