Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space DOCSDK and version 2.2.4

The example program is included in the SDK for two reasons, to allow you to start communicating with the sensor the Touch Sensor Module and to serve as a starting point for creating your own application. 

This is the algorithm implemented by the program.

  1. Initialize the sensorTouch Sensor Module.
  2. Initiate signal handler (CTRL+C for shutdown).
  3. Create a new connection to device using HID Pipe.
  4. Connect to device using connection from step 3.
  5. Read response from connection.
  6. Optional: Search for platform device.
  7. Search for the sensorfor the Touch Sensor Module.
  8. Send command Set Operation Modes to the sensorTouch Sensor Module.
  9. Loop until interrupt signal from user (CTRL+C).
    1. Read incoming message.
    2. Dump incoming message (display it for the user).
    3. If incoming message is OperationModesMessageType
      1. Send command Get Resolution to the sensorthe Touch Sensor Module.
    4. If incoming message is ResolutionMessageType
      1. Send command Get Mcu Unique Identifier to the sensorTouch Sensor Module.
    5. If incoming message is McuUniqueIdentifierMessageType
      1. Send command Set Enable to the sensorthe Touch Sensor Module.
  10. Disconnect connection.
  11. Free up connection memory.
  12. Uninitialize the sensorTouch Sensor Module.

Scroll Ignore

Read More

Children Display
pagezForce® SDK