Git question - finding a commit in the history

2017-12-14 Thread colin.helliwell
I've been building for a few months on a particular git commit (3e15dc15efd118a2e7af8f60727afc7fbb7db3a3). I'm planning to try out the latest Master - hopefully in readiness of a tagged release occurring soon. In case I encounter 'brokenness' on my system, and need to track through logs, is there

Equipment info without SIM installed

2017-11-07 Thread colin.helliwell
I'd like to be able to get the h/w info without a SIM installed, but this seems to cause modem_load_current_capabilities() to fail (because "AT_CPIN?" errors). Hence the initialization overall fails. I haven't yet sussed out exactly which piece of code is catching the error (when other commands in

SMS get_data() with binary PDU

2017-09-25 Thread colin.helliwell
This may be a python question rather than MM (!) but if a PDU SMS message contains the data DEADBEEF then I see 'get_data()[1]' give a value of 4. But how to extract the data bytes? ___ ModemManager-devel mailing list

Received SMS with python

2017-09-19 Thread colin.helliwell
I came across an old example (get-sms.py) using dbus, but are there any examples via gi/Glib for reading and deleting received SMSs (and any events that can be hooked for catching the reception)? I'm guessing the ModemMessaging class is the starting point? Then, in the Sms class, when would be the

Watching for registration with python

2017-09-01 Thread colin.helliwell
I've been having a look at the modem-watcher-python example, and would like to do something similar - namely wait until the modem has registered on the network and then grab the MCC/MNC. Is there some sort of event I can hook for this (similar to what the example does with ' object-added'), or do

Received SMS and where they'll be stored

2017-05-23 Thread colin.helliwell
I'm re-exploring what happens through MM with received SMS - and could do with some clarification on how it all interacts (modem vs. MM). # mmcli -m 0 --messaging-status /org/freedesktop/ModemManager1/Modem/0 Messaging | supported storages: 'me, sm' |

Longer BEARER_CONNECTION_MONITOR_TIMEOUT?

2017-05-12 Thread colin.helliwell
I've been finding today that I'm getting failed connection attempts - it looks like MM is checking the PDP ("+CGDACT?") whilst ppp/modem are still in the process of getting themselves together. So MM is getting back an 'inactive' response and, I think ditching the attempt. I've increased

Passing Operator to NetworkManager

2017-05-08 Thread colin.helliwell
I'm hooking together ModemManager and NetworkManager (without systemd) and would like to grab the Operator determined by MM when it enables the modem and use it to set the apn setting in the NM connection. Basically - the NM setting needs to get configured automatically based on the SIM that's

PPP modem differences

2017-03-22 Thread colin.helliwell
I know this might not be an issue with MM, but as there's also a lot of modem-savvy people here.. :) I've got the same system trying to make a ppp connection via MM. I'm using the same SIM card, and running mmcli -m 0 --simple-connect="apn=mobile.o2.co.uk" pppd nodetach call provider On one

Integration into NetworkManager

2017-03-20 Thread colin.helliwell
So I've got a [reasonably?] sorted MM setup now - a mux driver providing two virtual ports: ttyMux0 (PPP) and ttyMux1 (Primary). I'm now wanting to hook the former into NetworkManager. >From a fresh rootfs/boot-up, 'nmcli dev status' lists DEVICE TYPE STATE CONNECTION eth0

Unexpected COPS format

2017-03-17 Thread colin.helliwell
I'm reviewing the info fetched on my modems, and one of them is giving an unusual format for "AT+COPS=3,2;+COPS?" : +COPS: 0,2,"00320033003400310035",0 This seems to be some sort of 'wide char' hex representation of "23415" [which is what I'd expect]. The modem's AT spec doesn't say

Own number

2017-03-17 Thread colin.helliwell
Is there anything in MM which attempts to fetch the modem's own phone number? I see a line for it in 'mmcli -m 0', but unsure where it could/would/might obtain this (seems to be somewhere in the 'libmm' stuff?). ___ ModemManager-devel mailing

Cinterion 'simstatus'

2017-03-08 Thread colin.helliwell
The Cinterion plugin, when initialising a modem, does 20 tries of AT^SIND="simstatus" (after_sim_unlock_context_step). This isn't supported by my modems - but there may well be an alternative command which could be used. However I'm not sure what it's *actually* trying to check for?

Parsing Cinterion RadioBand

2017-03-06 Thread colin.helliwell
I'm using the Cinterion plugin on an EHS5. This does include 'Radio Band' in its response to 'AT^SCFG=?', but in a format that mm_cinterion_parse_scfg_test () may not be able to parse? ^SCFG: "Radio/Band",("1"-"147") (Which I take to probably mean any bitmask from 1 to 128+16+2+1)

