nmea2k 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nmea2k-0.1.0/LICENSE +202 -0
- nmea2k-0.1.0/NOTICE +19 -0
- nmea2k-0.1.0/PKG-INFO +116 -0
- nmea2k-0.1.0/README.md +83 -0
- nmea2k-0.1.0/pyproject.toml +45 -0
- nmea2k-0.1.0/setup.cfg +4 -0
- nmea2k-0.1.0/src/nmea2k/__init__.py +6 -0
- nmea2k-0.1.0/src/nmea2k/bus_state.py +24 -0
- nmea2k-0.1.0/src/nmea2k/defs.py +92 -0
- nmea2k-0.1.0/src/nmea2k/device.py +276 -0
- nmea2k-0.1.0/src/nmea2k/device_list.py +235 -0
- nmea2k-0.1.0/src/nmea2k/fastpacket.py +341 -0
- nmea2k-0.1.0/src/nmea2k/fields.py +336 -0
- nmea2k-0.1.0/src/nmea2k/gen/__init__.py +350 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126208.py +40 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126464.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126720.py +820 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126976.py +20 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126983.py +40 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126984.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126985.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126986.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126987.py +37 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126988.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126992.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126993.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126996.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_126998.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127233.py +37 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127237.py +37 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127245.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127250.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127251.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127252.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127257.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127258.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127488.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127489.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127490.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127491.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127493.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127494.py +32 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127495.py +35 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127496.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127497.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127498.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127500.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127501.py +48 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127502.py +48 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127503.py +35 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127504.py +35 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127505.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127506.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127507.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127508.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127509.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127510.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127511.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127512.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127513.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127514.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127744.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127745.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127746.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127747.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127748.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127749.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127750.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_127751.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128000.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128001.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128002.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128003.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128006.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128007.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128008.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128259.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128267.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128275.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128520.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128538.py +51 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128768.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128769.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128776.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128777.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128778.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_128780.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129025.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129026.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129027.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129028.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129029.py +41 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129033.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129038.py +39 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129039.py +42 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129040.py +46 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129041.py +42 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129044.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129045.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129283.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129284.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129285.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129291.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129301.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129302.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129538.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129539.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129540.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129541.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129542.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129545.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129546.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129547.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129549.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129550.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129551.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129556.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129792.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129793.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129794.py +40 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129795.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129796.py +32 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129797.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129798.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129799.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129800.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129801.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129802.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129803.py +41 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129804.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129805.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129806.py +42 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129807.py +38 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129808.py +81 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129809.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129810.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129811.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129812.py +39 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129813.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129814.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129815.py +35 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_129816.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130052.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130053.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130054.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130060.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130061.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130064.py +35 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130065.py +32 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130066.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130067.py +32 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130068.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130069.py +32 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130070.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130071.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130072.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130073.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130074.py +32 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130306.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130310.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130311.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130312.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130313.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130314.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130315.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130316.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130320.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130321.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130322.py +32 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130323.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130324.py +37 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130329.py +45 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130330.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130560.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130561.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130562.py +35 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130563.py +37 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130564.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130565.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130566.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130567.py +42 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130568.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130569.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130570.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130571.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130572.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130573.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130574.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130575.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130576.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130577.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130578.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130579.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130580.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130581.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130582.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130583.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130584.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130585.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130586.py +32 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130816.py +494 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130817.py +112 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130818.py +107 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130819.py +116 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130820.py +959 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130821.py +90 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130822.py +225 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130823.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130824.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130825.py +103 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130826.py +64 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130827.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130828.py +44 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130829.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130830.py +42 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130831.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130832.py +43 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130833.py +45 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130834.py +60 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130835.py +38 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130836.py +53 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130837.py +59 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130838.py +51 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130839.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130840.py +46 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130841.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130842.py +108 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130843.py +55 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130844.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130845.py +52 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130846.py +38 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130847.py +41 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130848.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130849.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130850.py +283 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130851.py +53 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130852.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130856.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130860.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130861.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130880.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130881.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130900.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130910.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130911.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130912.py +33 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130913.py +36 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130918.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130921.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130939.py +31 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130944.py +27 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130945.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130946.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130947.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_130951.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_131008.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_131011.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_131012.py +22 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_59392.py +34 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_59904.py +20 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_60160.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_60416.py +89 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_60928.py +29 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_61184.py +82 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_61440.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65001.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65002.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65003.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65004.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65005.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65006.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65007.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65008.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65009.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65010.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65011.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65012.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65013.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65014.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65015.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65016.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65017.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65018.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65019.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65020.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65021.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65022.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65023.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65024.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65025.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65026.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65027.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65028.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65029.py +21 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65030.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65240.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65280.py +128 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65281.py +37 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65282.py +41 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65283.py +37 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65284.py +58 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65285.py +56 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65286.py +62 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65287.py +60 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65288.py +44 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65289.py +40 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65290.py +59 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65291.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65292.py +37 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65293.py +39 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65294.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65295.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65296.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65297.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65298.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65299.py +39 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65300.py +54 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65301.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65302.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65303.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65304.py +37 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65305.py +97 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65306.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65308.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65309.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65310.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65311.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65312.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65313.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65314.py +41 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65315.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65316.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65317.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65323.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65324.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65325.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65329.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65330.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65332.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65340.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65341.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65344.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65345.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65346.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65348.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65349.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65350.py +24 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65359.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65360.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65361.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65371.py +30 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65374.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65379.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65403.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65408.py +25 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65409.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65410.py +26 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65420.py +28 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65424.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65440.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65441.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65472.py +23 -0
- nmea2k-0.1.0/src/nmea2k/gen/pgn_65480.py +23 -0
- nmea2k-0.1.0/src/nmea2k/group.py +347 -0
- nmea2k-0.1.0/src/nmea2k/handler.py +15 -0
- nmea2k-0.1.0/src/nmea2k/lookups.py +3658 -0
- nmea2k-0.1.0/src/nmea2k/message.py +111 -0
- nmea2k-0.1.0/src/nmea2k/pgn.py +382 -0
- nmea2k-0.1.0/src/nmea2k/protocol.py +136 -0
- nmea2k-0.1.0/src/nmea2k/socketcan.py +131 -0
- nmea2k-0.1.0/src/nmea2k/stack.py +409 -0
- nmea2k-0.1.0/src/nmea2k/timer.py +85 -0
- nmea2k-0.1.0/src/nmea2k/util.py +65 -0
- nmea2k-0.1.0/src/nmea2k.egg-info/PKG-INFO +116 -0
- nmea2k-0.1.0/src/nmea2k.egg-info/SOURCES.txt +382 -0
- nmea2k-0.1.0/src/nmea2k.egg-info/dependency_links.txt +1 -0
- nmea2k-0.1.0/src/nmea2k.egg-info/requires.txt +9 -0
- nmea2k-0.1.0/src/nmea2k.egg-info/top_level.txt +1 -0
- nmea2k-0.1.0/tests/test_canid.py +39 -0
- nmea2k-0.1.0/tests/test_chain_counter.py +101 -0
- nmea2k-0.1.0/tests/test_fastpacket.py +91 -0
- nmea2k-0.1.0/tests/test_fields.py +204 -0
- nmea2k-0.1.0/tests/test_generated.py +145 -0
- nmea2k-0.1.0/tests/test_integration.py +161 -0
nmea2k-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
nmea2k-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
nmea2k
|
|
2
|
+
Copyright 2026 the nmea2k authors
|
|
3
|
+
|
|
4
|
+
Licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
------------------------------------------------------------------------
|
|
7
|
+
This product includes NMEA 2000 PGN definitions derived from the CANboat
|
|
8
|
+
project (https://github.com/canboat/canboat), Copyright (C) 2009-2026
|
|
9
|
+
Kees Verruijt, Harlingen, The Netherlands, licensed under the Apache
|
|
10
|
+
License, Version 2.0.
|
|
11
|
+
|
|
12
|
+
The generated modules under src/nmea2k/gen/ (and src/nmea2k/lookups.py)
|
|
13
|
+
are produced by tools/pgn_gen.py from CANboat's canboat.json PGN database.
|
|
14
|
+
------------------------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
nmea2k is not affiliated with, endorsed by, or certified by the National
|
|
17
|
+
Marine Electronics Association. "NMEA 2000" is a registered trademark of
|
|
18
|
+
the National Marine Electronics Association and is used here only
|
|
19
|
+
descriptively, to identify the protocol this software implements.
|
nmea2k-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nmea2k
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A Python framework for building NMEA 2000 (N2K) marine CAN-bus devices: codecs, fast-packet reassembly, ISO address claim, a device stack, and generated PGN classes.
|
|
5
|
+
Author-email: mfriedel42 <mfriedel42@noreply.codeberg.org>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://codeberg.org/mfriedel42/nmea2k
|
|
8
|
+
Project-URL: Repository, https://codeberg.org/mfriedel42/nmea2k
|
|
9
|
+
Project-URL: Issues, https://codeberg.org/mfriedel42/nmea2k/issues
|
|
10
|
+
Keywords: nmea2000,n2k,canbus,socketcan,marine,boat,canboat,pgn
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Topic :: Communications
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator
|
|
20
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
License-File: LICENSE
|
|
24
|
+
License-File: NOTICE
|
|
25
|
+
Provides-Extra: can
|
|
26
|
+
Requires-Dist: python-can>=4.0; extra == "can"
|
|
27
|
+
Provides-Extra: dev
|
|
28
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
29
|
+
Requires-Dist: python-can>=4.0; extra == "dev"
|
|
30
|
+
Requires-Dist: build; extra == "dev"
|
|
31
|
+
Requires-Dist: twine; extra == "dev"
|
|
32
|
+
Dynamic: license-file
|
|
33
|
+
|
|
34
|
+
# nmea2k
|
|
35
|
+
|
|
36
|
+
A Python framework for building **NMEA 2000 (N2K)** marine CAN-bus devices —
|
|
37
|
+
message codecs, fast-packet reassembly, ISO address claim, a device stack with
|
|
38
|
+
RX dispatch, and generated PGN classes for the full canboat PGN set.
|
|
39
|
+
|
|
40
|
+
Heavily inspired by ttlappalainen/NMEA2000 (C++). PGN field codecs are
|
|
41
|
+
generated from canboat (see pgn_gen.py);
|
|
42
|
+
protocol PGNs with logic are class overrides with the nmea2k.protocol logic.
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
I did try to adapt the framework to Python's strength, this is not intended for
|
|
46
|
+
embedded devices (maybe someone wants to check out if it runs in MicroPython).
|
|
47
|
+
|
|
48
|
+
I'm quite happy with the class generator using the canboat PGN definitions.
|
|
49
|
+
It allows for class overrides. I first went the route of a single class that
|
|
50
|
+
can mimic any PGN. I don't think that is as useful, or as performant.
|
|
51
|
+
|
|
52
|
+
This sat on my drive for a while, I never got around to getting it into a nice
|
|
53
|
+
package to publish. With the help of a couple of AI friends, I got it cleaned
|
|
54
|
+
up, a couple of bugs fixed and 2 examples added.
|
|
55
|
+
|
|
56
|
+
As far as I know it is a pretty complete implementation. But I do not have
|
|
57
|
+
access to the specification or the test suites.
|
|
58
|
+
|
|
59
|
+
Enjoy
|
|
60
|
+
|
|
61
|
+
> **Not affiliated with or endorsed by the National Marine Electronics
|
|
62
|
+
> Association.** "NMEA 2000" is a registered trademark of the NMEA; it is used
|
|
63
|
+
> here only descriptively, to name the protocol this library implements.
|
|
64
|
+
|
|
65
|
+
## Install
|
|
66
|
+
|
|
67
|
+
```bash
|
|
68
|
+
pip install nmea2k[can] # normal: pulls python-can as the CAN backend
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
On constrained hosts where `python-can` can't be installed (e.g. a Raspberry Pi
|
|
72
|
+
under an externally-managed Python), install the base package and use the
|
|
73
|
+
bundled raw-SocketCAN shim instead:
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
pip install nmea2k
|
|
77
|
+
```
|
|
78
|
+
```python
|
|
79
|
+
import sys, nmea2k.socketcan
|
|
80
|
+
sys.modules["can"] = nmea2k.socketcan # before importing the framework
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
Requires Python 3.10+.
|
|
84
|
+
|
|
85
|
+
## What's here
|
|
86
|
+
|
|
87
|
+
| Module | Purpose |
|
|
88
|
+
|--------|---------|
|
|
89
|
+
| `nmea2k.message` / `nmea2k.fields` / `nmea2k.pgn` | CAN-ID + field-table codec engine |
|
|
90
|
+
| `nmea2k.fastpacket` | fast-packet (multi-frame) assembly/disassembly |
|
|
91
|
+
| `nmea2k.stack` (`N2K`) | the device stack: TX path, RX dispatch, timers |
|
|
92
|
+
| `nmea2k.device` / `nmea2k.device_list` | ISO address claim + network device list |
|
|
93
|
+
| `nmea2k.group` / `nmea2k.handler` | group-function handling + PGN handlers |
|
|
94
|
+
| `nmea2k.gen.*` | one generated class per PGN (from canboat) |
|
|
95
|
+
| `nmea2k.socketcan` | optional stdlib raw-SocketCAN `can` shim |
|
|
96
|
+
|
|
97
|
+
## Examples
|
|
98
|
+
|
|
99
|
+
- **`examples/windlass/`** — a complete anchor-windlass device (address claim,
|
|
100
|
+
product info, heartbeat, windlass PGNs 128776/7/8): the reference "how to build
|
|
101
|
+
a device" driver.
|
|
102
|
+
- **`examples/bridge/`** — a configurable two-bus N2K bridge that forwards frames
|
|
103
|
+
between two CAN interfaces with per-direction PGN filtering.
|
|
104
|
+
|
|
105
|
+
## Regenerating the PGN classes
|
|
106
|
+
|
|
107
|
+
The `nmea2k.gen` package is generated from CANboat's PGN database:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
python tools/pgn_gen.py # reads data/canboat.json -> src/nmea2k/gen/ + lookups.py
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## License
|
|
114
|
+
|
|
115
|
+
Apache-2.0. PGN definitions are derived from the Apache-2.0-licensed
|
|
116
|
+
[CANboat](https://github.com/canboat/canboat) project — see `NOTICE`.
|
nmea2k-0.1.0/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# nmea2k
|
|
2
|
+
|
|
3
|
+
A Python framework for building **NMEA 2000 (N2K)** marine CAN-bus devices —
|
|
4
|
+
message codecs, fast-packet reassembly, ISO address claim, a device stack with
|
|
5
|
+
RX dispatch, and generated PGN classes for the full canboat PGN set.
|
|
6
|
+
|
|
7
|
+
Heavily inspired by ttlappalainen/NMEA2000 (C++). PGN field codecs are
|
|
8
|
+
generated from canboat (see pgn_gen.py);
|
|
9
|
+
protocol PGNs with logic are class overrides with the nmea2k.protocol logic.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
I did try to adapt the framework to Python's strength, this is not intended for
|
|
13
|
+
embedded devices (maybe someone wants to check out if it runs in MicroPython).
|
|
14
|
+
|
|
15
|
+
I'm quite happy with the class generator using the canboat PGN definitions.
|
|
16
|
+
It allows for class overrides. I first went the route of a single class that
|
|
17
|
+
can mimic any PGN. I don't think that is as useful, or as performant.
|
|
18
|
+
|
|
19
|
+
This sat on my drive for a while, I never got around to getting it into a nice
|
|
20
|
+
package to publish. With the help of a couple of AI friends, I got it cleaned
|
|
21
|
+
up, a couple of bugs fixed and 2 examples added.
|
|
22
|
+
|
|
23
|
+
As far as I know it is a pretty complete implementation. But I do not have
|
|
24
|
+
access to the specification or the test suites.
|
|
25
|
+
|
|
26
|
+
Enjoy
|
|
27
|
+
|
|
28
|
+
> **Not affiliated with or endorsed by the National Marine Electronics
|
|
29
|
+
> Association.** "NMEA 2000" is a registered trademark of the NMEA; it is used
|
|
30
|
+
> here only descriptively, to name the protocol this library implements.
|
|
31
|
+
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install nmea2k[can] # normal: pulls python-can as the CAN backend
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
On constrained hosts where `python-can` can't be installed (e.g. a Raspberry Pi
|
|
39
|
+
under an externally-managed Python), install the base package and use the
|
|
40
|
+
bundled raw-SocketCAN shim instead:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
pip install nmea2k
|
|
44
|
+
```
|
|
45
|
+
```python
|
|
46
|
+
import sys, nmea2k.socketcan
|
|
47
|
+
sys.modules["can"] = nmea2k.socketcan # before importing the framework
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Requires Python 3.10+.
|
|
51
|
+
|
|
52
|
+
## What's here
|
|
53
|
+
|
|
54
|
+
| Module | Purpose |
|
|
55
|
+
|--------|---------|
|
|
56
|
+
| `nmea2k.message` / `nmea2k.fields` / `nmea2k.pgn` | CAN-ID + field-table codec engine |
|
|
57
|
+
| `nmea2k.fastpacket` | fast-packet (multi-frame) assembly/disassembly |
|
|
58
|
+
| `nmea2k.stack` (`N2K`) | the device stack: TX path, RX dispatch, timers |
|
|
59
|
+
| `nmea2k.device` / `nmea2k.device_list` | ISO address claim + network device list |
|
|
60
|
+
| `nmea2k.group` / `nmea2k.handler` | group-function handling + PGN handlers |
|
|
61
|
+
| `nmea2k.gen.*` | one generated class per PGN (from canboat) |
|
|
62
|
+
| `nmea2k.socketcan` | optional stdlib raw-SocketCAN `can` shim |
|
|
63
|
+
|
|
64
|
+
## Examples
|
|
65
|
+
|
|
66
|
+
- **`examples/windlass/`** — a complete anchor-windlass device (address claim,
|
|
67
|
+
product info, heartbeat, windlass PGNs 128776/7/8): the reference "how to build
|
|
68
|
+
a device" driver.
|
|
69
|
+
- **`examples/bridge/`** — a configurable two-bus N2K bridge that forwards frames
|
|
70
|
+
between two CAN interfaces with per-direction PGN filtering.
|
|
71
|
+
|
|
72
|
+
## Regenerating the PGN classes
|
|
73
|
+
|
|
74
|
+
The `nmea2k.gen` package is generated from CANboat's PGN database:
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
python tools/pgn_gen.py # reads data/canboat.json -> src/nmea2k/gen/ + lookups.py
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
## License
|
|
81
|
+
|
|
82
|
+
Apache-2.0. PGN definitions are derived from the Apache-2.0-licensed
|
|
83
|
+
[CANboat](https://github.com/canboat/canboat) project — see `NOTICE`.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=77", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "nmea2k"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "A Python framework for building NMEA 2000 (N2K) marine CAN-bus devices: codecs, fast-packet reassembly, ISO address claim, a device stack, and generated PGN classes."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "Apache-2.0"
|
|
12
|
+
license-files = ["LICENSE", "NOTICE"]
|
|
13
|
+
authors = [{ name = "mfriedel42", email = "mfriedel42@noreply.codeberg.org" }]
|
|
14
|
+
keywords = ["nmea2000", "n2k", "canbus", "socketcan", "marine", "boat", "canboat", "pgn"]
|
|
15
|
+
classifiers = [
|
|
16
|
+
"Development Status :: 3 - Alpha",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"Programming Language :: Python :: 3",
|
|
19
|
+
"Programming Language :: Python :: 3.10",
|
|
20
|
+
"Programming Language :: Python :: 3.11",
|
|
21
|
+
"Programming Language :: Python :: 3.12",
|
|
22
|
+
"Programming Language :: Python :: 3.13",
|
|
23
|
+
"Topic :: Communications",
|
|
24
|
+
"Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator",
|
|
25
|
+
"Operating System :: POSIX :: Linux",
|
|
26
|
+
]
|
|
27
|
+
dependencies = []
|
|
28
|
+
|
|
29
|
+
[project.optional-dependencies]
|
|
30
|
+
# python-can is optional: on constrained hosts (e.g. a Raspberry Pi where
|
|
31
|
+
# python-can can't be pip-installed) use the bundled raw-SocketCAN shim,
|
|
32
|
+
# nmea2k.socketcan, instead. Everywhere else: pip install nmea2k[can]
|
|
33
|
+
can = ["python-can>=4.0"]
|
|
34
|
+
dev = ["pytest>=7", "python-can>=4.0", "build", "twine"]
|
|
35
|
+
|
|
36
|
+
[project.urls]
|
|
37
|
+
Homepage = "https://codeberg.org/mfriedel42/nmea2k"
|
|
38
|
+
Repository = "https://codeberg.org/mfriedel42/nmea2k"
|
|
39
|
+
Issues = "https://codeberg.org/mfriedel42/nmea2k/issues"
|
|
40
|
+
|
|
41
|
+
[tool.setuptools.packages.find]
|
|
42
|
+
where = ["src"]
|
|
43
|
+
|
|
44
|
+
[tool.pytest.ini_options]
|
|
45
|
+
testpaths = ["tests"]
|
nmea2k-0.1.0/setup.cfg
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
class BusState:
|
|
2
|
+
def __init__(self):
|
|
3
|
+
self._sequenceCounters = {}
|
|
4
|
+
self._state:int = 0
|
|
5
|
+
|
|
6
|
+
def next_sequence(self, canid) -> int:
|
|
7
|
+
if canid not in self._sequenceCounters:
|
|
8
|
+
self._sequenceCounters[canid] = 0
|
|
9
|
+
nseq = self._sequenceCounters[canid]
|
|
10
|
+
self._sequenceCounters[canid] = (self._sequenceCounters[canid] + 1) & 7
|
|
11
|
+
return nseq
|
|
12
|
+
|
|
13
|
+
def __int__(self):
|
|
14
|
+
return self._state
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def state(self):
|
|
18
|
+
return self._state
|
|
19
|
+
|
|
20
|
+
@state.setter
|
|
21
|
+
def state(self, state):
|
|
22
|
+
self._state = state
|
|
23
|
+
|
|
24
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
N2kPGNIsoAddressClaim = 60928
|
|
2
|
+
""" PGN for a Production Information message """
|
|
3
|
+
N2kPGNProductInformation = 126996
|
|
4
|
+
""" PGN for an Configuration Information message """
|
|
5
|
+
N2kPGNConfigurationInformation = 126998
|
|
6
|
+
|
|
7
|
+
# Document says for lengths 33,40,24,32, but then values
|
|
8
|
+
# has not been translated right on devices.
|
|
9
|
+
""" Max length of ModelID
|
|
10
|
+
* Document says for lengths 33 but then values has not
|
|
11
|
+
* been translated right on devices. """
|
|
12
|
+
Max_N2kModelID_len = 32
|
|
13
|
+
""" Max length of Software Code
|
|
14
|
+
* Document says for lengths 40 but then values has not
|
|
15
|
+
* been translated right on devices. """
|
|
16
|
+
Max_N2kSwCode_len = 32
|
|
17
|
+
""" Max length of Model Version
|
|
18
|
+
* Document says for lengths 24 but then values has not
|
|
19
|
+
* been translated right on devices. """
|
|
20
|
+
Max_N2kModelVersion_len = 32
|
|
21
|
+
""" Max length of SerialCode
|
|
22
|
+
* Document says for lengths 32 but then values has not
|
|
23
|
+
* been translated right on devices. """
|
|
24
|
+
Max_N2kModelSerialCode_len = 32
|
|
25
|
+
""" Define length of longest info string
|
|
26
|
+
* Define length of longest info string (from \ref
|
|
27
|
+
* Max_N2kModelID_len, \ref Max_N2kSwCode_len, \ref
|
|
28
|
+
* Max_N2kModelVersion_len, \ref Max_N2kModelSerialCode_len)
|
|
29
|
+
* + 1 termination char
|
|
30
|
+
"""
|
|
31
|
+
Max_N2kProductInfoStrLen:int = 33
|
|
32
|
+
|
|
33
|
+
"""**********************************************************************#**
|
|
34
|
+
* Max length of Configuration Info Fields
|
|
35
|
+
*
|
|
36
|
+
* I do not know what standard says about max field length, but according
|
|
37
|
+
* to tests NMEAReader crashed with length >=90. Some device was reported
|
|
38
|
+
* not to work string length over 70.
|
|
39
|
+
"""
|
|
40
|
+
Max_N2kConfigurationInfoField_len:int = 71 # 70 + '/0'
|
|
41
|
+
|
|
42
|
+
""" Message buffer time"""
|
|
43
|
+
Max_N2kMsgBuf_Time:int = 100
|
|
44
|
+
""" Number of message groups """
|
|
45
|
+
N2kMessageGroups:int = 2
|
|
46
|
+
""" Max CAN Bus Address given by the library"""
|
|
47
|
+
N2kMaxCanBusAddress:int = 251
|
|
48
|
+
""" Null Address (???)"""
|
|
49
|
+
N2kNullCanBusAddress:None = None
|
|
50
|
+
|
|
51
|
+
N2kDL_TimeForFirstRequest:int= 1000
|
|
52
|
+
|
|
53
|
+
# \brief Time in ms between product information requests */
|
|
54
|
+
N2kDL_TimeBetweenPIRequest:int= 1000
|
|
55
|
+
|
|
56
|
+
# \brief Time in ms between configuration information requests */
|
|
57
|
+
N2kDL_TimeBetweenCIRequest:int= 1000
|
|
58
|
+
|
|
59
|
+
MaxDataLen:int = 223
|
|
60
|
+
|
|
61
|
+
MaxHeartbeatInterval:int = 655320
|
|
62
|
+
N2kAddressClaimTimeout:int=250
|
|
63
|
+
N2kMaxBusDevices:int=16
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
"""Max frames, which can be received at time """
|
|
67
|
+
TP_MAX_FRAMES:int =5
|
|
68
|
+
"""Multi packet connection management, TP.CM """
|
|
69
|
+
TP_CM:int = 60416
|
|
70
|
+
"""Multi packet data transfer """
|
|
71
|
+
TP_DT:int =60160
|
|
72
|
+
"""Multi packet connection management, Broadcast Announce Message """
|
|
73
|
+
TP_CM_BAM:int =32
|
|
74
|
+
"""Multi packet connection management, Request To Send """
|
|
75
|
+
TP_CM_RTS:int =16
|
|
76
|
+
"""Multi packet connection management, Clear To Send """
|
|
77
|
+
TP_CM_CTS:int =17
|
|
78
|
+
"""Multi packet connection management, End of Message Acknowledgement """
|
|
79
|
+
TP_CM_ACK:int =19
|
|
80
|
+
"""Multi packet connection management, Abort Connection """
|
|
81
|
+
TP_CM_Abort:int =255
|
|
82
|
+
|
|
83
|
+
"""Already in one or more connection managed sessions and cannot
|
|
84
|
+
* support another """
|
|
85
|
+
TP_CM_AbortBusy:int =1
|
|
86
|
+
"""System resources were needed for another task so this connection managed session was terminated """
|
|
87
|
+
TP_CM_AbortNoResources:int =2
|
|
88
|
+
"""A timeout occurred and this is the connection abort to close the session """
|
|
89
|
+
TP_CM_AbortTimeout:int =3
|
|
90
|
+
|
|
91
|
+
DefaultHeartbeatInterval:int = 60000
|
|
92
|
+
BusSettleTime:float = 0.2
|