Re: missing "newtmgr/newtmgr.h"

2020-08-14 Thread Łukasz Rymanowski
Hi Ondrej,

I think you should look into apache-mynewt-core/mgmt/smp
I think it is now smp_transport_init() but I'm not sure.

Best
Łukasz

On Fri, 14 Aug 2020 at 10:48, Ondrej Pilat  wrote:

> Hi Łukasz,
>
> Is there a porting manual from newtmgr API to mcumgr?
>
> We are using nmgr_transport_init and newtmgr_process what are mcumgr
> equivalents?
>
> Regards
>
> Ondrej
> Dne 8/14/2020 v 9:46 AM Łukasz Rymanowski napsal(a):
>
> Hi Ondrej,
>
> Newtmgr has been removed as we moved to mcumgr (
> https://github.com/apache/mynewt-mcumgr) , which is basically an
> extracted version of newtmgr.
> It is in release notes:
> https://cwiki.apache.org/confluence/display/MYNEWT/RN-1.8.0
>
> Best
> Łukasz
>
>
> On Fri, 14 Aug 2020 at 09:32, Ondrej Pilat 
> wrote:
>
>> Hi all,
>>
>> we used newtmgr in application for image update and its management. When
>> we upgrade apache-mynewt-core to the latest version 1.8.0 newtmgr.h and
>> newtmgr.c is missing. What we should use instead or why newtmgr support was
>> removed from the 1.8.0?
>>
>> We need to upgrade apache-mynewt-core because 1.7.0 isn't compatible with
>> the latest changes in the tinyusb repo (nrf52 USB API changed).
>>
>> Best regards
>>
>> Ondrej Pilat
>> --
>>
> --
>


Re: missing "newtmgr/newtmgr.h"

2020-08-14 Thread Ondrej Pilat
Hi Łukasz,

Is there a porting manual from newtmgr API to mcumgr?

We are using nmgr_transport_init and newtmgr_process what are mcumgr
equivalents?

Regards

Ondrej

Dne 8/14/2020 v 9:46 AM Łukasz Rymanowski napsal(a):
> Hi Ondrej,
>
> Newtmgr has been removed as we moved to mcumgr
> (https://github.com/apache/mynewt-mcumgr) , which is basically an
> extracted version of newtmgr.
> It is in release notes:
> https://cwiki.apache.org/confluence/display/MYNEWT/RN-1.8.0
>
> Best
> Łukasz
>
>
> On Fri, 14 Aug 2020 at 09:32, Ondrej Pilat  > wrote:
>
> Hi all,
>
> we used newtmgr in application for image update and its
> management. When we upgrade apache-mynewt-core to the latest
> version 1.8.0 newtmgr.h and newtmgr.c is missing. What we should
> use instead or why newtmgr support was removed from the 1.8.0?
>
> We need to upgrade apache-mynewt-core because 1.7.0 isn't
> compatible with the latest changes in the tinyusb repo (nrf52 USB
> API changed).
>
> Best regards
>
> Ondrej Pilat
>
> -- 
>
-- 


signature.asc
Description: OpenPGP digital signature


Re: missing "newtmgr/newtmgr.h"

2020-08-14 Thread Ondrej Pilat
Hi Łukasz,

thank you for explanation.

Is there a documentation describing  the NMP (plain newtmgr protocol)? I
know that CBOR is well defined RFC standard but what about 8B header? I
can only find mcumgr source code.

Best regards

Ondrej

Dne 8/14/2020 v 9:46 AM Łukasz Rymanowski napsal(a):
> Hi Ondrej,
>
> Newtmgr has been removed as we moved to mcumgr
> (https://github.com/apache/mynewt-mcumgr) , which is basically an
> extracted version of newtmgr.
> It is in release notes:
> https://cwiki.apache.org/confluence/display/MYNEWT/RN-1.8.0
>
> Best
> Łukasz
>
>
> On Fri, 14 Aug 2020 at 09:32, Ondrej Pilat  > wrote:
>
> Hi all,
>
> we used newtmgr in application for image update and its
> management. When we upgrade apache-mynewt-core to the latest
> version 1.8.0 newtmgr.h and newtmgr.c is missing. What we should
> use instead or why newtmgr support was removed from the 1.8.0?
>
> We need to upgrade apache-mynewt-core because 1.7.0 isn't
> compatible with the latest changes in the tinyusb repo (nrf52 USB
> API changed).
>
> Best regards
>
> Ondrej Pilat
>
> -- 
>
-- 


signature.asc
Description: OpenPGP digital signature


Re: missing "newtmgr/newtmgr.h"

2020-08-14 Thread Łukasz Rymanowski
Hi Ondrej,

Newtmgr has been removed as we moved to mcumgr (
https://github.com/apache/mynewt-mcumgr) , which is basically an
extracted version of newtmgr.
It is in release notes:
https://cwiki.apache.org/confluence/display/MYNEWT/RN-1.8.0

Best
Łukasz


On Fri, 14 Aug 2020 at 09:32, Ondrej Pilat  wrote:

> Hi all,
>
> we used newtmgr in application for image update and its management. When
> we upgrade apache-mynewt-core to the latest version 1.8.0 newtmgr.h and
> newtmgr.c is missing. What we should use instead or why newtmgr support was
> removed from the 1.8.0?
>
> We need to upgrade apache-mynewt-core because 1.7.0 isn't compatible with
> the latest changes in the tinyusb repo (nrf52 USB API changed).
>
> Best regards
>
> Ondrej Pilat
> --
>


missing "newtmgr/newtmgr.h"

2020-08-14 Thread Ondrej Pilat
Hi all,

we used newtmgr in application for image update and its management. When
we upgrade apache-mynewt-core to the latest version 1.8.0 newtmgr.h and
newtmgr.c is missing. What we should use instead or why newtmgr support
was removed from the 1.8.0?

We need to upgrade apache-mynewt-core because 1.7.0 isn't compatible
with the latest changes in the tinyusb repo (nrf52 USB API changed).

Best regards

Ondrej Pilat

-- 
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
# 
#  http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#

project.name: "my_project"

project.repositories:
- apache-mynewt-core
- tinyusb

# Use github's distribution mechanism for core ASF libraries.
# This provides mirroring automatically for us.
#
repository.apache-mynewt-core:
type: github
vers: 1.8.0
user: apache
repo: mynewt-core

repository.tinyusb:
type: github
vers: c39dc03331683167be3c2a6ca59a4ee8e6e6620d-commit
user: hathach
repo: tinyusb

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#  http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.
#
pkg.name: apps/blecent
pkg.type: app
pkg.description: Simple BLE central application.
pkg.author: "Apache Mynewt "
pkg.homepage: "http://mynewt.apache.org/;
pkg.keywords:
- usb

pkg.deps:
- "@apache-mynewt-core/kernel/os"
- "@apache-mynewt-core/sys/console/stub"
- "@apache-mynewt-nimble/nimble/controller"
- "@apache-mynewt-nimble/nimble/host"
- "@apache-mynewt-nimble/nimble/host/util"
- "@apache-mynewt-nimble/nimble/host/services/gap"
- "@apache-mynewt-nimble/nimble/host/services/gatt"
- "@apache-mynewt-nimble/nimble/host/store/ram"
- "@apache-mynewt-nimble/nimble/transport/ram"

- "@apache-mynewt-core/fs/fs" # include the file operations 
interfaces
- "@apache-mynewt-core/fs/nffs"   # include the NFFS filesystem 
implementation

- "@apache-mynewt-core/mgmt/smp"
- "@apache-mynewt-core/mgmt/imgmgr"
#- "@apache-mynewt-core/mgmt/newtmgr/transport/ble"
 
- "@apache-mynewt-core/sys/log/full"
- "@apache-mynewt-core/sys/stats/full"
- "@apache-mynewt-core/sys/reboot"
- "@apache-mynewt-core/sys/config"
- "@apache-mynewt-core/sys/id"
   # - "@apache-mynewt-core/test/crash_test"
   # - "@apache-mynewt-core/test/runtest"
- "@mcuboot/boot/bootutil"

- "@apache-mynewt-core/hw/hal"
- "@tinyusb/tinyusb"

pkg.cflags: 
- "-I@tinyusb/src"


pkg.lflags:
- "-lm"


signature.asc
Description: OpenPGP digital signature