-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WARNING jsdrv Unsupported port0 op: 4 #10
Comments
That error is the host code saying that it does not support the newer timestamp message coming from the JS220. I think that you have an old version of First, check your version:
You should see pyjoulescope_driver 1.5.2. What does To update:
Running Joulescopes in a VM or WSL is not supported. While it may work, you may also find that the VM cannot keep up with the USB data rate from the Joulescope resulting in sample drops. I was curious, so I took a look. Just getting WSL with Ubuntu working took a while. I already had WSL + Ubuntu installed. I somewhat followed this guide. Here are my steps to get a JS220 working: In Windows PowerShell as Admin:
In Ubuntu WSL:
Edit the file to contain:
In Windows PowerShell as Admin:
In Ubuntu WSL:
Copy / paste:
I don't see the same warning as you do.
somewhat works. I get sample drops. I can open this JLS file in the Joulescope UI under Windows. |
This warning only occours when i'm running it with WSL and everything seems to be running just fine. Should I be worried about this warning that keeps poping up like every second? I not sure why get it and what is means.
Basic code as example:
from joulescope import scan_require_one
import logging
logging.basicConfig(level=logging.DEBUG)
device = scan_require_one()
device.open()
Perform a basic operation
print(device.info())
device.close()
Log:
INFO:jsdrv:open_ll
INFO:jsdrv:device_open(u/js220/002301)
INFO:jsdrv:device_open(u/js220/002301) => 0
INFO:jsdrv:open
INFO:jsdrv:bulk_in_open(1275073064, endpoint=0x82)
INFO:jsdrv:port0 connect rsp
INFO:jsdrv:JS220 app_id=3, FW=1.2.1, HW=1.0.0, FPGA=1.2.1, protocol=1.0.0
INFO:jsdrv:publish to dev $ nul
INFO:jsdrv:publish to dev c/!ping u32 1
INFO:jsdrv:bulk_out_send(u/js220/002301) 48 bytes
INFO:jsdrv:bulk_out_send(u/js220/002301) 48 bytes
WARNING:jsdrv:Unsupported port0 op: 4
INFO:jsdrv:bulk_out_send(u/js220/002301) 48 bytes
INFO:jsdrv:open complete
INFO:jsdrv:on_sampling_frequency(2000000)
INFO:jsdrv:publish to dev s/i/range/mode u8.R 4
INFO:jsdrv:bulk_out_send(u/js220/002301) 48 bytes
INFO:jsdrv:publish to dev s/v/range/select u8.R 0
INFO:jsdrv:bulk_out_send(u/js220/002301) 48 bytes
INFO:jsdrv:publish to dev s/v/range/mode u8.R 1
INFO:jsdrv:bulk_out_send(u/js220/002301) 48 bytes
{'type': 'info', 'ver': 2, 'model': 'js220', 'hardware_version': '1.0.0', 'serial_number': '002301', 'ctl': {'hw': {'rev': '1.0.0', 'sn_mcu': '002301', 'sn_mfg': '002301', 'ver': '1.0.0'}, 'fw': {'ver': '1.2.1'}}, 'sensor': {'fw': {'ver': '1.2.1'}, 'fpga': {'ver': '1.2.1'}}}
INFO:jsdrv:close
INFO:jsdrv:device_close(u/js220/002301)
INFO:jsdrv:close
INFO:jsdrv:jsdrv_finalize 0x2b9d1b0
INFO:jsdrv:USB backend finalize
INFO:jsdrv:JS220 USB upper-level thread done u/js220/002301
INFO:jsdrv:backend finalize
INFO:jsdrv:libusb backend finalize
INFO:jsdrv:jsdrv_usb_backend_thread exit
The text was updated successfully, but these errors were encountered: