Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

issue with can_id length of 8 #17

@Bilb

Description

@Bilb

Firstly, thanks a lot for the port.

I am using your library to read CAN data on Android, and everything works fine when I send data with something like

cansend can0 123#01

No issue, when using a can_id with a length of 3.

But when I do the same with

cansend can0 12345678#01

just after, the recv from I get this frame :

CanSocket: frame: 0x92345678

And if I send 02345678 I get :
0x82345678
So I have a bit set to true which makes the +8 on the first bytes, but I don't know why.
Any idea where this come from ?
If I do the same with candump, everything works fine.

And weird too, if I send 22345678, I get 0x00000678

Thanks for your help,
Audric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions