cdmaphonesim: Add CDMA SMS Support
PATCH 4/5 cdmaphonesim: Add CDMA SMS Support
--- Makefile.am | 9 ++ configure.ac | 6 + plugins/cdmaphonesim.c | 344 +++++++++++++++++++++++++++++++++++++++++++++ plugins/cdmaphonesim.conf | 14 ++ 4 files changed, 373 insertions(+), 0 deletions(-) create mode 100644 plugins/cdmaphonesim.c create mode 100644 plugins/cdmaphonesim.conf
Makefile.am +9 -0
@@ -249,6 +249,15 @@ builtin_sources += drivers/cdma-atmodem/atmodem.h \ drivers/cdma-atmodem/sms.c endif +if CDMAPHONESIM +builtin_modules += cdmaphonesim +builtin_sources += plugins/cdmaphonesim.c + +if DATAFILES +conf_DATA += plugins/cdmaphonesim.conf +endif +endif + builtin_modules += g1 builtin_sources += plugins/g1.c
configure.ac +6 -0
@@ -171,6 +171,12 @@ AC_ARG_ENABLE(cdmaatmodem, AC_HELP_STRING([--disable-cdma-atmodem], [enable_cdma_atmodem=${enableval}]) AM_CONDITIONAL(CDMA_ATMODEM, test "${enable_cdma_atmodem}" != "no") +AC_ARG_ENABLE(cdmaphonesim, AC_HELP_STRING([--disable-cdma-phonesim], + [disable CDMA Phone simulator support]), + [enable_cdma_phonesim=${enableval}]) +AM_CONDITIONAL(CDMAPHONESIM, test "${enable_cdma-phonesim}" != "no" && + test "${enable_cdma_atmodem}" != "no") + AC_ARG_ENABLE(isimodem, AC_HELP_STRING([--disable-isimodem], [disable PhoNet/ISI modem support]), [enable_isimodem=${enableval}])
plugins/cdmaphonesim.c new file +344 -0
344 lines not on this page · raw message
plugins/cdmaphonesim.conf new file +14 -0
@@ -0,0 +1,14 @@ +# This is a sample file for the cdmaphonesim configuration +# +# It should be installed in your oFono system directory, +# e.g. /etc/ofono/cdmaphonesim.conf +# +# Each group is parsed as a modem device +# +# Each group shall@least define the address and port +# Address = <valid IPv4 address format> +# Port = <valid TCP port> + +#[cdmaphonesim] +#Address=127.0.0.1 +#Port=12345
Signature · 1 line
1.7.0.4
Hi Lei,
Quoted 9 lines · Lei Yu
--- Makefile.am | 9 ++ configure.ac | 6 + plugins/cdmaphonesim.c | 344 +++++++++++++++++++++++++++++++++++++++++++++ plugins/cdmaphonesim.conf | 14 ++ 4 files changed, 373 insertions(+), 0 deletions(-) create mode 100644 plugins/cdmaphonesim.c create mode 100644 plugins/cdmaphonesim.conf
Have you considered adding a CDMA/GSM selector to phonesim.conf instead?
So e.g. a new configuration key called 'Type' where type can be 'gsm'
or 'cdma'.
That way you can share much of the phonesim plugin plumbing and only populate the atoms differently...
Regards,
-Denis
Hi Denis,
Quoted 13 lines · ext Denis Kenzior
Hi Lei,
Quoted 9 lines · Lei Yu
--- Makefile.am | 9 ++ configure.ac | 6 + plugins/cdmaphonesim.c | 344 +++++++++++++++++++++++++++++++++++++++++++++ plugins/cdmaphonesim.conf | 14 ++ 4 files changed, 373 insertions(+), 0 deletions(-)create mode 100644
plugins/cdmaphonesim.c
create mode 100644plugins/cdmaphonesim.conf
Quoted 7 lines
Have you considered adding a CDMA/GSM selector to phonesim.conf instead?
So e.g. a new configuration key called 'Type' where type can be 'gsm'
or 'cdma'.That way you can share much of the phonesim plugin plumbing and only populate the atoms differently...
We thought about this briefly but decided not pursuing that path at this stage of CDMA development mainly due to following reasons: a). We think it may make more sense to let CDMA development evolving a bit more on its own and then evaluate to see for which part it makes sense to merge. We are afraid merging too early will make the phonesim.c code looking ugly with a lot of if/else down the road. We are planning to evaluate things like this when we have at least a few CDMA atoms implemented. b). We definitely would like to cause as little disruption to GSM as possible at this stage of CDMA development.
I am definitely looking forward to hearing more from you and other people and open for any changes.
Quoted 2 lines
Regards,
-Denis
Regards,
Lei
Hi Lei,
Quoted 9 lines
Quoted 8 lines
Have you considered adding a CDMA/GSM selector to phonesim.conf instead?
So e.g. a new configuration key called 'Type' where type can be 'gsm'
or 'cdma'.That way you can share much of the phonesim plugin plumbing and only populate the atoms differently...
Quoted 9 lines
We thought about this briefly but decided not pursuing that path at this stage of CDMA development mainly due to following reasons: a). We think it may make more sense to let CDMA development evolving a bit more on its own and then evaluate to see for which part it makes sense to merge. We are afraid merging too early will make the
phonesim.ccode looking ugly with a lot of if/else down the road. We are planning to evaluate things like this when we have at least a few CDMA atoms implemented. b). We definitely would like to cause as little disruption to GSM as possible at this stage of CDMA development.
Ok I'm still waffling on this one but I can accept a temporary cdma phonesim plugin for now.
Can you make sure to strip it down some more? For instance you can omit Multiplexer and Modem configure key handling.
And having a separate configure option for cdma phonesim seems unneeded.
Lump this one with --enable-phonesim.
Regards,
-Denis
Quoted 21 lines · ext Denis Kenzior
Hi Lei,
Quoted 9 lines
Quoted 8 lines
Have you considered adding a CDMA/GSM selector to phonesim.conf instead?
So e.g. a new configuration key called 'Type' where type can be 'gsm'
or 'cdma'.That way you can share much of the phonesim plugin plumbing and only populate the atoms differently...
Quoted 9 lines
We thought about this briefly but decided not pursuing that path at this stage of CDMA development mainly due to following reasons: a). We think it may make more sense to let CDMA development evolving a bit more on its own and then evaluate to see for which part it makes sense to merge. We are afraid merging too early will make the
phonesim.ccode looking ugly with a lot of if/else down the road. We are planning to evaluate things like this when we have at least a few CDMA atoms implemented. b). We definitely would like to cause as little disruption to GSM as possible at this stage of CDMA development.
Quoted 3 lines
Ok I'm still waffling on this one but I can accept a temporary cdma phonesim plugin for now.
As you can see I am also waffling on this. :-) I will stick with separate cdma phonesim plugin for now.
Quoted 3 lines
Can you make sure to strip it down some more? For instance you can omit Multiplexer and Modem configure key handling.
Yes, I will strip it down more.
Quoted 3 lines
And having a separate configure option for cdma phonesim seems unneeded.
Lump this one with --enable-phonesim.
Yes, I will do this.
Quoted 2 lines
Regards,
-Denis
Regards,
Lei