]> git.neil.brown.name Git - gsm0710muxd.git/log
gsm0710muxd.git
15 years agoBe more careful about handing EOF read from the socket. master
Neil Brown [Sun, 8 Feb 2009 02:48:19 +0000 (13:48 +1100)]
Be more careful about handing EOF read from the socket.

There was a case were we would spin on EOF from the socket.

15 years agoAdd support for control and access over Unix Domain sockets.
Neil Brown [Sat, 31 Jan 2009 20:13:27 +0000 (07:13 +1100)]
Add support for control and access over Unix Domain sockets.

Listen on /var/run/gsm-mux for connections.
Over these connections access commands
  reset_modem
  get_power
  set_power {0,1}
  alloc_channel
  set_name
  exit
  connect

"connect" provides the significant new functionality.
Further IO on that socket goes directly to a channel to
the GSM controller.  That way we can talk to it without needing
to use a pty - simply open as socket and use that.

EOF from a socket appears as a zero-byte read, so make sure to
check for that in pseudo_device_read.
Writing to a closed socket produces SIGPIPE, so we definitely don't want to
exit on that case.
In general, SIGPIPE is quite uninteresting, so universally ignore it.

Signed-off-by: Neil Brown <neilb@suse.de>
15 years agoFix warning with printing 'written' in 64bit arch fixes
Neil Brown [Sat, 31 Jan 2009 20:08:38 +0000 (07:08 +1100)]
Fix warning with printing 'written' in 64bit arch

'written' is  'gsize' which is 64bit on x86_64.
So it cannot be printed with "%d".
So cast to (int) before printing.

This fixes a warning

Signed-off-by: Neil Brown <neilb@suse.de>
15 years agoFix breakage caused by removal of attempt to close channels at shutdown.
Neil Brown [Sat, 31 Jan 2009 19:56:09 +0000 (06:56 +1100)]
Fix breakage caused by removal of attempt to close channels at shutdown.

commit 98a0c4c761f28ebc47e46b0760cc3dba2939da84
removed some code but left unused bits that cause warning.

So move the "int i" inside the "#if 0" and hide
dbus_signal_send_deactivate as well.

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agoFix signature for muxer_control_alloc_channel
Neil Brown [Sat, 31 Jan 2009 19:54:23 +0000 (06:54 +1100)]
Fix signature for muxer_control_alloc_channel

The "channel" arg to this function is really a "char **" as a "char *"
is returned via it.
This fixes a compile warning.

Signed-off-by: Neil Brown <neilb@suse.de>
15 years agoRemove watchdog source when resetting modem.
Neil Brown [Sat, 31 Jan 2009 19:51:28 +0000 (06:51 +1100)]
Remove watchdog source when resetting modem.

The "reset_modem" command eventual sets up the g_source_watchdog
without ever stopping the old watchdog.  So each call adds another
watchdog.

So remove the current watchdog when resetting

Signed-off-by: NeilBrown <neilb@suse.de>
15 years agobump version number, add some docs to README, and update TODO fso 0.9.3.1
Michael 'Mickey' Lauer [Sat, 24 Jan 2009 00:25:30 +0000 (01:25 +0100)]
bump version number, add some docs to README, and update TODO

15 years agodo not attempt to close virtual channels during shutdown. First off,
Michael 'Mickey' Lauer [Sat, 24 Jan 2009 00:07:30 +0000 (01:07 +0100)]
do not attempt to close virtual channels during shutdown. First off,
the mainloop is no longer running, second, we're about to tell the
modem to completely turn off.
NOTE: Ideally this would be fixed properly, such as -- first closing
all the channels, _then_ flagging the mainloop to quit. After that,
running some -- modem specific -- power off command. We can't use it
like that on the mc75i.

15 years agospelling++
Michael 'Mickey' Lauer [Wed, 21 Jan 2009 15:07:53 +0000 (16:07 +0100)]
spelling++

15 years agoadd Paul to authors
Michael 'Mickey' Lauer [Wed, 21 Jan 2009 15:06:38 +0000 (16:06 +0100)]
add Paul to authors

15 years agorelease as 0.9.3 0.9.3
Michael 'Mickey' Lauer [Wed, 21 Jan 2009 14:46:53 +0000 (15:46 +0100)]
release as 0.9.3

15 years agosend org.freesmartphone.GSM.MUX.NoChannel, if AllocChannel fails
Michael 'Mickey' Lauer [Wed, 21 Jan 2009 14:46:10 +0000 (15:46 +0100)]
send org.freesmartphone.GSM.MUX.NoChannel, if AllocChannel fails

15 years agobring back closing the devices, otherwise the modem stays on
Michael 'Mickey' Lauer [Wed, 21 Jan 2009 14:45:53 +0000 (15:45 +0100)]
bring back closing the devices, otherwise the modem stays on

15 years agoreturn error message, if all channels are allocated
Michael 'Mickey' Lauer [Wed, 21 Jan 2009 13:47:54 +0000 (14:47 +0100)]
return error message, if all channels are allocated

15 years agoImplement proper channel allocation and dealloction
Paul Fertser [Tue, 20 Jan 2009 22:44:39 +0000 (01:44 +0300)]
Implement proper channel allocation and dealloction

With this patch the muxer will allocate channels in a clean way, it will
not return a pts until the modem is really ready to operate on this
channel.  It will also retry the command several times until the channel is
allocated.

Channel deallocation is also greatly improved, now we send a correct code to
close a channel and will repeat several times if the packet somehow (e.g.
modem was in power-saving state) lost.

15 years agorelease as 0.9.2.2 0.9.2.2
Michael 'Mickey' Lauer [Sat, 10 Jan 2009 00:31:29 +0000 (01:31 +0100)]
release as 0.9.2.2

15 years agoImplement write buffering for the ptys
root [Sun, 21 Dec 2008 22:21:22 +0000 (01:21 +0300)]
Implement write buffering for the ptys

If the receiving side of the pty is slow, the kernel pty buffer (of 4096
bytes) overflows and an unreported lossage occurs. This can be seen when
receiving a large SIM phonebook with busy frameworkd.

15 years agoimprove usage output and show version. patch courtesy Luca Capello <luca@pca.it>
Michael 'Mickey' Lauer [Thu, 18 Dec 2008 10:42:15 +0000 (11:42 +0100)]
improve usage output and show version. patch courtesy Luca Capello <luca@pca.it>

15 years agorelease 0.9.2.1
Michael 'Mickey' Lauer [Thu, 4 Dec 2008 23:32:50 +0000 (00:32 +0100)]
release 0.9.2.1

15 years agoFixed a bug with a 2048-sized transfer from modem 0.9.2.1
Paul Fertser [Thu, 4 Dec 2008 17:27:39 +0000 (20:27 +0300)]
Fixed a bug with a 2048-sized transfer from modem

As the circular buffer is used to hold the incoming data from the modem,
its free size must be one byte less than is actually available or we'll get
readp == writep and the buffer will be considered empty.

15 years ago(re)release gsm0710muxd version 0.9.2
Michael 'Mickey' Lauer [Tue, 16 Sep 2008 16:19:39 +0000 (18:19 +0200)]
(re)release gsm0710muxd version 0.9.2

15 years agogsm0710muxd: add more to TODO 0.9.2 milestone2
Michael 'Mickey' Lauer [Fri, 13 Jun 2008 09:29:33 +0000 (11:29 +0200)]
gsm0710muxd: add more to TODO

15 years agoMerge branch 'master' of git@git.freesmartphone.org:gsm0710muxd
Michael 'Mickey' Lauer [Thu, 5 Jun 2008 10:23:11 +0000 (12:23 +0200)]
Merge branch 'master' of git@git.freesmartphone.org:gsm0710muxd

15 years agoIncrease delay before talking to the modem
Jan Luebbe [Mon, 2 Jun 2008 19:08:15 +0000 (21:08 +0200)]
Increase delay before talking to the modem

This allows the muxer to work on preproduction GTA01Bv4 devices.

15 years agoMerge branch 'master' of git@git.freesmartphone.org:gsm0710muxd
Michael 'Mickey' Lauer [Tue, 27 May 2008 05:14:12 +0000 (07:14 +0200)]
Merge branch 'master' of git@git.freesmartphone.org:gsm0710muxd

15 years agoupdate TODO
Michael 'Mickey' Lauer [Tue, 27 May 2008 05:14:04 +0000 (07:14 +0200)]
update TODO

15 years agogsm0710muxd: add more TODO entries
Michael 'Mickey' Lauer [Fri, 23 May 2008 14:42:34 +0000 (16:42 +0200)]
gsm0710muxd: add more TODO entries

16 years agogsm0710muxd: add TODO file with things to take care of before 1.0 and 1.1
Michael 'Mickey' Lauer [Mon, 5 May 2008 23:13:44 +0000 (01:13 +0200)]
gsm0710muxd: add TODO file with things to take care of before 1.0 and 1.1

16 years agogsm0710muxd: add marcel in AUTHORS
Michael 'Mickey' Lauer [Sat, 3 May 2008 16:48:26 +0000 (18:48 +0200)]
gsm0710muxd: add marcel in AUTHORS

16 years agoinitial upload from freesmartphone.org SVN as per rev 295
Michael 'Mickey' Lauer [Sat, 3 May 2008 16:41:43 +0000 (18:41 +0200)]
initial upload from freesmartphone.org SVN as per rev 295