Search found 47 matches

by elpimous12
Fri 6. May 2022, 13:46
Forum: Linux
Topic: frame padding c++ example
Replies: 5
Views: 365

Re: frame padding c++ example

Perfect. Thanks the team
by elpimous12
Thu 5. May 2022, 15:40
Forum: Linux
Topic: frame padding c++ example
Replies: 5
Views: 365

Re: frame padding c++ example

Hello, sorry for explication.. Testing again In my c++ code, Ubuntu 20.04, pcanbasic api, Peak M2, I built a frame FD, containing 32 bytes. _tx_msg.id = 0x8000 | id; _tx_msg.length = 32; // Write Mode _tx_msg.data[0] = 0x01; // Write uint8 (0x00) | Write 1 register (0x01) _tx_msg.data[1] = 0x00; // ...
by elpimous12
Tue 3. May 2022, 21:19
Forum: Linux
Topic: frame padding c++ example
Replies: 5
Views: 365

Re: frame padding c++ example

For example, the last 20 bytes...
by elpimous12
Tue 3. May 2022, 18:57
Forum: Linux
Topic: frame padding c++ example
Replies: 5
Views: 365

frame padding c++ example

Hello the team, hello all.
I need, in my project, to replace unused bytes 0x00 to 0x50.
frame example : 0100001f010000000000000000000000000070785a698a55000090785a698a55000090785a698a55000000000000000000000000000000000000000000000000
Could I find anywhere, a simple c++ example?
Thanks the team.
Vincent
by elpimous12
Sat 9. Oct 2021, 14:57
Forum: PCAN-Basic
Topic: cant receive frame after a query !
Replies: 17
Views: 5061

Re: cant receive frame after a query !

Thanks, Mr
by elpimous12
Tue 28. Sep 2021, 18:48
Forum: PCAN-Basic
Topic: cant receive frame after a query !
Replies: 17
Views: 5061

Re: cant receive frame after a query !

hello, you're right ! sent message MSGTYPE is 14, so PCAN_MESSAGE_FD + PCAN_MESSAGE_EXTENDED + PCAN_MESSAGE_BRS received message is 128, so it's PCAN_MESSAGE_STATUS. I followed all your readFD examples, the one in previous posts is Your one. msg, in CAN_ReadFD() is a TPCANMsgFD buffer to store the C...
by elpimous12
Tue 28. Sep 2021, 13:02
Forum: PCAN-Basic
Topic: cant receive frame after a query !
Replies: 17
Views: 5061

Re: cant receive frame after a query !

Humm..
Do you have a c++ example with write&read fd frame?
Or perhaps just the correct command to read real can fd frame?
Thanks for your time.
Vincent
by elpimous12
Tue 28. Sep 2021, 12:35
Forum: Linux
Topic: "can send" command over c++ (peak 4canM2)
Replies: 4
Views: 1218

Re: "can send" command over c++ (peak 4canM2)

Big thanks Michael.
Exactly what I needed. 👌
by elpimous12
Mon 27. Sep 2021, 20:13
Forum: PCAN-Basic
Topic: cant receive frame after a query !
Replies: 17
Views: 5061

Re: cant receive frame after a query !

the TX frame 0x8002 with 0x42 0x01 0x20 returns RX 0x200 with 0x41 0x01 0x00 This is OK for me ! testing exactly same thing under pcanbasic c++ : TPCANBitrateFD BitrateFD = (char*) "f_clock_mhz=80,nom_brp=1,nom_tseg1=50,nom_tseg2=29,nom_sjw=10,data_brp=1,data_tseg1=8,data_tseg2=7,data_sjw=12"; bool ...
by elpimous12
Mon 27. Sep 2021, 19:59
Forum: PCAN-Basic
Topic: cant receive frame after a query !
Replies: 17
Views: 5061

Re: cant receive frame after a query !

Hello Marvin.
well, after lots of tests, I don't receive the frame I should !!
the TX/RX frame with params :