I found something skimming through Jan's book; ACKnowledge is a likely candidate. I'm just not really good at reading books and understanding C.
Robert
![]()
I found something skimming through Jan's book; ACKnowledge is a likely candidate. I'm just not really good at reading books and understanding C.
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Hmm, Jan mentions returning a zero length packet as an ACKnowledge. I tried this without success:
ProgramStart:
DoUSBIn:
USBBufferCount = USBBufferSizeRX
USBService
USBIn 1, USBBuffer, USBBufferCount, DoUSBIn
... display USBBuffer data on LCD...
DoACKIn:
USBBufferCount = 0
USBService
USBOUT 1, USBBuffer, USBBufferCount, DoACKIn
goto ProgramStart
END
Darn, this is frustrating. I'm sure it's something real easy too.
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Jan says that an acknowledge is part of endpoint handshaking. The 18F2550 datasheet says endpoint handshaking is disabled by default. So I tried enabling it but this register is not defined (not using this syntax anyways):
UEP1.4 = 1
Robert
EDIT: Ok, I give up. I emailed Mécanique and hope they'll be able to give me an answer on Monday...
Last edited by Demon; - 20th August 2006 at 03:24.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Awe man, I'm so embarassed, I've been chasing my own tail all weekend on this problem. I'm an idiot...
It was my VB routine all along that sent more than one transaction. I misunderstood the comment in the EasyHID generated code that said to "make sure to pass the whole array" when we write to the PIC.
So I did, I had one write for each and every element, the PIC was just doing its job and reading everything the PC was sending.
Robert
![]()
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
LMAO! maudit francais
Now i'm sure you'll never ever made the same mistake![]()
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks