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: 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: "comm...@mynewt.apache.org" <comm...@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
> "comm...@mynewt.apache.org" <comm...@mynewt.apache.org>.

Reply via email to