profile
viewpoint
Eric Evenchick ericevenchick Atredis Partners Waterloo, Ontario evenchick.com

ericevenchick/carpub 9

A ZMQ based server for communicating with a vehicle over CAN.

ericevenchick/CANtool 8

A CAN bus tool

ericevenchick/carapi 6

A server that provides an API to a vehicle CAN bus over HTTP.

ericevenchick/core-builder 3

A tool for building Ubuntu Core root filesystems.

ericevenchick/cananalyze 2

CANanalyze : a python framework for automotive protocols

ericevenchick/JoystickLCD 2

A LCD display for Apple II joystick inputs using a PIC24 microcontroller.

ericevenchick/BTDisplay 1

A bluetooth display

ericevenchick/can-relay 1

Uses a PIC18F26K80 to control relays over CAN

ericevenchick/CANRelay 1

A S08 based CAN controlled relay driver.

fork psobot/datasets

TFDS is a collection of datasets ready to use with TensorFlow, Jax, ...

https://www.tensorflow.org/datasets

fork in 2 hours

startedgrowl/growl

started time in 4 days

startedSpotlightKid/kurzfiler

started time in 4 days

startedethman/slakh-generation

started time in 5 days

startedcunka/Kurzweil-Object-View

started time in 5 days

startedruffle-rs/ruffle

started time in 13 days

startedolive-editor/olive

started time in 16 days

push eventatredispartners/advisories

Dionysus Blazakis

commit sha d3be8da1c9f5ca0a8b45d25ae7ad431d4167a13d

Update ATREDIS-2020-0006.md Add CVE

view details

push time in 16 days

push eventatredispartners/advisories

Dionysus Blazakis

commit sha 8515002dbba160a6b03eb0ef63173eccd0c85e64

Update ATREDIS-2020-0005.md Add CVE

view details

push time in 16 days

push eventatredispartners/advisories

Dionysus Blazakis

commit sha 1281458f58a8fb700b86410fff499c30c92e9369

Update ATREDIS-2020-0004.md Add CVE

view details

push time in 16 days

push eventatredispartners/advisories

Dionysus Blazakis

commit sha 9fdc36d92c59a02075650690be91c3f570528128

Update ATREDIS-2020-0007.md Add CVE link

view details

push time in 16 days

startedadl1995/trip-planner

started time in 16 days

issue commentlinklayer/cantact

Cantact C reference

Hello Eric

Thank you for the quick reply. I must apologise that I'm using the CANable Pro, not the actual Cantact device.

I have started to wrap the Candle code from the Cangaroo repository instead, which is working so far.

Specifically the crash: Receive calls backs work If I try to send a message, then the device stops responding and the application hangs. Restarting the application then doesn't work, I need to power cycle the device before the application can receive messages again

Thank you Elliot

elliotwoods

comment created time in 17 days

issue openedlinklayer/cantact

Cantact C reference

Heya !

So now I'm trying to get things working in a simple C/C++ app which imports the DLL Some functions work (Receive callback, counting devices). But the device crashes when sending a message with transmit.

My code is here: https://github.com/elliotwoods/Cantact.NET/blob/master/NativeTest/CantactNativeTest.cpp I used the BusMaster implementation as a reference.

Sending messages works in cangaroo for me, but I noticed that they use their own driver code there: https://github.com/HubertD/cangaroo/tree/master/src/driver/CandleApiDriver/api

created time in 17 days

issue closedlinklayer/cantact

Building Cantact.dll

I'm trying to build a Cantact.dll in x64 (Actually I need to wrap it in .NET for an x64 .NET project)

I can find an x86 version of cantact.dll in the cantact branch of your busmaster fork Also I can see in this repo there is the driver/src/c/mod.rs which seems to be the source code for cantact.dll

However, I'm not sure how to build this to x64 When I try to build the repo with cargo i get the following errors:

