Skip to content

serial transport miss data for the first transfer #5

@tomaszduda23

Description

@tomaszduda23
  1. first transfer trigger flash erase
  2. USB CDC port is suspended
  3. device sends rc
  4. serial port is resumed
req: req_hdr->nh_group 1, req_hdr->nh_id 1
[00:00:07.430,175] <inf> usb_cdc_acm: Device suspended
[00:00:11.661,621] <inf> mcumgr_img_grp: Erased 0x41000 bytes of image slot
[00:00:11.767,700] <inf> mcumgr_img_grp: Erased 0x1000 bytes of image slot trailer
response nh_group 3, nh_id 1
[00:00:11.767,974] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,005] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,005] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,035] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,035] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,066] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,066] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,096] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,096] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,127] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,157] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,157] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,157] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,188] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,218] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,218] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,218] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,249] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,280] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,280] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,310] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,310] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,341] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,341] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,371] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,371] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,402] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,402] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,432] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,432] <inf> usb_cdc_acm: USB device not ready, drop data
[00:00:11.768,463] <inf> usb_cdc_acm: USB device not ready, drop data
response rc 0
[00:00:44.874,206] <inf> usb_cdc_acm: Device resumed
[00:00:44.874,237] <inf> usb_cdc_acm: from suspend
[00:00:47.445,831] <inf> usb_cdc_acm: Device suspended

with mcumgr in go it looks like this

reqquest req_hdr->nh_group 1, req_hdr->nh_id 1
[00:07:29.650,085] <inf> usb_cdc_acm: Device suspended
[00:07:30.281,494] <inf> usb_cdc_acm: Device resumed
[00:07:30.281,494] <inf> usb_cdc_acm: from suspend
[00:07:32.900,299] <inf> usb_cdc_acm: Device suspended
[00:07:33.303,741] <inf> usb_cdc_acm: Device resumed
[00:07:33.303,741] <inf> usb_cdc_acm: from suspend
[00:07:34.037,933] <inf> mcumgr_img_grp: Erased 0x41000 bytes of image slot
[00:07:34.146,759] <inf> mcumgr_img_grp: Erased 0x1000 bytes of image slot trailer
respose nh_group 3, nh_id 1
rc 0

It seems that go is able to wake up port before transfer or keep it from long suspend.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions