[Ovmsdev] Connection issues
Matt Beard OVMS
smvo at mxf.org.uk
Mon Sep 30 17:22:11 HKT 2013
I managed to get into setup mode!
For some reason it only seemed to accept the setup command in a very tiny
time window. I just kept typing "SETUP<CR>" all through the boot and after
about 10 seconds it suddenly echoed what I was typing and took the command
to go into setup mode.
Now I am there I can't see much more than before. I can see that the signal
strength is "10" and I am currently on "Orange". The switch is read as
being "1", but the GPRS is simply "not connected (0x007f)"
Matt
On 30 September 2013 10:02, Mark Webb-Johnson <mark at webb-johnson.net> wrote:
> Matt,
>
> Yes, 9600,8,n,1 is correct.
>
> Regards, Mark.
>
> On 30 Sep, 2013, at 4:59 PM, Matt Beard OVMS <smvo at mxf.org.uk> wrote:
>
> I am trying this test in the car - and I have the OVMS in its case for
> protection so can't easily see the blue LED.
>
> Your instructions for getting into setup mode don't say what baud rate or
> other params to set, I used trial and error to discover 9600,8,N,1 will
> give the debug output - I assume this is right.
>
> Matt
>
>
>
> On 30 September 2013 09:54, Mark Webb-Johnson <mark at webb-johnson.net>wrote:
>
>> Matt,
>>
>> It can sometimes be tricky, depending on power. Are you doing this on the
>> bench with +12V or in the car?
>>
>> When you plug in, does the blue modem led start flashing? If not, try
>> unplugging and plugging in again? If still not, try the little reset button
>> on the board.
>>
>> You need the modem to be flashing blue led for a few seconds, then it
>> will start responding to your typing. You may have to type ATE1 to enable
>> echo. Local echo is no use - you need echo from the modem.
>>
>> You have about 15-to-20 seconds to type SETUP after plugging in - all
>> through the version blinking and the subsequent ten second delay. Once the
>> PIC starts talking to the modem, it is too late.
>>
>> Regards, Mark.
>>
>> On 30 Sep, 2013, at 4:50 PM, Matt Beard OVMS <smvo at mxf.org.uk> wrote:
>>
>> For some reason although I can get debug out of the diag port, it does
>> not allow me to enter setup mode. I have tried typing "SETUP" (in caps and
>> not) a lot of times at various points through the boot, but no response. I
>> have tried following this with CR and CR+LF. It does not echo what I type
>> (though I can set a local echo) is that normal?
>>
>> Matt
>>
>>
>> On 30 September 2013 09:16, Mark Webb-Johnson <mark at webb-johnson.net>wrote:
>>
>>> Matt,
>>>
>>> Looking at the pricing differences, and to rule it out as a problem, I
>>> really suggest you try to gsmlock to Orange.
>>>
>>> As you have your RS232 working, which is really helpful for this, you
>>> could also try to connect manually, to see what detailed errors are
>>> returned. Here are the steps for that:
>>>
>>> For instructions on getting into SETUP DIAG mode:
>>>
>>>
>>> http://www.youtube.com/watch?v=-24PoWtHVzk&feature=share&list=UU82Pr9NJBI4PUxVuggcTzZQ
>>>
>>>
>>> Once there can you try the DIAG command? It will show you the status of
>>> the GSM/GPRS switch on the motherboard. Please try to move the switch and
>>> make sure the DIAG command output correctly shows the state of the swtich.
>>>
>>> Assuming the switch is ok, when in DIAG mode, here are the commands the
>>> module sends to the modem. You can copy-and-paste these in, and see the
>>> output:
>>>
>>> Init #1: AT+CGPSPWR=1;+CGPSRST=0;+CSMINS?
>>> Init #2: AT+CCID;+CPBF="O-";+CPIN?
>>> Init #3:
>>> AT+IPR?;+CREG=1;+CLIP=1;+CMGF=1;+CNMI=2,2;+CSDH=1;+CIPSPRT=0;+CIPQSEND=1;E1
>>>
>>> Search cellular signal: AT+COPS=0,1;+COPS?
>>>
>>> APN: AT+CGDCONT=1,"IP","APN" (replace APN with APN)
>>> CSTT: AT+CSTT="APN","USER","PASS" (replace APN, USER, PASS with GPRS
>>> APN, username and password)
>>> CIICR: AT+CIICR
>>> CIPHEAD: AT+CIPHEAD=1
>>> CIFSR: AT+CIFSR
>>> PORT: AT+CLPORT="TCP","6867"
>>> CONNECT: AT+CIPSTART="TCP","64.111.70.40","6867"
>>>
>>> DISCONNECT: AT+CIPSHUT
>>>
>>> STATUS: AT+CREG?;+CIPSTATUS;+CSQ
>>>
>>>
>>> The result of each stage must be successful before you can continue to
>>> the next stage. The end result, if all is ok, should be a connection to the
>>> OVMS server. The STATUS command can be used to enquire on the connection
>>> status, and DISCONNECT can be used to shutdown the gprs connection.
>>>
>>> Please save a transcript, and send to me.
>>>
>>>
>>> From your previous transcript, the problem appears to be somewhere
>>> around the CIICR command. That is around where GPRS is established, and the
>>> PDP:DEACT would indicate the GPRS is failing.
>>>
>>> Regards, Mark.
>>>
>>> On 30 Sep, 2013, at 4:03 PM, Matt Beard OVMS <smvo at mxf.org.uk> wrote:
>>>
>>> There is a historical oddity in the UK as T-Mobile (TMO UK) and Orange
>>> used to be two separate networks, but are now the same company. Both
>>> physical networks work at times, but both also fail at times. This is true
>>> in a wide area (I have tried as far south as Perth which is about 100 miles
>>> away) so it can't be an issue with the local cell tower. There is no O2
>>> coverage in my area of the country (despite what their coverage map
>>> claims). I think I may need to return the hardware.
>>>
>>> Matt
>>>
>>>
>>>
>>> On 30 September 2013 08:10, Nikki Gordon-Bloomfield <
>>> nikki at littlecollie.com> wrote:
>>>
>>>> What's the coverage map in your area like, Matt?
>>>>
>>>> Sent from my iPhone
>>>>
>>>> > On 30 Sep 2013, at 08:06, Kevin Sharpe ZCW <
>>>> kevin.sharpe at zerocarbonworld.org> wrote:
>>>> >
>>>> > I use giffgaff (O2 network) and it works like a charm all over the UK.
>>>> >
>>>> > I couldn't get GEO-sim to work although I gave up quickly because
>>>> giffgaff was easy.
>>>> >
>>>> > Kevin
>>>> >
>>>> >> On 30 Sep 2013, at 07:34, "Nikki Gordon-Bloomfield" <
>>>> nikki at aminorjourney.com> wrote:
>>>> >>
>>>> >> If the carrier was the problem, it would be concurrent with the
>>>> problems I had when I tried to put a non-compatible SIM in the unit.
>>>> >>
>>>> >> Matt, I can recommend O2… if you're having problems with signal in
>>>> the area.
>>>> >>
>>>> >> I would suggest you run it on the bench for a dummy test in generic
>>>> mode? See if it connects then -- as Mark says, with GSM Lock…
>>>> >>
>>>> >>
>>>> >>> On 30 Sep 2013, at 07:24, Mark Webb-Johnson <mark at webb-johnson.net>
>>>> wrote:
>>>> >>>
>>>> >>> Matt,
>>>> >>>
>>>> >>> One thing glaring is the flapping between Orange and TMO. Can you
>>>> try to GSMLock to just one (preferred) provider (using PARAM_GSMLOCK, #13)?
>>>> >>>
>>>> >>> The log itself shows "PDP: DEACT" - which means it can't establish
>>>> GPRS. The COPS gets through ok, so it managed to connect to GSM ok - which
>>>> would seem to indicate the antenna and basic network reception was ok.
>>>> >>>
>>>> >>> Regards, Mark.
>>>> >>>
>>>> >>>> On 30 Sep, 2013, at 3:54 AM, Matt Beard <matt at beard.tv> wrote:
>>>> >>>>
>>>> >>>> I have been having issues with my OVMS module not connection.
>>>> >>>>
>>>> >>>> When it does connect I tend to find it has very good signal
>>>> strength, but it often will not connect when I power it on and I find that
>>>> it drops off quite often.
>>>> >>>>
>>>> >>>> I received my RS232/USB adaptor so logged the following data, any
>>>> use?
>>>> >>>>
>>>> >>>> P.S. This is with a Global GeoSIM, in the UK
>>>> >>>>
>>>> >>>>
>>>> >>>> ==== LOG ====
>>>> >>>>
>>>> >>>> GPS Ready
>>>> >>>> ATREG: 5
>>>> >>>> OK
>>>> >>>> AT+CGPSPWR=1;+CGPSRST=0;+CSMINS?
>>>> >>>> +CSMINS: 0,1
>>>> >>>>
>>>> >>>> OK
>>>> >>>> AT+CCID;+CPBF="O-";+CPIN?
>>>> >>>> 89234185500007905230
>>>> >>>>
>>>> >>>> +CPIN: READY
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> AT+IPR?;+CREG=1;+CLIP=1;+CMGF=1;+CNMI=2,2;+CSDH=1;+CIPSPRT=0;+CIPQSEND=1;E0
>>>> >>>> +IPR: 9600
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +COPS: 0,1,"Orange"
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> SHUT OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +PDP: DEACT
>>>> >>>>
>>>> >>>> ERROR
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +CSMINS: 0,1
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> 89234185500007905230
>>>> >>>>
>>>> >>>> +CPIN: READY
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +IPR: 9600
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +COPS: 0,1,"TMO UK"
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> SHUT OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +PDP: DEACT
>>>> >>>>
>>>> >>>> ERROR
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +CSMINS: 0,1
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> 89234185500007905230
>>>> >>>>
>>>> >>>> +CPIN: READY
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +IPR: 9600
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +COPS: 0,1,"Orange"
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> SHUT OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +PDP: DEACT
>>>> >>>>
>>>> >>>> ERROR
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +CSMINS: 0,1
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> 89234185500007905230
>>>> >>>>
>>>> >>>> +CPIN: READY
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +IPR: 9600
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +COPS: 0,1,"TMO UK"
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> SHUT OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +PDP: DEACT
>>>> >>>>
>>>> >>>> ERROR
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +CSMINS: 0,1
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> 89234185500007905230
>>>> >>>>
>>>> >>>> +CPIN: READY
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +IPR: 9600
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +COPS: 0,1,"Orange"
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> SHUT OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +PDP: DEACT
>>>> >>>>
>>>> >>>> ERROR
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +CSMINS: 0,1
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> 89234185500007905230
>>>> >>>>
>>>> >>>> +CPIN: READY
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +IPR: 9600
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +COPS: 0,1,"TMO UK"
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> SHUT OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +PDP: DEACT
>>>> >>>>
>>>> >>>> ERROR
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +CSMINS: 0,1
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> 89234185500007905230
>>>> >>>>
>>>> >>>> +CPIN: READY
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +IPR: 9600
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +COPS: 0,1,"Orange"
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> SHUT OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +PDP: DEACT
>>>> >>>>
>>>> >>>> ERROR
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +CSMINS: 0,1
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> 89234185500007905230
>>>> >>>>
>>>> >>>> +CPIN: READY
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +IPR: 9600
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +COPS: 0,1,"TMO UK"
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> SHUT OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +PDP: DEACT
>>>> >>>>
>>>> >>>> ERROR
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +CSMINS: 0,1
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> 89234185500007905230
>>>> >>>>
>>>> >>>> +CPIN: READY
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +IPR: 9600
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> +COPS: 0,1,"Orange"
>>>> >>>>
>>>> >>>> OK
>>>> >>>>
>>>> >>>> _______________________________________________
>>>> >>>> OvmsDev mailing list
>>>> >>>> OvmsDev at lists.teslaclub.hk
>>>> >>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>> >>>
>>>> >>> _______________________________________________
>>>> >>> OvmsDev mailing list
>>>> >>> OvmsDev at lists.teslaclub.hk
>>>> >>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>> >>
>>>> >> _______________________________________________
>>>> >> OvmsDev mailing list
>>>> >> OvmsDev at lists.teslaclub.hk
>>>> >> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>> > _______________________________________________
>>>> > OvmsDev mailing list
>>>> > OvmsDev at lists.teslaclub.hk
>>>> > http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>> _______________________________________________
>>>> OvmsDev mailing list
>>>> OvmsDev at lists.teslaclub.hk
>>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>>
>>>
>>> _______________________________________________
>>> OvmsDev mailing list
>>> OvmsDev at lists.teslaclub.hk
>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>
>>>
>>>
>>> _______________________________________________
>>> OvmsDev mailing list
>>> OvmsDev at lists.teslaclub.hk
>>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>>
>>>
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.teslaclub.hk
>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>
>>
>>
>> _______________________________________________
>> OvmsDev mailing list
>> OvmsDev at lists.teslaclub.hk
>> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>>
>>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>
>
>
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.teslaclub.hk
> http://lists.teslaclub.hk/mailman/listinfo/ovmsdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20130930/ec8ab428/attachment.htm>
More information about the OvmsDev
mailing list