C:\dev\cantact>cargo install --path .
  Installing cantact v0.0.7 (C:\dev\cantact)
    Updating crates.io index
   Compiling winapi v0.3.9
   Compiling autocfg v1.0.1
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.48
   Compiling cfg-if v1.0.0
   Compiling crc32fast v1.2.1
   Compiling version_check v0.9.2
   Compiling winapi-build v0.1.1
   Compiling libc v0.2.80
   Compiling take_mut v0.2.2
   Compiling rle-decode-fast v1.0.1
   Compiling adler32 v1.2.0
   Compiling cfg-if v0.1.10
   Compiling vcpkg v0.2.10
   Compiling cc v1.0.62
   Compiling pkg-config v0.3.19
   Compiling serde_derive v1.0.117
   Compiling serde v1.0.117
   Compiling lazy_static v1.4.0
   Compiling maybe-uninit v2.0.0
   Compiling bitflags v1.2.1
   Compiling winapi v0.2.8
   Compiling unicode-segmentation v1.7.0
   Compiling log v0.4.11
   Compiling linked-hash-map v0.5.3
   Compiling hashbrown v0.9.1
   Compiling cantact-driver v0.0.7 (C:\dev\cantact\driver)
   Compiling unicode-width v0.1.8
   Compiling strsim v0.10.0
   Compiling os_str_bytes v2.4.0
   Compiling vec_map v0.8.2
   Compiling textwrap v0.12.1
   Compiling yaml-rust v0.4.4
   Compiling shell32-sys v0.1.2
   Compiling ole32-sys v0.2.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling num-traits v0.2.14
   Compiling crossbeam-utils v0.7.2
   Compiling num-integer v0.1.44
   Compiling indexmap v1.6.0
   Compiling heck v0.3.1
   Compiling libflate v0.1.27
   Compiling quote v1.0.7
   Compiling crossbeam-channel v0.4.4
   Compiling winapi-util v0.1.5
   Compiling time v0.1.44
   Compiling atty v0.2.14
   Compiling ctrlc v3.1.7
   Compiling filetime v0.2.13
   Compiling termcolor v1.1.0
   Compiling tar v0.4.30
   Compiling chrono v0.4.19
   Compiling libusb1-sys v0.3.7
   Compiling simplelog v0.8.0
   Compiling clap_derive v3.0.0-beta.2
   Compiling clap v3.0.0-beta.2
   Compiling app_dirs v1.2.1
   Compiling toml v0.5.7
   Compiling cantact v0.0.7 (C:\dev\cantact)
error[E0308]: mismatched types
  --> src/main.rs:37:9
   |
