STMicroelectronics Joystick in FS Mode



Son's flight controller not connecting to his simulator under Windows 10.  
This is how we tested the hardware under linux:


$ lsusb | grep -i joy
Bus 001 Device 006: ID 0483:5710 STMicroelectronics Joystick in FS Mode
$


$ sudo apt install joystick



$ ls /dev/input/by-id/*-joystick
/dev/input/by-id/usb-FrSky_FrSky_Taranis_Joystick_00000000001B-event-joystick  /dev/input/by-id/usb-FrSky_FrSky_Taranis_Joystick_00000000001B-joystick
$


$ jstest /dev/input/by-id/usb-FrSky_FrSky_Taranis_Joystick_00000000001B-joystick
Driver version is 2.1.0.
Joystick (FrSky FrSky Taranis Joystick) has 7 axes (X, Y, Z, Rx, Ry, Rz, Throttle)
and 24 buttons (BtnA, BtnB, BtnC, BtnX, BtnY, BtnZ, BtnTL, BtnTR, BtnTL2, BtnTR2, BtnSelect, BtnStart, BtnMode, BtnThumbL, BtnThumbR, ?, (null), (null), (null), (null), (null), (null), (null), (null)).
Testing ... (interrupt to exit)
Axes:  0: 20606  1: 16215  2: 16552  3: 16215  4:     0  5:     0  6:     0 Buttons:  0:off  1:off  2:off  3:off  4:off  5:off  6:off  7:off  8:off  9:off 10:off 11:off 12:off 13:off 14:off 15:off 16:off 17:off 18:off 19:off 20:off 21:off 22:off 23:off ^C
$




$ lsusb -v -d 0483:5710

Bus 001 Device 006: ID 0483:5710 STMicroelectronics Joystick in FS Mode
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x0483 STMicroelectronics
  idProduct          0x5710 Joystick in FS Mode
  bcdDevice            2.00
  iManufacturer           1 FrSky
  iProduct                2 FrSky Taranis Joystick
  iSerial                 3 00000000001B
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           34
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower              100mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      54
         Report Descriptors:
           * UNAVAILABLE *
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x000b  1x 11 bytes
        bInterval              10
Device Status:     0x0001
  Self Powered
$





Thanks

Mount dd dump of disk in linux or other remote storage represented as a file.




So you have a remote storage or a file based dd backup and you want to 
mount a part of it in the middle.   


# parted /dev/mapper/hitachi_asdf1 unit b print
Model: Linux device-mapper (linear) (dm)
Disk /dev/mapper/hitachi_asdf1: 42949672960B
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number  Start         End           Size          File system  Name     Flags
 1      1048576B      26214399B     25165824B                  primary  bios_grub
 2      26214400B     235929599B    209715200B                 primary  msftdata
 3      235929600B    445644799B    209715200B    ext2         primary  msftdata
 4      445644800B    20913848319B  20468203520B               primary  msftdata
 5      20913848320B  42871029759B  21957181440B               primary  msftdata
 6      42871029760B  42892001279B  20971520B                  primary  msftdata



#
# mount -o ro,loop,offset=235929600 /dev/mapper/hitachi_asdf1 /mnt
#



# losetup --offset 235929600 /dev/loop2 /dev/mapper/hitachi_asdf1
# fsck /dev/loop2



Thanks