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])
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])
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.
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
Hi, is there a way to use usb2can with a Wireshark on Windows?
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.
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.
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.(((
Greetings.
I have the following setup, and I would like to know if the X2 module will be suitable for it.
canopen
Python moduleThanks.
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.
I'm interested to take the macOS code and provide a Swift interface like https://github.com/Automotive-Swift/Swift-CAN – much like I did for Linux SocketCAN and the Rusoku TouCAN. Under which license are your distributing the macOS library?
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 ?
The Window in the CAN debugger has a typo on the "devcie" button which should be device.
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.
with canary path, we can have only channel 1 on windows. Can you give us patch for 2 channels ?
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:
Still, I can't successfully connect using the ST-LINK Utility...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.