-
Notifications
You must be signed in to change notification settings - Fork 79
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
Handling the connection with USB2 wire for ps5000D #199
Conversation
I somewhat don't want to fix this. USB2.0 only gives you 500mA of power (by spec) so it will cause you many problems. I would almost want it to be an option like:
to ensure that the user knows that they are connecting to a low power, lower datarate port. |
Indeed, the problem is that the bandwidth is divided by four, but the alternative is no connection at all. And I think a user wanting high datarate will be aware of that problem, or at least see it in its datas. This patch connects via USB2 only if it's required. We can have a warning message indicating the error while connecting if you prefer. |
No. I want it to error by default unless the user tells me explicitly that usb2 is ok. Silently switching to usb2 on a device that is supposed to be high performance is not good for API design. I'm still curious, in your use case. Are you able to use USB3? In my mind this is such a trivial issue to solve in real life that providing the opt8ok to workaround it in software seems like more work (and maintenance) |
I'm not the only one using the equipment. I'm the low-level guy making things for non-programmers && non-electronicians in the lab. I have to make sure things work no matter what, even if someone uses the wrong wire or another computer, so I handle the warnings for low datarates. And the picoscope is embedded in another device, no one is supposed to know what's inside the box. Do you want me to add that as an option in both |
Ok this is a usecase that was not considered before. Embedded devices sometimes only function at 2.0 levels so it is "impossible" to change the cable for an "upgrade". Truthfully I don't really know the semantics of the error. Does it mean:
or
I just want to make sure that the problem I outlined 8 years ago worse:
PS. For your own sake, I hope you QC to ensure that the right cable goes in the box ;) |
Quoting the programmers' guide, it is apparently intended, "normal" in a way, that
and
I have no clue a priori whether external power is connected on the picoscope, I wasn't handling this part, but for what I can see inside the box, it's only connected through USB3, no external power (I think ther isn't, it is a 2 channels model). I think the error arise whether or not external power is there, only if USB2 instead of USB3 is used. |
ok, deal. |
@hmaarrfk Just to make you laugh a bit : I've checked with a USB3 wire. It is a USB3 inside, but the connection from outside doesn't work : they didn't tested it !! So until it's fixed, the only available connection is USB2 ! |
The saga never ends with embedded development! Godspeed with fixing things! Thanks for your contribution and willingness to discuss! |
Fixing issue #198