osmocom-bb.git branch master updated. osmocon_v0.0.0-1884-gedb65f91

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/osmocom-commitlog@lists.osmocom.org/.

gitosis at osmocom.org gitosis at osmocom.org
Sun Dec 3 18:09:57 UTC 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The Open Source GSM Base Band stack".

The branch, master has been updated
       via  edb65f915f24fbd6611a343c99aba83ac3867b89 (commit)
       via  50869b91469122a82554c34dc7a83025c7a2d1dd (commit)
       via  44c19326f38e9001b55723eb41f61de9e29e4175 (commit)
       via  4080e622b7661c0f2305c3d4d84021a456a76ceb (commit)
       via  32dec4236e5bf3753bd84715d5e099272ea5d481 (commit)
       via  63100e308c71517311559e501a7a18179c9ff2d8 (commit)
       via  f976ad9dc41ae14919c9923fc82ba747b1dd181c (commit)
       via  714cb53282c89d50055a17b67047d50b03d69521 (commit)
       via  88060f462cde2e3e6f4fc3cbf9c3708083e27dac (commit)
       via  a8726d977a67459e7bf314b4b69283f65e45cbf0 (commit)
       via  04754e88899c58051ef1a0b0602261f033609dce (commit)
      from  d2cdf93b53ce3eb4714c3c97a5467e3dc455112b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cgit.osmocom.org/osmocom-bb/commit/?id=edb65f915f24fbd6611a343c99aba83ac3867b89

commit edb65f915f24fbd6611a343c99aba83ac3867b89
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Wed Nov 29 11:51:27 2017 +0800

    mobile: Use new LOGPSRCC macro to print multiple values
    
    We need continuation to avoid printing the logging category
    again. E.g. when print(one, two, three) is called.
    
    Change-Id: Id8491fa949768f170a8c74ab554cb1166afda1b7

http://cgit.osmocom.org/osmocom-bb/commit/?id=50869b91469122a82554c34dc7a83025c7a2d1dd

commit 50869b91469122a82554c34dc7a83025c7a2d1dd
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Mon Nov 13 10:36:18 2017 +0100

    mobile: Create "ms" singleton for struct osmocom_ms
    
    Make the MS the script is associated with accessible to lua. Provide
    access to IMSI and IMEI. The IMSI might not be available at the given
    time and just return an empty string.
    
    Example lua usage:
    
     print(osmo.ms():imsi());
     print(osmo.ms():imei());
     print(osmo.ms():shutdown_state())
     print(osmo.ms():started())
    
     function ms_started_cb(started)
            print("MS started", started)
     end
    
     function ms_shutdown_cb(old_state, new_state)
            print("MS shutdown", old_state, "->", new_state)
     end
    
     function sms_cb(sms, cause, valid)
            print("SMS data cb", sms, cause, valid)
            for i, v in pairs(sms) do
                    print(i, v)
            end
     end
     function mm_cb(new_state, new_substate, old_substate)
            if new_state == 19 and new_substate == 1 then
                    osmo.ms():sms_send_simple("1234", "21321324", "fooooooo", 23)
            end
     end
     local cbs = {
            Started=ms_started_cb,
            Shutdown=ms_shutdown_cb,
            Sms=sms_cb,
            Mm=mm_cb
     }
    
     timer = osmo.timeout(20, function()
        print("Timeout occurred after 20s")
     end)
    
     osmo.ms():register(cbs)
    
     # Can fail. Best to wait for state changes...
     print(osmo.ms().start())
     print(osmo.ms().stop(true))
    
    Change-Id: Ia3ace33d6ba4e904b1ff8e271a02d67777334a58

http://cgit.osmocom.org/osmocom-bb/commit/?id=44c19326f38e9001b55723eb41f61de9e29e4175

commit 44c19326f38e9001b55723eb41f61de9e29e4175
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Wed Nov 15 12:20:04 2017 +0800

    mobile: Add osmo.timeout for lua code to have timeouts
    
    Allow to callback into lua code after a user configured timeout. Make
    it only work on seconds (truncate double to int).
    
    Change-Id: I355d2f8d15aeaa13abb1c5e4a8e0c958e5faf7f3

http://cgit.osmocom.org/osmocom-bb/commit/?id=4080e622b7661c0f2305c3d4d84021a456a76ceb

commit 4080e622b7661c0f2305c3d4d84021a456a76ceb
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Wed Nov 8 14:59:06 2017 +0100

    mobile: Add initial support for scripting support
    
    Right now the script will be executed once it is loaded. Make sure
    to write it into the config file last. Expose various log commands
    for logging. Jump through some hoops and get the filename and line
    number from lua.
    
    Change-Id: I456f6b6b5e1a14ed6c8cb0dcc5140093d3c61ef6

http://cgit.osmocom.org/osmocom-bb/commit/?id=32dec4236e5bf3753bd84715d5e099272ea5d481

commit 32dec4236e5bf3753bd84715d5e099272ea5d481
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Wed Nov 8 14:40:36 2017 +0100

    mobile: Add LUA as debug category to the applications
    
    Change-Id: Id2d266c48d30c06dfdc3b8c84d875038b43f2ad8

http://cgit.osmocom.org/osmocom-bb/commit/?id=63100e308c71517311559e501a7a18179c9ff2d8

