Code Monkey home page Code Monkey logo

Comments (8)

tridge avatar tridge commented on May 24, 2024

this is harder to do than you might think, as MAVLink doesn't support string parameters, and we don't have string parameter storage in APM.
We will fix this eventually, but it won't be soon!

from ardupilot.

monkeypants avatar monkeypants commented on May 24, 2024

What about using a pair of numbers then?

  • owner / manufacturer ID
  • owner's chosen number / manufacturer serial number

Owner's/manufacturers could be associated with a URL, and the URL could tell you how to interpret the chosen number (eg. resolve it to a name). For example, there might be a URL and numeric ID associated with accounts at DIYDrones.org, plus an interface that returns the URL given the account ID number.

Then, someone who cares about this feature could maintain a table at their URL mapping names to ids. Application code (e.g. GCS) could fetch the info when they need it, and fall back to using use the composite id {owner, number} if required (e.g. none of the other stuff is implemented yet).

from ardupilot.

arthurbenemann avatar arthurbenemann commented on May 24, 2024

Maybe using the following (common.xml) mavlink message:

<message id="7" name="AUTH_KEY">
    <description>Emit an encrypted signature / key identifying this system. PLEASE NOTE: This protocol has been kept simple, so transmitting the key requires an encrypted channel for true safety.</description>
    <field type="char[32]" name="key">key</field>
</message>

It would be great if each board had a unique serial number.

from ardupilot.

pchickey avatar pchickey commented on May 24, 2024

The problem isn't that the mavlink protocol doesn't support strings, but
rather that ArduPilot's parameter system, which stores values in EEPROM,
does not support strings.

On Mon, Mar 11, 2013 at 2:16 PM, Arthur Benemann
[email protected]:

Maybe using the following (common.xml) mavlink message:

Emit an encrypted signature / key identifying this system. PLEASE NOTE: This protocol has been kept simple, so transmitting the key requires an encrypted channel for true safety. key

It would be great if each board had a unique serial number.


Reply to this email directly or view it on GitHubhttps://github.com//issues/57#issuecomment-14743218
.

from ardupilot.

chapman avatar chapman commented on May 24, 2024

So make it a number, and have the GCS maintain a map of number to name? Is there an existing UID that could be used for a key in such a map, rather than adding one?

from ardupilot.

rmackay9 avatar rmackay9 commented on May 24, 2024

the pixhawks chip has a unique id built into the cpu i hear.

from ardupilot.

meee1 avatar meee1 commented on May 24, 2024

currently that's only viewable from the bootloader

from ardupilot.

rmackay9 avatar rmackay9 commented on May 24, 2024

You can't name the boards but you can set the SYSID_THISMAV parameter.
When you download logs, the MP apparently uses this param and puts the logs in separate directories.

from ardupilot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.