16 #include "../../gsmstate.h" 18 #if defined(GSM_ENABLE_IRDA) || defined(GSM_ENABLE_PHONETBLUE) || defined(GSM_ENABLE_BLUEPHONET) || defined(GSM_ENABLE_DKU2PHONET) 24 #include "../../gsmcomon.h" 28 unsigned const char *MsgBuffer,
32 unsigned char *buffer=NULL;
39 buffer = (
unsigned char *)malloc(length);
48 buffer[4] = MsgLength / 256;
49 buffer[5] = MsgLength % 256;
51 memcpy(buffer + 6, MsgBuffer, MsgLength);
135 int total = 0, write_data=0;
137 unsigned char req[10]={0};
176 if (write_data != 7) {
195 if (req[3] != 0xD0) {
199 if (req[4] != 0x00) {
203 if (req[5] != 0x01) {
207 if (req[6] != 0x05) {
void GSM_DumpMessageBinary(GSM_StateMachine *s, unsigned const char *message, size_t messagesize, int type)
unsigned char device_phone
#define PHONET_BLUE_DEVICE_PC
struct GSM_Protocol::@1 Data
#define PHONET_BLUE_FRAME_ID
GSM_ConnectionType ConnectionType
int(* WriteDevice)(GSM_StateMachine *s, const void *buf, size_t nbytes)
unsigned char Destination
#define PHONET_DEVICE_PHONE
int smprintf_level(GSM_StateMachine *s, GSM_DebugSeverity severity, const char *format,...)
#define PHONET_DKU2_FRAME_ID
int(* ReadDevice)(GSM_StateMachine *s, void *buf, size_t nbytes)
GSM_Device_Functions * Functions
GSM_Phone_Functions * Functions
GSM_Error(* DispatchMessage)(GSM_StateMachine *s)
GSM_Protocol_Message * RequestMsg
void GSM_DumpMessageText(GSM_StateMachine *s, unsigned const char *message, size_t messagesize, int type)