UsbCANConverter-UCCbasic / UCCB_GS_Embedded

gsusb firmware for USB CAN converter
Other
14 stars 1 forks source link

Support for hardware timestamp for socketcan firmware #4

Open splatch opened 3 years ago

splatch commented 3 years ago

SocketCAN allows to source hardware timestamp for all frames received through certain interface.

Currently using candump .. -H results in printing times of 1970 which means that this information is missing from controller. Relevant code section in canutils: https://github.com/linux-can/can-utils/blob/v2021.08.0/candump.c#L615L635

splatch commented 2 years ago

@Lukasz-Juranek Looking at gs_usb kernel driver itself I think this feature is already there. I see one of timestamp related constants referenced after switch to candle light. Did 0002 release include hardware timestamps?

Lukasz-Juranek commented 2 years ago

Yes at embeedded site it seems implemented but at GS_USB it is defined in gs_usb_breq but value GS_USB_BREQ_TIMESTAMP is never send, so for me not works with GS_USB

wt., 8 lut 2022 o 21:50 Łukasz Dywicki @.***> napisał(a):

@Lukasz-Juranek https://github.com/Lukasz-Juranek Looking at gs_usb kernel driver itself I think this feature is already there. I see one of timestamp related constants referenced after switch to candle light. Did 0002 release include hardware timestamps?

— Reply to this email directly, view it on GitHub https://github.com/UsbCANConverter-UCCbasic/UCCB_GS_Embedded/issues/4#issuecomment-1033048548, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB7RRAXLYIHAG6O3WOJMTEDU2F6YDANCNFSM5GGKZOJA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>