Hello,
Thanks for the advice. I thought that by sending frames in the schedule table, periodically, the queue will never be empty. I've tried with read until TLIN_ERROR_RCVQUEUE_EMPTY and it's ok now, but I need a small delay (0.2-0.3 seconds) between updating data on a node and read on the other ...
Search found 3 matches
- Tue 9. Apr 2024, 14:35
- Forum: PLIN-API
- Topic: PLIN API on Python 3.11.4: Read queue delays
- Replies: 4
- Views: 3440
- Mon 8. Apr 2024, 12:21
- Forum: PLIN-API
- Topic: PLIN API on Python 3.11.4: Read queue delays
- Replies: 4
- Views: 3440
Re: Read queue with a lot of delay with Python
The main function (Delay on Master side: 50 ms; on Slave 25 ms):
if __name__ == "__main__":
lin_obj_master = PLinApiFunc()
lin_obj_slave = PLinApiFunc()
lin_obj_master.uninitialize()
lin_obj_slave.uninitialize()
no_of_reads = 30
# Get info from ldf file
# Master
connection_mode = 'Master ...
if __name__ == "__main__":
lin_obj_master = PLinApiFunc()
lin_obj_slave = PLinApiFunc()
lin_obj_master.uninitialize()
lin_obj_slave.uninitialize()
no_of_reads = 30
# Get info from ldf file
# Master
connection_mode = 'Master ...
- Mon 8. Apr 2024, 12:17
- Forum: PLIN-API
- Topic: PLIN API on Python 3.11.4: Read queue delays
- Replies: 4
- Views: 3440
PLIN API on Python 3.11.4: Read queue delays
Hello!
I'm using PLinApi.py to automate the LIN communication between a Master and a Slave through a board (that work as a gateway application).
In my implementation I read the ldf file and get info about the schedule table which use 2 unconditional frames:
- 0x30, 1 byte length (Publisher on ...
I'm using PLinApi.py to automate the LIN communication between a Master and a Slave through a board (that work as a gateway application).
In my implementation I read the ldf file and get info about the schedule table which use 2 unconditional frames:
- 0x30, 1 byte length (Publisher on ...