You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ma...@apache.org on 2017/10/27 20:18:52 UTC

[mynewt-newtmgr] branch master updated (bb86eb9 -> 8039e8c)

This is an automated email from the ASF dual-hosted git repository.

marko pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git.


    from bb86eb9  Merge pull request #45 from nvlsianpu/flush_ser_buf
     add 886ad84  nmxact; minimal support for running over lora with multitech gw.
     add 0db345c  newtmgr; minimal support for running with multitech gw.
     add 616040b  mtech_lora; allow callback to be registered to handle devices which are joining when lora gateway knows about them.
     add be94df4  mtech_lora; fix issues when re-opening closed session. Print only handled messages when debug logs are on.
     add 349a042  mtech_lora; add 'segsz=XXX' connstring knob to control how to fragment outgoing Coap LoRa frames. Default segment size is still 33.
     add 9d9c766  mtech_lora; add knob to connstring controlling whether to do lora confirmed or unconfirmed transmissions.
     add 1d9bba8  mtech_lora; rename send_fragments() -> sendFragments()
     new 8039e8c  Merge pull request #46 from mkiiskila/lora

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 newtmgr/cli/common.go                              |  14 ++
 newtmgr/config/connprofile.go                      |  20 +-
 .../{serial_config.go => mtech_lora_config.go}     |  65 ++---
 .../syscall_unix.go => nmxact/lora/lora_coap.go    |  18 +-
 nmxact/{nmble => mtech_lora}/listen.go             |  83 +++---
 nmxact/mtech_lora/mtech_lora_sesn.go               | 257 +++++++++++++++++++
 nmxact/mtech_lora/mtech_lora_xport.go              | 277 +++++++++++++++++++++
 nmxact/sesn/sesn_cfg.go                            |  12 +-
 8 files changed, 650 insertions(+), 96 deletions(-)
 copy newtmgr/config/{serial_config.go => mtech_lora_config.go} (52%)
 copy vendor/mynewt.apache.org/newt/util/unixchild/syscall_unix.go => nmxact/lora/lora_coap.go (83%)
 copy nmxact/{nmble => mtech_lora}/listen.go (70%)
 create mode 100644 nmxact/mtech_lora/mtech_lora_sesn.go
 create mode 100644 nmxact/mtech_lora/mtech_lora_xport.go

-- 
To stop receiving notification emails like this one, please contact
['"commits@mynewt.apache.org" <co...@mynewt.apache.org>'].

Re: [mynewt-newtmgr] 01/01: Merge pull request #46 from mkiiskila/lora

Posted by marko kiiskila <ma...@runtime.io>.
Probably should’ve mentioned: this code does do fragmentation/reassembly to fit
into lora frames (which might be quite limited).

