Re: How configure .gnokiirc to support lowcost cell phone "NOKIA 100" in serial mode ?
Daniele Forsi <[email protected]>
| Newsgroups | gmane.linux.drivers.gnokii |
|---|---|
| Message-ID | <CAN_we7NS2BHMSM2kkxtN3wnxoJmVV_O-nzKK_TZSM3ZVdaFcbg@mail.gmail.com> |
2013/2/27 bruno estieule: > From my point of view, test results with model = series40 are egual to test > results with model = 6510. yes, but it may change in future currently they are handled by the same driver and we try to be smart in the code > Nothing work with model = AT > --identify seems to work > --sendsms don't work > --getdatetime don't work > > What is you analysis ? it seems that Nokia reduced functionality in AT mode and possibly also in FBUS mode there is an error in your debug log: The fbus stream is out of sync - expected 0x0c, got 0x10 that could explain the timeouts; can you try the attached patch? Use the git version http://www.gnokii.org/git.shtml for --getdatetime the generic error code wasn't detected, now it will correctly tell that the command is "unsupported", thanks to your debug log this is fixed in git -- Daniele Forsi _______________________________________________ gnokii-users mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/gnokii-users
fbus-sync.patch
(application/octet-stream, 513 B)
diff --git a/common/links/fbus.c b/common/links/fbus.c
index 69b2ceb..7f75499 100644
--- a/common/links/fbus.c
+++ b/common/links/fbus.c
@@ -279,7 +279,8 @@ static void fbus_rx_statemachine(unsigned char rx_byte, struct gn_statemachine *
if (rx_byte == 0x00) {
i->state = FBUS_RX_EchoSource;
- } else if (rx_byte != 0x0c) {
+ } else if (rx_byte != 0x0c &&
+ rx_byte != 0x10) {
i->state = FBUS_RX_Sync;
dprintf("The fbus stream is out of sync - expected 0x0c, got 0x%02x\n", rx_byte);
}