36 |     let result = match matches.subcommand() {
   |                        -------------------- this expression has type `std::option::Option<(&str, &clap::ArgMatches)>`
37 |         ("dump", Some(m)) => dump::cmd(m),
   |         ^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found tuple
   |
   = note: expected enum `std::option::Option<(&str, &clap::ArgMatches)>`
             found tuple `(_, _)`

error[E0308]: mismatched types
  --> src/main.rs:38:9
   |
36 |     let result = match matches.subcommand() {
   |                        -------------------- this expression has type `std::option::Option<(&str, &clap::ArgMatches)>`
37 |         ("dump", Some(m)) => dump::cmd(m),
38 |         ("send", Some(m)) => send::cmd(m),
   |         ^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found tuple
   |
   = note: expected enum `std::option::Option<(&str, &clap::ArgMatches)>`
             found tuple `(_, _)`

error[E0308]: mismatched types
  --> src/main.rs:39:9
   |
36 |     let result = match matches.subcommand() {
   |                        -------------------- this expression has type `std::option::Option<(&str, &clap::ArgMatches)>`
...
39 |         ("cfg", Some(m)) => cfg::cmd(m),
   |         ^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found tuple
   |
   = note: expected enum `std::option::Option<(&str, &clap::ArgMatches)>`
             found tuple `(_, _)`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0308`.
error: failed to compile `cantact v0.0.7 (C:\dev\cantact)`, intermediate artifacts can be found at `C:\dev\cantact\target`

Caused by:
  could not compile `cantact`.

To learn more, run the command again with --verbose.

I will keep trying here

closed time in 17 days

elliotwoods

issue commentlinklayer/cantact

Building Cantact.dll

i managed to get this to work (by just building the library and not the app)

elliotwoods

comment created time in 17 days

issue openedlinklayer/cantact

Building Cantact.dll

I'm trying to build a Cantact.dll in x64 (Actually I need to wrap it in .NET for an x64 .NET project)

I can find an x86 version of cantact.dll in the cantact branch of your busmaster fork Also I can see in this repo there is the driver/src/c/mod.rs which seems to be the source code for cantact.dll

However, I'm not sure how to build this to x64 When I try to build the repo with cargo i get the following errors:

C:\dev\cantact>cargo install --path .
  Installing cantact v0.0.7 (C:\dev\cantact)
    Updating crates.io index
   Compiling winapi v0.3.9
   Compiling autocfg v1.0.1
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.48
   Compiling cfg-if v1.0.0
   Compiling crc32fast v1.2.1
   Compiling version_check v0.9.2
   Compiling winapi-build v0.1.1
   Compiling libc v0.2.80
   Compiling take_mut v0.2.2
   Compiling rle-decode-fast v1.0.1
   Compiling adler32 v1.2.0
   Compiling cfg-if v0.1.10
   Compiling vcpkg v0.2.10
   Compiling cc v1.0.62
   Compiling pkg-config v0.3.19
   Compiling serde_derive v1.0.117
   Compiling serde v1.0.117
   Compiling lazy_static v1.4.0
   Compiling maybe-uninit v2.0.0
   Compiling bitflags v1.2.1
   Compiling winapi v0.2.8
   Compiling unicode-segmentation v1.7.0
   Compiling log v0.4.11
   Compiling linked-hash-map v0.5.3
   Compiling hashbrown v0.9.1
   Compiling cantact-driver v0.0.7 (C:\dev\cantact\driver)
   Compiling unicode-width v0.1.8
   Compiling strsim v0.10.0
   Compiling os_str_bytes v2.4.0
   Compiling vec_map v0.8.2
   Compiling textwrap v0.12.1
   Compiling yaml-rust v0.4.4
   Compiling shell32-sys v0.1.2
   Compiling ole32-sys v0.2.0
   Compiling proc-macro-error-attr v1.0.4
   Compiling proc-macro-error v1.0.4
   Compiling num-traits v0.2.14
   Compiling crossbeam-utils v0.7.2
   Compiling num-integer v0.1.44
   Compiling indexmap v1.6.0
   Compiling heck v0.3.1
   Compiling libflate v0.1.27
   Compiling quote v1.0.7
   Compiling crossbeam-channel v0.4.4
   Compiling winapi-util v0.1.5
   Compiling time v0.1.44
   Compiling atty v0.2.14
   Compiling ctrlc v3.1.7
   Compiling filetime v0.2.13
   Compiling termcolor v1.1.0
   Compiling tar v0.4.30
   Compiling chrono v0.4.19
   Compiling libusb1-sys v0.3.7
   Compiling simplelog v0.8.0
   Compiling clap_derive v3.0.0-beta.2
   Compiling clap v3.0.0-beta.2
   Compiling app_dirs v1.2.1
   Compiling toml v0.5.7
   Compiling cantact v0.0.7 (C:\dev\cantact)
error[E0308]: mismatched types
  --> src/main.rs:37:9
   |
36 |     let result = match matches.subcommand() {
   |                        -------------------- this expression has type `std::option::Option<(&str, &clap::ArgMatches)>`
37 |         ("dump", Some(m)) => dump::cmd(m),
   |         ^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found tuple
   |
   = note: expected enum `std::option::Option<(&str, &clap::ArgMatches)>`
             found tuple `(_, _)`

error[E0308]: mismatched types
  --> src/main.rs:38:9
   |
36 |     let result = match matches.subcommand() {
   |                        -------------------- this expression has type `std::option::Option<(&str, &clap::ArgMatches)>`
37 |         ("dump", Some(m)) => dump::cmd(m),
38 |         ("send", Some(m)) => send::cmd(m),
   |         ^^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found tuple
   |
   = note: expected enum `std::option::Option<(&str, &clap::ArgMatches)>`
             found tuple `(_, _)`

error[E0308]: mismatched types
  --> src/main.rs:39:9
   |
36 |     let result = match matches.subcommand() {
   |                        -------------------- this expression has type `std::option::Option<(&str, &clap::ArgMatches)>`
...
39 |         ("cfg", Some(m)) => cfg::cmd(m),
   |         ^^^^^^^^^^^^^^^^ expected enum `std::option::Option`, found tuple
   |
   = note: expected enum `std::option::Option<(&str, &clap::ArgMatches)>`
             found tuple `(_, _)`

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0308`.
error: failed to compile `cantact v0.0.7 (C:\dev\cantact)`, intermediate artifacts can be found at `C:\dev\cantact\target`

Caused by:
  could not compile `cantact`.

To learn more, run the command again with --verbose.

I will keep trying here

created time in 18 days

starteddwhinham/mt32-pi

started time in 19 days

issue openedlinklayer/cantact-pro-hw

Nice hardware project!

You could change the LIN driver with some other type, for example TJA1027, NCV7321, ... and similar. In such way it would become a K-line / LIN transceiver.

created time in 23 days

startedrileytestut/AltStore

started time in 23 days

startedalex/nyt-2020-election-scraper

started time in 24 days

startedtrekhleb/machine-learning-experiments

started time in a month

startedchris1111/Kext-Droplet-Big-Sur

started time in a month

startedcolin-campbell/firestudio-catalina

started time in a month

startedmbucc/shmig

started time in a month

startedhoppscotch/hoppscotch

started time in a month

startedericevenchick/rustzone

started time in a month

create barnchpolydawn/reach

branch : workspace-recursive-redux

created branch time in a month

issue openedlinklayer/cantact-app

Show ID in HEX format

Is there any way to configure the app to display the ID, in the Live or Trace window in Hex format instead on decimal?

created time in a month

startedapptension/aws-boilerplate

started time in a month

more