A roller blind driving device with a motor in an upper beam, comprising the upper beam with a containing cavity, the motor and a pipe coiler body , wherein the motor is installed in the containing cavity of the upper beam ; an output shaft of the motor is in transmission connection with the pipe coiler body through a transmission structure; a battery for supplying power for the motor is installed in the containing cavity of the upper beam ; characterized in that the battery comprises a lithium battery and a dry battery ; the lithium battery is provided with an input wire and a first output wire ; the end of the input wire is connected with a charging port ; the dry battery is connected with a second output wire ; the first output wire and the second output wire are connected with the motor ; and the lithium battery and the dry battery can supply power for the motor , wherein the dry battery is configured to supply power for the motor through the second output wire , when a user selects a dry battery power supply mode; and the lithium battery is configured to supply power for the motor through the first output wire , when the user selects a lithium battery power supply mode; and one end of the transmission structure is connected with the output shaft of the motor , and the other end of the transmission structure is connected with a pipe plug ; and the pipe plug is coaxially connected with the pipe coiler body , wherein a side wall of the upper beam is connected with a side plate ; one surface of the side plate is provided with the transmission structure, and the pipe plug is detachably installed on another surface of the side plate so as to be replacable with a pipe plug having a different specification to adapt to a pipe coiler body having a different size; and the charging port is arranged on the lower part of the side plate . the battery comprises a lithium battery and a dry battery ; the lithium battery is provided with an input wire and a first output wire ; the end of the input wire is connected with a charging port ; the dry battery is connected with a second output wire ; the first output wire and the second output wire are connected with the motor ; and the lithium battery and the dry battery can supply power for the motor , wherein the dry battery is configured to supply power for the motor through the second output wire , when a user selects a dry battery power supply mode; and the lithium battery is configured to supply power for the motor through the first output wire , when the user selects a lithium battery power supply mode; and one end of the transmission structure is connected with the output shaft of the motor , and the other end of the transmission structure is connected with a pipe plug ; and the pipe plug is coaxially connected with the pipe coiler body , wherein a side wall of the upper beam is connected with a side plate ; one surface of the side plate is provided with the transmission structure, and the pipe plug is detachably installed on another surface of the side plate so as to be replacable with a pipe plug having a different specification to adapt to a pipe coiler body having a different size; and the charging port is arranged on the lower part of the side plate . <EOS>