Ok, thank you Marvin, this was the problem. I didn't know that filter is closed by default (assumed as in CAN, where it is openned by default).
I also saw, that it is possibility to have READ events as in PCAN-Basic API probably getting clpOnReceiveEventHandle param to LIN_GetClientParam function ...
Search found 54 matches
- Wed 5. Jan 2022, 12:30
- Forum: PLIN-API
- Topic: Slave publish callback
- Replies: 15
- Views: 11711
- Wed 5. Jan 2022, 10:22
- Forum: PLIN-API
- Topic: Slave publish callback
- Replies: 15
- Views: 11711
Re: Slave publish callback
Hello Marvin,
unfortunately still don't know whats wrong. Can you please tell me? I simplified code, it should be now deeply analyzable.
The output when several message came (received only Bus sleep messages):
OK! Registration of client. success.
OK! Get HWs count success.
OK! Get HW list success ...
unfortunately still don't know whats wrong. Can you please tell me? I simplified code, it should be now deeply analyzable.
The output when several message came (received only Bus sleep messages):
OK! Registration of client. success.
OK! Get HWs count success.
OK! Get HW list success ...
- Tue 4. Jan 2022, 15:30
- Forum: PLIN-API
- Topic: Slave publish callback
- Replies: 15
- Views: 11711
Re: Slave publish callback
Seems, that example is working. Now I don't understand what's wrong. I try to look the code in more detail. I will let you know.
Aleš
Aleš
- Tue 4. Jan 2022, 08:29
- Forum: PLIN-API
- Topic: Slave publish callback
- Replies: 15
- Views: 11711
Re: Slave publish callback
Hello Marvin,
here is how I set frame in my LIN test.
In "LIN_Data.PNG" is how the data is obtained. For testing purposes I have global variable which is incremented by SLAVE (dataUpdator). The integer is firstly converted to ASCII string (4 chars) and then converted to string used as BYTE vector ...
here is how I set frame in my LIN test.
In "LIN_Data.PNG" is how the data is obtained. For testing purposes I have global variable which is incremented by SLAVE (dataUpdator). The integer is firstly converted to ASCII string (4 chars) and then converted to string used as BYTE vector ...
- Mon 3. Jan 2022, 15:37
- Forum: PLIN-API
- Topic: Slave publish callback
- Replies: 15
- Views: 11711
Re: Slave publish callback
Yeah, you are right, thank you. But still there were no received messages of any subscribed ID.
Of course, this is the SLAVE side. As a MASTER I use for this test PLIN-View Pro to be sure that messages are transmitted. At this moment messages viewed in PLIN-View Pro are "0x0001" which is initial ...
Of course, this is the SLAVE side. As a MASTER I use for this test PLIN-View Pro to be sure that messages are transmitted. At this moment messages viewed in PLIN-View Pro are "0x0001" which is initial ...
- Mon 3. Jan 2022, 13:33
- Forum: PLIN-API
- Topic: Slave publish callback
- Replies: 15
- Views: 11711
Re: Slave publish callback
Ok, I have already implemented MASTER and SLAVE successfully, also updating frame is working, but I was not possible to read anything. Please tell me what am I doing wrong (reading code in attachment)? In this case I am not able to read any messages except some (probably) inactivity messages (ID=0 ...
- Mon 3. Jan 2022, 09:06
- Forum: PLIN-API
- Topic: Slave publish callback
- Replies: 15
- Views: 11711
Re: Slave publish callback
Hello Marvin,
If I understood LIN well, MASTER (subscriber) sends (on the LIN bus) header and SLAVE (publisher) fills data. With this assumption I wrote, what it needs to be done. I try to simplify it from upper (user) layer and try to explain it using your terms:
PRE: SLAVE has internal counter ...
If I understood LIN well, MASTER (subscriber) sends (on the LIN bus) header and SLAVE (publisher) fills data. With this assumption I wrote, what it needs to be done. I try to simplify it from upper (user) layer and try to explain it using your terms:
PRE: SLAVE has internal counter ...
- Thu 16. Dec 2021, 14:32
- Forum: PLIN-API
- Topic: Slave publish callback
- Replies: 15
- Views: 11711
Slave publish callback
Hello,
if I have configured LIN slave. Is there some callback or other function that informs immediately that SLAVE already published message? For example:
PRE: SLAVE has internal counter named cnt = 1 and added frame 0x02 corresponding the counter.
1. MASTER sends frame 0x02 with data 0x0000 to ...
if I have configured LIN slave. Is there some callback or other function that informs immediately that SLAVE already published message? For example:
PRE: SLAVE has internal counter named cnt = 1 and added frame 0x02 corresponding the counter.
1. MASTER sends frame 0x02 with data 0x0000 to ...
- Wed 15. Dec 2021, 09:09
- Forum: PCAN-Basic
- Topic: PCAN trace mode
- Replies: 6
- Views: 4174
Re: PCAN trace mode
Hello Marvin,
ok, much clearer. Note that, I have tested the receiving echo frames. I am very glad that you have added this also to PCAN-Basic API (not only developer package) and no workarounds are not necessary to receive all communication programatically.
Thank you.
Ales
ok, much clearer. Note that, I have tested the receiving echo frames. I am very glad that you have added this also to PCAN-Basic API (not only developer package) and no workarounds are not necessary to receive all communication programatically.

Thank you.
Ales
- Tue 14. Dec 2021, 15:10
- Forum: PCAN-Basic
- Topic: PCAN trace mode
- Replies: 6
- Views: 4174
Re: PCAN trace mode
Hello Marvin,
so If I understand it well, with the new version of driver, no turnaround is needed for tracing also TX messages (using PCAN-Basic API)? It would be great news for me.
Maybe I am dull, but still does not understand. I know, that "read" is pulling from RX queue and these messages is ...
so If I understand it well, with the new version of driver, no turnaround is needed for tracing also TX messages (using PCAN-Basic API)? It would be great news for me.
Maybe I am dull, but still does not understand. I know, that "read" is pulling from RX queue and these messages is ...