Cableguy Expert Licensed User Longtime User May 1, 2018 #1 Hi guys I am having a bit trouble getting info from my GSM/GPRS A6 Board. I finally managed initial communication, but getting the network status is being troublesome. When I initialize my board, I get the expected "AT+CNMI=2,1" But, seems like the board doesn't come out from the busy state, so I commented the line "If Busy = true...." in the SendCommand sub, and it performs the action as expected, and gives me as result Code: Copy AT+CREG? +CREG: 1?1 OK but the CheckRegistration sub logs "Not registred" I wonder if this line is correct? Code: Copy If bc.IndexOf(buffer, "+CREG: 0,1") > -1 Or bc.IndexOf(buffer, "+CREG: 0,5") > -1 Then Form the documentation in this page, my response shows the board to be registered to home network
Hi guys I am having a bit trouble getting info from my GSM/GPRS A6 Board. I finally managed initial communication, but getting the network status is being troublesome. When I initialize my board, I get the expected "AT+CNMI=2,1" But, seems like the board doesn't come out from the busy state, so I commented the line "If Busy = true...." in the SendCommand sub, and it performs the action as expected, and gives me as result Code: Copy AT+CREG? +CREG: 1?1 OK but the CheckRegistration sub logs "Not registred" I wonder if this line is correct? Code: Copy If bc.IndexOf(buffer, "+CREG: 0,1") > -1 Or bc.IndexOf(buffer, "+CREG: 0,5") > -1 Then Form the documentation in this page, my response shows the board to be registered to home network
Erel B4X founder Staff member Licensed User Longtime User May 1, 2018 #2 You need to modify this line. I don't remember the exact details but this check expects the status messages of a different chip. Upvote 0
You need to modify this line. I don't remember the exact details but this check expects the status messages of a different chip.
Cableguy Expert Licensed User Longtime User May 1, 2018 #3 Thanks Erel... Since its an AT command, shouldn't it be "universal"? Upvote 0
Johan Hormaza Well-Known Member Licensed User Longtime User May 1, 2018 #4 Cableguy said: Since its an AT command, shouldn't it be "universal"? Click to expand... That depends on the versions. Upvote 0
Cableguy said: Since its an AT command, shouldn't it be "universal"? Click to expand... That depends on the versions.
Cableguy Expert Licensed User Longtime User May 1, 2018 #5 Johan Hormaza said: That depends on the versions. Click to expand... Can you elaborate? How do I check versions? Upvote 0
Johan Hormaza said: That depends on the versions. Click to expand... Can you elaborate? How do I check versions?
Erel B4X founder Staff member Licensed User Longtime User May 1, 2018 #6 Not directly related but it seems that the order of the status codes I received is different than the order documented in that page. The bottom line is that you should feel free to change the parsing code based on your chip outputs. Upvote 0
Not directly related but it seems that the order of the status codes I received is different than the order documented in that page. The bottom line is that you should feel free to change the parsing code based on your chip outputs.
tigrot Well-Known Member Licensed User Longtime User May 1, 2018 #7 AT comand set is "Almost universal". Upvote 0
tigrot Well-Known Member Licensed User Longtime User May 1, 2018 #8 Are you sure that there are no aswers queued before your AT comand? Upvote 0
Cableguy Expert Licensed User Longtime User May 1, 2018 #9 tigrot said: Are you sure that there are no aswers queued before your AT comand? Click to expand... I don't think so because I am getting "OK" for each command I send. Upvote 0
tigrot said: Are you sure that there are no aswers queued before your AT comand? Click to expand... I don't think so because I am getting "OK" for each command I send.
tigrot Well-Known Member Licensed User Longtime User May 1, 2018 #10 I've just finished a pjt using Vdrive: nothing in document was right. I had to reinvent everything. Upvote 0