deal with uart.on api when required char number is 0
build bins