Did anyone tried to talk to a APC UPS using their USB cable?

As in the topic, did anyone ever did this?

I ran the following code:


    public static void Main()
    {
      // Subscribe to USBH events.
      USBHostController.DeviceConnectedEvent += DeviceConnectedEvent;
      USBHostController.DeviceDisconnectedEvent += DeviceDisconnectedEvent;

      // Sleep forever
      Thread.Sleep(Timeout.Infinite);
    }

    static void DeviceConnectedEvent(USBH_Device device)
    {
      Debug.Print("Device connected...");
      Debug.Print("ID: " + device.ID + ", Interface: " +
                  device.INTERFACE_INDEX + ", Type: " + device.TYPE);
    }

    static void DeviceDisconnectedEvent(USBH_Device device)
    {
      Debug.Print("Device disconnected...");
      Debug.Print("ID: " + device.ID + ", Interface: " +
                  device.INTERFACE_INDEX + ", Type: " + device.TYPE);
    }


and it returns: ID: 2700055272, Interface: 0, Type: 2
means it’s a HID device.

I would like to read some parameters from this UPS (APC BK500EI is the model)

Thanks in advance

You can do something though USBH_RawDevice. Try the mouse example here:
http://www.ghielectronics.com/downloads/NETMF/Library%20Documentation/html/cad016bc-c045-3553-16a5-a86db398c68f.htm

Print the data that comes back from the UPS device and see how it changes.
Next look into the device specifications or linux drivers to see how they interpret the data…