[問題] 藍芽問題

作者: chun0416 (牛先生)   2014-11-08 20:53:35
我是使用android來測試藍芽
if(et2.getText()!=null){
String message = et2.getText().toString();
byte[] send = message.getBytes();
bt_output( send );}
這裡寫出我在手機上打出@值,會在另一邊收到@
但是藍芽接收到的是ASCII (@的ASCII碼為01000000)
所以另一邊藍芽模組應該接收到的資料為("0" 0 0 0 0 0 0 1 0 "1")
0和1為起始位元和結束位元
但我卻發現收到的資料卻是11111111
請問會是什麼問題

Links booklink

Contact Us: admin [ a t ] ucptt.com