I am trying to get the AT commands sent to the modem dispayed on my serial monitor. I tried:
SerialLogHandler logHandler(LOG_LEVEL_ALL);
but I don’t see any AT commands. Has anybody an idea how to show the used AT commands? I am using v0.8.0rc12
Do you get all the other output?
How are you using the logHandler?
Did it work with rc.11?
Yes i see output like that:
0000002396 [system] INFO: Sim Ready
0000002438 [system] INFO: ARM_WLAN_WD 1
[ Modem::register ] = = = = = = = = = = = = = =
[ Modem::join ] = = = = = = = = = = = = = = = =
0000002774 [system] INFO: ARM_WLAN_WD 2
0000002774 [system] INFO: CLR_WLAN_WD 1, DHCP success
But some time ago I was also able to get output like this:
0000002396 [system] INFO: Sim Ready
0000002438 [system] INFO: ARM_WLAN_WD 1
[ Modem::register ] = = = = = = = = = = = = = =
2.439 AT send 10 "AT+CREG?\r\n"
2.451 AT read + 32 "\r\n+CREG: 2,5,\"E610\",\"1FE486\",6\r\n"
2.467 AT read OK 6 "\r\nOK\r\n"
2.467 AT send 11 "AT+CGREG?\r\n"
2.479 AT read + 38 "\r\n+CGREG: 2,5,\"E610\",\"1FE486\",6,\"4C\"\r\n"
2.495 AT read OK 6 "\r\nOK\r\n"
2.495 AT send 10 "AT+COPS?\r\n"
2.543 AT read + 29 "\r\n+COPS: 0,0,\"T-Mobile A\",2\r\n"
2.559 AT read OK 6 "\r\nOK\r\n"
2.559 AT send 9 "AT+CNUM\r\n"
2.619 AT read OK 6 "\r\nOK\r\n"
2.619 AT send 8 "AT+CSQ\r\n"
2.631 AT read + 13 "\r\n+CSQ: 8,2\r\n"
2.643 AT read OK 6 "\r\nOK\r\n"
[ Modem::join ] = = = = = = = = = = = = = = = =
2.643 AT send 12 "AT+CGATT=1\r\n"
2.659 AT read OK 6 "\r\nOK\r\n"
2.659 AT send 14 "AT+UPSND=0,8\r\n"
2.671 AT read + 17 "\r\n+UPSND: 0,8,1\r\n"
2.683 AT read OK 6 "\r\nOK\r\n"
2.683 AT send 14 "AT+UPSND=0,0\r\n"
2.699 AT read + 29 "\r\n+UPSND: 0,0,\"10.24.3.130\"\r\n"
2.715 AT read OK 6 "\r\nOK\r\n"
2.715 AT send 14 "AT+UPSND=0,1\r\n"
2.727 AT read + 31 "\r\n+UPSND: 0,1,\"79.170.209.20\"\r\n"
2.743 AT read OK 6 "\r\nOK\r\n"
2.743 AT send 14 "AT+UPSND=0,2\r\n"
2.755 AT read + 31 "\r\n+UPSND: 0,2,\"79.170.208.50\"\r\n"
2.771 AT read OK 6 "\r\nOK\r\n"
0000002774 [system] INFO: ARM_WLAN_WD 2
0000002774 [system] INFO: CLR_WLAN_WD 1, DHCP success
Sadly I don’t remember which version it was (and also I am not sure how i achieved it).
I am just defining the variable as global variable at the top of my sketch:
SerialLogHandler logHandler(LOG_LEVEL_ALL);
and in my setup() I init the serial interface:
Serial.begin(115200);
@lympik I’m having this problem as well. Did you manage to solve it?
Yes if you are using the Particle Workbench you have to use “Flash application for debug (local)” which will flash a device os with logging enabled as far as we can tell.