-
Notifications
You must be signed in to change notification settings - Fork 52
Sequencediagram
{{{{{{ blue-modern note over driver,usb,pump: set command driver->usb: MCPY-01-00-167 note right of usb: (Opcode in 14th byte, eg 141;Params)
usb->pump: Opcode,Params note right of pump: e.g. 141,142,151,128,131,...) note right of pump: 141 = Read Serial Number
usb->driver: MCPY-SUCCESS-01-85 (...)
note over driver,usb,pump: poll for data loop Poll driver->usb: POLL-03-00 alt zero - not ready usb->driver: POLL-01...8th byte zero else DATA READY pump->usb: RESPONSE PAYLOAD usb->driver: POLL-01...8th byte set DATA READY end end
note over driver,usb,pump: get response loop Download data alt zero - EOD not set driver->usb: XFER DATA- 0x12 0x00 0x00 [ 0x78] usb->driver: XFER DATA-RESPONSE 0x02-0x00 - RESPONSE else EOD set driver->driver: STOP end end
}}}}}}