1. A method for controlling an electronic device using an embedded system, the embedded system connected with the electronic device via a universal serial bus (USB) port, the method comprising: reading hardware device information of the electronic device via the USB port, and generating a hardware control interface displaying the hardware device information; setting parameter information for one or more hardware devices of the electronic device via the hardware control interface; generating a control command for the control of each hardware device according to the parameter information, and generating a control file that lists one or more control commands; and sending the control file to the electronic device via the USB port, and executing the one or more control commands in the electronic device to control associated one or more hardware devices.