Git Product home page Git Product logo

mcci-catena-provision's People

Contributors

sivaprakash-mcci avatar svelmurugan92 avatar terrillmoore avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

mcci-catena-provision's Issues

Add inter-character delay for serial-port-based provisioning

Catena 4801 devices, when running at slow clock rates and provisioning via a real UART, can't keep up. When using Tera Term, we set the inter character delay to 1ms. We should allow a delay (via command line) -- or just always insert it.

Track evolution of version output

The published version of this inadvertently used "Platform-version" rather than the official "Platform-Version" string from the Catena-Arduino-Platform system version command. Correct it.

Finish Python conversion

  • Remove bright.exe
  • Remove '*.bri'
  • Update docs to remove discussion of bright and focus on the python scripts.

Thanks!

Add MCCI headers to Python scripts.

I'd like us to follow MCCI style on Python scripts for commenting.

Like this:

#!/usr/bin/env python3

##############################################################################
#
# Module:  {{fjlename}}.py
#
# Function:
#   {{one-line description}}
#
# Copyright and License:
#   Copyright (C) 2021, MCCI Corporation. See accompanying LICENSE file
#
# Author:
#   {{author's name}}, MCCI   {{month}}, {{year}}
#
##############################################################################

Use spaces (not tabs), and set tabs at 4 characters.

Here's a concrete example:

#!/usr/bin/env python3

##############################################################################
#
# Module:  modbus-spt-cli.py
#
# Function:
#   Simple SPT emulator (from command line)
#
# Copyright and License:
#   Copyright (C) 2021, MCCI Corporation. See accompanying LICENSE file
#
# Author:
#   Terry Moore, MCCI   April, 2021
#
##############################################################################

Then list all the imports, in alphabetical order by module. For example:

import argparse
from datetime import datetime, timezone
from enum import Enum
import modbus_tk
import re
import serial
import struct
import sys
import time

Thanks!

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.