The present invention provides a method and system in which signals from
the surface are sent by changing flow rate of the drilling fluid supplied
to the drill string during drilling of a wellbore. The signals are sent
based on a fixed or dynamic time period schemes so that the sent signals
cross a threshold value in a known manner. A detector measures the
changes in the flow rate. A controller downhole determines the number of
times a downhole parameter, such as voltage, relating to the changes in
the flow rate crosses a predefined threshold value. Based on the number
of the crossings and the timing of such crossings, signals are assigned
to commands. The controller controls or operates a steering device based
on the commands.