[問題] BCB與RS232傳輸的問題
我的SENSOR傳了struct到電腦的COM
typedef struct TOS_Msg{
uint16_t addr;
uint8_t type;
uint8_t group;
uint8_t length;
int8_t data[TOSH_DATA_LENGTH];
uint16_t crc;
uint16_t strength;
uint8_t ack;
uint16_t time;
uint8_t sendSecurityMode;
uint8_t receiveSecurityMode; } TOS_Ms
可是我是用BCB char陣列收
結果都無法完整收到資料
請問有什麼函式或方法可以收struct型態的資料呢?
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 203.70.105.68
推
09/03 03:16, , 1F
09/03 03:16, 1F
→
09/03 03:16, , 2F
09/03 03:16, 2F
討論串 (同標題文章)
以下文章回應了本文:
完整討論串 (本文為第 1 之 2 篇):