> On Oct 27, 2017, at 1:40 PM, marko kiiskila <ma...@runtime.io> wrote:
> 
> Hi,
> 
> added CoAP over LoRa option when running on Multitech gateway.
> 
> root@mtcdt:~# ./newtmgr conn show mt
> Connection profiles: 
>   mt: type=oic_mtech, connstring=''
> root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 taskstat   
>       task pri tid  runtime      csw    stksz   stkuse last_checkin next_checkin
>       idle 255   0   481470     4337       64       31        0        0
>    loramac   0   2      551     3699      256       87        0        0
>       main 127   1       58     1386     1024      469        0        0
> root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 res get public /oic/res
> ^Croot@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 res get puic /oic/d  
> ^Croot@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 res get puic d     
> Error: NotFound (132)
> root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 res get public /oic/p
> /oic/p
> map[mnos:MyNewt rt:[oic.wk.p] if:[oic.if.r oic.if.baseline] p:5 pi:fd0edd1a-5de2-44d2-400f-74b9369db40d mnmn:MyNewt]
> root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 --connextra="segsz=33,confirmedtx=true" image list
> Images:
>  slot=0
>     version: 3.0.0
>     bootable: true
>     flags: active confirmed
>     hash: 2fb91d83abd0ea3c3a76c78462ccc287de60d83300a66c153af4a666adce6862
> Split status: N/A (0)
> root@mtcdt:~# lora-query --node-list 
> Net Addr     Dev EUI                  Class  Joined                Seq Num       Up     Down      1st      2nd  Dropped  RSSI min   max   avg  SNR min   max   avg
> 00:00:00:01  00-13-50-00-00-50-13-00  A      2017-06-23T00:20:40Z        1        0        0        0        0        0         0     0     0        0     0     0
> 00:00:00:02  00-13-50-02-02-50-13-00  A      2017-10-10T20:06:51Z       10        0        0        0        0        0         0     0     0        0     0     0
> 00:00:00:03  00-13-50-03-03-50-13-00  C      2017-10-26T23:33:21Z       28      483      520      426       94        0       -96   -40   -60     -1.8    13  10.6
> 00:00:00:04  00-13-50-04-04-50-13-00  C      2017-10-27T19:28:39Z      603     4995     6856     4986     1870        0       -83   -36   -54        5  14.5  10.5
> 
> connection parameter segsz controls the size of the frame sent out by the app, and
> confirmedtx=true|false controls whether gw uses lora confirmed vs unconfirmed frames.
> 
> —name option is the deveui.
> 
> 
> 
>> Begin forwarded message:
>> 
>> From: marko@apache.org <ma...@apache.org>
>> Subject: [mynewt-newtmgr] 01/01: Merge pull request #46 from mkiiskila/lora
>> Date: October 27, 2017 at 1:18:53 PM PDT
>> To: "commits@mynewt.apache.org <ma...@mynewt.apache.org>" <commits@mynewt.apache.org <ma...@mynewt.apache.org>>
>> Reply-To: dev@mynewt.apache.org <ma...@mynewt.apache.org>
>> 
>> This is an automated email from the ASF dual-hosted git repository.
>> 
>> marko pushed a commit to branch master
>> in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git <https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git>
>> 
>> commit 8039e8cf1c823e894a0ae8f4a439774165cbb27c
>> Merge: bb86eb9 1d9bba8
>> Author: mkiiskila <marko@runtime.io <ma...@runtime.io>>
>> AuthorDate: Fri Oct 27 13:18:51 2017 -0700
>> 
>>    Merge pull request #46 from mkiiskila/lora
>> 
>>    OIC over Lora
>> 
>> newtmgr/cli/common.go                 |  14 ++
>> newtmgr/config/connprofile.go         |  20 +--
>> newtmgr/config/mtech_lora_config.go   |  87 +++++++++++
>> nmxact/lora/lora_coap.go              |  31 ++++
>> nmxact/mtech_lora/listen.go           | 201 ++++++++++++++++++++++++
>> nmxact/mtech_lora/mtech_lora_sesn.go  | 257 +++++++++++++++++++++++++++++++
>> nmxact/mtech_lora/mtech_lora_xport.go | 277 ++++++++++++++++++++++++++++++++++
>> nmxact/sesn/sesn_cfg.go               |  12 +-
>> 8 files changed, 889 insertions(+), 10 deletions(-)
>> 
>> -- 
>> To stop receiving notification emails like this one, please contact
>> "commits@mynewt.apache.org <ma...@mynewt.apache.org>" <commits@mynewt.apache.org <ma...@mynewt.apache.org>>.
> 


Fwd: [mynewt-newtmgr] 01/01: Merge pull request #46 from mkiiskila/lora

Posted by marko kiiskila <ma...@runtime.io>.
Hi,

added CoAP over LoRa option when running on Multitech gateway.

root@mtcdt:~# ./newtmgr conn show mt
Connection profiles: 
  mt: type=oic_mtech, connstring=''
root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 taskstat   
      task pri tid  runtime      csw    stksz   stkuse last_checkin next_checkin
      idle 255   0   481470     4337       64       31        0        0
   loramac   0   2      551     3699      256       87        0        0
      main 127   1       58     1386     1024      469        0        0
root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 res get public /oic/res
^Croot@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 res get puic /oic/d  
^Croot@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 res get puic d     
Error: NotFound (132)
root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 res get public /oic/p
/oic/p
map[mnos:MyNewt rt:[oic.wk.p] if:[oic.if.r oic.if.baseline] p:5 pi:fd0edd1a-5de2-44d2-400f-74b9369db40d mnmn:MyNewt]
root@mtcdt:~# ./newtmgr -c mt -t 120 --name 00-13-50-04-04-50-13-00 --connextra="segsz=33,confirmedtx=true" image list
Images:
 slot=0
    version: 3.0.0
    bootable: true
    flags: active confirmed
    hash: 2fb91d83abd0ea3c3a76c78462ccc287de60d83300a66c153af4a666adce6862
