The embedded on-line detecting device is main part of embedded on-line detecting system for safety monitoring and control system of coal mine,it is used to on-line detect function of sound and light alarming for methane concentration exceeding preset limit,power off/power recovery control function,function of wind electricity closed-cycle control of methane,control response time of the system,actual patrol period,actual distributed quantity of sensors and stability of methane sensor.The paper introduced design of software framework and work flow and functions of each part of embedded on-line detecting device in details.The design of the software framework makes each function of the software be realized by combination of several subprogram modules and makes each subprogram module run concurrently,which improves running speed of the program.