Hi,
> > I'd like to volunteer to fix this (if there is anything
to fix
> > here), any hint to further debug this is welcome :-)
> >
>
> Please post AT debug logs, see HACKING document for details.
> However, it sounds like you're not registered to the network.
I think I found it,
ofonod[12663]: This driver is not setup with Signal Strength
reporting via CIND indications, please write proper netreg handling
for this device ofonod[12663]: src/network.c:netreg_remove() atom:
0xe216d0 ofonod[12663]: > AT+CGREG=2\r ofonod[12663]: < \r
I've made the following changes:
diff --git a/drivers/atmodem/network-registration.c
b/drivers/atmodem/network-registration.c index 0ec6608..7ecf48d 100644
--- a/drivers/atmodem/network-registration.c
+++ b/drivers/atmodem/network-registration.c
@@ -1528,6 +1528,7 @@ static void at_creg_set_cb(gboolean ok, GAtResult
*result, gpointer user_data) case OFONO_VENDOR_NOKIA:
case OFONO_VENDOR_SAMSUNG:
case OFONO_VENDOR_SIMCOM:
+ case OFONO_VENDOR_CINTERION:
/* Signal strength reporting via CIND is not supported
*/ break;
default:
diff --git a/drivers/atmodem/vendor.h b/drivers/atmodem/vendor.h
index 44b037f..5dcc9ae 100644
--- a/drivers/atmodem/vendor.h
+++ b/drivers/atmodem/vendor.h
@@ -39,4 +39,5 @@ enum ofono_vendor {
OFONO_VENDOR_SPEEDUP,
OFONO_VENDOR_SAMSUNG,
OFONO_VENDOR_SIMCOM,
+ OFONO_VENDOR_CINTERION,
};
diff --git a/plugins/tc65.c b/plugins/tc65.c
index eb64b89..39b19e3 100644
--- a/plugins/tc65.c
+++ b/plugins/tc65.c
@@ -52,6 +52,8 @@
#include <ofono/gprs.h>
#include <ofono/gprs-context.h>
+#include <drivers/atmodem/vendor.h>
+
static int tc65_probe(struct ofono_modem *modem)
{
return 0;
@@ -204,7 +206,7 @@ static void tc65_post_online(struct ofono_modem
*modem) ofono_ussd_create(modem, 0, "atmodem", chat);
ofono_call_forwarding_create(modem, 0, "atmodem", chat);
ofono_call_settings_create(modem, 0, "atmodem", chat);
- ofono_netreg_create(modem, 0, "atmodem", chat);
+ ofono_netreg_create(modem, OFONO_VENDOR_CINTERION, "atmodem",
chat); ofono_call_meter_create(modem, 0, "atmodem", chat);
ofono_call_barring_create(modem, 0, "atmodem", chat);
It seems to be registered now, but when sending a sms it fails (+CME
Error 549), I attach a full log including the failed sms sending.
[ /tc65_0 ]
Features = gprs net ussd sms sim
Emergency = 0
Powered = 1
Lockdown = 0
Interfaces = org.ofono.ConnectionManager
org.ofono.NetworkRegistration org.ofono.CallMeter
org.ofono.SupplementaryServices org.ofono.CallBarring
org.ofono.CallSettings org.ofono.CallForwarding
org.ofono.MessageWaiting org.ofono.SmartMessaging
org.ofono.PushNotification org.ofono.MessageManager org.ofono.Phonebook
org.ofono.VoiceCallManager org.ofono.SimManager Online = 1 Model = TC65
Revision = REVISION 03.000 Type = hardware Serial = 354745031069950
Manufacturer = SIEMENS [ org.ofono.ConnectionManager ] Powered = 1
Attached = 1
Bearer = none
Suspended = 0
RoamingAllowed = 0
[ org.ofono.NetworkRegistration ]
Status = registered
Strength = 29
Name = Claro
LocationAreaCode = 1121
Mode = auto
MobileCountryCode = 716
CellId = 10522
MobileNetworkCode = 10
[ org.ofono.CallMeter ]
Currency =
CallMeter = 0
AccumulatedCallMeter = 0
PricePerUnit = 0.0
AccumulatedCallMeterMaximum = 0
[ org.ofono.SupplementaryServices ]
State = idle
[ org.ofono.CallBarring ]
VoiceOutgoing = disabled
VoiceIncoming = disabled
[ org.ofono.CallSettings ]
HideCallerId = default
CallingLinePresentation = unknown
VoiceCallWaiting = disabled
CalledLinePresentation = disabled
ConnectedLineRestriction = unknown
ConnectedLinePresentation = unknown
CallingLineRestriction = off
CallingNamePresentation = unknown
[ org.ofono.CallForwarding ]
[ org.ofono.MessageWaiting ]
VoicemailMessageCount = 0
VoicemailMailboxNumber = 131
VoicemailWaiting = 0
[ org.ofono.SmartMessaging ]
[ org.ofono.PushNotification ]
[ org.ofono.MessageManager ]
Alphabet = default
UseDeliveryReports = 0
Bearer = cs-preferred
ServiceCenterAddress = +511997990000
[ org.ofono.Phonebook ]
[ org.ofono.VoiceCallManager ]
EmergencyNumbers = 112 911
[ org.ofono.SimManager ]
Retries =
MobileCountryCode = 716
FixedDialing = 0
SubscriberNumbers =
PreferredLanguages = es en fr pt
BarredDialing = 0
ServiceNumbers = [Info] = '555' [Donde Esta] = '456' [Saldo
Prepago] = '*777' [Hospital] = '117' [Emergencias] = '105'
[Defensa
Civil] = '115' [Atencion Cliente] = '123' [Chat] = '333' [Claro
Mensajes] = '131' [Recarga Prepago] = '*778' [Bomberos] = '116'
CardIdentifier = 8951100112046251607 LockedPins = MobileNetworkCode =
10 SubscriberIdentity = 716100104625160 Present = 1
PinRequired = none
Regards,
--
Reynaldo