The Keyboard service listens for commands from the HMI on this control object
Commands sent to the /pps/system/keyboard/control object are of the form:
msg::command_string\nid::ID_number\ndat:json:{JSON_data}
Responses always reflect the command_string and ID_number that were sent in the message, along with any errors:
res::command_string\nid::ID_number\ndat:json:{JSON_data}\nerror::error_description
msg:: | id:: | dat:json: |
---|---|---|
Message to send to the control object, either show or hide. | The message's ID string (usually a number, but can be anything). | JSON data (payload) related to the message. The current commands don't require extra data, so this field should be left empty, as shown in the sample commands that follow. |
To show the keyboard:
echo "msg::show\nid::1\ndat:json:{}" > /pps/system/keyboard/control
To hide the keyboard:
echo "msg::hide\nid::2\ndat:json:{}" > /pps/system/keyboard/control