Skip to content

USB-CTR timer status readback #33

Description

@MarkRivers

usb-ctr.c contains this:

void usbTimerControlR_USB_CTR(libusb_device_handle *udev, uint8_t timer,  uint8_t *control)
{
  /*
    This command reads/writes the timer control register
    control:   bit 0:    1 = enable timer,  0 = disable timer
               bit 1:    1 = timer running, 0 = timer stopped
                        (read only, useful when using count)
               bit 2:    1 = inverted output (active low)
                         0 = normal output (active high)
               bits 3-7: reserved

I have tested using this function to read the status in bit 1. However, it does not work, control always returns 0 even if the timer is running.

Have you tested this?

If it works for you then perhaps I need new firmware? What firmware are you using?

Activity

  1. wjasper commented on Sep 17, 2019

    @wjasper
    Owner

    I'm using firmware version 00.46, and I'm getting 0x0 also. The device is returning a byte, so that
    part is working. I sent and email to MCC to see if they can help.

  2. MarkRivers commented on Sep 17, 2019

    @MarkRivers
    ContributorAuthor

    I have looked hard and their UL library API provides no way to read the information. I was excited when I saw that the Linux API seemed to support it. Even if they make new firmware that does it, they will need to add it to their UL API.

  3. MarkRivers commented on Sep 25, 2019

    @MarkRivers
    ContributorAuthor

    Did you get any response from MCC about this issue?

  4. wjasper commented on Oct 1, 2019

    @wjasper
    Owner

    MCC is looking into this issue. I will keep this open until resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions