USER_DATA_MODE_BASIC
if (user_data->mode == USER_DATA_MODE_BASIC) {
int sbuf_len, sbuf_off, cmdmode = USER_DATA_MODE_BASIC;