Post Reply 
Prime slows down when connected to PC
02-04-2017, 12:51 PM
Post: #1
Prime slows down when connected to PC
Hello,
today I noticed that my Prime slows down when connected to my pc. I'm developing a program to design Butterworth and Chebyshev filters. When the prime is connected via USB calculations get slower and the screen starts to be laggy (especially when moving around in a plot view). When disconnected everything work as usual.

ideas?
Find all posts by this user
Quote this message in a reply
02-04-2017, 01:56 PM
Post: #2
RE: Prime slows down when connected to PC
This is likely due to the screen updating since the connectivity kit also keeps track of changes on the screen. Does it help when you close out the screen preview pane in the connectivity kit?

Graph 3D | QPI | SolveSys
Find all posts by this user
Quote this message in a reply
02-04-2017, 02:31 PM
Post: #3
RE: Prime slows down when connected to PC
I don't use the screen preview on the connectivity kit. It might be that the screen stream is always open in background?
Find all posts by this user
Quote this message in a reply
02-06-2017, 06:33 AM
Post: #4
RE: Prime slows down when connected to PC
Hello,

No, the screen stream is not happening in the background, but USB packets are being continuously sent back and forth.

With the latest version, the USB protocol changed.

In order to avoid driver development on the computer, HP Prime registers to the PC as a HID device (because windows has build in drivers for those)...

The conn kit can then interface with the windows HID drivers and exchange data with the calculator...

However, we discovered that windows does not "think" the HID packet are important. As a result, windows will regularly "drop" HID packet (discard them without telling the app)...

This of course was causing transfer failures (and lots of frustration).

As a result, the PC to calc protocol was changed to be a "ping/pong" protocol where the PC tells the calc: Do you have anything for me? If yes, you have 500ms to send me the data and then it is my turn.
Then the calc send data (if any) for up to 500ms, and they replies back: do you have anything for me? if yes, you have 500ms to send it.
And the PC answers (like the calc)...

And so forth...

This results in continuous sending/receiving of USB packets from the PC to the calc. And on the calc, this takes CPU power.

So, long story short, if your calc slows down when USB is connected, blame windows!

Cyrille

Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
02-06-2017, 11:47 AM
Post: #5
RE: Prime slows down when connected to PC
Ok, I got the point. Thanks!
Find all posts by this user
Quote this message in a reply
02-06-2017, 12:03 PM
Post: #6
RE: Prime slows down when connected to PC
Cyrille, est-ce que j'ai raison de penser que l'horloge de la calculatrice est synchronisée sur le PC lors de la connexion USB? J'ai fait un réglage pifométrique de l'heure quand j'ai mis ma Prime en service la semaine dernière et maintenant j'aperçois qu'elle est pile à l'heure.

Am I right in thinking that the calculator's clock is synchronised to the PC when connected over USB? I set the clock approximately when I first set it up last week and I now see that it's dead on.

Godwin
Find all posts by this user
Quote this message in a reply
02-06-2017, 03:42 PM
Post: #7
RE: Prime slows down when connected to PC
Oui

Yes


Big Grin

Hooray! I get to do it too!

TW

Although I work for HP, the views and opinions I post here are my own.
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 2 Guest(s)