Advanced scheduling through hcicmd

Because scheduled events are recurring events, certain commands are provided to check the status and to disable/enable individual events or entire schedules.

After hcicmd is started, the thread name is specified. This is followed on the same line with the command, and then followed by any arguments that are required for the command.

These commands include:

  • disable_event
  • enable_event
  • disable_schedule
  • enable_schedule
  • schedule_status
  • event_status
  • runnow_schedule

Event-specific commands require the event number as an argument. For example, event number 1 in a thread called from_hci_adt requires disabling. The command that is specified at the hcicmd prompt, or sent to hcicmd from Network Monitor, is:

from_hci_adt disable_event 1

The string returned from this command is Event 1 disabled. The return from schedule_status is UP or DOWN. If the schedule is UP, then the string also contains the number of each enabled event. For example, UP 1 5 8.

Using runnow_schedule runs the scheduled task immediately.