commit 63100e308c71517311559e501a7a18179c9ff2d8
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Wed Nov 8 08:32:18 2017 +0100

    mobile: Search for lua5.3 and link to it
    
    I will be adding a high-level async scripting interface to the
    mobile application. The initial implementation will use Lua 5.3.
    This version was released in January 2015 and is the latest version
    at the time the commit was made. Lua as extension and extensible
    language seems well suited for scripting.
    
    The plan is to attach a script to a ms and be able to trigger high
    level operations (send SMS, attach to network, detach).
    
    Change-Id: Ic649e49a22c878585a6c20b5b80108909f2374eb

http://cgit.osmocom.org/osmocom-bb/commit/?id=f976ad9dc41ae14919c9923fc82ba747b1dd181c

commit f976ad9dc41ae14919c9923fc82ba747b1dd181c
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Wed Nov 29 17:43:22 2017 +0800

    mobile: Notify MM status changes and generate primitive op ind
    
    Notify once the mm state has been changed. Unfortunaley one state
    transition can immediately trigger more transitions (recursively).
    In the mid-term it might be best to force all primitives to be
    async to avoid unpredictable behavior (e.g. make a shutdown while
    being a recursion down?)
    
    Change-Id: I8e9dcf7fd9116985aa060ba027ba74107a19223a

http://cgit.osmocom.org/osmocom-bb/commit/?id=714cb53282c89d50055a17b67047d50b03d69521

commit 714cb53282c89d50055a17b67047d50b03d69521
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Fri Nov 17 15:45:12 2017 +0100

    mobile: Inform the primitive layer about status and new sms
    
    Inform the layer about new SMS and inform about the cause of
    it. In both cases pass the SMS.
    
    Change-Id: Ib7ab34b1b85b62ef0e8fff347adccbc5dc414161

http://cgit.osmocom.org/osmocom-bb/commit/?id=88060f462cde2e3e6f4fc3cbf9c3708083e27dac

commit 88060f462cde2e3e6f4fc3cbf9c3708083e27dac
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Thu Nov 16 08:17:34 2017 +0100

    mobile: Directly inform the primitive layer about an event
    
    Forward started/shutdown changes to the primitive layer which will
    turn them into indications. The other option might be to use the
    signals but it seems primitives are a superset of the signals.
    
    The notify will be done per MS and then the right primitive
    instance will be searched and the indication be sent. The approach
    will be applied to other systems as well.
    
    The signal framework might be seen as
    a subset of the primitives A signal mostly being a different form
    of an indication.
    
    Change-Id: I5df20a4ab79c06b515780675b6df2929aa976f0d

http://cgit.osmocom.org/osmocom-bb/commit/?id=a8726d977a67459e7bf314b4b69283f65e45cbf0

commit a8726d977a67459e7bf314b4b69283f65e45cbf0
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Thu Nov 9 09:15:37 2017 +0100

    mobile: Begin with a primitive interface on top of the code
    
    We want the script interface to interface through a primitive
    interface. This will allow to move it to a different thread or
    a process in the future. The script interface will just use the
    primitives.
    
    It is not clear how "sap" will be used here. I am keeping it
    at 0 right now. The first primitive is starting a timer with a
    request and then getting an indication as a response.
    
    Change-Id: Id2456b7fae35546553c4805f12a40c0812d9255c

http://cgit.osmocom.org/osmocom-bb/commit/?id=04754e88899c58051ef1a0b0602261f033609dce

commit 04754e88899c58051ef1a0b0602261f033609dce
Author: Holger Hans Peter Freyther <holger at moiji-mobile.com>
Date:   Wed Nov 29 14:35:40 2017 +0800

    mobile: Move starting/stopping a MS into a separate function
    
    Move the check if within the mobile app there is no other active
    MS using the same L1 socket. This way we can call this function
    from the primitive code as well.
    
    Change-Id: Ib4aa5ff212fa6bead8f620abaecc6a0b51a99fec

-----------------------------------------------------------------------

Summary of changes:
 src/host/layer23/configure.ac                      |   7 +
 .../layer23/include/osmocom/bb/common/logging.h    |   2 +
 .../include/osmocom/bb/common/osmocom_data.h       |   4 +
 .../layer23/include/osmocom/bb/mobile/Makefile.am  |   2 +-
 .../layer23/include/osmocom/bb/mobile/app_mobile.h |  11 +-
 .../layer23/include/osmocom/bb/mobile/gsm411_sms.h |   6 +
 .../layer23/include/osmocom/bb/mobile/primitives.h | 100 ++++
 src/host/layer23/src/common/logging.c              |  12 +
 src/host/layer23/src/mobile/Makefile.am            |  14 +-
 src/host/layer23/src/mobile/app_mobile.c           |  53 +-
 src/host/layer23/src/mobile/gsm411_sms.c           |   4 +
 src/host/layer23/src/mobile/gsm48_mm.c             |   2 +
 src/host/layer23/src/mobile/main.c                 |   2 +-
 src/host/layer23/src/mobile/primitives.c           | 194 ++++++++
 src/host/layer23/src/mobile/script_lua.c           | 542 +++++++++++++++++++++
 .../layer23/src/mobile/script_nolua.c}             |  24 +-
 src/host/layer23/src/mobile/settings.c             |   3 +
 src/host/layer23/src/mobile/vty_interface.c        |  79 +--
 18 files changed, 1009 insertions(+), 52 deletions(-)
 create mode 100644 src/host/layer23/include/osmocom/bb/mobile/primitives.h
 create mode 100644 src/host/layer23/src/mobile/primitives.c
 create mode 100644 src/host/layer23/src/mobile/script_lua.c
 copy src/{target/firmware/include/calypso/du.h => host/layer23/src/mobile/script_nolua.c} (66%)


hooks/post-receive
-- 
The Open Source GSM Base Band stack



More information about the osmocom-commitlog mailing list