LimitationsBecause it's not supported by hardware, the library has a few limitations:
Only speeds up to 9600 baud work
Serial.available() doesn't work
Serial.read() will wait until data arrives
Only data received while Serial.read() is being called will bereceived. Data received at other times will be lost, since the chip isnot "listening".
這上面是不是說我RS232的鮑率最高只能到9600呢?
還有,有關於其它的限制我也不太懂
可否請大大為小弟我說明一下
先謝了~作者: mzw2008 時間: 2009-9-20 12:12
LimitationsBecause it's not supported by hardware, the library has a few limitations:
Only speeds up to 9600 baud work , 因為一些限制的關係, 只能到9600
Serial.available() doesn't work 這個指令不能執行
Serial.read() will wait until data arrives 這個指令會呆住直到有資料過來, 所以最好用執行緒包起來
Only data received while Serial.read() is being called will bereceived. Data received at
other times will be lost, since the chip isnot "listening".
只有呼叫Serial.read() 才能真的接到資料, 但沒呼叫的時候, 並沒有緩衝區去暫存資料
這會導致資料一直過來, 卻沒呼叫指令去接, 資料會消失不見
主要是因為晶片沒有實做類似winsock那種listening 的動作, 這部分要自己實做作者: weiooooo 時間: 2009-9-20 19:16
哇...是喔 只能到9600....
那是為什麼呢?
是硬體上面的關係嗎?
如果用8051做類似的事情的話
也會有此限制嗎?
可否請大大再幫我做進一步的解釋
感謝您了~~作者: mzw2008 時間: 2009-9-22 22:48
我不會8051, 只知道皮毛哩
無法幫上忙
我自己做機器人用的是arduino + 嵌入式單版作者: g921002 時間: 2009-9-22 23:09