glib-mkenums error for ublox plugin

2017-02-14 Thread colin.helliwell
On latest master I'm getting a build error for the glib-mkenums step for the ublox plugin: make[2]: Entering directory `/home/colin/100051 /fsl-community-bsp/build_sysv/tmp/work/cortexa9hf-vfp-neon-poky-linux-gnueab i/modemmanager/1.8-r0/build/plugins' glib-mkenums \ --fhead

ABOUT-NLS missing?

2017-02-14 Thread colin.helliwell
Just updated my env setup to the latest master (git://anongit.freedesktop.org/ModemManager/ModemManager), but configure is giving an error: configure.ac:86: error: required file './ABOUT-NLS' not found Am I missing a bootstrap/configure step or option? (I'm building within Yocto, btw, but the

RE: Handling received SMS

2017-02-13 Thread colin.helliwell
All I'm seeing in the logs is "+CIEV: message,1". Checking back through the logs for unsolicited event setups, I also see [src/mm-broadband-modem.c:5888] set_messaging_unsolicited_events_handlers(): (ttyMux0) Setting messaging unsolicited events handlers [src/mm-port-serial.c:1347]

Cinterion plugin (in)compatibilities

2017-02-10 Thread colin.helliwell
For simplicity, I'd begun my exploration of MM using the Generic plugin. My design has a choice of two Cinterion modems (BGS2 and EHS5), though they don't have much of the functionality supported by the Cinterion plugin such as GPS. But because of one command incompatibility (CMER) with the

Handling received SMS

2017-02-10 Thread colin.helliwell
I'm digging into SMS reception, and trying understand how MM deals with it. I can see that it/mmcli reads the messages when the modem is enabled. When a new SMS is then received, I can see the modem sending a "+CIEV: message,1" [but only the first time, if the first message isn't then read?].

Modem creation/startup order

2017-02-10 Thread colin.helliwell
I've got two ports whitelisted for use by MM. What determines which one of them will be 'Modem/0' ? Is there a way to get MM to create/initialise 0 first, then 1 - as opposed to doing both in *parallel*? I'm getting MM to use the Cinterion plugin for my modem, by adding

Top-level (ppp) connection management over MM

2017-02-08 Thread colin.helliwell
One thing I've picked up whilst reading about MM is that although it can set the modem into data mode, it doesn't take care of any of the PPP side of things - this is the responsibility of 'elsewhere'? I'm trying to figure out whether there's anything off-the-shelf that can be used for this role?

RE: Fetching signal quality during data connection?

2017-02-03 Thread colin.helliwell
Oh - scratch that. it found it after a reboot. Must've not reloaded rules properly.. -Original Message- From: Colin Helliwell (colin.helliw...@ln-systems.com) [mailto:colin.helliw...@ln-systems.com] Sent: 03 February 2017 13:36 To: 'ModemManager (development)'

RE: Fetching signal quality during data connection?

2017-02-03 Thread colin.helliwell
Aside from the questions over disconnect and/or powering off the hardware in my mux driver, I want to step back a bit and dig into what's happening when the modem is timing out of Data Mode but MM is apparently not realising. I want to try to see the NO CARRIER that I see when playing with a

RE: Fetching signal quality during data connection?

2017-01-26 Thread colin.helliwell
Odd though that the signal quality doesn't work again until I '--disconnect'. Testing from a terminal app it seemed to re-respond to this as soon as the timeout/'NO CARRIER' occurs. It may be that MM is sending some other config commands that I hadn't done in my simple experiment? (Another

RE: Fetching signal quality during data connection?

2017-01-26 Thread colin.helliwell
Log as follows (--debug --log-level=DEBUG). '--connect' done many minutes after the '--enable' and '--create-bearer' I can rebuild, if you'd like me to add in any further debug messages. Jan 26 15:15:54 wg2xx-tx6s daemon.info ModemManager[867]: [1485443754.457980]

RE: Fetching signal quality during data connection?

2017-01-26 Thread colin.helliwell
Thanks Aleksander. Suppressing the failed signal quality message would be 'nicer'. It would also be helpful (on my system, at least!) to have an api to disable these periodic checks - as I said, my 'device' is actually a 3-channel mux driver, and I plan to use one tty for ppp and one or two of

Fetching signal quality during data connection?

2017-01-25 Thread colin.helliwell
I have MM essentially running on my hardware, but I'm puzzled by a part of its behaviour: I can enable the modem with mmcli --enable, and in the debug output I see the signal quality being periodically refreshed. I can also, more or less, make a connection to the APN with -connect, and then bring