]>
git.neil.brown.name Git - plato.git/log
NeilBrown [Sun, 11 Oct 2015 08:14:37 +0000 (19:14 +1100)]
gsmd2: add more notes about COPS
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Sun, 11 Oct 2015 08:13:46 +0000 (19:13 +1100)]
gsmd2: stop removing/adding modules.
It seems not to help...
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Sun, 11 Oct 2015 08:12:53 +0000 (19:12 +1100)]
gsmd2: improve CREG support to handle roaming.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Sun, 11 Oct 2015 08:11:39 +0000 (19:11 +1100)]
gsmd2: add search_carrier supprt.
If file is created in /run/gsm-state, find available carriers and
list them.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Sun, 11 Oct 2015 08:09:34 +0000 (19:09 +1100)]
gsmd2: Fix bug in queue handling.
We need to treat the request queue as a queue, not a stack.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Sun, 11 Oct 2015 08:08:10 +0000 (19:08 +1100)]
gsmd: use _COPS rather than _OSIMOP to get carrier id.
Seems to work better... sometimes.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Sun, 11 Oct 2015 07:57:08 +0000 (18:57 +1100)]
Merge eli:GIT/plato
NeilBrown [Sun, 11 Oct 2015 07:55:50 +0000 (18:55 +1100)]
gsmd2: handle request to select a specific carrier.
These are written to /run/gsm-state/request_carrier
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Sun, 11 Oct 2015 07:50:57 +0000 (18:50 +1100)]
gsmd2: ignore greater range of time setting.
I don't really understand how this time stuff works, but sometimes I
get really large years which cannot be correct.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Sun, 11 Oct 2015 07:50:10 +0000 (18:50 +1100)]
gsmd2: define the didset function.
A recent patch causes this to be called, but it doesn't exist!
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Thu, 16 Apr 2015 04:03:19 +0000 (14:03 +1000)]
battery: add support for monitoring battery voltage.
Use twl4030 to watch the battery voltage and use it to estimate
capacity when bq27000 not present.
The voltage is in a different place in old and new kernels.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 05:08:29 +0000 (16:08 +1100)]
gsmd2: new 'clock' engine to monitor the time
If we can get a time status from the GSM network,
update system time to match.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:58:52 +0000 (14:58 +1100)]
gsm: add sms.py library.
This is used by gsmd2 to get sms messages.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:58:12 +0000 (14:58 +1100)]
sound: make sure to re-read all config files before openning device.
Otherwise we might be using stale data.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:56:17 +0000 (14:56 +1100)]
petrol: fix bug with auto-update of 'other' fields.
If a field is empty, so put it on the list of 'recent'
fields. Otherwise the calculation of when to update
the "3rd" field gets confused.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:54:42 +0000 (14:54 +1100)]
gsmd2: modem: don't queue messages when disconnected.
This is just confusing - it queues up messages and
keep the device awake when the modem isn't there.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:52:58 +0000 (14:52 +1100)]
gsmd2: register engine: only CFUN if we are 'on'.
If the the GSM module should not be active - e.g. airplane
mode - don't check that the modem is on when we wake up.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:51:15 +0000 (14:51 +1100)]
gsmd2: always call set_on for all engines.
Previously, when calling set_on(False), that setting
was not passed down to all (or any) engines.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:48:54 +0000 (14:48 +1100)]
gsmd2: add some more logging
You can never have too much logging...
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:46:49 +0000 (14:46 +1100)]
sendsms: embed keyboard in send screen.
That way it doesn't obscure what I am typing.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:45:07 +0000 (14:45 +1100)]
gsm-sms: add proper encoding of messages.
SMS doesn't use ASCII - we need to translate...
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Tue, 24 Mar 2015 03:44:18 +0000 (14:44 +1100)]
gsm-getsms: fix multipath unicode decoding bug.
Missed an offset..
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Fri, 5 Dec 2014 02:15:02 +0000 (13:15 +1100)]
gsmd: only sync with modem on resume if connected.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Fri, 5 Dec 2014 00:10:43 +0000 (11:10 +1100)]
gsmd: fix suspend blocking for 'sms_recv'.
We shouldn't block suspend while waiting for a SIM card number.
Only block during an extended "get list of sms messsages" sequence.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Fri, 5 Dec 2014 00:03:10 +0000 (11:03 +1100)]
gsmd: extent retry timeout to get SIM card id.
If there is a no sim card, we don't want to check for it
every 10 seconds.
Instead use an exponential retry, but at least every hour.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Fri, 5 Dec 2014 00:02:25 +0000 (11:02 +1100)]
gsmd: fix power on/off for modem.
I had the sequence all wrong.
Signed-off-by: NeilBrown <neil@brown.name>
NeilBrown [Wed, 1 Jan 2014 02:28:02 +0000 (13:28 +1100)]
Add Makefiles for alarm, cal, ical
NeilBrown [Wed, 1 Jan 2014 02:26:02 +0000 (13:26 +1100)]
ical/cal/alarm - minor fixes
NeilBrown [Wed, 1 Jan 2014 00:45:48 +0000 (11:45 +1100)]
listsel: minor cleanups
NeilBrown [Wed, 1 Jan 2014 00:43:17 +0000 (11:43 +1100)]
cal / alarm: convert to use ical date info.
This is an incompatible change. alarm files need to be rebuilt
Format now allows for RRULE recurrences.
So this should be DST-proof now.
NeilBrown [Tue, 31 Dec 2013 03:06:51 +0000 (14:06 +1100)]
ical-date - now in C
This is a C version of ical.py (which is python).
It can take an ical RRULE and make a useful list of dates.
There is stuff missing, like RDATE/EXDATE handling, but I want to move
on and that stuff can be added when needed.
NeilBrown [Tue, 31 Dec 2013 00:44:03 +0000 (11:44 +1100)]
ical: allow printing part of an infinite list of dates
We limit to 100 for now.
NeilBrown [Tue, 31 Dec 2013 00:43:43 +0000 (11:43 +1100)]
ical: Remove unused assignment
NeilBrown [Mon, 30 Dec 2013 22:58:57 +0000 (09:58 +1100)]
ical.py: revise BYWEEKNO behaviour.
BYWEEKNO used to expand to every day in that week.
This doesn't really match the RFC as that say that BYDAY should 'expand'
with BYWEEKNO, but I would need it to 'limit'.
So what should we do? Choose one day from that week, but which?
- first day of the week
- same day of the week as DTSTART
- same day of the week as the date matching DTSTART in this year?
None are really ideal, and hopefully it would always be used with BYDAY.
As the last is easy I do that.
NeilBrown [Mon, 30 Dec 2013 22:39:04 +0000 (09:39 +1100)]
ical: ical_date must set_wday even if no time is given.
NeilBrown [Mon, 30 Dec 2013 22:14:04 +0000 (09:14 +1100)]
ical.py: clear up confusion with 'last' and 'next'.
The value stored in 'last' was being over-written.
This could lead to the end condition failing sometimes.
'last' is the last value added. we stop when that exceeds the end point.
'next' is the next value to add.
NeilBrown [Mon, 30 Dec 2013 03:44:47 +0000 (14:44 +1100)]
ical: avoid returning invalid dates for MONTHLY lists.
If a MONTHLY list starts on the 31st of the month, we mustn't
return e.g. 31st June.
NeilBrown [Mon, 30 Dec 2013 02:19:22 +0000 (13:19 +1100)]
ical.py: ical RRULE parsing.
This is still preliminary code, not really usable as a library.
The main purpose is to produce a list of date/times from an ical
recurrence rule.
NeilBrown [Mon, 30 Dec 2013 02:18:43 +0000 (13:18 +1100)]
Petrol: minor updates
remove stray white space
make sure keyboard starts up in numeric mode
NeilBrown [Tue, 24 Dec 2013 02:46:48 +0000 (13:46 +1100)]
gsmd2: fix bug with incoming
It kept ringing while on a call
NeilBrown [Fri, 20 Dec 2013 23:14:13 +0000 (10:14 +1100)]
sms: another fix to restore proper view after sending txt
NeilBrown [Fri, 20 Dec 2013 23:04:55 +0000 (10:04 +1100)]
contacts: make it easier to discard current search string
ESC or ENTER will do it.
NeilBrown [Fri, 20 Dec 2013 23:01:48 +0000 (10:01 +1100)]
lock: ignore old alerts at startup.
NeilBrown [Fri, 20 Dec 2013 23:01:12 +0000 (10:01 +1100)]
Profile: be sure to strip newline from 'who' in alert file.
NeilBrown [Fri, 20 Dec 2013 22:59:14 +0000 (09:59 +1100)]
lock: allow vib pattern to be set by profile
NeilBrown [Fri, 20 Dec 2013 00:02:38 +0000 (11:02 +1100)]
profile: fix multi-cond rule matching.
NeilBrown [Thu, 19 Dec 2013 23:47:33 +0000 (10:47 +1100)]
plato: add 'discrete' setting.
This allows the phone to be set to silent for some number of minutes
or hours.
NeilBrown [Thu, 19 Dec 2013 23:07:04 +0000 (10:07 +1100)]
lock: volume=0 much mean no sound.
Telling sound server the volume is zero doesn't work.
NeilBrown [Thu, 19 Dec 2013 22:46:33 +0000 (09:46 +1100)]
profile: multiple conditions in a rule.
A rule can have multiple conditions. All must succeed.
NeilBrown [Thu, 19 Dec 2013 22:34:46 +0000 (09:34 +1100)]
profile: add a rule for temporary over-rides.
A rule "<10" will succeed for the 10 minutes following the modify
time of the file containing the rule.
NeilBrown [Thu, 19 Dec 2013 05:36:36 +0000 (16:36 +1100)]
profile: read rules from a directory as well as a file.
This makes it easier to handle temp over-rides
NeilBrown [Thu, 19 Dec 2013 04:18:23 +0000 (15:18 +1100)]
Initial support for profiles and rules.
Alert can be controlled by rules which can be
affected by time of day and number calling.
NeilBrown [Thu, 19 Dec 2013 04:17:45 +0000 (15:17 +1100)]
lock: bugfix relating to recent changes to stopping alerts
NeilBrown [Wed, 18 Dec 2013 23:28:29 +0000 (10:28 +1100)]
Complete transition from /var/run to /run
no more "/var/run" left now.
NeilBrown [Mon, 16 Dec 2013 05:41:55 +0000 (16:41 +1100)]
gsmd2: use +CLCC in place of +CPAS
We poll the status while a call is incoming so we can know
when the called hangs up.
CPAS isn't reliable as it reports any connection including data.
So use +CLCC.
NeilBrown [Mon, 16 Dec 2013 05:13:33 +0000 (16:13 +1100)]
gsmd2: synthesis missed-call message if incoming isn't answered
NeilBrown [Mon, 16 Dec 2013 04:10:31 +0000 (15:10 +1100)]
gsmd2: update to the code I am actually running.
NeilBrown [Mon, 16 Dec 2013 04:03:17 +0000 (15:03 +1100)]
storesms: purge old entries from newmesg and draft
If there is no message, discard the record.
This means the if newmesg is not empty, then there really
are new messages
NeilBrown [Mon, 16 Dec 2013 03:53:48 +0000 (14:53 +1100)]
storesms: add new functions needed by gsmd2
sms_update adds newly received messages to store if they
are missing.
NeilBrown [Mon, 16 Dec 2013 03:52:28 +0000 (14:52 +1100)]
storesms: get shared lock when reading from message file.
This might fix some strange behaviour I've seen..
NeilBrown [Mon, 16 Dec 2013 03:15:33 +0000 (14:15 +1100)]
sms: discard whitespace at eol in code
NeilBrown [Mon, 16 Dec 2013 02:26:42 +0000 (13:26 +1100)]
lock: don't stop sounds unless key is pressed.
i.e. ignore just screen tap.
Not sure this is exactly the right solution yet.
NeilBrown [Mon, 16 Dec 2013 02:24:49 +0000 (13:24 +1100)]
plato: allow window list to be refreshed.
1/ this shouldn't be needed
2/ it is not yet enough as when windows disappear we don't notice
that the command is no longer active.
NeilBrown [Mon, 16 Dec 2013 02:24:17 +0000 (13:24 +1100)]
sms: extend search to look in contexts of text messages
NeilBrown [Mon, 16 Dec 2013 02:19:45 +0000 (13:19 +1100)]
battery: avoid possible division by zero
NeilBrown [Fri, 13 Dec 2013 10:27:46 +0000 (21:27 +1100)]
sound: assorted fixes.
Trying to make it play the full sound, or stop promptly when requested.
NeilBrown [Fri, 13 Dec 2013 09:30:58 +0000 (20:30 +1100)]
New gsmd2
The state machine model is not quite different.
We have a number of state machines which all run in parallel
handling different aspects of the modem state.
NeilBrown [Fri, 13 Dec 2013 09:29:53 +0000 (20:29 +1100)]
Assorted gsmd fixes
particularly support for selecting 2G or 3G or some combination.
NeilBrown [Fri, 13 Dec 2013 09:28:53 +0000 (20:28 +1100)]
atchan: retry if open fails.
This is useful for USB attached TTY which resets occasionally
for some reason.
NeilBrown [Fri, 13 Dec 2013 09:26:03 +0000 (20:26 +1100)]
new command suspend-power-monitor
This logs the average current usage while suspended
NeilBrown [Fri, 13 Dec 2013 09:24:15 +0000 (20:24 +1100)]
New command : realarm
This can be used to communicate with susman to wake from suspend every
so often.
NeilBrown [Fri, 13 Dec 2013 08:12:28 +0000 (19:12 +1100)]
plato: add gsm-mode, offmode, and rotate controls:
gsm-mode choose 2G 3G or some combination.
offmode enables or disables off-mode, assuming kernel support
rotate will xrandr rotate screen, assuming kernel support
NeilBrown [Fri, 13 Dec 2013 08:09:14 +0000 (19:09 +1100)]
plato/cmd: if we have a window but no job, still allow raise/close
NeilBrown [Fri, 13 Dec 2013 08:00:32 +0000 (19:00 +1100)]
netman: scan repeatedly while configuring wifi
instead of just once at the start.
NeilBrown [Fri, 13 Dec 2013 07:58:17 +0000 (18:58 +1100)]
Dnotify: possible fix for multiple signals.
I seem to lose signals sometimes.
This catches signals while handling signals and serialised them.
NeilBrown [Fri, 13 Dec 2013 07:43:33 +0000 (18:43 +1100)]
tapboard: make '|' more easily accessible.
NeilBrown [Fri, 13 Dec 2013 07:42:31 +0000 (18:42 +1100)]
dialer.py - minor cosmetic things
remove some white space
'changed' should expect an arg, because it gets one
NeilBrown [Fri, 13 Dec 2013 07:40:42 +0000 (18:40 +1100)]
lock: remove some white space and dead comments
NeilBrown [Fri, 13 Dec 2013 07:36:29 +0000 (18:36 +1100)]
Battery: improve time-to-empty and average-period display.
"average period" is now minutes+seconds (not just seconds)
"tiem to empty" is based on long-term average current and is minutes+seconds.
NeilBrown [Fri, 13 Dec 2013 06:11:21 +0000 (17:11 +1100)]
Remove some more white space
NeilBrown [Fri, 13 Dec 2013 06:03:46 +0000 (17:03 +1100)]
sms: fix recent change to show list after a send.
NeilBrown [Thu, 12 Dec 2013 22:15:13 +0000 (09:15 +1100)]
Make sms search function work.
NeilBrown [Thu, 12 Dec 2013 21:55:53 +0000 (08:55 +1100)]
sms: remove some white space
NeilBrown [Thu, 12 Dec 2013 21:51:40 +0000 (08:51 +1100)]
Enable finger scrolling for SMS viewing
Also go to list view after sending a message so that
the status is visible
NeilBrown [Sun, 17 Feb 2013 03:51:12 +0000 (14:51 +1100)]
gsm: differentiate between different styles of reset.
A CFUN error only requires a soft reset. And EOF requires a harder
reset.
In each case, reopen devices just in case.
Also make sure status information is cleared until we are up and
running again.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Sun, 17 Feb 2013 03:28:52 +0000 (14:28 +1100)]
gsmd: record status and be more lenient of CFUN errors.
Only treat CFUN states as bad if signal level is zero.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Fri, 25 Jan 2013 04:46:44 +0000 (15:46 +1100)]
gta04-modem-messages: don't abort on bad CRC
I get lots and lots of these, so aborting on each one is not helpful.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Fri, 25 Jan 2013 02:25:01 +0000 (13:25 +1100)]
fingerscroll2 - different approach to finger scrolling.
Hopefully temp hack for term.py
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Fri, 25 Jan 2013 02:24:33 +0000 (13:24 +1100)]
term: close app when child shell dies.
NeilBrown [Fri, 25 Jan 2013 02:15:53 +0000 (13:15 +1100)]
term: simple terminal with keyboard
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Fri, 25 Jan 2013 01:43:51 +0000 (12:43 +1100)]
tapboard: add support for control chars and arrows etc
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Fri, 25 Jan 2013 00:54:46 +0000 (11:54 +1100)]
update susman
NeilBrown [Fri, 25 Jan 2013 00:14:10 +0000 (11:14 +1100)]
Add gta04-modem-messages from Neil Jerram <neil@ossau.homelinux.net>
NeilBrown [Thu, 24 Jan 2013 23:39:52 +0000 (10:39 +1100)]
gsmd: improve CFUN handling, and split 'init' state.
Sometimes it can take a little while for CFUN to be effective.
So if it tells us the state is stil '0', we don't want to immediately
try the rest of the init process.
So split the init state into two - one which sets CFUN, and one
which is entered once CFUN says it is OK.
Also, if CFUN says it isn't OK in some way, trigger a reset, but
not too often.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Thu, 24 Jan 2013 23:38:03 +0000 (10:38 +1100)]
gsmd: handle suspend after setting the the timeout.
As soon as we acknowledge suspend, we might process an immediate resume.
That will try to abort any timeout.
So it is best to do it *after* we set our timeout, else we get stuck
in that timeout and never abort it.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Thu, 24 Jan 2013 23:36:38 +0000 (10:36 +1100)]
gsmd: don't check for SMS just-in-case during a call.
It seems that it can be confusing.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Thu, 24 Jan 2013 23:35:35 +0000 (10:35 +1100)]
gsmd: don't call _OPSYS so often.
It seems to cause more problems than it fixes.
Just call at init time.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Thu, 24 Jan 2013 23:28:58 +0000 (10:28 +1100)]
gsmd: allow multiple fields from a reponse to be logged.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Thu, 24 Jan 2013 23:26:24 +0000 (10:26 +1100)]
Allow non-default retry count.
Somethings should never be retried if they fail - so allow
that to be specified.
Also switch from RESET to POWERDOWN to see if it helps.
Signed-off-by: NeilBrown <neilb@suse.de>
NeilBrown [Thu, 24 Jan 2013 23:22:29 +0000 (10:22 +1100)]
netman: support configuring wifi networks.
We can now add or forget wifi networks, and set the password.
Signed-off-by: NeilBrown <neilb@suse.de>