Code Monkey home page Code Monkey logo

icsneoapi's People

Contributors

hollinsky-intrepid avatar jeffq-intrepid avatar jquesnelle avatar sangeetha-ponnusamy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

icsneoapi's Issues

Missing SetBaudrate function

Hello,
I'm now using intrepidcs devices with this API in Linux system, basic functions work very good, but i found that it is missing SetBaudrate function of each CAN Channel in this API, without it, i can't read CAN messages in CAN BUS with specific baudrate. Checking the functions of 'libicsneoapi.so', just a few functions are supported.
Exist functions list are:
00003188 T icsneoClosePort
000030e8 T icsneoFindNeoDevices
0000331c T icsneoFreeObject
000031b4 T icsneoGetMessages
00003228 T icsneoGetTimeStampForMsg
000034cc T icsneoInitializeAPI
0000332c T icsneoOpenNeoDevice
00003058 T icsneoShutdownAPI
000031f0 T icsneoTxMessages
0000325c T icsneoWaitForRxMessagesWithTimeOut

I also checked the API descriptions in intrepidcs website, there should be a SetBaudrate function in the API, Can you pls help to add it to this github, it's very important to our project.

Many thanks,

Best regards,
Jeremy

[Question] ValueCAN 4-2 Network IDs

Hi!

Since your documentation is not yet updated, I can't find any reference on what Network IDs to use for the FD channels of ValueCAN 4-2

I know for sure that the CAN1 and CAN2 are HSCAN and MSCAN since those are used for ValueCAN3, but for ValueCAN 4-2, I can't decipher what Network ID names to use for the 2 FD channels.

Can you please help?

Thank you!

Build errors on Jetson TX2 ARM processor

Trying to use ValueCAN as a SocketCAN device on the nVidia Jetson TX2 development board, Ubuntu 16.04 LTS, but icsneoapi won't compile (output below).

I installed the dependencies libftdi1, libftdi-dev, and Linux kernel sources. Then I built intrepid-socketcan-kernel-module and it loaded successfully. But I'm trying to build icsscand and it requires icsneo, which won't compile.

nvidia@tegra-ubuntu:~/valueCAN$ uname -a
Linux tegra-ubuntu 4.4.38-trmbCAN1.0 #1 SMP PREEMPT Tue Apr 24 19:50:08 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux


nvidia@tegra-ubuntu:~/valueCAN/icsneoapi$ make
g++ -g -c -fpic -fvisibility=hidden -fvisibility-inlines-hidden -O2 -Isrc/ src/CFTDILib.cpp
In file included from src/CFTDILib.h:31:0,
from src/CFTDILib.cpp:31:
src/icsnVC40.h:2372:45: warning: division by zero [-Wdiv-by-zero]
ASSERT_CONCAT(assert_line_, LINE) = 1 / (int)(!!(e))
^
src/icsnVC40.h:2376:30: note: in expansion of macro ‘ics_static_assert’
#define CHECK_STRUCT_SIZE(X) ics_static_assert(sizeof(X) == X##SIZE, #X " is t
^
src/icsnVC40.h:2412:1: note: in expansion of macro ‘CHECK_STRUCT_SIZE’
CHECK_STRUCT_SIZE(icsSpyMessage);
^
src/icsnVC40.h:2372:58: error: ‘(1 / 0)’ is not a constant expression
ASSERT_CONCAT(assert_line
, LINE) = 1 / (int)(!!(e))
^
src/icsnVC40.h:2376:30: note: in expansion of macro ‘ics_static_assert’
#define CHECK_STRUCT_SIZE(X) ics_static_assert(sizeof(X) == X##SIZE, #X " is t
^
src/icsnVC40.h:2412:1: note: in expansion of macro ‘CHECK_STRUCT_SIZE’
CHECK_STRUCT_SIZE(icsSpyMessage);
^
src/icsnVC40.h:2372:58: error: enumerator value for ‘assert_line_2412’ is not an integer constant
ASSERT_CONCAT(assert_line
, LINE) = 1 / (int)(!!(e))
^
src/icsnVC40.h:2376:30: note: in expansion of macro ‘ics_static_assert’
#define CHECK_STRUCT_SIZE(X) ics_static_assert(sizeof(X) == X##SIZE, #X " is t
^
src/icsnVC40.h:2412:1: note: in expansion of macro ‘CHECK_STRUCT_SIZE’
CHECK_STRUCT_SIZE(icsSpyMessage);
^
src/icsnVC40.h:2372:45: warning: division by zero [-Wdiv-by-zero]
ASSERT_CONCAT(assert_line
, LINE) = 1 / (int)(!!(e))
^
src/icsnVC40.h:2376:30: note: in expansion of macro ‘ics_static_assert’
#define CHECK_STRUCT_SIZE(X) ics_static_assert(sizeof(X) == X##SIZE, #X " is t
^
src/icsnVC40.h:2413:1: note: in expansion of macro ‘CHECK_STRUCT_SIZE’
CHECK_STRUCT_SIZE(icsSpyMessageLong);
^
src/icsnVC40.h:2372:58: error: ‘(1 / 0)’ is not a constant expression
ASSERT_CONCAT(assert_line
, LINE) = 1 / (int)(!!(e))
^
src/icsnVC40.h:2376:30: note: in expansion of macro ‘ics_static_assert’
#define CHECK_STRUCT_SIZE(X) ics_static_assert(sizeof(X) == X##SIZE, #X " is t
^
src/icsnVC40.h:2413:1: note: in expansion of macro ‘CHECK_STRUCT_SIZE’
CHECK_STRUCT_SIZE(icsSpyMessageLong);
^
src/icsnVC40.h:2372:58: error: enumerator value for ‘assert_line_2413’ is not an integer constant
ASSERT_CONCAT(assert_line
, LINE) = 1 / (int)(!!(e))
^
src/icsnVC40.h:2376:30: note: in expansion of macro ‘ics_static_assert’
#define CHECK_STRUCT_SIZE(X) ics_static_assert(sizeof(X) == X##SIZE, #X " is t
^
src/icsnVC40.h:2413:1: note: in expansion of macro ‘CHECK_STRUCT_SIZE’
CHECK_STRUCT_SIZE(icsSpyMessageLong);
^
src/icsnVC40.h:2372:45: warning: division by zero [-Wdiv-by-zero]
ASSERT_CONCAT(assert_line
, LINE) = 1 / (int)(!!(e))
^
src/icsnVC40.h:2376:30: note: in expansion of macro ‘ics_static_assert’
#define CHECK_STRUCT_SIZE(X) ics_static_assert(sizeof(X) == X##SIZE, #X " is t
^
src/icsnVC40.h:2414:1: note: in expansion of macro ‘CHECK_STRUCT_SIZE’
CHECK_STRUCT_SIZE(icsSpyMessageJ1850);
^
src/icsnVC40.h:2372:58: error: ‘(1 / 0)’ is not a constant expression
ASSERT_CONCAT(assert_line
, LINE) = 1 / (int)(!!(e))
^
src/icsnVC40.h:2376:30: note: in expansion of macro ‘ics_static_assert’
#define CHECK_STRUCT_SIZE(X) ics_static_assert(sizeof(X) == X##SIZE, #X " is t
^
src/icsnVC40.h:2414:1: note: in expansion of macro ‘CHECK_STRUCT_SIZE’
CHECK_STRUCT_SIZE(icsSpyMessageJ1850);
^
src/icsnVC40.h:2372:58: error: enumerator value for ‘assert_line_2414’ is not an integer constant
ASSERT_CONCAT(assert_line
, LINE) = 1 / (int)(!!(e))
^
src/icsnVC40.h:2376:30: note: in expansion of macro ‘ics_static_assert’
#define CHECK_STRUCT_SIZE(X) ics_static_assert(sizeof(X) == X##_SIZE, #X " is t
^
src/icsnVC40.h:2414:1: note: in expansion of macro ‘CHECK_STRUCT_SIZE’
CHECK_STRUCT_SIZE(icsSpyMessageJ1850);
^
Makefile:17: recipe for target 'CFTDILib.o' failed
make: *** [CFTDILib.o] Error 1

ESI Bit?

Where can I retrieve the ESI Bit from the icsSpyMessage? Will it be StatusBitField? I can't get anything from the docs.
Sorry for the inconvenience. Thank you.

Get error when trying to send/receive message

Env:
Linux USTORLNCN1S7CBH 4.15.0-33-generic #36~16.04.1-Ubuntu SMP Wed Aug 15 17:21:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

When using python_ics to send CAN message, I got following error. This issue is not 100% reproduced but the reproduce rate is pretty high. I didn't see this error on Ubuntu 14.04. Could you help to take a look?

*** Error in `/home/yz2q7g/pyenv/bin/python': munmap_chunk(): invalid pointer: 0x00007f91bebaa368 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f91d01c57e5]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7f91d01d2698]
/usr/lib/x86_64-linux-gnu/libicsneoapi.so(+0x3905)[0x7f918ed2d905]
/usr/lib/x86_64-linux-gnu/libicsneoapi.so(+0x41a6)[0x7f918ed2e1a6]
/usr/lib/x86_64-linux-gnu/libicsneoapi.so(+0x4779)[0x7f918ed2e779]
/usr/lib/x86_64-linux-gnu/libicsneoapi.so(+0x4b53)[0x7f918ed2eb53]
/usr/lib/x86_64-linux-gnu/libicsneoapi.so(+0x4c4c)[0x7f918ed2ec4c]
/usr/lib/x86_64-linux-gnu/libicsneoapi.so(+0x5709)[0x7f918ed2f709]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x76ba)[0x7f91d051f6ba]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d)[0x7f91d025541d]

API Handle Data Type

Why was the Handle's data type in the API functions changed from int to void*?

Now I'm having a hard time using it with my C++/CLR project. Previously it was int so I don't have any problem. But now it's void* and is giving me a headache.

Are there any workaround for this? Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.