Split status: N/A (0)
root@mtcdt:~# lora-query --node-list 
Net Addr     Dev EUI                  Class  Joined                Seq Num       Up     Down      1st      2nd  Dropped  RSSI min   max   avg  SNR min   max   avg
00:00:00:01  00-13-50-00-00-50-13-00  A      2017-06-23T00:20:40Z        1        0        0        0        0        0         0     0     0        0     0     0
00:00:00:02  00-13-50-02-02-50-13-00  A      2017-10-10T20:06:51Z       10        0        0        0        0        0         0     0     0        0     0     0
00:00:00:03  00-13-50-03-03-50-13-00  C      2017-10-26T23:33:21Z       28      483      520      426       94        0       -96   -40   -60     -1.8    13  10.6
00:00:00:04  00-13-50-04-04-50-13-00  C      2017-10-27T19:28:39Z      603     4995     6856     4986     1870        0       -83   -36   -54        5  14.5  10.5

connection parameter segsz controls the size of the frame sent out by the app, and
confirmedtx=true|false controls whether gw uses lora confirmed vs unconfirmed frames.

—name option is the deveui.



> Begin forwarded message:
> 
> From: marko@apache.org
> Subject: [mynewt-newtmgr] 01/01: Merge pull request #46 from mkiiskila/lora
> Date: October 27, 2017 at 1:18:53 PM PDT
> To: "commits@mynewt.apache.org" <co...@mynewt.apache.org>
> Reply-To: dev@mynewt.apache.org
> 
> This is an automated email from the ASF dual-hosted git repository.
> 
> marko pushed a commit to branch master
> in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git
> 
> commit 8039e8cf1c823e894a0ae8f4a439774165cbb27c
> Merge: bb86eb9 1d9bba8
> Author: mkiiskila <ma...@runtime.io>
> AuthorDate: Fri Oct 27 13:18:51 2017 -0700
> 
>    Merge pull request #46 from mkiiskila/lora
> 
>    OIC over Lora
> 
> newtmgr/cli/common.go                 |  14 ++
> newtmgr/config/connprofile.go         |  20 +--
> newtmgr/config/mtech_lora_config.go   |  87 +++++++++++
> nmxact/lora/lora_coap.go              |  31 ++++
> nmxact/mtech_lora/listen.go           | 201 ++++++++++++++++++++++++
> nmxact/mtech_lora/mtech_lora_sesn.go  | 257 +++++++++++++++++++++++++++++++
> nmxact/mtech_lora/mtech_lora_xport.go | 277 ++++++++++++++++++++++++++++++++++
> nmxact/sesn/sesn_cfg.go               |  12 +-
> 8 files changed, 889 insertions(+), 10 deletions(-)
> 
> -- 
> To stop receiving notification emails like this one, please contact
> "commits@mynewt.apache.org" <co...@mynewt.apache.org>.


[mynewt-newtmgr] 01/01: Merge pull request #46 from mkiiskila/lora

Posted by ma...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

marko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newtmgr.git

commit 8039e8cf1c823e894a0ae8f4a439774165cbb27c
Merge: bb86eb9 1d9bba8
Author: mkiiskila <ma...@runtime.io>
AuthorDate: Fri Oct 27 13:18:51 2017 -0700

    Merge pull request #46 from mkiiskila/lora
    
    OIC over Lora

 newtmgr/cli/common.go                 |  14 ++
 newtmgr/config/connprofile.go         |  20 +--
 newtmgr/config/mtech_lora_config.go   |  87 +++++++++++
 nmxact/lora/lora_coap.go              |  31 ++++
 nmxact/mtech_lora/listen.go           | 201 ++++++++++++++++++++++++
 nmxact/mtech_lora/mtech_lora_sesn.go  | 257 +++++++++++++++++++++++++++++++
 nmxact/mtech_lora/mtech_lora_xport.go | 277 ++++++++++++++++++++++++++++++++++
 nmxact/sesn/sesn_cfg.go               |  12 +-
 8 files changed, 889 insertions(+), 10 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
"commits@mynewt.apache.org" <co...@mynewt.apache.org>.