Post Reply 
USBOpen(), USBSend() and USBRecv()
04-29-2023, 10:00 PM
Post: #4
RE: USBOpen(), USBSend() and USBRecv()
Okay, now I think I am understanding better that data is being received, although I don't fully understand why it is in the way that it is. I have still not modified any settings, this is all 19200, N,8,1.

The Prime always returns a list of size 64. I wasn't expecting that. It does return the correct results, but not in the way I was expecting. The results are the first bytes in a 64 long list.

For example, I send from PC: "3,1,4,1"

And the HP Prime, after entering USBRecv, returns a list {240,1,3,x,x,x,x....}. Then after entering another USBRecv, I get {240,3,1,4,1,x,x,x,x....}. That is the full amount of numbers that I sent. "3,1,4,1". Although, I expected that I would receive {240,4,3,1,4,1,x,x,x,x....}, all in one go.

Is there any logic to what size the FT260 will return for each "chunk of data" received? Is it something to do with the speed at which the PC is sending it?

Another example, with similar input on PC "3,1,4,1" twice, I sent the same chunk "3,1,4,1" two times, and it resulted in 8 single receives of {240,1,3,xxxx....},{240,1,1,x,x,x,x....},{240,1,4,x,x,x,x....},{240,1,1,x,x,x,x.​...},{240,1,3,x,x,x,x....}... etc.

Is there a way for the FT260 to gather these altogether instead if spreading them over so many receive reports?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: USBOpen(), USBSend() and USBRecv() - matalog - 04-29-2023 10:00 PM



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