A system for nerve stimulation is provided; it comprises a nerve stimulation device configured to execute a set of nerve stimulation instructions for generating electrical pulses for nerve stimulation of a patient. A user electronic device is configured to generate the set of nerve stimulation instructions; and send the set of nerve stimulation instructions wirelessly to the nerve stimulation device.