![Bluegiga IWIP3G - IWRAP - IPHONE 3G Скачать руководство пользователя страница 121](http://html1.mh-extra.com/html/bluegiga/iwip3g-iwrap-iphone-3g/iwip3g-iwrap-iphone-3g_user-manual_2777547121.webp)
121
//HOW TO CREATE A SIMPLE FRAME
char outbuf[128];
//Buffer for frame
char* cmd = “SET”;
//ASCII command
int link = 0xff, pos=0;
//0xFF for control channel
int len = strlen(cmd);
//Calc. length of ASCII command
//Generate packet
outbuf[pos++]=0xbf;
//SOF
outbuf[pos++]=link;
//Link (0xFF=Control, 0x00 = connection 1, etc.)
outbuf[pos++]=0;
//Flags
outbuf[pos++]=len;
//Length
//Insert data into correct position in the frame
memmove(pos cmd, len);
pos += len;
//Move to correct position
outbuf[pos++]=link^0xff;
//nlink
Содержание IWIP3G - IWRAP - IPHONE 3G
Страница 1: ...iWRAP3 U s e r G u i d e V e r s i o n 1 3 F r i d a y S e p t e m b e r 2 6 2 0 0 8...
Страница 31: ...31 INQUIRY 3 INQUIRY 00 18 42 f1 a5 be 5a020c INQUIRY 00 17 e4 ef f9 01 50020c INQUIRY 00 07 80 87 68 ec 200428...
Страница 33: ...33 Note IC command cancels the inquiry only if issued before the INQUIRY num_of_devices message...
Страница 116: ...116 6 18 2 Examples How to disable default escape character and configure DTR to PIO5 SET CONTROL ESCAPE 20 1...
Страница 169: ...169 9 7 RS232 Connections Diagram Figure 7 RS232 connections...
Страница 187: ...187 Example trace of file reception via OPP Figure 12 Receiving a vCard over OPP...
Страница 197: ...197 Figure 17 MSC signal directions...