Repository navigation
2.5.2
2026 Oct 15
- Added jsdrv_is_driver_thread() and Driver.is_driver_thread(), which
report whether the caller is the driver thread that invokes the
subscriber callbacks. The driver has always forced commands issued
from that thread to timeout 0, since a wait there would deadlock.
This is now the documented behavior: a callback may call the driver
with any timeout, and the command runs in order but reports its result
only to the log. The log message for a forced timeout dropped from
warning to info. - Fixed Driver.unsubscribe() and unsubscribe_all() from a callback. They
treated the forced, asynchronous unsubscribe as confirmed and released
the callback reference while C could still call it. - The libusb backend no longer warns "zero length bulk in transfer" at the
end of a JS320 stream. The JS320 terminates its last bulk IN transfer
with a zero-length packet, which arrives alone in about 1 of 12 stops.
The message is now debug level and names the device and endpoint, as
the WinUSB backend already handled this case silently. - The Python binding decodes the MB_STDMSG_TIMESYNC_MAP stdmsg, which the
JS320 publishes on s/ts/!map, into a dict with the counter to UTC map,
the sync exchange that last updated it, and the update counter. This
exposes the sensor's time synchronization to tools: a JS320 sensor
clock 268 s behind the host was the cause of a three-instrument read
that never completed.