bs11_config:
* fix serial port initialization
* add bs11_state enum and work accordingly