[Xmblackberry-devel] XmBlackBerry bb_usb.c, 1.139, 1.140 serctrl.c, 1.9, 1.10
Status: Beta
Brought to you by:
rwscott
From: Rick S. <rw...@us...> - 2007-06-04 21:14:03
|
Update of /cvsroot/xmblackberry/XmBlackBerry In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv14363 Modified Files: bb_usb.c serctrl.c Log Message: After an OS upgrade, it seems that the endpoints no longer liked to be scanned in reverse order looking for the hello, and the SerCtrl now needs to send the initialization string. This gets the usb GPRS modem working again for me. Index: bb_usb.c =================================================================== RCS file: /cvsroot/xmblackberry/XmBlackBerry/bb_usb.c,v retrieving revision 1.139 retrieving revision 1.140 diff -C2 -d -r1.139 -r1.140 *** bb_usb.c 2 Jun 2007 20:01:07 -0000 1.139 --- bb_usb.c 4 Jun 2007 21:14:00 -0000 1.140 *************** *** 1535,1539 **** bb->disconnected = 1; bb->password = NULL; ! #if 0 /* It seems to be the last pair of enpoints that are the correct ones. So start from the end of the list; --- 1535,1539 ---- bb->disconnected = 1; bb->password = NULL; ! #if 1 /* It seems to be the last pair of enpoints that are the correct ones. So start from the end of the list; Index: serctrl.c =================================================================== RCS file: /cvsroot/xmblackberry/XmBlackBerry/serctrl.c,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** serctrl.c 2 Dec 2006 16:32:55 -0000 1.9 --- serctrl.c 4 Jun 2007 21:14:00 -0000 1.10 *************** *** 33,37 **** #include "util.h" - /* static int send_packet(struct serctrl_rec *serctrl, void *packet, int len) --- 33,36 ---- *************** *** 46,50 **** return(ret); } - */ /** --- 45,48 ---- *************** *** 80,89 **** { int ret = 0; ! //char cmd[] = {0x01, 0x01, 0xc2, 0x00, 0x40, 0x00}; debug(9, "%s:%s(%d) - %08x\n", __FILE__, __FUNCTION__, __LINE__, serctrl->blackberry->pin); ! //ret = send_packet(serctrl, cmd, sizeof(cmd)); return(ret); } --- 78,87 ---- { int ret = 0; ! char cmd[] = {0x01, 0x01, 0xc2, 0x00, 0x40, 0x00}; debug(9, "%s:%s(%d) - %08x\n", __FILE__, __FUNCTION__, __LINE__, serctrl->blackberry->pin); ! ret = send_packet(serctrl, cmd, sizeof(cmd)); return(ret); } |