Git Product home page Git Product logo

usb2can's Introduction

This link is for below USB2CAN series products:

Porducts Instuction

Folder Instuction

Folder Document : Including all documents for usb2can device. Read the user manual first.

Folder For Windows: Including InnoMaker Software,Busmaster And API For Windows.

Folder For Linux : Including InnoMaker Python/C#/CAN-Utils Software And Source Code.

Folder For Mac Os : Including InnoMaker Software And API For Mac OS.

Folder CE(EMC) FCC(SDOC) UKCA ICES Verification: All verification files

Related Project and Demo Link

Below are the some project and demo which based on usb2can device, Thanks very much for the author kindly sharing.

If I missed anything or have any suggestions, feel free to let me know. ([email protected])

usb2can's People

Contributors

anonymouslojz avatar calvinxxl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

usb2can's Issues

Windows C++ DLL does not provide RX timestamp

By modifying the example C++ code as follows:

InnoMakerUsb2CanLib::innomaker_host_frame frame;
memcpy(&frame, recvBuffer, sizeof(InnoMakerUsb2CanLib::innomaker_host_frame));
printf("Recv a frame, stamp %d \n", frame.timestamp_us);

The output shows that the timestamp is always 0.

How to modify the baudrate by the C++(Visual Studio)

Hi:

I saw the code below in C++(Visual Studio ), and I cant figure out how set other baudrate ( i.e. 1MHz or 250KHz )
Please help me to solve this problem, thx a lot.

/// 20K
bittming.prop_seg = 6;
bittming.phase_seg1 = 7;
bittming.phase_seg2 = 2;
bittming.sjw = 1;
bittming.brp = 150;

Best Regards
Chaim

C++ Lib leaks memory

When using the C++ example with Visual Studio 2019 I get warnings about leaked memory:

{16961} normal block at 0x00000178FFDD3A20, 9 bytes long.
 Data: < !       > 09 21 0B FF 00 00 08 1A 01 
{16960} normal block at 0x00000178FFDA7600, 40 bytes long.
 Data: <                > 09 04 01 00 00 FE 01 01 E0 CD CD CD CD CD CD CD 
{16959} normal block at 0x00000178FC52DC80, 64 bytes long.
 Data: <                > 07 05 81 02 20 00 00 00 00 00 00 00 00 00 00 00 
{16958} normal block at 0x00000178FFDA7210, 40 bytes long.
 Data: <                > 09 04 00 00 02 FF FF FF 00 CD CD CD CD CD CD CD 
{16957} normal block at 0x00000178FC53C2E0, 32 bytes long.
 Data: < r  x           > 10 72 DA FF 78 01 00 00 01 00 00 00 00 00 00 00 
{16956} normal block at 0x00000178FFDA6790, 40 bytes long.
 Data: <  2     K       > 09 02 32 00 02 01 00 80 4B CD CD CD CD CD CD CD 

I tried all available API calls to resolve this issue but without luck.

Release version of C++ DLL

Please provide the Release version of C++ DLL (InnoMakerUsb2CanLib.dll). Current version is compiled as Debug and requires Debug version of MSVC dlls (msvcrp140d, ucrtbased etc). To deploy on computers without MSVC installed we need normal Release dependencies.

Where can I find a normal API description with examples for working with your module?

Hello, do you have a normal example in C? to work with the library on Windows, since the C++ example does not compile and contains a bunch of errors.
Your product looks crude, there is no normal API description with examples and normal library files with .h and .c (cpp)
What are you hiding in dll files?)

You have stuffed a bunch of unnecessary unsystematized information into folders without any meaning.(((

Can X2 work with CANopen?

Greetings.

I have the following setup, and I would like to know if the X2 module will be suitable for it.

  • Jetson Xavier AGX
  • ZLAC8030L motor driver/controller. This controller supports CANopen protocol
  • Usingcanopen Python module
    Would the X2 moduyle work fine with CANopen?

@calvinxxl @anonymouslojz

Thanks.

Image dowload appears to be a virus

I wish I had done my research on this wiki before I bought this board. Nothing worse than field testing somebody else's "design".
I see from the discussions that this board and supporting docs has some serious issues. It would be appreciated to find a Get Started Manual or better descriptions on the product. I'm sure there are more reliable product that can fire up and be ready for code.

image

Windows C++ example: urbSetupDevice fails

I am trying to run the Windows C++ example, but the following function always returns false:
usbCanLib->urbSetupDevice(firstDevice, usbCanMode, bittming)

What could be the issue ?

Typo in Windows App

The Window in the CAN debugger has a typo on the "devcie" button which should be device.

Error frames in linux SocketCan

When the connected device is no longer available on the bus after a message transmit USB2CAN is always reporting error frames. You can't clear the send buffer. Tons of error frames are receiving and you cannot stop without depluging and replugging the device which is very bad for industrial device.

Could you guide me a way on python-can library to reset the tx buffer inside the USB2CAN to stop the error frames. If put the device on down state and re enable to up it continues to report error frames.

Can't reprogram STM32F072 through SWD using STLINK-V3

I'm fairly new to this and recently got myself the STLINK-V3 (so far it was a mistake..). I want to install this opensource PEAK PCAN firmware, but I can't establish a connection. This firmware is for STM32F042, but the minor difference between these chips is that the STM32F072 has more flash memory:

The STM32F072 series provides 64 to 128 Kbytes of Flash memory in 48-, 64- or 100-pin packages. The STM32F042 series comprises variants with 16 to 32 Kbytes of Flash memory and 20-, 28-, 32- and 48-pin package options. Source

According to the STLINK-V3 manual, it's requires to addionally supply power for the target:

Note: The STLINK-V3SET product does not provide power supply to the target application.

I used the STM32F072 datasheet to figure out the SWD pins. This my wiring:

image

Still, I can't successfully connect using the ST-LINK Utility...

image

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.