Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#109 closed defect (invalid)

fix for https://docs.openmoko.org/trac/ticket/1309 not implemented?

Reported by: timo.lindfors@… Owned by: mickey
Priority: major Milestone:
Component: documentation Version:
Keywords: Cc:

Description

Version: 0.2.0-git20080805-7

Starting a new GPRS connection with

#!/bin/sh
APN="internet.saunalahti"
USERNAME="x"
PASSWORD="x"
BUSNAME="org.freesmartphone.frameworkd"
OBJECTPATH="/org/freesmartphone/GSM/Device"
METHODNAME="org.freesmartphone.GSM.PDP.ActivateContext?"
mdbus -s $BUSNAME $OBJECTPATH $METHODNAME $APN $USERNAME $PASSWORD

usually works but sometimes fails with

frameworkd DEBUG ogsmd.modems.abstract.pdp got from ppp: 'Connect script failed\n'

When I type the chat commands manually I see that I get mysterious unknown error after ATD:

gsm.DebugCommand?("AT\r\n")

dbus.Array([dbus.String(u'OK')], signature=dbus.Signature('s'))

gsm.DebugCommand?("ATZ\r\n")

dbus.Array([dbus.String(u'OK')], signature=dbus.Signature('s'))

gsm.DebugCommand?("AT+CMEE=2\r\n")

dbus.Array([dbus.String(u'OK')], signature=dbus.Signature('s'))

gsm.DebugCommand?("AT+CPIN?\r\n")

dbus.Array([dbus.String(u'+CPIN: SIM PIN'), dbus.String(u'OK')], signature=dbus.Signature('s'))

gsm.DebugCommand?("AT+CGDCONT=1,\"IP\",\"internet.saunalahti\"\r\n")

dbus.Array([dbus.String(u'OK')], signature=dbus.Signature('s'))

gsm.DebugCommand?("ATD*99#\r\n")

dbus.Array([dbus.String(u'+CMS ERROR: SIM not inserted')], signature=dbus.Signature('s'))

gsm.DebugCommand?("AT+CPIN?\r\n")

dbus.Array([dbus.String(u'+CPIN: SIM PIN'), dbus.String(u'OK')], signature=dbus.Signature('s'))

gsm.DebugCommand?("ATD*99#\r\n")

dbus.Array([dbus.String(u'+CME ERROR: unknown')], signature=dbus.Signature('s'))

gsm.DebugCommand?("ATD*99#\r\n")

dbus.Array([dbus.String(u'+CME ERROR: unknown')], signature=dbus.Signature('s'))

gsm.GetAuthStatus?()

dbus.String(u'SIM PIN')

gsm.SendAuthCode?("0000")
gsm.GetAuthStatus?()

dbus.String(u'READY')

gsm.DebugCommand?("ATD*99#\r\n")

dbus.Array([dbus.String(u'+CME ERROR: unknown')], signature=dbus.Signature('s'))

I then noticed that

https://docs.openmoko.org/trac/ticket/1309

states that the bug has already been fixed by "issuing some at-command before the dialing". Please fix this also in frameworkd.

Change History (3)

comment:1 Changed 6 years ago by mickey

I don't think 1309 has anything to do with this problem. Please use logread -f to get debug log from pppd's connection scripts.

comment:2 Changed 6 years ago by mickey

  • Resolution set to invalid
  • Status changed from new to closed

comment:3 Changed 6 years ago by anonymous

http://sdfgdfg.freehostingz.com/index1.html infotronics attendance enterprise

Note: See TracTickets for help on using tickets.