mirror of
https://github.com/halleysfifthinc/Toyota-AVC-LAN
synced 2025-09-09 17:07:11 +00:00
Compare commits
106 Commits
7ef326efe0
...
9354fa3ce6
Author | SHA1 | Date | |
---|---|---|---|
|
9354fa3ce6 | ||
|
3448224939 | ||
|
448df3c5aa | ||
|
b0d0703234 | ||
|
fe180c008e | ||
|
977041bd67 | ||
|
b9382b26d7 | ||
|
8506e3bfb8 | ||
|
1c1b9e961d | ||
|
e857bbb09f | ||
|
fadd2c4259 | ||
|
18ae9a48cc | ||
|
5b97eff725 | ||
|
326d4ced99 | ||
|
f80f2f1376 | ||
|
218b4320dd | ||
|
c656281275 | ||
|
dbe8b8b877 | ||
|
c4831b1b48 | ||
|
b0b3d9f34e | ||
|
dea335af7f | ||
|
c906725a0c | ||
|
6d62fc4095 | ||
|
67608e789f | ||
|
9c0fcb0bcb | ||
|
84f426f39f | ||
|
17f5510b16 | ||
|
1d6690a234 | ||
|
0fe2f64eed | ||
|
ebb5ec95ca | ||
|
cabcd06e67 | ||
|
ff55d7e671 | ||
|
1cafed82d0 | ||
|
9fcca0a6fb | ||
|
3c5c1d269e | ||
|
de658f1fb7 | ||
|
64cd4b9958 | ||
|
18202c5264 | ||
|
08f7fe934d | ||
|
da6a3371fd | ||
|
bcd07d0ffb | ||
|
4c19f27992 | ||
|
012649d156 | ||
|
a9ea586ed4 | ||
|
7245695bc7 | ||
|
09bcd75811 | ||
|
d6d1995ae4 | ||
|
332fb4545f | ||
|
ba40f96d44 | ||
|
ba27167b2e | ||
|
d7af6529ef | ||
|
82ab967b7c | ||
|
cedad9df9f | ||
|
f13ccffa8d | ||
|
230709a103 | ||
|
9c024506c0 | ||
|
3fd8c0255b | ||
|
9a47ba77eb | ||
|
064fc01ac6 | ||
|
b736816de0 | ||
|
3e008f32eb | ||
|
b9bae7a65f | ||
|
9581957eca | ||
|
003c4c7f2f | ||
|
acd6709e73 | ||
|
70d153f77c | ||
|
2a5b95c3f5 | ||
|
208fe2a097 | ||
|
e14cbe40c0 | ||
|
408f648f77 | ||
|
9226e7e0f8 | ||
|
8a7184a620 | ||
|
4952ecb12b | ||
|
368ac7cb5f | ||
|
fb0bbbe3ca | ||
|
eb93931522 | ||
|
23ea7ee463 | ||
|
5559f38a51 | ||
|
522fb41290 | ||
|
553dadfdd0 | ||
|
e21f1a979a | ||
|
4fcdf4af36 | ||
|
c4f67378ae | ||
|
48b20a9c5c | ||
|
c07083423f | ||
|
98e371b529 | ||
|
d27250ec11 | ||
|
5ba6e46827 | ||
|
14bf33bb97 | ||
|
84fa2fdebc | ||
|
1da1a52c68 | ||
|
e8d7f5b297 | ||
|
241b7cf50a | ||
|
66633db24e | ||
|
feccda9e69 | ||
|
0a9bd4d988 | ||
|
49ceb1e5e8 | ||
|
1b66ecf306 | ||
|
ab4992411f | ||
|
a1c2b1b6e4 | ||
|
04077c8801 | ||
|
b6923559d1 | ||
|
49c0827c4f | ||
|
bf2a4a496b | ||
|
214cc168fd | ||
|
a4750f80b6 |
9
.clang-format
Normal file
9
.clang-format
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
BasedOnStyle: LLVM
|
||||
UseCRLF: false
|
||||
BreakBeforeBraces: Attach
|
||||
AllowShortBlocksOnASingleLine: Empty
|
||||
IndentCaseLabels: true
|
||||
IndentPPDirectives: BeforeHash
|
||||
AlignConsecutiveMacros: Consecutive
|
||||
...
|
291
.clang-tidy
Normal file
291
.clang-tidy
Normal file
@ -0,0 +1,291 @@
|
||||
---
|
||||
Checks: "-*,clang-diagnostic-*,clang-analyzer-*,-clang-analyzer-core.NullDereference,bugprone-*,misc-*,modernize-*,performance-*"
|
||||
WarningsAsErrors: ""
|
||||
HeaderFilterRegex: ""
|
||||
AnalyzeTemporaryDtors: false
|
||||
FormatStyle: none
|
||||
CheckOptions:
|
||||
- key: bugprone-argument-comment.CommentBoolLiterals
|
||||
value: "0"
|
||||
- key: bugprone-argument-comment.CommentCharacterLiterals
|
||||
value: "0"
|
||||
- key: bugprone-argument-comment.CommentFloatLiterals
|
||||
value: "0"
|
||||
- key: bugprone-argument-comment.CommentIntegerLiterals
|
||||
value: "0"
|
||||
- key: bugprone-argument-comment.CommentNullPtrs
|
||||
value: "0"
|
||||
- key: bugprone-argument-comment.CommentStringLiterals
|
||||
value: "0"
|
||||
- key: bugprone-argument-comment.CommentUserDefinedLiterals
|
||||
value: "0"
|
||||
- key: bugprone-argument-comment.IgnoreSingleArgument
|
||||
value: "0"
|
||||
- key: bugprone-argument-comment.StrictMode
|
||||
value: "0"
|
||||
- key: bugprone-assert-side-effect.AssertMacros
|
||||
value: assert,NSAssert,NSCAssert
|
||||
- key: bugprone-assert-side-effect.CheckFunctionCalls
|
||||
value: "false"
|
||||
- key: bugprone-assert-side-effect.IgnoredFunctions
|
||||
value: __builtin_expect
|
||||
- key: bugprone-dangling-handle.HandleClasses
|
||||
value: "std::basic_string_view;std::experimental::basic_string_view"
|
||||
- key: bugprone-dynamic-static-initializers.HeaderFileExtensions
|
||||
value: ";h;hh;hpp;hxx"
|
||||
- key: bugprone-easily-swappable-parameters.IgnoredParameterNames
|
||||
value: '"";iterator;Iterator;begin;Begin;end;End;first;First;last;Last;lhs;LHS;rhs;RHS'
|
||||
- key: bugprone-easily-swappable-parameters.IgnoredParameterTypeSuffixes
|
||||
value: "bool;Bool;_Bool;it;It;iterator;Iterator;inputit;InputIt;forwardit;ForwardIt;bidirit;BidirIt;constiterator;const_iterator;Const_Iterator;Constiterator;ConstIterator;RandomIt;randomit;random_iterator;ReverseIt;reverse_iterator;reverse_const_iterator;ConstReverseIterator;Const_Reverse_Iterator;const_reverse_iterator;Constreverseiterator;constreverseiterator"
|
||||
- key: bugprone-easily-swappable-parameters.MinimumLength
|
||||
value: "2"
|
||||
- key: bugprone-easily-swappable-parameters.ModelImplicitConversions
|
||||
value: "true"
|
||||
- key: bugprone-easily-swappable-parameters.NamePrefixSuffixSilenceDissimilarityTreshold
|
||||
value: "1"
|
||||
- key: bugprone-easily-swappable-parameters.QualifiersMix
|
||||
value: "false"
|
||||
- key: bugprone-easily-swappable-parameters.SuppressParametersUsedTogether
|
||||
value: "true"
|
||||
- key: bugprone-exception-escape.FunctionsThatShouldNotThrow
|
||||
value: ""
|
||||
- key: bugprone-exception-escape.IgnoredExceptions
|
||||
value: ""
|
||||
- key: bugprone-implicit-widening-of-multiplication-result.IncludeStyle
|
||||
value: llvm
|
||||
- key: bugprone-implicit-widening-of-multiplication-result.UseCXXHeadersInCppSources
|
||||
value: "true"
|
||||
- key: bugprone-implicit-widening-of-multiplication-result.UseCXXStaticCastsInCppSources
|
||||
value: "true"
|
||||
- key: bugprone-misplaced-widening-cast.CheckImplicitCasts
|
||||
value: "false"
|
||||
- key: bugprone-narrowing-conversions.IgnoreConversionFromTypes
|
||||
value: ""
|
||||
- key: bugprone-narrowing-conversions.PedanticMode
|
||||
value: "false"
|
||||
- key: bugprone-narrowing-conversions.WarnOnEquivalentBitWidth
|
||||
value: "true"
|
||||
- key: bugprone-narrowing-conversions.WarnOnFloatingPointNarrowingConversion
|
||||
value: "true"
|
||||
- key: bugprone-narrowing-conversions.WarnOnIntegerNarrowingConversion
|
||||
value: "false"
|
||||
- key: bugprone-narrowing-conversions.WarnOnIntegerToFloatingPointNarrowingConversion
|
||||
value: "true"
|
||||
- key: bugprone-narrowing-conversions.WarnWithinTemplateInstantiation
|
||||
value: "false"
|
||||
- key: bugprone-not-null-terminated-result.WantToUseSafeFunctions
|
||||
value: "true"
|
||||
- key: bugprone-reserved-identifier.AggressiveDependentMemberLookup
|
||||
value: "false"
|
||||
- key: bugprone-reserved-identifier.AllowedIdentifiers
|
||||
value: ""
|
||||
- key: bugprone-reserved-identifier.Invert
|
||||
value: "false"
|
||||
- key: bugprone-signal-handler.AsyncSafeFunctionSet
|
||||
value: POSIX
|
||||
- key: bugprone-signed-char-misuse.CharTypdefsToIgnore
|
||||
value: ""
|
||||
- key: bugprone-signed-char-misuse.DiagnoseSignedUnsignedCharComparisons
|
||||
value: "true"
|
||||
- key: bugprone-sizeof-expression.WarnOnSizeOfCompareToConstant
|
||||
value: "true"
|
||||
- key: bugprone-sizeof-expression.WarnOnSizeOfConstant
|
||||
value: "true"
|
||||
- key: bugprone-sizeof-expression.WarnOnSizeOfIntegerExpression
|
||||
value: "false"
|
||||
- key: bugprone-sizeof-expression.WarnOnSizeOfThis
|
||||
value: "true"
|
||||
- key: bugprone-string-constructor.LargeLengthThreshold
|
||||
value: "8388608"
|
||||
- key: bugprone-string-constructor.StringNames
|
||||
value: "::std::basic_string;::std::basic_string_view"
|
||||
- key: bugprone-string-constructor.WarnOnLargeLength
|
||||
value: "true"
|
||||
- key: bugprone-stringview-nullptr.IncludeStyle
|
||||
value: llvm
|
||||
- key: bugprone-suspicious-enum-usage.StrictMode
|
||||
value: "false"
|
||||
- key: bugprone-suspicious-include.HeaderFileExtensions
|
||||
value: ";h;hh;hpp;hxx"
|
||||
- key: bugprone-suspicious-include.ImplementationFileExtensions
|
||||
value: "c;cc;cpp;cxx"
|
||||
- key: bugprone-suspicious-missing-comma.MaxConcatenatedTokens
|
||||
value: "5"
|
||||
- key: bugprone-suspicious-missing-comma.RatioThreshold
|
||||
value: "0.200000"
|
||||
- key: bugprone-suspicious-missing-comma.SizeThreshold
|
||||
value: "5"
|
||||
- key: bugprone-suspicious-string-compare.StringCompareLikeFunctions
|
||||
value: ""
|
||||
- key: bugprone-suspicious-string-compare.WarnOnImplicitComparison
|
||||
value: "true"
|
||||
- key: bugprone-suspicious-string-compare.WarnOnLogicalNotComparison
|
||||
value: "false"
|
||||
- key: bugprone-too-small-loop-variable.MagnitudeBitsUpperLimit
|
||||
value: "16"
|
||||
- key: bugprone-unhandled-self-assignment.WarnOnlyIfThisHasSuspiciousField
|
||||
value: "true"
|
||||
- key: bugprone-unused-return-value.CheckedFunctions
|
||||
value: "::std::async;::std::launder;::std::remove;::std::remove_if;::std::unique;::std::unique_ptr::release;::std::basic_string::empty;::std::vector::empty;::std::back_inserter;::std::distance;::std::find;::std::find_if;::std::inserter;::std::lower_bound;::std::make_pair;::std::map::count;::std::map::find;::std::map::lower_bound;::std::multimap::equal_range;::std::multimap::upper_bound;::std::set::count;::std::set::find;::std::setfill;::std::setprecision;::std::setw;::std::upper_bound;::std::vector::at;::bsearch;::ferror;::feof;::isalnum;::isalpha;::isblank;::iscntrl;::isdigit;::isgraph;::islower;::isprint;::ispunct;::isspace;::isupper;::iswalnum;::iswprint;::iswspace;::isxdigit;::memchr;::memcmp;::strcmp;::strcoll;::strncmp;::strpbrk;::strrchr;::strspn;::strstr;::wcscmp;::access;::bind;::connect;::difftime;::dlsym;::fnmatch;::getaddrinfo;::getopt;::htonl;::htons;::iconv_open;::inet_addr;::isascii;::isatty;::mmap;::newlocale;::openat;::pathconf;::pthread_equal;::pthread_getspecific;::pthread_mutex_trylock;::readdir;::readlink;::recvmsg;::regexec;::scandir;::semget;::setjmp;::shm_open;::shmget;::sigismember;::strcasecmp;::strsignal;::ttyname"
|
||||
- key: cert-dcl16-c.NewSuffixes
|
||||
value: "L;LL;LU;LLU"
|
||||
- key: cert-err33-c.CheckedFunctions
|
||||
value: "::aligned_alloc;::asctime_s;::at_quick_exit;::atexit;::bsearch;::bsearch_s;::btowc;::c16rtomb;::c32rtomb;::calloc;::clock;::cnd_broadcast;::cnd_init;::cnd_signal;::cnd_timedwait;::cnd_wait;::ctime_s;::fclose;::fflush;::fgetc;::fgetpos;::fgets;::fgetwc;::fopen;::fopen_s;::fprintf;::fprintf_s;::fputc;::fputs;::fputwc;::fputws;::fread;::freopen;::freopen_s;::fscanf;::fscanf_s;::fseek;::fsetpos;::ftell;::fwprintf;::fwprintf_s;::fwrite;::fwscanf;::fwscanf_s;::getc;::getchar;::getenv;::getenv_s;::gets_s;::getwc;::getwchar;::gmtime;::gmtime_s;::localtime;::localtime_s;::malloc;::mbrtoc16;::mbrtoc32;::mbsrtowcs;::mbsrtowcs_s;::mbstowcs;::mbstowcs_s;::memchr;::mktime;::mtx_init;::mtx_lock;::mtx_timedlock;::mtx_trylock;::mtx_unlock;::printf_s;::putc;::putwc;::raise;::realloc;::remove;::rename;::scanf;::scanf_s;::setlocale;::setvbuf;::signal;::snprintf;::snprintf_s;::sprintf;::sprintf_s;::sscanf;::sscanf_s;::strchr;::strerror_s;::strftime;::strpbrk;::strrchr;::strstr;::strtod;::strtof;::strtoimax;::strtok;::strtok_s;::strtol;::strtold;::strtoll;::strtoul;::strtoull;::strtoumax;::strxfrm;::swprintf;::swprintf_s;::swscanf;::swscanf_s;::thrd_create;::thrd_detach;::thrd_join;::thrd_sleep;::time;::timespec_get;::tmpfile;::tmpfile_s;::tmpnam;::tmpnam_s;::tss_create;::tss_get;::tss_set;::ungetc;::ungetwc;::vfprintf;::vfprintf_s;::vfscanf;::vfscanf_s;::vfwprintf;::vfwprintf_s;::vfwscanf;::vfwscanf_s;::vprintf_s;::vscanf;::vscanf_s;::vsnprintf;::vsnprintf_s;::vsprintf;::vsprintf_s;::vsscanf;::vsscanf_s;::vswprintf;::vswprintf_s;::vswscanf;::vswscanf_s;::vwprintf_s;::vwscanf;::vwscanf_s;::wcrtomb;::wcschr;::wcsftime;::wcspbrk;::wcsrchr;::wcsrtombs;::wcsrtombs_s;::wcsstr;::wcstod;::wcstof;::wcstoimax;::wcstok;::wcstok_s;::wcstol;::wcstold;::wcstoll;::wcstombs;::wcstombs_s;::wcstoul;::wcstoull;::wcstoumax;::wcsxfrm;::wctob;::wctrans;::wctype;::wmemchr;::wprintf_s;::wscanf;::wscanf_s;"
|
||||
- key: cert-oop54-cpp.WarnOnlyIfThisHasSuspiciousField
|
||||
value: "false"
|
||||
- key: cert-str34-c.DiagnoseSignedUnsignedCharComparisons
|
||||
value: "false"
|
||||
- key: cppcoreguidelines-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
|
||||
value: "true"
|
||||
- key: google-readability-braces-around-statements.ShortStatementLines
|
||||
value: "1"
|
||||
- key: google-readability-function-size.StatementThreshold
|
||||
value: "800"
|
||||
- key: google-readability-namespace-comments.ShortNamespaceLines
|
||||
value: "10"
|
||||
- key: google-readability-namespace-comments.SpacesBeforeComments
|
||||
value: "2"
|
||||
- key: llvm-else-after-return.WarnOnConditionVariables
|
||||
value: "false"
|
||||
- key: llvm-else-after-return.WarnOnUnfixable
|
||||
value: "false"
|
||||
- key: llvm-qualified-auto.AddConstToQualified
|
||||
value: "false"
|
||||
- key: misc-definitions-in-headers.HeaderFileExtensions
|
||||
value: ";h;hh;hpp;hxx"
|
||||
- key: misc-definitions-in-headers.UseHeaderFileExtension
|
||||
value: "true"
|
||||
- key: misc-non-private-member-variables-in-classes.IgnoreClassesWithAllMemberVariablesBeingPublic
|
||||
value: "false"
|
||||
- key: misc-non-private-member-variables-in-classes.IgnorePublicMemberVariables
|
||||
value: "false"
|
||||
- key: misc-throw-by-value-catch-by-reference.CheckThrowTemporaries
|
||||
value: "true"
|
||||
- key: misc-throw-by-value-catch-by-reference.MaxSize
|
||||
value: "-1"
|
||||
- key: misc-throw-by-value-catch-by-reference.WarnOnLargeObjects
|
||||
value: "false"
|
||||
- key: misc-uniqueptr-reset-release.IncludeStyle
|
||||
value: llvm
|
||||
- key: misc-unused-parameters.StrictMode
|
||||
value: "false"
|
||||
- key: modernize-avoid-bind.PermissiveParameterList
|
||||
value: "false"
|
||||
- key: modernize-loop-convert.IncludeStyle
|
||||
value: llvm
|
||||
- key: modernize-loop-convert.MakeReverseRangeFunction
|
||||
value: ""
|
||||
- key: modernize-loop-convert.MakeReverseRangeHeader
|
||||
value: ""
|
||||
- key: modernize-loop-convert.MaxCopySize
|
||||
value: "16"
|
||||
- key: modernize-loop-convert.MinConfidence
|
||||
value: reasonable
|
||||
- key: modernize-loop-convert.NamingStyle
|
||||
value: CamelCase
|
||||
- key: modernize-loop-convert.UseCxx20ReverseRanges
|
||||
value: "true"
|
||||
- key: modernize-make-shared.IgnoreDefaultInitialization
|
||||
value: "true"
|
||||
- key: modernize-make-shared.IgnoreMacros
|
||||
value: "true"
|
||||
- key: modernize-make-shared.IncludeStyle
|
||||
value: llvm
|
||||
- key: modernize-make-shared.MakeSmartPtrFunction
|
||||
value: "std::make_shared"
|
||||
- key: modernize-make-shared.MakeSmartPtrFunctionHeader
|
||||
value: "<memory>"
|
||||
- key: modernize-make-unique.IgnoreDefaultInitialization
|
||||
value: "true"
|
||||
- key: modernize-make-unique.IgnoreMacros
|
||||
value: "true"
|
||||
- key: modernize-make-unique.IncludeStyle
|
||||
value: llvm
|
||||
- key: modernize-make-unique.MakeSmartPtrFunction
|
||||
value: "std::make_unique"
|
||||
- key: modernize-make-unique.MakeSmartPtrFunctionHeader
|
||||
value: "<memory>"
|
||||
- key: modernize-pass-by-value.IncludeStyle
|
||||
value: llvm
|
||||
- key: modernize-pass-by-value.ValuesOnly
|
||||
value: "false"
|
||||
- key: modernize-raw-string-literal.DelimiterStem
|
||||
value: lit
|
||||
- key: modernize-raw-string-literal.ReplaceShorterLiterals
|
||||
value: "false"
|
||||
- key: modernize-replace-auto-ptr.IncludeStyle
|
||||
value: llvm
|
||||
- key: modernize-replace-disallow-copy-and-assign-macro.MacroName
|
||||
value: DISALLOW_COPY_AND_ASSIGN
|
||||
- key: modernize-replace-random-shuffle.IncludeStyle
|
||||
value: llvm
|
||||
- key: modernize-use-auto.MinTypeNameLength
|
||||
value: "5"
|
||||
- key: modernize-use-auto.RemoveStars
|
||||
value: "false"
|
||||
- key: modernize-use-bool-literals.IgnoreMacros
|
||||
value: "true"
|
||||
- key: modernize-use-default-member-init.IgnoreMacros
|
||||
value: "true"
|
||||
- key: modernize-use-default-member-init.UseAssignment
|
||||
value: "false"
|
||||
- key: modernize-use-emplace.ContainersWithPushBack
|
||||
value: "::std::vector;::std::list;::std::deque"
|
||||
- key: modernize-use-emplace.IgnoreImplicitConstructors
|
||||
value: "false"
|
||||
- key: modernize-use-emplace.SmartPointers
|
||||
value: "::std::shared_ptr;::std::unique_ptr;::std::auto_ptr;::std::weak_ptr"
|
||||
- key: modernize-use-emplace.TupleMakeFunctions
|
||||
value: "::std::make_pair;::std::make_tuple"
|
||||
- key: modernize-use-emplace.TupleTypes
|
||||
value: "::std::pair;::std::tuple"
|
||||
- key: modernize-use-equals-default.IgnoreMacros
|
||||
value: "true"
|
||||
- key: modernize-use-equals-delete.IgnoreMacros
|
||||
value: "true"
|
||||
- key: modernize-use-nodiscard.ReplacementString
|
||||
value: "[[nodiscard]]"
|
||||
- key: modernize-use-noexcept.ReplacementString
|
||||
value: ""
|
||||
- key: modernize-use-noexcept.UseNoexceptFalse
|
||||
value: "true"
|
||||
- key: modernize-use-nullptr.NullMacros
|
||||
value: "NULL"
|
||||
- key: modernize-use-override.AllowOverrideAndFinal
|
||||
value: "false"
|
||||
- key: modernize-use-override.FinalSpelling
|
||||
value: final
|
||||
- key: modernize-use-override.IgnoreDestructors
|
||||
value: "false"
|
||||
- key: modernize-use-override.OverrideSpelling
|
||||
value: override
|
||||
- key: modernize-use-transparent-functors.SafeMode
|
||||
value: "false"
|
||||
- key: modernize-use-using.IgnoreMacros
|
||||
value: "true"
|
||||
- key: performance-faster-string-find.StringLikeClasses
|
||||
value: "::std::basic_string;::std::basic_string_view"
|
||||
- key: performance-for-range-copy.AllowedTypes
|
||||
value: ""
|
||||
- key: performance-for-range-copy.WarnOnAllAutoCopies
|
||||
value: "false"
|
||||
- key: performance-inefficient-string-concatenation.StrictMode
|
||||
value: "false"
|
||||
- key: performance-inefficient-vector-operation.EnableProto
|
||||
value: "false"
|
||||
- key: performance-inefficient-vector-operation.VectorLikeClasses
|
||||
value: "::std::vector"
|
||||
- key: performance-move-const-arg.CheckTriviallyCopyableMove
|
||||
value: "true"
|
||||
- key: performance-no-automatic-move.AllowedTypes
|
||||
value: ""
|
||||
- key: performance-type-promotion-in-math-fn.IncludeStyle
|
||||
value: llvm
|
||||
- key: performance-unnecessary-copy-initialization.AllowedTypes
|
||||
value: ""
|
||||
- key: performance-unnecessary-copy-initialization.ExcludedContainerTypes
|
||||
value: ""
|
||||
- key: performance-unnecessary-value-param.AllowedTypes
|
||||
value: ""
|
||||
- key: performance-unnecessary-value-param.IncludeStyle
|
||||
value: llvm
|
46
.devcontainer/devcontainer.json
Normal file
46
.devcontainer/devcontainer.json
Normal file
@ -0,0 +1,46 @@
|
||||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
|
||||
{
|
||||
"name": "AVR toolchain",
|
||||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||
"image": "mcr.microsoft.com/devcontainers/base:alpine-3.18",
|
||||
// Features to add to the dev container. More info: https://containers.dev/features.
|
||||
"features": {},
|
||||
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||
// "forwardPorts": [],
|
||||
// Use 'postCreateCommand' to run commands after the container is created.
|
||||
"postCreateCommand": "bash scripts/install-toolchain.sh",
|
||||
// Configure tool-specific properties.
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-vscode.cpptools",
|
||||
"ms-vscode.cmake-tools",
|
||||
"rockcat.avr-support",
|
||||
"harikrishnan94.cxx-compiler-explorer",
|
||||
"ms-vscode.cpptools-extension-pack",
|
||||
"twxs.cmake"
|
||||
],
|
||||
"settings": {
|
||||
"editor.formatOnSave": true,
|
||||
"C_Cpp.codeAnalysis.clangTidy.checks.disabled": [
|
||||
"clang-analyzer-core.NullDereference"
|
||||
],
|
||||
"C_Cpp.files.exclude": {
|
||||
"build/**": true
|
||||
},
|
||||
"files.associations": {
|
||||
"*.S": "avr"
|
||||
},
|
||||
"cmake.configureOnOpen": true,
|
||||
"compilerexplorer.compilationDirectory": "${workspaceFolder}/build"
|
||||
}
|
||||
}
|
||||
}
|
||||
// "runArgs": [
|
||||
// "--device=/dev/ttyUSB0",
|
||||
// "--device=/dev/ttyUSB1"
|
||||
// ]
|
||||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
||||
// "remoteUser": "root"
|
||||
}
|
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
*.o
|
||||
*.elf
|
||||
*.hex
|
||||
*.zip
|
||||
*.db
|
||||
*.bak
|
||||
build/
|
||||
hardware/_autosave*
|
||||
hardware/fp-info-cache
|
17
.vscode/c_cpp_properties.json
vendored
Normal file
17
.vscode/c_cpp_properties.json
vendored
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Linux",
|
||||
"includePath": [
|
||||
"${workspaceFolder}/**"
|
||||
],
|
||||
"defines": [],
|
||||
"cStandard": "c17",
|
||||
"cppStandard": "c++17",
|
||||
"intelliSenseMode": "${default}",
|
||||
"compilerArgs": [],
|
||||
"configurationProvider": "ms-vscode.cmake-tools"
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
14
.vscode/settings.json
vendored
Normal file
14
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"editor.formatOnSave": true,
|
||||
"C_Cpp.codeAnalysis.clangTidy.checks.disabled": [
|
||||
"clang-analyzer-core.NullDereference"
|
||||
],
|
||||
"C_Cpp.files.exclude": {
|
||||
"build/**": true
|
||||
},
|
||||
"files.associations": {
|
||||
"*.S": "avr"
|
||||
},
|
||||
"cmake.configureOnOpen": true,
|
||||
"compilerexplorer.compilationDirectory": "${workspaceFolder}/build",
|
||||
}
|
967
AVCLanDriver.c
967
AVCLanDriver.c
@ -1,967 +0,0 @@
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : AVCLanDriver.c
|
||||
|
||||
Description : AVC Lan driver for Toyota devices.
|
||||
|
||||
Author : Louis Frigon
|
||||
|
||||
Copyright : (c) 2007 SigmaObjects
|
||||
|
||||
----------------------------------------------------------------------------------------------------
|
||||
AVC LAN Theory
|
||||
|
||||
The AVC bus is an implementation of the IEBus which is a differential line, floating on logical
|
||||
level '1' and driving on logical '0'. Floating level shall be below 20 mV whereas driving level
|
||||
shall be above 120 mV.
|
||||
|
||||
The diagram below represents how things work from a logical perspective on the bus.
|
||||
|
||||
A rising edge indicates a new bit. The duration of the high state tells whether it is a start
|
||||
bit (~165 us), a bit '0' (~30 us) or a bit '1' (~20 us). A normal bit length is close to 40 us.
|
||||
|
||||
|<---- Bit '0' ---->|<---- Bit '1' ---->|
|
||||
Physical '1' ,---------------, ,---------, ,---------
|
||||
^ | ^ | ^
|
||||
Physical '0' -----' '---' '---------'--------- Idle low
|
||||
|---- 32 us ----| 7 |- 20 us -|- 19 us -|
|
||||
|
||||
A bit '1' is typically 20 us high followed by 19 us low.
|
||||
|
||||
A bit '0' is typically 32 us high followed by 7 us low. A bit '0' is dominant i.e. it takes
|
||||
precedence over a '1' by extending the pulse. This is why lower addresses win on arbitration.
|
||||
|
||||
A start bit is typically 165 us high followed by 30 us low.
|
||||
|
||||
AVC LAN Frame Format
|
||||
Bits Description
|
||||
|
||||
1 Start bit
|
||||
1 MSG_NORMAL
|
||||
12 Master address
|
||||
1 Parity
|
||||
12 Slave address
|
||||
1 Parity
|
||||
1 * Acknowledge * (read below)
|
||||
4 Control
|
||||
1 Parity
|
||||
1 * Acknowledge * (read below)
|
||||
8 Payload length (n)
|
||||
1 Parity
|
||||
1 * Acknowledge * (read below)
|
||||
8 Data
|
||||
1 Parity
|
||||
1 * Acknowledge * (read below)
|
||||
repeat 'n' times
|
||||
|
||||
In point-to-point communication, sender issues an ack bit with value '1' (20 us). Receiver
|
||||
upon acking will extend the bit until it looks like a '0' (32 us) on the bus. In broadcast
|
||||
mode, receiver disregards the bit.
|
||||
|
||||
An acknowledge bit of value '0' means OK, '1' means no ack.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/wdt.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "GlobalDef.h"
|
||||
#include "USART.h"
|
||||
#include "AVCLanDriver.h"
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Local Functions
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
static void SendStartBit ( void );
|
||||
static void Send12BitWord ( word data );
|
||||
static void Send8BitWord ( byte data );
|
||||
static void Send4BitWord ( byte data );
|
||||
static void Send1BitWord ( bool data );
|
||||
static bool SendMessage ( void );
|
||||
|
||||
static word ReadBits ( byte nbBits );
|
||||
static bool ReadAcknowledge ( void );
|
||||
|
||||
static bool HandleAcknowledge ( void );
|
||||
static bool IsAvcBusFree ( void );
|
||||
|
||||
static AvcActionID GetActionID ( void );
|
||||
static void LoadDataInGlogalRegisters ( AvcOutMessage * msg );
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Global Variables
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
// Message frame global registers
|
||||
static const char * Description;
|
||||
static bool Broadcast;
|
||||
static word MasterAddress;
|
||||
static word SlaveAddress;
|
||||
static byte Control;
|
||||
static byte DataSize;
|
||||
static bool ParityBit;
|
||||
static byte Data[ 256 ];
|
||||
|
||||
bool AUX_Enabled = FALSE;
|
||||
AvcActionID DeviceEnabled = ACT_NONE; //casting possibly unneccesary
|
||||
|
||||
static AvcInMessage MessageTable [] PROGMEM =
|
||||
{
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Head Unit (HU) Messages
|
||||
0x60 = Tuner ID
|
||||
0x61 = Tape ID
|
||||
0x62 = CD ID
|
||||
0x63 = CD Changer ID (this is what we're emulating)
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
{ ACT_AUX_IN_USE, 4, {0x11, 0x01, 0x45, 0x01}, "AUX in use" },
|
||||
{ ACT_TUNER_IN_USE, 4, {0x11, 0x01, 0x45, 0x60}, "Tuner in use" },
|
||||
{ ACT_TAPE_IN_USE, 4, {0x11, 0x01, 0x45, 0x61}, "Tape in use" },
|
||||
{ ACT_CD_IN_USE, 4, {0x11, 0x01, 0x45, 0x62}, "CD in use" },
|
||||
|
||||
{ ACT_NONE, 3, {0x11, 0x01, 0x46}, "No device in use" },
|
||||
{ ACT_NONE, 3, {0x11, 0x01, 0x20 /* xx */}, "Ping" }, // Get this once every minute in radio off mode. xx increments
|
||||
{ ACT_TUNER_INFO, 5, {0x60, 0x31, 0xF1, 0x01, 0x01 /* xx xx xx 0x00 0x00 0x00 0x00 */ /* 81 0 C9 = 107.9 or 107.7*/}, "Tuner Status"},
|
||||
{ ACT_EJECT_CD, 10, {0x62, 0x31, 0xF1, 0x00, 0x30, 0x01, 0x01, 0x00, 0x00, 0x00, 0x80}, "Eject CD" },
|
||||
{ ACT_NO_CD, 10, {0x62, 0x31, 0xF1, 0x00, 0xF8, 0x01, 0x01, 0x00, 0x00, 0x00, 0x80}, "No CD" },
|
||||
// { ACT_CD_INFO, 6, {0x62, 0x31, 0xF1, 0x01, 0x10, 0x01 /* Track #, Min, Sec, 0x00, 0x80 */}, "CD Info: " },
|
||||
{ACT_AUDIO_STATUS, 4, { 0x74, 0x31, 0xF1, 0x90 /* Volume, Balance, Fade, Bass, 0x10, Treble, 0x00, 0x0F, 0x00, 0x00 */ }, "Audio Status"},
|
||||
|
||||
{ ACT_STATUS, 3, {0x00, 0x01, 0x0A}, "LAN Status" },
|
||||
{ ACT_REGISTER, 3, {0x11, 0x01, 0x00}, "LAN Register" },
|
||||
{ ACT_INIT, 3, {0x11, 0x01, 0x01}, "LAN Restart" },
|
||||
{ ACT_CHECK, 3, {0x11, 0x01, 0x20}, "LAN Check" },
|
||||
|
||||
{ (AvcActionID)FALSE } //possibly should be ACT_NONE
|
||||
};
|
||||
|
||||
const byte MessageTableSize = sizeof( MessageTable ) / sizeof( AvcInMessage );
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Our (CD) Commands
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
AvcOutMessage CmdReset PROGMEM = { MSG_BCAST, 5, {0x00, 0x00, 0x00, 0x00, 0x00}, "Reset" }; // This causes HU to send ACT_REGISTER
|
||||
|
||||
//AvcOutMessage CmdRegister PROGMEM = { MSG_NORMAL, 5, {0x00, 0x01, 0x11, 0x10, 0x63}, "Register" };
|
||||
//AvcOutMessage CmdRegister PROGMEM = { MSG_NORMAL, 5, {0x00, 0x01, 0x11, 0x54, 0x63}, "Toggle HU On/Off" };
|
||||
//AvcOutMessage CmdRegister PROGMEM = { MSG_NORMAL, 5, {0x00, 0x01, 0x11, 0x54, 0x63}, "Toggle HU On/Off" };
|
||||
AvcOutMessage CmdEnableAux PROGMEM = { MSG_NORMAL, 5, {0x00, 0x01, 0x11, 0x50, 0x61}, "Enable AUX" };
|
||||
AvcOutMessage CmdDisableAux PROGMEM = { MSG_NORMAL, 5, {0x00, 0x01, 0x11, 0x51, 0x61}, "Disable AUX" };
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : AvcRegisterMe
|
||||
|
||||
Description : Sends registration message to master controller.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : (bool) -> TRUE if successful else FALSE.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
bool AvcRegisterMe ( void )
|
||||
{
|
||||
Broadcast = MSG_NORMAL;
|
||||
MasterAddress = MY_ADDRESS;
|
||||
SlaveAddress = HU_ADDRESS;
|
||||
Control = CONTROL_FLAGS;
|
||||
|
||||
AvcProcessActionID( ACT_REGISTER );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : AvcReadMessage
|
||||
|
||||
Description : Read incoming messages on the AVC LAN bus.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : (AvcActionID) -> Action ID associated with this message.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
AvcActionID AvcReadMessage ( void )
|
||||
{
|
||||
ReadBits( 1 ); // Start bit.
|
||||
|
||||
LedOn();
|
||||
|
||||
Broadcast = ReadBits( 1 );
|
||||
|
||||
MasterAddress = ReadBits( 12 );
|
||||
bool p = ParityBit;
|
||||
if ( p != ReadBits( 1 ) )
|
||||
{
|
||||
UsartPutCStr( PSTR("AvcReadMessage: Parity error @ MasterAddress!\r\n") );
|
||||
return (AvcActionID)FALSE;
|
||||
}
|
||||
|
||||
SlaveAddress = ReadBits( 12 );
|
||||
p = ParityBit;
|
||||
if ( p != ReadBits( 1 ) )
|
||||
{
|
||||
UsartPutCStr( PSTR("AvcReadMessage: Parity error @ SlaveAddress!\r\n") );
|
||||
return (AvcActionID)FALSE;
|
||||
}
|
||||
|
||||
bool forMe = ( SlaveAddress == MY_ADDRESS );
|
||||
|
||||
// In point-to-point communication, sender issues an ack bit with value '1' (20us). Receiver
|
||||
// upon acking will extend the bit until it looks like a '0' (32us) on the bus. In broadcast
|
||||
// mode, receiver disregards the bit.
|
||||
|
||||
if ( forMe )
|
||||
{
|
||||
// Send ACK.
|
||||
Send1BitWord( 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
ReadBits( 1 );
|
||||
}
|
||||
|
||||
Control = ReadBits( 4 );
|
||||
p = ParityBit;
|
||||
if ( p != ReadBits( 1 ) )
|
||||
{
|
||||
UsartPutCStr( PSTR("AvcReadMessage: Parity error @ Control!\r\n") );
|
||||
return (AvcActionID)FALSE;
|
||||
}
|
||||
|
||||
if ( forMe )
|
||||
{
|
||||
// Send ACK.
|
||||
Send1BitWord( 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
ReadBits( 1 );
|
||||
}
|
||||
|
||||
DataSize = ReadBits( 8 );
|
||||
p = ParityBit;
|
||||
if ( p != ReadBits( 1 ) )
|
||||
{
|
||||
UsartPutCStr( PSTR("AvcReadMessage: Parity error @ DataSize!\r\n") );
|
||||
return (AvcActionID)FALSE;
|
||||
}
|
||||
|
||||
if ( forMe )
|
||||
{
|
||||
// Send ACK.
|
||||
Send1BitWord( 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
ReadBits( 1 );
|
||||
}
|
||||
|
||||
byte i;
|
||||
|
||||
for ( i = 0; i < DataSize; i++ )
|
||||
{
|
||||
Data[i] = ReadBits( 8 );
|
||||
p = ParityBit;
|
||||
if ( p != ReadBits( 1 ) )
|
||||
{
|
||||
sprintf( UsartMsgBuffer, "AvcReadMessage: Parity error @ Data[%d]\r\n", i );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
return (AvcActionID)FALSE;
|
||||
}
|
||||
|
||||
if ( forMe )
|
||||
{
|
||||
// Send ACK.
|
||||
Send1BitWord( 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
ReadBits( 1 );
|
||||
}
|
||||
}
|
||||
|
||||
// Dump message on terminal.
|
||||
if ( forMe ) UsartPutCStr( PSTR("AvcReadMessage: This message is for me!\r\n") );
|
||||
|
||||
AvcActionID actionID = GetActionID();
|
||||
|
||||
// switch ( actionID ) {
|
||||
// case /* value */:
|
||||
// }
|
||||
DumpRawMessage( FALSE );
|
||||
|
||||
LedOff();
|
||||
|
||||
return actionID;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : AvcProcessActionID
|
||||
|
||||
Description : Perform processing for given action ID.
|
||||
|
||||
Argument(s) : actionID (AvcActionID) -> Action ID to process.
|
||||
|
||||
Return value : (bool) -> TRUE if action performed.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
bool AvcProcessActionID ( AvcActionID actionID )
|
||||
{
|
||||
// This function relies on the last received message still being loaded in global registers.
|
||||
|
||||
switch ( actionID )
|
||||
{
|
||||
case ACT_AUX_IN_USE:
|
||||
|
||||
AUX_Enabled = TRUE;
|
||||
return FALSE;
|
||||
|
||||
case ACT_TUNER_IN_USE:
|
||||
case ACT_TAPE_IN_USE:
|
||||
// case ACT_AUDIO_STATUS: This is where we should print interpretted data (Volume, Balance, etc.)
|
||||
// case ACT_TUNER_INFO: Same here
|
||||
case ACT_CD_IN_USE:
|
||||
|
||||
DeviceEnabled = actionID;
|
||||
AUX_Enabled = FALSE;
|
||||
return FALSE;
|
||||
|
||||
// case ACT_NO_CD:
|
||||
|
||||
case ACT_EJECT_CD:
|
||||
|
||||
// Normal CD eject command.
|
||||
if ( DeviceEnabled == ACT_CD_IN_USE ) return FALSE;
|
||||
|
||||
if ( AUX_Enabled )
|
||||
{
|
||||
LoadDataInGlogalRegisters ( &CmdDisableAux );
|
||||
AUX_Enabled = FALSE;
|
||||
}
|
||||
else
|
||||
{
|
||||
LoadDataInGlogalRegisters ( &CmdEnableAux );
|
||||
AUX_Enabled = TRUE;
|
||||
}
|
||||
|
||||
return SendMessage();
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
// No success!
|
||||
UsartPutCStr( PSTR("AvcProcessActionID: Unknown action ID!\r\n") );
|
||||
//POssibly dumpmsgbuffer here for sebuggimng
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Nothing to do!
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : LoadDataInGlogalRegisters
|
||||
|
||||
Description : Loads message data in global registers for given mesage ID.
|
||||
|
||||
Argument(s) : msg (AvcOutMessage *) -> Message to load.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void LoadDataInGlogalRegisters ( AvcOutMessage * msg )
|
||||
{
|
||||
Description = msg->Description;
|
||||
|
||||
Broadcast = pgm_read_byte_near( &msg->Mode );
|
||||
|
||||
MasterAddress = MY_ADDRESS;
|
||||
|
||||
if ( Broadcast == MSG_BCAST )
|
||||
SlaveAddress = BROADCAST_ADDRESS;
|
||||
else
|
||||
SlaveAddress = HU_ADDRESS;
|
||||
|
||||
DataSize = pgm_read_byte_near( &msg->DataSize );
|
||||
|
||||
for ( byte i = 0; i < DataSize; i++ )
|
||||
{
|
||||
Data[i] = pgm_read_byte_near( &msg->Data[i] );
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : GetActionID
|
||||
|
||||
Description : Use the last received message to determine the corresponding action ID.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : (AvcActionID) -> Action ID corresponding to current message.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
AvcActionID GetActionID ( void )
|
||||
{
|
||||
Description = PSTR("Unknown message!");
|
||||
|
||||
// Iterate through all HU messages in table.
|
||||
for ( byte msg = 0; msg < MessageTableSize; msg++ )
|
||||
{
|
||||
bool found = TRUE;
|
||||
|
||||
// Identify current message from it's payload data.
|
||||
for ( byte i = 0; i < pgm_read_byte_near( &MessageTable[msg].DataSize ); i++ )
|
||||
{
|
||||
if ( Data[i] != pgm_read_byte_near( &MessageTable[msg].Data[i] ) )
|
||||
{
|
||||
found = FALSE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if ( found )
|
||||
{
|
||||
Description = MessageTable[msg].Description;
|
||||
|
||||
// Fetch action corresponding to the message.
|
||||
AvcActionID actionID = pgm_read_byte_near( &MessageTable[msg].ActionID );
|
||||
|
||||
return actionID;
|
||||
}
|
||||
}
|
||||
|
||||
return ACT_NONE;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : Send12BitWord
|
||||
|
||||
Description : Writes a 12 bit word on the AVC LAN bus.
|
||||
|
||||
Argument(s) : data (word) -> Data to write.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void Send12BitWord ( word data )
|
||||
{
|
||||
ParityBit = 0;
|
||||
|
||||
// Most significant bit out first.
|
||||
for ( char nbBits = 0; nbBits < 12; nbBits++ )
|
||||
{
|
||||
// Reset timer to measure bit length.
|
||||
TCNT0 = 0;
|
||||
|
||||
// Drive output to signal high.
|
||||
DDRD |= _BV(PD2) | _BV(PD3);
|
||||
|
||||
if ( data & 0x0800 )
|
||||
{
|
||||
// Adjust parity.
|
||||
ParityBit = ! ParityBit;
|
||||
|
||||
while ( TCNT0 < BIT_1_HOLD_ON_LENGTH );
|
||||
}
|
||||
else
|
||||
{
|
||||
while ( TCNT0 < BIT_0_HOLD_ON_LENGTH );
|
||||
}
|
||||
|
||||
// Release output.
|
||||
DDRD &= ~( _BV(PD2) | _BV(PD3) );
|
||||
|
||||
// Hold output low until end of bit.
|
||||
while ( TCNT0 < NORMAL_BIT_LENGTH );
|
||||
|
||||
// Fetch next bit.
|
||||
data <<= 1;
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : Send8BitWord
|
||||
|
||||
Description : Writes an 8 bit word on the AVC LAN bus.
|
||||
|
||||
Argument(s) : data (byte) -> Data to write.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void Send8BitWord ( byte data )
|
||||
{
|
||||
ParityBit = 0;
|
||||
|
||||
// Most significant bit out first.
|
||||
for ( char nbBits = 0; nbBits < 8; nbBits++ )
|
||||
{
|
||||
// Reset timer to measure bit length.
|
||||
TCNT0 = 0;
|
||||
|
||||
// Drive output to signal high.
|
||||
DDRD |= _BV(PD2) | _BV(PD3);
|
||||
|
||||
if ( data & 0x80 )
|
||||
{
|
||||
// Adjust parity.
|
||||
ParityBit = ! ParityBit;
|
||||
|
||||
while ( TCNT0 < BIT_1_HOLD_ON_LENGTH );
|
||||
}
|
||||
else
|
||||
{
|
||||
while ( TCNT0 < BIT_0_HOLD_ON_LENGTH );
|
||||
}
|
||||
|
||||
// Release output.
|
||||
DDRD &= ~( _BV(PD2) | _BV(PD3) );
|
||||
|
||||
// Hold output low until end of bit.
|
||||
while ( TCNT0 < NORMAL_BIT_LENGTH );
|
||||
|
||||
// Fetch next bit.
|
||||
data <<= 1;
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : Send4BitWord
|
||||
|
||||
Description : Writes a 4 bit word on the AVC LAN bus.
|
||||
|
||||
Argument(s) : data (byte) -> Data to write.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void Send4BitWord ( byte data )
|
||||
{
|
||||
ParityBit = 0;
|
||||
|
||||
// Most significant bit out first.
|
||||
for ( char nbBits = 0; nbBits < 4; nbBits++ )
|
||||
{
|
||||
// Reset timer to measure bit length.
|
||||
TCNT0 = 0;
|
||||
|
||||
// Drive output to signal high.
|
||||
DDRD |= _BV(PD2) | _BV(PD3);
|
||||
|
||||
if ( data & 0x8 )
|
||||
{
|
||||
// Adjust parity.
|
||||
ParityBit = ! ParityBit;
|
||||
|
||||
while ( TCNT0 < BIT_1_HOLD_ON_LENGTH );
|
||||
}
|
||||
else
|
||||
{
|
||||
while ( TCNT0 < BIT_0_HOLD_ON_LENGTH );
|
||||
}
|
||||
|
||||
// Release output.
|
||||
DDRD &= ~( _BV(PD2) | _BV(PD3) );
|
||||
|
||||
// Hold output low until end of bit.
|
||||
while ( TCNT0 < NORMAL_BIT_LENGTH );
|
||||
|
||||
// Fetch next bit.
|
||||
data <<= 1;
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : Send1BitWord
|
||||
|
||||
Description : Writes a 1 bit word on the AVC LAN bus.
|
||||
|
||||
Argument(s) : data (bool) -> Data to write.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void Send1BitWord ( bool data )
|
||||
{
|
||||
// Reset timer to measure bit length.
|
||||
TCNT0 = 0;
|
||||
|
||||
// Drive output to signal high.
|
||||
DDRD |= _BV(PD2) | _BV(PD3);
|
||||
|
||||
if ( data )
|
||||
{
|
||||
while ( TCNT0 < BIT_1_HOLD_ON_LENGTH );
|
||||
}
|
||||
else
|
||||
{
|
||||
while ( TCNT0 < BIT_0_HOLD_ON_LENGTH );
|
||||
}
|
||||
|
||||
// Release output.
|
||||
DDRD &= ~( _BV(PD2) | _BV(PD3) );
|
||||
|
||||
// Pulse level low duration until 40 us.
|
||||
while ( TCNT0 < NORMAL_BIT_LENGTH );
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : SendStartBit
|
||||
|
||||
Description : Writes a start bit on the AVC LAN bus.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void SendStartBit ( void )
|
||||
{
|
||||
// Reset timer to measure bit length.
|
||||
TCNT0 = 0;
|
||||
|
||||
// Drive output to signal high.
|
||||
DDRD |= _BV(PD2) | _BV(PD3);
|
||||
|
||||
// Pulse level high duration.
|
||||
while ( TCNT0 < START_BIT_HOLD_ON_LENGTH );
|
||||
|
||||
// Release output.
|
||||
DDRD &= ~( _BV(PD2) | _BV(PD3) );
|
||||
|
||||
// Pulse level low duration until ~185 us.
|
||||
while ( TCNT0 < START_BIT_LENGTH );
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : ReadBits
|
||||
|
||||
Description : Reads specified number of bits from the AVC LAN bus.
|
||||
|
||||
Argument(s) : nbBits (byte) -> Number of bits to read.
|
||||
|
||||
Return value : (word) -> Data value read.
|
||||
|
||||
|<---- Bit '0' ---->|<---- Bit '1' ---->|
|
||||
Physical '1' ,---------------, ,---------, ,---------
|
||||
^ | ^ | ^
|
||||
Physical '0' -----' '---' '---------'--------- Idle low
|
||||
|---- 32 us ----| 7 |- 20 us -|- 19 us -|
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
word ReadBits ( byte nbBits )
|
||||
{
|
||||
word data = 0;
|
||||
|
||||
ParityBit = 0;
|
||||
|
||||
while ( nbBits-- > 0 )
|
||||
{
|
||||
// Insert new bit
|
||||
data <<= 1;
|
||||
|
||||
// Wait until rising edge of new bit.
|
||||
while ( INPUT_IS_CLEAR )
|
||||
{
|
||||
// Reset watchdog.
|
||||
wdt_reset();
|
||||
}
|
||||
|
||||
// Reset timer to measure bit length.
|
||||
TCNT0 = 0;
|
||||
|
||||
// Wait until falling edge.
|
||||
while ( INPUT_IS_SET );
|
||||
|
||||
// Compare half way between a '1' (20 us) and a '0' (32 us ): 32 - (32 - 20) /2 = 26 us
|
||||
if ( TCNT0 < BIT_0_HOLD_ON_LENGTH - (BIT_0_HOLD_ON_LENGTH - BIT_1_HOLD_ON_LENGTH) / 2 )
|
||||
{
|
||||
// Set new bit.
|
||||
data |= 0x0001;
|
||||
|
||||
// Adjust parity.
|
||||
ParityBit = ! ParityBit;
|
||||
}
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : SendMessage
|
||||
|
||||
Description : Sends the message in global registers on the AVC LAN bus.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : (bool) -> TRUE if successful else FALSE.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
bool SendMessage ( void )
|
||||
{
|
||||
while ( ! IsAvcBusFree() );
|
||||
|
||||
// At this point we know the bus is available.
|
||||
|
||||
LedOn();
|
||||
|
||||
// Send start bit.
|
||||
SendStartBit();
|
||||
|
||||
// Broadcast bit.
|
||||
Send1BitWord( Broadcast );
|
||||
|
||||
// Master address = me.
|
||||
Send12BitWord( MasterAddress );
|
||||
Send1BitWord( ParityBit );
|
||||
|
||||
// Slave address = head unit (HU).
|
||||
Send12BitWord( SlaveAddress );
|
||||
Send1BitWord( ParityBit );
|
||||
|
||||
if ( ! HandleAcknowledge() )
|
||||
{
|
||||
DumpRawMessage( TRUE );
|
||||
UsartPutStr( (char*)"SendMessage: No Ack @ Slave address\r\n" );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Control flag + parity.
|
||||
Send4BitWord( Control );
|
||||
Send1BitWord( ParityBit );
|
||||
|
||||
if ( ! HandleAcknowledge() )
|
||||
{
|
||||
DumpRawMessage( TRUE );
|
||||
UsartPutStr( (char*)"SendMessage: No Ack @ Control\r\n" );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Data length + parity.
|
||||
Send8BitWord( DataSize );
|
||||
Send1BitWord( ParityBit );
|
||||
|
||||
if ( ! HandleAcknowledge() )
|
||||
{
|
||||
DumpRawMessage( TRUE );
|
||||
UsartPutStr( (char*)"SendMessage: No Ack @ DataSize\r\n" );
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
for ( byte i = 0; i < DataSize; i++ )
|
||||
{
|
||||
Send8BitWord( Data[i] );
|
||||
Send1BitWord( ParityBit );
|
||||
|
||||
if ( ! HandleAcknowledge() )
|
||||
{
|
||||
DumpRawMessage( TRUE );
|
||||
sprintf( UsartMsgBuffer, "SendMessage: No Ack @ Data[%d]\r\n", i );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
DumpRawMessage( TRUE );
|
||||
|
||||
LedOff();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : ReadAcknowledge
|
||||
|
||||
Description : Reads the acknowledge bit the AVC LAN bus.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : (bool) -> TRUE if ack detected else FALSE.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
inline bool ReadAcknowledge ( void )
|
||||
{
|
||||
// The acknowledge pattern is very tricky: the sender shall drive the bus for the equivalent
|
||||
// of a bit '1' (20 us) then release the bus and listen. At this point the target shall have
|
||||
// taken over the bus maintaining the pulse until the equivalent of a bit '0' (32 us) is formed.
|
||||
|
||||
// Reset timer to measure bit length.
|
||||
TCNT0 = 0;
|
||||
|
||||
// Drive output to signal high.
|
||||
DDRD |= _BV(PD2) | _BV(PD3);
|
||||
|
||||
// Generate bit '0'.
|
||||
while ( TCNT0 < BIT_1_HOLD_ON_LENGTH );
|
||||
|
||||
// Release output.
|
||||
DDRD &= ~( _BV(PD2) | _BV(PD3) );
|
||||
|
||||
// Measure final resulting bit.
|
||||
while ( INPUT_IS_SET );
|
||||
|
||||
// Sample half-way through bit '0' (26 us) to detect whether the target is acknowledging.
|
||||
if ( TCNT0 > BIT_0_HOLD_ON_LENGTH - (BIT_0_HOLD_ON_LENGTH - BIT_1_HOLD_ON_LENGTH) / 2 )
|
||||
{
|
||||
// Slave is acknowledging (ack = 0). Wait until end of ack bit.
|
||||
while ( INPUT_IS_SET );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// No sign of life on the bus.
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : HandleAcknowledge
|
||||
|
||||
Description : Sends ack bit if I am broadcasting otherwise wait and return received ack bit.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : (bool) -> FALSE if ack bit not detected.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
bool HandleAcknowledge ( void )
|
||||
{
|
||||
if ( Broadcast == MSG_BCAST )
|
||||
{
|
||||
// Acknowledge.
|
||||
Send1BitWord( 0 );
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// Return acknowledge bit.
|
||||
return ReadAcknowledge();
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : IsAvcBusFree
|
||||
|
||||
Description : Determine whether the bus is free (no tx/rx).
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : (bool) -> TRUE is bus is free.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
bool IsAvcBusFree ( void )
|
||||
{
|
||||
// Reset timer.
|
||||
TCNT0 = 0;
|
||||
|
||||
while ( INPUT_IS_CLEAR )
|
||||
{
|
||||
// We assume the bus is free if anything happens for the length of 1 bit.
|
||||
if ( TCNT0 > NORMAL_BIT_LENGTH )
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : DumpRawMessage
|
||||
|
||||
Description : Dumps raw content of message registers on the terminal.
|
||||
|
||||
Argument(s) : incoming (bool) -> TRUE means incoming data, FALSE means outgoing.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void DumpRawMessage ( bool incoming )
|
||||
{
|
||||
// Dump message on terminal.
|
||||
|
||||
if ( incoming )
|
||||
UsartPutCStr( PSTR("\r\nAUX Enabler <<--- HU\r\n") );
|
||||
else
|
||||
UsartPutCStr( PSTR("\r\nAUX Enabler --->> HU\r\n") );
|
||||
|
||||
UsartPutCStr( PSTR(" Description: ") );
|
||||
UsartPutCStr( Description );
|
||||
UsartPutCStr( PSTR("\r\n") );
|
||||
|
||||
sprintf( UsartMsgBuffer, " Broadcast: %d \r\n", Broadcast );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
|
||||
sprintf( UsartMsgBuffer, " Master address: 0x%X \r\n", MasterAddress );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
|
||||
sprintf( UsartMsgBuffer, " Slave address: 0x%X \r\n", SlaveAddress );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
|
||||
sprintf( UsartMsgBuffer, " Control: 0x%X \r\n", Control );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
|
||||
sprintf( UsartMsgBuffer, " Data size: %d \r\n", DataSize );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
|
||||
sprintf( UsartMsgBuffer, " Data: " );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
|
||||
for ( byte i = 0; i < DataSize; i++ )
|
||||
{
|
||||
sprintf( UsartMsgBuffer, "%X ", Data[i] );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
}
|
||||
|
||||
UsartPutStr( (char*)"\r\n-----\r\n" );
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : LedOn
|
||||
|
||||
Description : Turn LED on (active low signal).
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
inline void LedOn ( void )
|
||||
{
|
||||
LED_PORT &= ~LEDOUT;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : LedOff
|
||||
|
||||
Description : Turn LED off (active low signal).
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
inline void LedOff ( void )
|
||||
{
|
||||
LED_PORT |= LEDOUT;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
End of file.
|
||||
--------------------------------------------------------------------------------------------------*/
|
109
AVCLanDriver.h
109
AVCLanDriver.h
@ -1,109 +0,0 @@
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : AvcLanDriver.h
|
||||
|
||||
Description : AVC Lan driver for Toyota devices
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
#ifndef _AVCLANDRV_H_
|
||||
#define _AVCLANDRV_H_
|
||||
|
||||
#include "GlobalDef.h"
|
||||
|
||||
#define HU_ADDRESS 0x190 // But possibly 0x160, known to be both
|
||||
|
||||
#define MY_ADDRESS 0x360 // CD Changer #1
|
||||
|
||||
#define BROADCAST_ADDRESS 0x01FF // All audio devices
|
||||
|
||||
#define CONTROL_FLAGS 0xF
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
|<---- Bit '0' ---->|<---- Bit '1' ---->|
|
||||
Physical '1' ,---------------, ,---------, ,---------
|
||||
^ | ^ | ^
|
||||
Physical '0' -----' '---' '---------'--------- Idle low
|
||||
|---- 33 us ----| 7 |- 20 us -|- 20 us -|
|
||||
|
||||
A bit '0' is typically 33 us high followed by 7 us low.
|
||||
A bit '1' is typically 20 us high followed by 20 us low.
|
||||
A start bit is typically 165 us high followed by 30 us low.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
|
||||
// Following multipliers result of Timer 0 prescaler having 2 counts/us
|
||||
#define NORMAL_BIT_LENGTH 74 //37*2
|
||||
|
||||
#define BIT_1_HOLD_ON_LENGTH 40 //20*2
|
||||
#define BIT_0_HOLD_ON_LENGTH 64 //33*2
|
||||
|
||||
#define START_BIT_LENGTH 372 //186*2
|
||||
#define START_BIT_HOLD_ON_LENGTH 336 //168*2
|
||||
|
||||
typedef enum
|
||||
{ // No this is not a mistake, broadcast = 0!
|
||||
MSG_NORMAL = 1,
|
||||
MSG_BCAST = 0
|
||||
|
||||
} AvcTransmissionMode;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
ACT_NONE,
|
||||
|
||||
ACT_AUX_IN_USE,
|
||||
ACT_TUNER_IN_USE,
|
||||
ACT_TAPE_IN_USE,
|
||||
ACT_CD_IN_USE,
|
||||
|
||||
ACT_EJECT_CD,
|
||||
ACT_NO_CD,
|
||||
ACT_TUNER_INFO,
|
||||
ACT_AUDIO_STATUS,
|
||||
// ACT_CD_INFO,
|
||||
|
||||
ACT_STATUS,
|
||||
ACT_REGISTER,
|
||||
ACT_INIT,
|
||||
ACT_CHECK
|
||||
|
||||
} AvcActionID;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
AvcActionID ActionID; // Action to perform after receiving this message.
|
||||
byte DataSize; // Payload data size (bytes).
|
||||
byte Data[ 11 ]; // Payload data.
|
||||
char Description[ 17 ]; // ASCII description of the command for terminal dump.
|
||||
|
||||
} AvcIncomingMessageStruct;
|
||||
|
||||
typedef const AvcIncomingMessageStruct AvcInMessage;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
AvcTransmissionMode Mode; // Transmission mode: normal (1) or broadcast (0).
|
||||
byte DataSize; // Payload data size (bytes).
|
||||
byte Data[ 11 ]; // Payload data.
|
||||
char Description[ 17 ]; // ASCII description of the command for terminal dump.
|
||||
|
||||
} AvcOutgoingMessageStruct;
|
||||
|
||||
typedef const AvcOutgoingMessageStruct AvcOutMessage;
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Prototypes
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
AvcActionID AvcReadMessage ( void );
|
||||
|
||||
bool AvcProcessActionID ( AvcActionID actionID );
|
||||
void AvcUpdateStatus ( void );
|
||||
|
||||
void DumpRawMessage ( bool incoming );
|
||||
|
||||
#endif // _AVCLANDRV_H_
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
End of file.
|
||||
--------------------------------------------------------------------------------------------------*/
|
BIN
AVCLanDriver.o
BIN
AVCLanDriver.o
Binary file not shown.
BIN
BigPcb.jpg
BIN
BigPcb.jpg
Binary file not shown.
Before Width: | Height: | Size: 87 KiB |
BIN
BigSchematic.jpg
BIN
BigSchematic.jpg
Binary file not shown.
Before Width: | Height: | Size: 128 KiB |
128
CMakeLists.txt
Normal file
128
CMakeLists.txt
Normal file
@ -0,0 +1,128 @@
|
||||
cmake_minimum_required(VERSION 3.24)
|
||||
include(CMakeDependentOption)
|
||||
|
||||
set(WITH_MCU OFF) # Disable target name modification setting from toolchain
|
||||
set(AVR_MCU "attiny3216")
|
||||
set(AVR_UPLOADTOOL_PORT /dev/ttyUSB1)
|
||||
set(AVR_PROGRAMMER serialupdi)
|
||||
set(AVR_UPLOADTOOL_BAUDRATE 230400)
|
||||
|
||||
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_CURRENT_SOURCE_DIR}/cmake/avr-gcc-toolchain.cmake")
|
||||
|
||||
project(avclan-mockingboard VERSION 1 LANGUAGES C CXX ASM)
|
||||
|
||||
set(FREQSEL 16MHz CACHE STRING "Select the operating frequency")
|
||||
set_property(CACHE FREQSEL PROPERTY STRINGS "20MHz" "16MHz")
|
||||
|
||||
if(FREQSEL MATCHES "20MHz")
|
||||
set(FREQSEL 20000000L)
|
||||
set(AVR_UPLOADTOOL_BASE_OPTIONS ${AVR_UPLOADTOOL_BASE_OPTIONS} -U osccfg:w:0x2:m)
|
||||
else()
|
||||
set(FREQSEL 16000000L)
|
||||
set(AVR_UPLOADTOOL_BASE_OPTIONS ${AVR_UPLOADTOOL_BASE_OPTIONS} -U osccfg:w:0x1:m)
|
||||
endif()
|
||||
|
||||
option(CLK_PRESCALE "Enable the main clock prescaler")
|
||||
cmake_dependent_option(CLK_PRESCALE_DIV "Prescaler divisor" CLKCTRL_PDIV_2X_gc STRING "CLK_PRESCALE")
|
||||
if(DEFINED CACHE{CLK_PRESCALE_DIV})
|
||||
set_property(CACHE CLK_PRESCALE_DIV PROPERTY STRINGS
|
||||
CLKCTRL_PDIV_2X_gc
|
||||
CLKCTRL_PDIV_4X_gc
|
||||
CLKCTRL_PDIV_8X_gc
|
||||
CLKCTRL_PDIV_16X_gc
|
||||
CLKCTRL_PDIV_32X_gc
|
||||
CLKCTRL_PDIV_64X_gc
|
||||
CLKCTRL_PDIV_6X_gc
|
||||
CLKCTRL_PDIV_10X_gc
|
||||
CLKCTRL_PDIV_12X_gc
|
||||
CLKCTRL_PDIV_24X_gc
|
||||
CLKCTRL_PDIV_48X_gc
|
||||
)
|
||||
else()
|
||||
set(CLK_PRESCALE_DIV CLKCTRL_PDIV_2X_gc)
|
||||
endif()
|
||||
|
||||
set(TCB_CLKSEL "TCB_CLKSEL_CLKDIV2_gc" CACHE STRING "Choose the clock for TCB")
|
||||
set_property(CACHE TCB_CLKSEL PROPERTY STRINGS
|
||||
TCB_CLKSEL_CLKDIV1_gc
|
||||
TCB_CLKSEL_CLKDIV2_gc
|
||||
TCB_CLKSEL_CLKTCA_gc
|
||||
)
|
||||
|
||||
set(USART_RXMODE "USART_RXMODE_CLK2X_gc" CACHE STRING "USART at normal or double speed operation")
|
||||
set_property(CACHE USART_RXMODE PROPERTY STRINGS
|
||||
USART_RXMODE_CLK2X_gc
|
||||
USART_RXMODE_NORMAL_gc
|
||||
)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "8.3")
|
||||
message(FATAL_ERROR "Insufficient AVR-GCC version; Support for ATtiny3216 was added in GCC v8")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Handle libc versioning
|
||||
try_compile(LIBC_VERSION_TEST
|
||||
SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/cmake/libc-version-test.cpp"
|
||||
COMPILE_DEFINITIONS -mmcu=${AVR_MCU}
|
||||
)
|
||||
|
||||
if(NOT LIBC_VERSION_TEST)
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
attiny_atpack
|
||||
URL http://packs.download.atmel.com/Atmel.ATtiny_DFP.2.0.368.atpack
|
||||
URL_HASH SHA512=ee16a8ebecb57bd998a9cd4373368e3d45982cbbc3825e18d1dcac58215db6b9d907ad1ba2020cba9187fed7ba8c6f255a4fa1214e40c7a17ab2d18474f4d079
|
||||
DOWNLOAD_NAME Atmel.ATtiny_DFP.2.0.368.atpack.zip
|
||||
)
|
||||
FetchContent_MakeAvailable(attiny_atpack)
|
||||
try_compile(LIBC_VERSION_TEST
|
||||
SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/cmake/libc-version-test.cpp"
|
||||
COMPILE_DEFINITIONS
|
||||
-B "${attiny_atpack_SOURCE_DIR}/gcc/dev/${AVR_MCU}"
|
||||
-isystem "${attiny_atpack_SOURCE_DIR}/include"
|
||||
-mmcu=${AVR_MCU}
|
||||
)
|
||||
if(NOT LIBC_VERSION_TEST)
|
||||
message(FATAL_ERROR "Insufficient AVR-LIBC/Microchip pack for chosen MCU '${AVR_MCU}'")
|
||||
else()
|
||||
include_directories(SYSTEM "${attiny_atpack_SOURCE_DIR}/include")
|
||||
add_compile_options(
|
||||
-B "${attiny_atpack_SOURCE_DIR}/gcc/dev/${AVR_MCU}"
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
set(CMAKE_C_STANDARD 17)
|
||||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||||
|
||||
set(CMAKE_C_FLAGS_RELEASE "-Os")
|
||||
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -save-temps -g -gdwarf-3 -gstrict-dwarf")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-O0 -save-temps -g -gdwarf-3 -gstrict-dwarf")
|
||||
|
||||
# Set startup time to 8 ms (0x4)
|
||||
set(AVR_UPLOADTOOL_BASE_OPTIONS ${AVR_UPLOADTOOL_BASE_OPTIONS} -U syscfg1:w:0x4:m)
|
||||
|
||||
add_avr_executable(mockingboard
|
||||
src/sniffer.c
|
||||
src/com232.c
|
||||
src/avclandrv.c)
|
||||
|
||||
target_link_options(mockingboard PUBLIC
|
||||
-B "${attiny_atpack_SOURCE_DIR}/gcc/dev/${AVR_MCU}"
|
||||
)
|
||||
target_compile_definitions(mockingboard PRIVATE
|
||||
FREQSEL=${FREQSEL}
|
||||
CLK_PRESCALE=$<IF:$<BOOL:${CLK_PRESCALE}>,0x01,0x00>
|
||||
CLK_PRESCALE_DIV=${CLK_PRESCALE_DIV}
|
||||
__CLK_PRESCALE_DIV=__${CLK_PRESCALE_DIV}
|
||||
TCB_CLKSEL=${TCB_CLKSEL}
|
||||
USART_RXMODE=${USART_RXMODE}
|
||||
)
|
||||
target_compile_options(mockingboard PRIVATE
|
||||
--param=min-pagesize=0
|
||||
-ffunction-sections
|
||||
-fdata-sections
|
||||
-fshort-enums
|
||||
)
|
31
CMakePresets.json
Normal file
31
CMakePresets.json
Normal file
@ -0,0 +1,31 @@
|
||||
{
|
||||
"version": 2,
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "default",
|
||||
"displayName": "Debug",
|
||||
"description": "Configure with Debug build settings",
|
||||
"generator": "Unix Makefiles",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "Debug",
|
||||
"FREQSEL": "20MHz",
|
||||
"TCB_CLKSEL": "TCB_CLKSEL_CLKDIV1_gc"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "relwithdebinfo",
|
||||
"displayName": "RelWithDebInfo",
|
||||
"description": "Configure with RelWithDebInfo build settings",
|
||||
"generator": "Unix Makefiles",
|
||||
"binaryDir": "${sourceDir}/build",
|
||||
"inherits": "default",
|
||||
"cacheVariables": {
|
||||
"CMAKE_BUILD_TYPE": "RelWithDebInfo",
|
||||
"FREQSEL": "20MHz",
|
||||
"TCB_CLKSEL": "TCB_CLKSEL_CLKDIV1_gc",
|
||||
"USART_RXMODE": "USART_RXMODE_CLK2X_gc"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
50
GlobalDef.h
50
GlobalDef.h
@ -1,50 +0,0 @@
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : GlobalDef.h
|
||||
|
||||
Description : Global definitions.
|
||||
|
||||
History : 2004/04/06 - Created by Louis Frigon.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
#ifndef _GLOBALDEF_H_
|
||||
#define _GLOBALDEF_H_
|
||||
|
||||
#include <avr/io.h>
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Constants
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
#define FALSE 0
|
||||
#define TRUE (!FALSE)
|
||||
|
||||
// AVC LAN bus directly connected to internal analog comparator (PD6/7)
|
||||
// PD6 AIN0 +
|
||||
// PD7 AIN1 -
|
||||
#define DATAIN_PIN ACSR
|
||||
#define DATAIN ACO
|
||||
|
||||
#define INPUT_IS_SET ( bit_is_set( DATAIN_PIN, DATAIN ) )
|
||||
#define INPUT_IS_CLEAR ( bit_is_clear( DATAIN_PIN, DATAIN ) )
|
||||
|
||||
#define LED_DDR DDRB
|
||||
#define LED_PORT PORTB
|
||||
#define LEDOUT _BV(PORT5)
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Type definitions
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
typedef unsigned char byte;
|
||||
typedef unsigned int word;
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Prototypes
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
inline void LedOff( void );
|
||||
inline void LedOn( void );
|
||||
|
||||
#endif // _GLOBALDEF_H_
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
End of file.
|
||||
--------------------------------------------------------------------------------------------------*/
|
686
LICENSE
686
LICENSE
@ -1,22 +1,674 @@
|
||||
The MIT License (MIT)
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (c) 2015 halleysfifthinc
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
Preamble
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
|
28
Makefile
28
Makefile
@ -1,28 +0,0 @@
|
||||
CC=avr-g++
|
||||
CFLAGS=-c -g -Os -Wall -fno-exceptions -fpermissive -ffunction-sections -fdata-sections -fno-threadsafe-statics -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR
|
||||
LFLAGS=-g -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10605 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR
|
||||
|
||||
all: ToyotaAuxEnabler.hex
|
||||
|
||||
ToyotaAuxEnabler.hex: ToyotaAuxEnabler.elf
|
||||
avr-objcopy -j .text -j .data -O ihex ToyotaAuxEnabler.elf ToyotaAuxEnabler.hex
|
||||
|
||||
ToyotaAuxEnabler.elf: ToyotaAuxEnabler.o USART.o AVCLanDriver.o
|
||||
$(CC) $(LFLAGS) -o ToyotaAuxEnabler.elf ToyotaAuxEnabler.o USART.o AVCLanDriver.o
|
||||
|
||||
ToyotaAuxEnabler.o: ToyotaAuxEnabler.c GlobalDef.h USART.h AVCLanDriver.h
|
||||
$(CC) $(CFLAGS) ToyotaAuxEnabler.c
|
||||
|
||||
USART.o: USART.c USART.h GlobalDef.h
|
||||
$(CC) $(CFLAGS) USART.c
|
||||
|
||||
AVCLanDriver.o: AVCLanDriver.c GlobalDef.h USART.h AVCLanDriver.h
|
||||
$(CC) $(CFLAGS) AVCLanDriver.c
|
||||
|
||||
clean:
|
||||
rm *.o *.hex *.elf
|
||||
|
||||
upload: ToyotaAuxEnabler.hex
|
||||
avrdude -C/home/allen/Programs/arduino-1.6.5/hardware/tools/avr/etc/avrdude.conf -v -patmega328p -carduino -P/dev/arduino -b57600 -D -Uflash:w:ToyotaAuxEnabler.hex:i
|
||||
|
||||
.PHONY: upload
|
115
README.md
Normal file
115
README.md
Normal file
@ -0,0 +1,115 @@
|
||||
# AVCLAN Mockingboard
|
||||
|
||||
<img src="./hardware/pcbv1.png" width=500\>
|
||||
|
||||
This board adds an auxiliary audio input to the stock head unit of compatible Toyota vehicles using a Microchip ATtiny3216 to emulate a CD changer. The Mockingboard communicates with the head unit on the AVC-LAN bus, Toyota's name for their messaging protocol over the NEC (now Renesas) IEBus.
|
||||
|
||||
# Project status:
|
||||
|
||||
The circuit board and firmware is functional and can send/recieve messages on the AVC-LAN bus. The AVC-LAN driver is incomplete and doesn't finish the initial "handshake"/advertisement, but manually sending the CD changer activation command ('p' on the serial "REPL") is effective in enabling the CD changer audio inputs (this state persists between car trips, although loss of power (dead/disconnected battery) will reset the head unit). The semi-working state of the project is functional enough for me to live with for now; although I plan on eventually coming back to this.
|
||||
|
||||
## (Upcoming) Features
|
||||
|
||||
- [ ] AVCLAN communication uses PWM peripherals for sending and receiving
|
||||
- The sending PWM (TCD) is unique to the tinyAVR 1-series, and allows queuing 2 bits at a time for sending on the AVC-Lan bus. Technically this still qualifies as ["bit-banging"](https://en.wikipedia.org/wiki/Bit_banging), but should be more robust and exhibit lower timing jitter (than previous method of manually toggling pin outputs and busy-waiting for timer counters; and not that the timing jitter was a problem).
|
||||
- The receiving timer (TCB) precisely (again, probably more precisely than really needed) measures pulse-widths to distinguish bits.
|
||||
- [ ] Hardware designed with a headset (TRRS) jack allows triggering media play/pause/skip using the head-unit buttons
|
||||
|
||||
## Roadmap
|
||||
|
||||
- [ ] Refactor (simplify) existing AVC LAN framework
|
||||
- [ ] Switch AVC-LAN Tx to TCD PWM
|
||||
- [ ] Media play/pause/skip feature
|
||||
- ~~Listen to head-unit for head unit on/off and skip~~
|
||||
- Use "MUTE" logic signal from head-unit
|
||||
- Test MIC_CONTROL short duration and double "click" separation
|
||||
- [ ] Switch UART library?
|
||||
- https://github.com/jnk0le/AVR-UART-lib
|
||||
- (Needs updating/extension for tinyAVR 1-series)
|
||||
- Speculative:
|
||||
- Bodge ADC pin to mic to try plug-detection
|
||||
- Bluetooth audio somehow?
|
||||
- ESP32 and an I2S audio codec?
|
||||
|
||||
# Helpful links/prior art:
|
||||
|
||||
- IEBus/AVCLAN decoder and message dumps (inc. a CD changer) for Sigrok
|
||||
- https://github.com/sigrokproject/sigrok-test/pull/22
|
||||
- https://github.com/sigrokproject/sigrok-dumps/pull/43
|
||||
- https://github.com/sigrokproject/libsigrokdecode/pull/106
|
||||
- https://web.archive.org/web/20230319000356/http://softservice.com.pl/corolla/avc/avclan.php
|
||||
- https://web.archive.org/web/20040617005106/http://www.interfacebus.com/Design_Connector_IEbus.html
|
||||
- https://web.archive.org/web/2/https://old.pinouts.ru/Car-Stereo-Toyota-Lexus/Toyota_1990-2002_CD_Chang_pinout.shtml
|
||||
- https://web.archive.org/web/20240519043021/https://pop.fsck.pl/hardware/toyota-corolla.html
|
||||
|
||||
# Current Issues:
|
||||
|
||||
- CD changer emulation isn't working
|
||||
- Mockingboard isn't sending correct responses to finish the initial "handshake"/advertisement
|
||||
- Messages get missed when logging/printing via serial (even when printing raw binary messages)
|
||||
- jnk0le UART lib doesn't support AVR 1-series
|
||||
- TODO: Add support
|
||||
- ~~Write binary parser on computer side which outputs messages in libpcap format to stdout~~
|
||||
- Register functions aren't working
|
||||
- ~~Write packet dissector for Wireshark to reverse engineer more of the protocol~~
|
||||
|
||||
# Hardware
|
||||
|
||||
I ordered the boards partially assembled from JLCPCB (to keep costs down, I ordered and soldered some non-standard/stocked parts myself.)
|
||||
|
||||
The non-populated/assembled BOM is:
|
||||
|
||||
| Mouser #: | Mfr. #: | Desc.: | Order Qty. | Unit Price (USD) |
|
||||
| ------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------ | ---------- | ----------- |
|
||||
| 579-ATTINY3216-SNR | ATTINY3216-SNR | 8-bit Microcontrollers - MCU 8-bit Microcontrollers - MCU 20MHz, 32KB, SOIC20, Ind 105C, Green, T&R | 1 | $1.27 |
|
||||
| 523-L717SDE09PA4CH4 | L717SDE09PA4CH4F | D-Sub Standard Connectors D-Sub Standard Connectors D SUB R/A | 1 | $1.98 |
|
||||
| 490-SJ-43514 | SJ-43514 | Phone Connectors Phone Connectors audio jack, 3.5 mm, rt, 4 conductor, through hole, 0 switches | 1 | $1.35 |
|
||||
| 667-ERZ-V20D220 | ERZ-V20D220 | Varistors Varistors 22V 2000A ZNR SUR ABSORBER 20MM | 1 | $1.24 |
|
||||
| 538-22-28-8093 | 22-28-8093 | Headers & Wire Housings Headers & Wire Housings 2.54MM BREAKAWAY RA 9 CKT Gold | 2 | $0.76 |
|
||||
| 865-XC6701D502JR-G | XC6701D502JR-G | LDO Voltage Regulators LDO Voltage Regulators 28V High Speed Voltage Regulator | 1 | $1.36 |
|
||||
| 563-EXN-23350-BK | EXN-23350-BK | Enclosures, Boxes, & Cases Enclosures, Boxes, & Cases Extruded Aluminum Enclosure Black (1.4 X 2.7 X 1.9 In) | 1 | $14.40 |
|
||||
|
||||
An earlier version of the board* lacked cutouts in the corners to fit the ends of the intended housing, so I haven't used the listed enclosure (yet).
|
||||
|
||||
*Only version of the board I have ordered so far.
|
||||
|
||||
## Cable harness
|
||||
|
||||
I ordered a [cable harness](https://www.amazon.com/dp/B01EUZ8CFU) from Amazon to acquire the head-unit side connector. I then cut the male end off a DB9 cable and connected the wires according to the following cable harness diagram:
|
||||
|
||||

|
||||
|
||||
# Firmware
|
||||
|
||||
### Building
|
||||
|
||||
#### With VS Code:
|
||||
|
||||
1. Install VS Code and Docker
|
||||
- Required extensions: Dev Containers
|
||||
2. Open repo in VS code and wait for notification asking to re-open in dev container.
|
||||
- Wait for container to build and extensions to install
|
||||
3. Select CMake build configuration
|
||||
4. Start developing!
|
||||
|
||||
#### Natively/without VS Code Dev Containers
|
||||
1. Install avr-gcc >= v8.3, binutils >= v2.39, cmake >= v3.24
|
||||
2. Configure cmake in repo with `cmake -B build`
|
||||
- Trigger builds with `cmake --build build`
|
||||
3. Start developing!
|
||||
|
||||
### Flashing
|
||||
|
||||
The CMake target `upload_mockingboard` uses the AVRDude utility using the "serialupdi" programmer type. I use a [USB => Serial converter](https://www.adafruit.com/product/5335) with the Rx and Tx lines connected, using one of the options described [by SpenceKonde here](https://github.com/SpenceKonde/AVR-Guidance/blob/master/UPDI/jtag2updi.md).
|
||||
|
||||
# Protocol reverse-engineering
|
||||
|
||||
The "scripts/packet-analysis" folder contains a [Wireshark](https://www.wireshark.org/) [Lua plugin](https://www.wireshark.org/docs/wsdg_html_chunked/wsluarm.html) that defines a dissector for IEBUS and AVC-LAN messages. Also contained in that folder is a [Julia](https://julialang.org/) script that pipes packets from the Mockingboard serial into Wireshark for live capturing and inspection.
|
||||
|
||||
# License
|
||||
|
||||
The firmware for this project is licensed under the [GNU GPLv3](https://www.gnu.org/licenses/gpl-3.0.html),
|
||||
and the hardware is licensed under the [Solderpad Hardware License v2.1](http://solderpad.org/licenses/SHL-2.1/), a
|
||||
wraparound license to the [Apache License 2.0](https://apache.org/licenses/LICENSE-2.0.txt).
|
||||
|
||||
|
@ -1,144 +0,0 @@
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : ToyotaAuxEnabler.c
|
||||
|
||||
Description : This program enables the AUX audio input on old Toyota radios with CD. Pressing
|
||||
CD Eject button while no CD is loaded will toggle the AUX input.
|
||||
|
||||
MCU : ATmega328P @ 16 MHz.
|
||||
|
||||
Author : 2007-01-27 - Louis Frigon
|
||||
|
||||
Copyright : (c) 2007 SigmaObjects
|
||||
|
||||
History : 2007-01-27 - v0.1 Prototyping draft inspired from Marcin Slonicki's code.
|
||||
2007-02-24 - v1.0 Production release.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/wdt.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "GlobalDef.h"
|
||||
#include "USART.h"
|
||||
#include "AVCLanDriver.h"
|
||||
|
||||
#define FIRMWARE_VERSION "v1.0"
|
||||
#define FIRMWARE_DATE __DATE__
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Prototypes
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void InitMCU ( void );
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Global Variables
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
volatile bool SecondsTick = FALSE;
|
||||
|
||||
char UsartMsgBuffer[ USART_BUFFER_SIZE ];
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : InitMCU
|
||||
|
||||
Description : Performs MCU initialization.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void InitMCU ( void )
|
||||
{
|
||||
// Init LED port pin
|
||||
LED_DDR |= LEDOUT;
|
||||
LedOff();
|
||||
|
||||
// OLD: TCCR0A = _BV(CS01);
|
||||
// Correction: TCCR0B has the CS0n bits, not TCCR0A, prescaler should be at 8 or less to have 1 or more counts/us
|
||||
// Timer 0 prescaler = 8 ( 2 count / us )
|
||||
TCCR0B = _BV(CS01);
|
||||
|
||||
InitUSART();
|
||||
|
||||
// Preset AVC bus driver output pins but leave pins tri-stated until we need to use them.
|
||||
PORTD |= _BV(PD3); // PD3 (+) high.
|
||||
PORTD &= ~_BV(PD2); // PD2 (-) low.
|
||||
|
||||
// Enable watchdog @ ~2 sec.
|
||||
// Likely this too, after research probably not, but maybe
|
||||
wdt_enable( WDTO_2S );
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : LedOn
|
||||
|
||||
Description : Turn LED on (active low signal).
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
inline void LedOn ( void )
|
||||
{
|
||||
LED_PORT &= ~LEDOUT;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : LedOff
|
||||
|
||||
Description : Turn LED off (active low signal).
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
inline void LedOff ( void )
|
||||
{
|
||||
LED_PORT |= LEDOUT;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : main
|
||||
|
||||
Description : Program's main function.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
int main ( void )
|
||||
{
|
||||
InitMCU();
|
||||
|
||||
UsartPutCStr( PSTR("\r\n\t\t Toyota AVC-Lan AUX Enabler\r\n") );
|
||||
UsartPutCStr( PSTR("\t\tCopyright (C) 2007, SigmaObjects Inc.\r\n") );
|
||||
|
||||
sprintf( UsartMsgBuffer, "\t\t Firmware %s, %s\r\n\r\n", FIRMWARE_VERSION, FIRMWARE_DATE );
|
||||
UsartPutStr( UsartMsgBuffer );
|
||||
|
||||
while ( 1 )
|
||||
{
|
||||
// Reset watchdog.
|
||||
wdt_reset();
|
||||
|
||||
AvcActionID actionID = AvcReadMessage();
|
||||
|
||||
if ( actionID != ACT_NONE )
|
||||
{
|
||||
AvcProcessActionID( actionID );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
End of file.
|
||||
--------------------------------------------------------------------------------------------------*/
|
Binary file not shown.
@ -1,273 +0,0 @@
|
||||
:100000000C9414020C9431020C9431020C943102C1
|
||||
:100010000C9431020C9431020C9431020C94310294
|
||||
:100020000C9431020C9431020C9431020C94310284
|
||||
:100030000C9431020C9431020C9431020C94310274
|
||||
:100040000C9431020C9431020C9431020C94310264
|
||||
:100050000C9431020C9431020C9431020C94310254
|
||||
:100060000C9431020C9431020909436F7079726962
|
||||
:100070006768742028432920323030372C20536998
|
||||
:10008000676D614F626A6563747320496E632E0DFC
|
||||
:100090000A000D0A09092020202020546F796F746E
|
||||
:1000A00061204156432D4C616E2041555820456ECC
|
||||
:1000B00061626C65720D0A000D0A00202020446503
|
||||
:1000C000736372697074696F6E3A20202020000D8E
|
||||
:1000D0000A41555820456E61626C6572202D2D2DA8
|
||||
:1000E0003E3E2048550D0A000D0A41555820456EE8
|
||||
:1000F00061626C6572203C3C2D2D2D2048550D0A07
|
||||
:100100000041766350726F63657373416374696F06
|
||||
:100110006E49443A20556E6B6E6F776E2061637442
|
||||
:10012000696F6E204944210D0A00556E6B6E6F7722
|
||||
:100130006E206D657373616765210041766352655A
|
||||
:1001400061644D6573736167653A20546869732013
|
||||
:100150006D65737361676520697320666F72206DCA
|
||||
:1001600065210D0A00417663526561644D657373C4
|
||||
:100170006167653A20506172697479206572726FA7
|
||||
:10018000722040204461746153697A65210D0A0030
|
||||
:10019000417663526561644D6573736167653A20AA
|
||||
:1001A000506172697479206572726F7220402043C9
|
||||
:1001B0006F6E74726F6C210D0A0041766352656137
|
||||
:1001C000644D6573736167653A2050617269747933
|
||||
:1001D000206572726F72204020536C6176654164B5
|
||||
:1001E0006472657373210D0A004176635265616420
|
||||
:1001F0004D6573736167653A205061726974792047
|
||||
:100200006572726F722040204D6173746572416433
|
||||
:100210006472657373210D0A00010005000111511C
|
||||
:100220006100000000000044697361626C65204158
|
||||
:100230005558000000000000010005000111506148
|
||||
:10024000000000000000456E61626C652041555859
|
||||
:100250000000000000000001000411014501000041
|
||||
:10026000000000000041555820696E20757365003C
|
||||
:1002700000000000000002000411014560000000C1
|
||||
:100280000000000054756E657220696E20757365FC
|
||||
:10029000000000000003000411014561000000009F
|
||||
:1002A0000000005461706520696E20757365000060
|
||||
:1002B000000000000400041101456200000000007D
|
||||
:1002C0000000434420696E20757365000000000043
|
||||
:1002D00000000000000311014600000000000000C3
|
||||
:1002E000004E6F2064657669636520696E207573C2
|
||||
:1002F0006500000003110120000000000000000064
|
||||
:1003000050696E670000000000000000000000005F
|
||||
:10031000000700056031F1010100000000000054F9
|
||||
:10032000756E65722053746174757300000000006F
|
||||
:1003300005000A6231F10030010100000080456AC9
|
||||
:1003400065637420434400000000000000000006C4
|
||||
:10035000000A6231F100F80101000000804E6F20B8
|
||||
:1003600043440000000000000000000000000800FE
|
||||
:10037000047431F1900000000000000041756469D0
|
||||
:100380006F2053746174757300000000000900034E
|
||||
:1003900000010A00000000000000004C414E205304
|
||||
:1003A0007461747573000000000000000A000311FE
|
||||
:1003B000010000000000000000004C414E2052658A
|
||||
:1003C00067697374657200000000000B000311017F
|
||||
:1003D0000100000000000000004C414E20526573F7
|
||||
:1003E000746172740000000000000C000311012011
|
||||
:1003F00000000000000000004C414E20436865638F
|
||||
:100400006B00000000000000000000000000000081
|
||||
:1004100000000000000000000000000000000000DC
|
||||
:10042000000000000000000011241FBECFEFD8E044
|
||||
:10043000DEBFCDBF11E0A0E0B1E0E0E0F0E102C03E
|
||||
:1004400005900D92AC3FB107D9F723E0ACEFB1E0D6
|
||||
:1004500001C01D92AA35B207E1F70E9447020C9431
|
||||
:10046000FE070C940000259A2D9A82E085BD0E941B
|
||||
:1004700077025B9A5A982FE088E190E00FB6F894E3
|
||||
:10048000A895809360000FBE2093600008950E949D
|
||||
:10049000330282E990E00E94A60288E690E00E9482
|
||||
:1004A000A60280E091E09F938F938CE091E09F9370
|
||||
:1004B0008F9381E191E09F938F938CEF91E09F93D5
|
||||
:1004C0008F930E942D058CEF91E00E949A028DB7C8
|
||||
:1004D0009EB708960FB6F8949EBF0FBE8DBFA89525
|
||||
:1004E0000E9415040097D9F30E941303F8CFE1ECA2
|
||||
:1004F000F0E010821092C00086E88093C20087E688
|
||||
:100500008093C400589A88E1808308958091C00048
|
||||
:10051000881F8827881F08958091C00087FFFCCF1F
|
||||
:100520008091C60008959091C00095FFFCCF809304
|
||||
:10053000C6000895CF93DF93EC018991882319F0C9
|
||||
:100540000E949302FACFDF91CF910895CF93DF936A
|
||||
:10055000FC018491EF012196882321F00E949302EF
|
||||
:10056000FE01F7CFDF91CF9108959C01225F3F4FAD
|
||||
:100570003093590320935803FC01249141E0211149
|
||||
:1005800001C040E04093570320E633E03093560328
|
||||
:1005900020935503411103C02FEF31E002C020E941
|
||||
:1005A00031E03093540320935303FC01329644917D
|
||||
:1005B00040935103319620E532E0D9015A2F521B66
|
||||
:1005C000541720F454915D933196F8CF0895282F55
|
||||
:1005D0001092500380E090E041E02150A8F0880F95
|
||||
:1005E000991F00B605FC02C0A895FBCF16BC00B64B
|
||||
:1005F00005FCFDCF36B5343380F781603091500370
|
||||
:10060000342730935003E9CF089516BC8AB18C602B
|
||||
:100610008AB986B58034E8F38AB1837F8AB986B512
|
||||
:100620008A34E8F30895853091054CF482309105C1
|
||||
:100630004CF40197A1F581E080934F0234C00597F7
|
||||
:1006400041F02DC090934E0280934D0210924F02C4
|
||||
:100650002AC080914D0290914E02049721F1809121
|
||||
:100660004F02882339F089E192E00E94B50210928E
|
||||
:100670004F0207C088E392E00E94B50281E08093B8
|
||||
:100680004F0216BC00B605FCFCCF86B58B34D0F308
|
||||
:100690002D9816BC8AB18C608AB986B5FECF81E0F0
|
||||
:1006A00091E00E94A60280E0089581E080935703C4
|
||||
:1006B00080E693E0909356038093550380E991E0A0
|
||||
:1006C00090935403809353038FE0809352038AE006
|
||||
:1006D00090E00E94130381E00895FF920F931F930F
|
||||
:1006E000CF93DF93882319F088EE90E002C08FEC5F
|
||||
:1006F00090E00E94A6028BEB90E00E94A6028091FF
|
||||
:100700005803909159030E94A60288EB90E00E9442
|
||||
:10071000A602809157031F928F938CE291E09F93E2
|
||||
:100720008F93CCEFD1E0DF93CF930E942D05CE01C4
|
||||
:100730000E949A02809156038F93809155038F9364
|
||||
:1007400085E491E09F938F93DF93CF930E942D05D3
|
||||
:10075000CE010E949A02809154038F93809153039B
|
||||
:100760008F9380E691E09F938F93DF93CF930E94C6
|
||||
:100770002D05CE010E949A02809152031F928F9301
|
||||
:100780008BE791E09F938F93DF93CF930E942D058A
|
||||
:10079000CE010E949A02809151031F928F9386E9A5
|
||||
:1007A00091E09F938F93DF93CF930E942D05CE010D
|
||||
:1007B0000E949A026FEA71E0CE010E942605CE01E6
|
||||
:1007C0000E949A028DB79EB74E960FB6F8949EBFC0
|
||||
:1007D0000FBE8DBFF12CC3ECD1E00CEF11E0809186
|
||||
:1007E0005103F816C8F4EF2DF0E0E05BFD4F808177
|
||||
:1007F0001F928F93DF93CF931F930F930E942D052A
|
||||
:100800008CEF91E00E949A02F3940F900F900F905A
|
||||
:100810000F900F900F90E3CF87EC91E0DF91CF9195
|
||||
:100820001F910F91FF900C949A02AF92BF92CF92BA
|
||||
:10083000DF92EF92FF920F931F93CF93DF9381E0AC
|
||||
:100840000E94E7022D9881E00E94E70221E0892BB7
|
||||
:1008500009F420E0209357038CE00E94E702909374
|
||||
:10086000560380935503C0915003D0E081E00E946D
|
||||
:10087000E702C817D90719F089EE91E04AC08CE069
|
||||
:100880000E94E702EC01909354038093530300917C
|
||||
:10089000500310E081E00E94E7020817190719F0E1
|
||||
:1008A0008AEB91E036C0BB24B394C036D34029F024
|
||||
:1008B000B12C81E00E94E70202C00E94050384E09F
|
||||
:1008C0000E94E70280935203C0915003D0E081E080
|
||||
:1008D0000E94E702C817D90719F080E991E019C012
|
||||
:1008E000BB2019F00E94050303C081E00E94E702CB
|
||||
:1008F00088E00E94E702A82E80935103C091500324
|
||||
:10090000D0E081E00E94E702C817D90729F085E608
|
||||
:1009100091E00E94A6023CC0BB2019F00E94050392
|
||||
:1009200003C081E00E94E70240E5E42E42E0F42E9D
|
||||
:10093000E70104C0BB2079F10E9405038C2F8E19BA
|
||||
:100940008A1568F58E010055124088E00E94E70282
|
||||
:100950008993C0905003D12C81E00E94E702C81611
|
||||
:10096000D90641F31F930F9381ED91E09F938F93ED
|
||||
:100970008CEF91E09F938F930E942D058CEF91E077
|
||||
:100980000E949A020F900F900F900F900F900F906F
|
||||
:10099000C0E0D0E04FC081E00E94E702CFCFBB2093
|
||||
:1009A00021F08BE391E00E94A6028AE291E090930D
|
||||
:1009B00059038093580329E532E080E090E0BFE1DD
|
||||
:1009C000A0E0B89FB001B99F700D1124F9014491C6
|
||||
:1009D000A417E8F44A2F50E0FA01E60FF71FE65A91
|
||||
:1009E000FD4FE491EA01C05BDD4F48814E1302C028
|
||||
:1009F000AF5FECCF0196215E3F4F8F30910501F73D
|
||||
:100A0000C0E0D0E080E00E946D032D9A13C02FE17A
|
||||
:100A1000289FF001299FF00D1124CF018B599D4F84
|
||||
:100A20009093590380935803E95AFD4FE491CE2FD8
|
||||
:100A3000D0E0E8CFCE01DF91CF911F910F91FF90D1
|
||||
:100A4000EF90DF90CF90BF90AF900895FB01DC0155
|
||||
:100A500001900D920020E1F70895AEE0B0E0E3E3ED
|
||||
:100A6000F5E00C94D5070D891E8986E08C831A83E6
|
||||
:100A700009838FEF9FE79E838D83AE01475E5F4FB3
|
||||
:100A80006F89788DCE0101960E944F05EF81F88520
|
||||
:100A9000E00FF11F10822E96E4E00C94F107ACE019
|
||||
:100AA000B0E0E5E5F5E00C94C7077C016B018A0135
|
||||
:100AB000FC0117821682838181FFBDC1CE010196A0
|
||||
:100AC0004C01F7019381F60193FD859193FF81918C
|
||||
:100AD0006F01882309F4ABC1853239F493FD859108
|
||||
:100AE00093FF81916F01853229F4B70190E00E9454
|
||||
:100AF0003707E7CF512C312C20E02032A0F48B3285
|
||||
:100B000069F030F4803259F0833269F420612CC0EE
|
||||
:100B10008D3239F0803339F4216026C022602460A0
|
||||
:100B200023C0286021C027FD27C030ED380F3A30A0
|
||||
:100B300078F426FF06C0FAE05F9E300D1124532E94
|
||||
:100B400013C08AE0389E300D1124332E20620CC071
|
||||
:100B50008E3221F426FD6BC1206406C08C3611F460
|
||||
:100B6000206802C0883641F4F60193FD859193FF19
|
||||
:100B700081916F018111C1CF982F9F7D9554933042
|
||||
:100B800028F40C5F1F4FFFE3F9830DC0833631F06B
|
||||
:100B9000833771F0833509F05BC022C0F801808192
|
||||
:100BA00089830E5F1F4F44244394512C540115C078
|
||||
:100BB0003801F2E06F0E711CF801A080B18026FFB1
|
||||
:100BC00003C0652D70E002C06FEF7FEFC5012C8779
|
||||
:100BD0000E942C072C0183012C852F77222E17C011
|
||||
:100BE0003801F2E06F0E711CF801A080B18026FF81
|
||||
:100BF00003C0652D70E002C06FEF7FEFC5012C8749
|
||||
:100C00000E9421072C012C852068222E830123FCC1
|
||||
:100C10001BC0832D90E048165906B0F4B70180E25E
|
||||
:100C200090E00E9437073A94F4CFF50127FC8591B4
|
||||
:100C300027FE81915F01B70190E00E9437073110D4
|
||||
:100C40003A94F1E04F1A51084114510471F7E5C08C
|
||||
:100C5000843611F0893639F5F80127FF07C0608125
|
||||
:100C60007181828193810C5F1F4F08C06081718107
|
||||
:100C7000882777FD8095982F0E5F1F4F2F76B22E15
|
||||
:100C800097FF09C090958095709561957F4F8F4F24
|
||||
:100C90009F4F2068B22E2AE030E0A4010E9469072D
|
||||
:100CA000A82EA81844C0853729F42F7EB22E2AE03A
|
||||
:100CB00030E025C0F22FF97FBF2E8F36C1F018F437
|
||||
:100CC000883579F0B4C0803719F0883721F0AFC08B
|
||||
:100CD0002F2F2061B22EB4FE0DC08B2D8460B82E54
|
||||
:100CE00009C024FF0AC09F2F9660B92E06C028E0D5
|
||||
:100CF00030E005C020E130E002C020E132E0F80140
|
||||
:100D0000B7FE07C060817181828193810C5F1F4FA4
|
||||
:100D100006C06081718180E090E00E5F1F4FA401EA
|
||||
:100D20000E946907A82EA818FB2DFF77BF2EB6FEDC
|
||||
:100D30000BC02B2D2E7FA51450F4B4FE0AC0B2FCBC
|
||||
:100D400008C02B2D2E7E05C07A2C2B2D03C07A2CAB
|
||||
:100D500001C0752C24FF0DC0FE01EA0DF11D80813C
|
||||
:100D6000803311F4297E09C022FF06C07394739466
|
||||
:100D700004C0822F867809F0739423FD13C020FFEE
|
||||
:100D800006C05A2C731418F4530C5718732C731490
|
||||
:100D900068F4B70180E290E02C870E9437077394D3
|
||||
:100DA0002C85F5CF731410F4371801C0312C24FFB3
|
||||
:100DB00012C0B70180E390E02C870E9437072C8592
|
||||
:100DC00022FF17C021FF03C088E590E002C088E73A
|
||||
:100DD00090E0B7010CC0822F867859F021FD02C047
|
||||
:100DE00080E201C08BE227FD8DE2B70190E00E9416
|
||||
:100DF0003707A51438F4B70180E390E00E94370765
|
||||
:100E00005A94F7CFAA94F401EA0DF11D8081B7013D
|
||||
:100E100090E00E943707A110F5CF332009F451CE9E
|
||||
:100E2000B70180E290E00E9437073A94F6CFF701CD
|
||||
:100E30008681978102C08FEF9FEF2C96E2E10C94A0
|
||||
:100E4000E307FC010590615070400110D8F78095D0
|
||||
:100E500090958E0F9F1F0895FC0161507040019086
|
||||
:100E60000110D8F7809590958E0F9F1F08950F93CE
|
||||
:100E70001F93CF93DF93182F092FEB018B8181FDF7
|
||||
:100E800003C08FEF9FEF20C082FF10C04E815F81B3
|
||||
:100E90002C813D81421753077CF4E881F9819F0141
|
||||
:100EA0002F5F3F4F39832883108306C0E885F9857B
|
||||
:100EB000812F0995892B29F72E813F812F5F3F4F85
|
||||
:100EC0003F832E83812F902FDF91CF911F910F9120
|
||||
:100ED0000895FA01AA27283051F1203181F1E894D0
|
||||
:100EE0006F936E7F6E5F7F4F8F4F9F4FAF4FB1E01D
|
||||
:100EF0003ED0B4E03CD0670F781F891F9A1FA11D18
|
||||
:100F0000680F791F8A1F911DA11D6A0F711D811D18
|
||||
:100F1000911DA11D20D009F468943F912AE0269FDD
|
||||
:100F200011243019305D3193DEF6CF010895462F3C
|
||||
:100F30004770405D4193B3E00FD0C9F7F6CF462F1D
|
||||
:100F40004F70405D4A3318F0495D31FD4052419386
|
||||
:100F500002D0A9F7EACFB4E0A69597958795779543
|
||||
:100F60006795BA95C9F700976105710508959B01CA
|
||||
:100F7000AC010A2E06945795479537952795BA9553
|
||||
:100F8000C9F7620F731F841F951FA01D08952F922C
|
||||
:100F90003F924F925F926F927F928F929F92AF9209
|
||||
:100FA000BF92CF92DF92EF92FF920F931F93CF9356
|
||||
:100FB000DF93CDB7DEB7CA1BDB0B0FB6F894DEBFED
|
||||
:100FC0000FBECDBF09942A88398848885F846E8413
|
||||
:100FD0007D848C849B84AA84B984C884DF80EE805D
|
||||
:100FE000FD800C811B81AA81B981CE0FD11D0FB666
|
||||
:100FF000F894DEBF0FBECDBFED010895F894FFCF8A
|
||||
:101000004A756C20313820323031350076312E303F
|
||||
:1010100000090920202020204669726D77617265E1
|
||||
:101020002025732C2025730D0A0D0A002020204254
|
||||
:10103000726F6164636173743A2020202020202540
|
||||
:1010400064200D0A002020204D61737465722061B8
|
||||
:101050006464726573733A2030782558200D0A0055
|
||||
:10106000202020536C61766520616464726573731F
|
||||
:101070003A202030782558200D0A00202020436F88
|
||||
:101080006E74726F6C3A202020202020202030784F
|
||||
:101090002558200D0A0020202044617461207369C6
|
||||
:1010A0007A653A2020202020202564200D0A002087
|
||||
:1010B0002020446174613A2020202020202020201C
|
||||
:1010C000202000255820000D0A2D2D2D2D2D0D0A34
|
||||
:1010D00000417663526561644D6573736167653A7B
|
||||
:1010E00020506172697479206572726F722040209D
|
||||
:0C10F000446174615B25645D0D0A000022
|
||||
:00000001FF
|
Binary file not shown.
144
USART.c
144
USART.c
@ -1,144 +0,0 @@
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : USART.c
|
||||
|
||||
Description : Utility functions for ATmega8 USART.
|
||||
|
||||
Author : 2004-10-22 - Louis Frigon
|
||||
|
||||
History : 2004-10-22 - First release (v0.1).
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
#include <avr/io.h>
|
||||
#include <avr/interrupt.h>
|
||||
#include <avr/pgmspace.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "USART.h"
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : InitUSART
|
||||
|
||||
Description : Performs USART initialization: 9600,N,8,1.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void InitUSART ( void )
|
||||
{
|
||||
// Disable USART while setting baud rate.
|
||||
UCSR0B = 0x00;
|
||||
UCSR0A = 0x00;
|
||||
|
||||
// 8 data bit, 1 stop, no parity.
|
||||
UCSR0C = _BV(EEAR7) | _BV(UCSZ01) | _BV(UCSZ00);
|
||||
|
||||
// Set USART baud rate @ 9600. Divider is 103 @ 16 MHz.
|
||||
UBRR0L = 103;
|
||||
|
||||
// Enable internal pull-up on Rx pin.
|
||||
PORTD |= _BV(PD0);
|
||||
|
||||
// Enable Tx & Rx.
|
||||
UCSR0B = _BV(RXEN0) | _BV(TXEN0);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : UsartIsChr
|
||||
|
||||
Description : Return status of USART Rx buffer.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : 0 if Rx buffer empty.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
bool UsartIsChr ( void )
|
||||
{
|
||||
return UCSR0A & _BV(RXC0);
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : UsartGetChr
|
||||
|
||||
Description : Return character USART Rx buffer. Blocking until Rx buffer not empty.
|
||||
|
||||
Argument(s) : None.
|
||||
|
||||
Return value : Character in Rx buffer.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
char UsartGetChr ( void )
|
||||
{
|
||||
while ( !UsartIsChr() );
|
||||
|
||||
return UDR0;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : UsartPutChr
|
||||
|
||||
Description : Send a character through the USART.
|
||||
|
||||
Argument(s) : c -> char to send.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void UsartPutChr ( char c )
|
||||
{
|
||||
// Wait for transmit register to be empty.
|
||||
while ( !(UCSR0A & _BV(UDRE0)) );
|
||||
|
||||
UDR0 = c;
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : UsartPutStr
|
||||
|
||||
Description : Transmit a string on the serial port.
|
||||
|
||||
Argument(s) : str -> pointer to string to send.
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void UsartPutStr ( char *str )
|
||||
{
|
||||
while ( *str )
|
||||
{
|
||||
UsartPutChr( *str++ );
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : UsartPutCStr
|
||||
|
||||
Description : Transmit a string on the serial port.
|
||||
|
||||
Argument(s) : str -> pointer to constant string to send (strings in Flash).
|
||||
|
||||
Return value : None.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
void UsartPutCStr ( const char *str )
|
||||
{
|
||||
char c;
|
||||
|
||||
while ( (c = pgm_read_byte_near( str++ )) )
|
||||
{
|
||||
UsartPutChr( c );
|
||||
}
|
||||
}
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
End of file.
|
||||
--------------------------------------------------------------------------------------------------*/
|
37
USART.h
37
USART.h
@ -1,37 +0,0 @@
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
|
||||
Name : USART.h
|
||||
|
||||
Description : Header file for USART functions.
|
||||
|
||||
History : 2004-10-22 - Created by Louis Frigon.
|
||||
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
#ifndef _USART_H_
|
||||
#define _USART_H_
|
||||
|
||||
#include <avr/pgmspace.h>
|
||||
|
||||
#include "GlobalDef.h"
|
||||
|
||||
#define USART_BUFFER_SIZE 80
|
||||
|
||||
extern char UsartMsgBuffer[ USART_BUFFER_SIZE ];
|
||||
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
Function prototypes
|
||||
--------------------------------------------------------------------------------------------------*/
|
||||
// Function prototypes are mandatory otherwise the compiler generates unreliable code.
|
||||
|
||||
void InitUSART ( void );
|
||||
bool UsartIsChr ( void );
|
||||
char UsartGetChr ( void );
|
||||
void UsartPutChr ( char c );
|
||||
void UsartPutStr ( char *str );
|
||||
void UsartPutCStr ( const char *str );
|
||||
|
||||
|
||||
#endif // _USART_H_
|
||||
/*--------------------------------------------------------------------------------------------------
|
||||
End of file.
|
||||
--------------------------------------------------------------------------------------------------*/
|
400
cmake/avr-gcc-toolchain.cmake
Normal file
400
cmake/avr-gcc-toolchain.cmake
Normal file
@ -0,0 +1,400 @@
|
||||
##########################################################################
|
||||
# "THE ANY BEVERAGE-WARE LICENSE" (Revision 42 - based on beer-ware
|
||||
# license):
|
||||
# <dev@layer128.net> wrote this file. As long as you retain this notice
|
||||
# you can do whatever you want with this stuff. If we meet some day, and
|
||||
# you think this stuff is worth it, you can buy me a be(ve)er(age) in
|
||||
# return. (I don't like beer much.)
|
||||
#
|
||||
# Matthias Kleemann
|
||||
##########################################################################
|
||||
|
||||
##########################################################################
|
||||
# The toolchain requires some variables set.
|
||||
#
|
||||
# AVR_MCU (default: atmega8)
|
||||
# the type of AVR the application is built for
|
||||
# AVR_L_FUSE (NO DEFAULT)
|
||||
# the LOW fuse value for the MCU used
|
||||
# AVR_H_FUSE (NO DEFAULT)
|
||||
# the HIGH fuse value for the MCU used
|
||||
# AVR_UPLOADTOOL (default: avrdude)
|
||||
# the application used to upload to the MCU
|
||||
# NOTE: The toolchain is currently quite specific about
|
||||
# the commands used, so it needs tweaking.
|
||||
# AVR_UPLOADTOOL_PORT (default: usb)
|
||||
# the port used for the upload tool, e.g. usb
|
||||
# AVR_PROGRAMMER (default: avrispmkII)
|
||||
# the programmer hardware used, e.g. avrispmkII
|
||||
##########################################################################
|
||||
|
||||
##########################################################################
|
||||
# options
|
||||
##########################################################################
|
||||
option(WITH_MCU "Add the mCU type to the target file name." ON)
|
||||
|
||||
##########################################################################
|
||||
# executables in use
|
||||
##########################################################################
|
||||
find_program(AVR_CC avr-gcc REQUIRED)
|
||||
find_program(AVR_CXX avr-g++ REQUIRED)
|
||||
find_program(AVR_OBJCOPY avr-objcopy REQUIRED)
|
||||
find_program(AVR_SIZE_TOOL avr-size REQUIRED)
|
||||
find_program(AVR_OBJDUMP avr-objdump REQUIRED)
|
||||
|
||||
##########################################################################
|
||||
# toolchain starts with defining mandatory variables
|
||||
##########################################################################
|
||||
set(CMAKE_SYSTEM_NAME Generic)
|
||||
set(CMAKE_SYSTEM_PROCESSOR avr)
|
||||
set(CMAKE_C_COMPILER ${AVR_CC})
|
||||
set(CMAKE_CXX_COMPILER ${AVR_CXX})
|
||||
|
||||
##########################################################################
|
||||
# Identification
|
||||
##########################################################################
|
||||
set(AVR 1)
|
||||
|
||||
##########################################################################
|
||||
# some necessary tools and variables for AVR builds, which may not
|
||||
# defined yet
|
||||
# - AVR_UPLOADTOOL
|
||||
# - AVR_UPLOADTOOL_PORT
|
||||
# - AVR_PROGRAMMER
|
||||
# - AVR_MCU
|
||||
# - AVR_SIZE_ARGS
|
||||
##########################################################################
|
||||
|
||||
# default upload tool
|
||||
if(NOT AVR_UPLOADTOOL)
|
||||
set(
|
||||
AVR_UPLOADTOOL avrdude
|
||||
CACHE STRING "Set default upload tool: avrdude"
|
||||
)
|
||||
find_program(AVR_UPLOADTOOL avrdude)
|
||||
endif(NOT AVR_UPLOADTOOL)
|
||||
|
||||
# default upload tool port
|
||||
if(NOT AVR_UPLOADTOOL_PORT)
|
||||
set(
|
||||
AVR_UPLOADTOOL_PORT usb
|
||||
CACHE STRING "Set default upload tool port: usb"
|
||||
)
|
||||
endif(NOT AVR_UPLOADTOOL_PORT)
|
||||
|
||||
# default programmer (hardware)
|
||||
if(NOT AVR_PROGRAMMER)
|
||||
set(
|
||||
AVR_PROGRAMMER avrispmkII
|
||||
CACHE STRING "Set default programmer hardware model: avrispmkII"
|
||||
)
|
||||
endif(NOT AVR_PROGRAMMER)
|
||||
|
||||
# default MCU (chip)
|
||||
if(NOT AVR_MCU)
|
||||
set(
|
||||
AVR_MCU atmega8
|
||||
CACHE STRING "Set default MCU: atmega8 (see 'avr-gcc --target-help' for valid values)"
|
||||
)
|
||||
endif(NOT AVR_MCU)
|
||||
|
||||
#default avr-size args
|
||||
if(NOT AVR_SIZE_ARGS)
|
||||
if(APPLE)
|
||||
set(AVR_SIZE_ARGS -B)
|
||||
else(APPLE)
|
||||
set(AVR_SIZE_ARGS -G)
|
||||
endif(APPLE)
|
||||
endif(NOT AVR_SIZE_ARGS)
|
||||
|
||||
# prepare base flags for upload tool
|
||||
set(AVR_UPLOADTOOL_BASE_OPTIONS -p ${AVR_MCU} -c ${AVR_PROGRAMMER})
|
||||
|
||||
# use AVR_UPLOADTOOL_BAUDRATE as baudrate for upload tool (if defined)
|
||||
if(AVR_UPLOADTOOL_BAUDRATE)
|
||||
set(AVR_UPLOADTOOL_BASE_OPTIONS ${AVR_UPLOADTOOL_BASE_OPTIONS} -b ${AVR_UPLOADTOOL_BAUDRATE})
|
||||
endif()
|
||||
|
||||
##########################################################################
|
||||
# check build types:
|
||||
# - Debug
|
||||
# - Release
|
||||
# - RelWithDebInfo
|
||||
#
|
||||
# Release is chosen, because of some optimized functions in the
|
||||
# AVR toolchain, e.g. _delay_ms().
|
||||
##########################################################################
|
||||
if(NOT ((CMAKE_BUILD_TYPE MATCHES Release) OR
|
||||
(CMAKE_BUILD_TYPE MATCHES RelWithDebInfo) OR
|
||||
(CMAKE_BUILD_TYPE MATCHES Debug) OR
|
||||
(CMAKE_BUILD_TYPE MATCHES MinSizeRel)))
|
||||
set(
|
||||
CMAKE_BUILD_TYPE Release
|
||||
CACHE STRING "Choose cmake build type: Debug Release RelWithDebInfo MinSizeRel"
|
||||
FORCE
|
||||
)
|
||||
endif(NOT ((CMAKE_BUILD_TYPE MATCHES Release) OR
|
||||
(CMAKE_BUILD_TYPE MATCHES RelWithDebInfo) OR
|
||||
(CMAKE_BUILD_TYPE MATCHES Debug) OR
|
||||
(CMAKE_BUILD_TYPE MATCHES MinSizeRel)))
|
||||
|
||||
|
||||
|
||||
##########################################################################
|
||||
|
||||
##########################################################################
|
||||
# target file name add-on
|
||||
##########################################################################
|
||||
if(WITH_MCU)
|
||||
set(MCU_TYPE_FOR_FILENAME "-${AVR_MCU}")
|
||||
else(WITH_MCU)
|
||||
set(MCU_TYPE_FOR_FILENAME "")
|
||||
endif(WITH_MCU)
|
||||
|
||||
##########################################################################
|
||||
# add_avr_executable
|
||||
# - IN_VAR: EXECUTABLE_NAME
|
||||
#
|
||||
# Creates targets and dependencies for AVR toolchain, building an
|
||||
# executable. Calls add_executable with ELF file as target name, so
|
||||
# any link dependencies need to be using that target, e.g. for
|
||||
# target_link_libraries(<EXECUTABLE_NAME>-${AVR_MCU}.elf ...).
|
||||
##########################################################################
|
||||
function(add_avr_executable EXECUTABLE_NAME)
|
||||
|
||||
if(NOT ARGN)
|
||||
message(FATAL_ERROR "No source files given for ${EXECUTABLE_NAME}.")
|
||||
endif(NOT ARGN)
|
||||
|
||||
# set file names
|
||||
set(hex_file ${EXECUTABLE_NAME}${MCU_TYPE_FOR_FILENAME}.hex)
|
||||
set(lst_file ${EXECUTABLE_NAME}${MCU_TYPE_FOR_FILENAME}.lst)
|
||||
set(map_file ${EXECUTABLE_NAME}${MCU_TYPE_FOR_FILENAME}.map)
|
||||
set(eeprom_image ${EXECUTABLE_NAME}${MCU_TYPE_FOR_FILENAME}-eeprom.hex)
|
||||
|
||||
set (${EXECUTABLE_NAME}_ELF_TARGET ${EXECUTABLE_NAME} PARENT_SCOPE)
|
||||
set (${EXECUTABLE_NAME}_HEX_TARGET ${hex_file} PARENT_SCOPE)
|
||||
set (${EXECUTABLE_NAME}_LST_TARGET ${lst_file} PARENT_SCOPE)
|
||||
set (${EXECUTABLE_NAME}_MAP_TARGET ${map_file} PARENT_SCOPE)
|
||||
set (${EXECUTABLE_NAME}_EEPROM_TARGET ${eeprom_file} PARENT_SCOPE)
|
||||
# elf file
|
||||
add_executable(${EXECUTABLE_NAME} ${ARGN})
|
||||
|
||||
set_target_properties(
|
||||
${EXECUTABLE_NAME}
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS "-mmcu=${AVR_MCU}"
|
||||
LINK_FLAGS "-mmcu=${AVR_MCU} -Wl,--gc-sections -mrelax -Wl,-Map,${map_file}"
|
||||
)
|
||||
|
||||
add_custom_command(
|
||||
OUTPUT ${lst_file}
|
||||
COMMAND
|
||||
${AVR_OBJDUMP} -d ${EXECUTABLE_NAME} > ${lst_file}
|
||||
DEPENDS ${EXECUTABLE_NAME}
|
||||
)
|
||||
|
||||
# eeprom
|
||||
add_custom_command(
|
||||
OUTPUT ${eeprom_image}
|
||||
COMMAND
|
||||
${AVR_OBJCOPY} -j .eeprom --set-section-flags=.eeprom=alloc,load
|
||||
--change-section-lma .eeprom=0 --no-change-warnings
|
||||
-O ihex ${EXECUTABLE_NAME} ${eeprom_image}
|
||||
DEPENDS ${EXECUTABLE_NAME}
|
||||
)
|
||||
|
||||
# clean
|
||||
get_directory_property(clean_files ADDITIONAL_MAKE_CLEAN_FILES)
|
||||
set_directory_properties(
|
||||
PROPERTIES
|
||||
ADDITIONAL_MAKE_CLEAN_FILES "${map_file}"
|
||||
)
|
||||
|
||||
# upload - with avrdude
|
||||
add_custom_target(
|
||||
upload_${EXECUTABLE_NAME}
|
||||
${AVR_UPLOADTOOL} ${AVR_UPLOADTOOL_BASE_OPTIONS} ${AVR_UPLOADTOOL_OPTIONS}
|
||||
-U flash:w:${EXECUTABLE_NAME}:e
|
||||
-P ${AVR_UPLOADTOOL_PORT}
|
||||
DEPENDS ${EXECUTABLE_NAME}
|
||||
COMMENT "Uploading ${hex_file} to ${AVR_MCU} using ${AVR_PROGRAMMER}"
|
||||
)
|
||||
|
||||
# upload eeprom only - with avrdude
|
||||
# see also bug http://savannah.nongnu.org/bugs/?40142
|
||||
add_custom_target(
|
||||
upload_${EXECUTABLE_NAME}_eeprom
|
||||
${AVR_UPLOADTOOL} ${AVR_UPLOADTOOL_BASE_OPTIONS} ${AVR_UPLOADTOOL_OPTIONS}
|
||||
-U eeprom:w:${eeprom_image}
|
||||
-P ${AVR_UPLOADTOOL_PORT}
|
||||
DEPENDS ${eeprom_image}
|
||||
COMMENT "Uploading ${eeprom_image} to ${AVR_MCU} using ${AVR_PROGRAMMER}"
|
||||
)
|
||||
|
||||
# disassemble
|
||||
add_custom_target(
|
||||
disassemble_${EXECUTABLE_NAME}
|
||||
${AVR_OBJDUMP} -h -S ${EXECUTABLE_NAME} > ${EXECUTABLE_NAME}.lst
|
||||
DEPENDS ${EXECUTABLE_NAME}
|
||||
)
|
||||
endfunction(add_avr_executable)
|
||||
|
||||
|
||||
##########################################################################
|
||||
# add_avr_library
|
||||
# - IN_VAR: LIBRARY_NAME
|
||||
#
|
||||
# Calls add_library with an optionally concatenated name
|
||||
# <LIBRARY_NAME>${MCU_TYPE_FOR_FILENAME}.
|
||||
# This needs to be used for linking against the library, e.g. calling
|
||||
# target_link_libraries(...).
|
||||
##########################################################################
|
||||
function(add_avr_library LIBRARY_NAME)
|
||||
if(NOT ARGN)
|
||||
message(FATAL_ERROR "No source files given for ${LIBRARY_NAME}.")
|
||||
endif(NOT ARGN)
|
||||
|
||||
set(lib_file ${LIBRARY_NAME}${MCU_TYPE_FOR_FILENAME})
|
||||
set (${LIBRARY_NAME}_LIB_TARGET ${elf_file} PARENT_SCOPE)
|
||||
|
||||
add_library(${lib_file} STATIC ${ARGN})
|
||||
|
||||
set_target_properties(
|
||||
${lib_file}
|
||||
PROPERTIES
|
||||
COMPILE_FLAGS "-mmcu=${AVR_MCU}"
|
||||
OUTPUT_NAME "${lib_file}"
|
||||
)
|
||||
|
||||
if(NOT TARGET ${LIBRARY_NAME})
|
||||
add_custom_target(
|
||||
${LIBRARY_NAME}
|
||||
ALL
|
||||
DEPENDS ${lib_file}
|
||||
)
|
||||
|
||||
set_target_properties(
|
||||
${LIBRARY_NAME}
|
||||
PROPERTIES
|
||||
OUTPUT_NAME "${lib_file}"
|
||||
)
|
||||
endif(NOT TARGET ${LIBRARY_NAME})
|
||||
|
||||
endfunction(add_avr_library)
|
||||
|
||||
##########################################################################
|
||||
# avr_target_link_libraries
|
||||
# - IN_VAR: EXECUTABLE_TARGET
|
||||
# - ARGN : targets and files to link to
|
||||
#
|
||||
# Calls target_link_libraries with AVR target names (concatenation,
|
||||
# extensions and so on.
|
||||
##########################################################################
|
||||
function(avr_target_link_libraries EXECUTABLE_TARGET)
|
||||
if(NOT ARGN)
|
||||
message(FATAL_ERROR "Nothing to link to ${EXECUTABLE_TARGET}.")
|
||||
endif(NOT ARGN)
|
||||
|
||||
get_target_property(TARGET_LIST ${EXECUTABLE_TARGET} OUTPUT_NAME)
|
||||
|
||||
foreach(TGT ${ARGN})
|
||||
if(TARGET ${TGT})
|
||||
get_target_property(ARG_NAME ${TGT} OUTPUT_NAME)
|
||||
list(APPEND NON_TARGET_LIST ${ARG_NAME})
|
||||
else(TARGET ${TGT})
|
||||
list(APPEND NON_TARGET_LIST ${TGT})
|
||||
endif(TARGET ${TGT})
|
||||
endforeach(TGT ${ARGN})
|
||||
|
||||
target_link_libraries(${TARGET_LIST} ${NON_TARGET_LIST})
|
||||
endfunction(avr_target_link_libraries EXECUTABLE_TARGET)
|
||||
|
||||
##########################################################################
|
||||
# avr_target_include_directories
|
||||
#
|
||||
# Calls target_include_directories with AVR target names
|
||||
##########################################################################
|
||||
|
||||
function(avr_target_include_directories EXECUTABLE_TARGET)
|
||||
if(NOT ARGN)
|
||||
message(FATAL_ERROR "No include directories to add to ${EXECUTABLE_TARGET}.")
|
||||
endif()
|
||||
|
||||
get_target_property(TARGET_LIST ${EXECUTABLE_TARGET} OUTPUT_NAME)
|
||||
set(extra_args ${ARGN})
|
||||
|
||||
target_include_directories(${TARGET_LIST} ${extra_args})
|
||||
endfunction()
|
||||
|
||||
##########################################################################
|
||||
# avr_target_compile_definitions
|
||||
#
|
||||
# Calls target_compile_definitions with AVR target names
|
||||
##########################################################################
|
||||
|
||||
function(avr_target_compile_definitions EXECUTABLE_TARGET)
|
||||
if(NOT ARGN)
|
||||
message(FATAL_ERROR "No compile definitions to add to ${EXECUTABLE_TARGET}.")
|
||||
endif()
|
||||
|
||||
get_target_property(TARGET_LIST ${EXECUTABLE_TARGET} OUTPUT_NAME)
|
||||
set(extra_args ${ARGN})
|
||||
|
||||
target_compile_definitions(${TARGET_LIST} ${extra_args})
|
||||
endfunction()
|
||||
|
||||
function(avr_generate_fixed_targets)
|
||||
# get status
|
||||
add_custom_target(
|
||||
get_status
|
||||
${AVR_UPLOADTOOL} ${AVR_UPLOADTOOL_BASE_OPTIONS} -P ${AVR_UPLOADTOOL_PORT} -n -v
|
||||
COMMENT "Get status from ${AVR_MCU}"
|
||||
)
|
||||
|
||||
# get fuses
|
||||
add_custom_target(
|
||||
get_fuses
|
||||
${AVR_UPLOADTOOL} ${AVR_UPLOADTOOL_BASE_OPTIONS} -P ${AVR_UPLOADTOOL_PORT} -n
|
||||
-U lfuse:r:-:b
|
||||
-U hfuse:r:-:b
|
||||
COMMENT "Get fuses from ${AVR_MCU}"
|
||||
)
|
||||
|
||||
# set fuses
|
||||
add_custom_target(
|
||||
set_fuses
|
||||
${AVR_UPLOADTOOL} ${AVR_UPLOADTOOL_BASE_OPTIONS} -P ${AVR_UPLOADTOOL_PORT}
|
||||
-U lfuse:w:${AVR_L_FUSE}:m
|
||||
-U hfuse:w:${AVR_H_FUSE}:m
|
||||
COMMENT "Setup: High Fuse: ${AVR_H_FUSE} Low Fuse: ${AVR_L_FUSE}"
|
||||
)
|
||||
|
||||
# get oscillator calibration
|
||||
add_custom_target(
|
||||
get_calibration
|
||||
${AVR_UPLOADTOOL} ${AVR_UPLOADTOOL_BASE_OPTIONS} -P ${AVR_UPLOADTOOL_PORT}
|
||||
-U calibration:r:${AVR_MCU}_calib.tmp:r
|
||||
COMMENT "Write calibration status of internal oscillator to ${AVR_MCU}_calib.tmp."
|
||||
)
|
||||
|
||||
# set oscillator calibration
|
||||
add_custom_target(
|
||||
set_calibration
|
||||
${AVR_UPLOADTOOL} ${AVR_UPLOADTOOL_BASE_OPTIONS} -P ${AVR_UPLOADTOOL_PORT}
|
||||
-U calibration:w:${AVR_MCU}_calib.hex
|
||||
COMMENT "Program calibration status of internal oscillator from ${AVR_MCU}_calib.hex."
|
||||
)
|
||||
endfunction()
|
||||
|
||||
##########################################################################
|
||||
# Bypass the link step in CMake's "compiler sanity test" check
|
||||
#
|
||||
# CMake throws in a try_compile() target test in some generators, but does
|
||||
# not know that this is a cross compiler so the executable can't link.
|
||||
# Change the target type:
|
||||
#
|
||||
# https://stackoverflow.com/q/53633705
|
||||
##########################################################################
|
||||
|
||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
|
17
cmake/libc-version-test.cpp
Normal file
17
cmake/libc-version-test.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
#if __has_include(<component-version.h>)
|
||||
#include <component-version.h>
|
||||
#if ((COMPONENT_VERSION_MAJOR == 1) && (COMPONENT_VERSION_MINOR == 2) && \
|
||||
(BUILD_NUMBER < 118))
|
||||
#error \
|
||||
"Microchip pack component version greater than 1.2.118 required to support ATtiny3216"
|
||||
#endif
|
||||
#else
|
||||
#include <avr/version.h>
|
||||
#if !(__AVR_LIBC_VERSION__ > 20100UL)
|
||||
#error "AVR LibC version greater than 2.1 does support ATtiny3216"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <avr/io.h>
|
||||
|
||||
int main() { return 0; }
|
7154
hardware/CUI_DEVICES_SJ-43514.step
Normal file
7154
hardware/CUI_DEVICES_SJ-43514.step
Normal file
File diff suppressed because it is too large
Load Diff
171
hardware/CUI_SJ-43514.kicad_mod
Normal file
171
hardware/CUI_SJ-43514.kicad_mod
Normal file
@ -0,0 +1,171 @@
|
||||
(footprint "CUI_SJ-43514" (version 20221018) (generator pcbnew)
|
||||
(layer "F.Cu")
|
||||
(attr through_hole)
|
||||
(fp_text reference "REF**" (at -2.979703 -6.81327) (layer "F.SilkS")
|
||||
(effects (font (size 0.480598 0.480598) (thickness 0.15)))
|
||||
(tstamp bfeda05e-5925-424c-8f77-4d0de2d9f221)
|
||||
)
|
||||
(fp_text value "CUI_SJ-43514" (at -1.094318 6.206094) (layer "F.Fab")
|
||||
(effects (font (size 0.480844 0.480844) (thickness 0.15)))
|
||||
(tstamp bdc14a89-1821-43fc-a9f8-40f3b142a63d)
|
||||
)
|
||||
(fp_text user "PCB EDGE" (at -5.75332 8.5049) (layer "F.Fab")
|
||||
(effects (font (size 0.480277 0.480277) (thickness 0.120069)))
|
||||
(tstamp 6a88ca6f-a53e-4950-bbc8-44c4d11c2a0a)
|
||||
)
|
||||
(fp_line (start -8.5 -3) (end -5.5 -3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp 0050636b-6e15-4ce3-9ac3-09473598b5da))
|
||||
(fp_line (start -8.5 3) (end -8.5 -3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp ecac6353-2236-4d1a-834d-0a75abb5cee1))
|
||||
(fp_line (start -5.5 -4.7) (end -5.5 -3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp bf6fd2e2-0049-48bb-a736-39561152d911))
|
||||
(fp_line (start -5.5 -3) (end -5.5 -2.25)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp dede3ff1-9dd4-49de-979e-95dfa9478423))
|
||||
(fp_line (start -5.5 -2.25) (end -4.2 -2.25)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp 5eb5c318-7dc4-4e7f-989a-f4ba5dc0821f))
|
||||
(fp_line (start -5.5 2.25) (end -5.5 3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp 9013f407-26c3-41ed-8b0e-8d3226919b1a))
|
||||
(fp_line (start -5.5 3) (end -8.5 3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp 0fd41d69-9ce9-4ef0-a762-a71b1aac4fd6))
|
||||
(fp_line (start -5.5 3) (end -5.5 4.3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp 658d99e0-a80a-4367-a8a5-4c5f9dba1178))
|
||||
(fp_line (start -5.5 4.3) (end -3.75 4.3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp 7b5ba43a-3077-4f09-add7-a178895e80ae))
|
||||
(fp_line (start -5.05 4.3) (end -4.55 5.35)
|
||||
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp 5a1481a0-0072-4fb0-b82f-9002c5f87269))
|
||||
(fp_line (start -4.55 5.35) (end -3.6 5.35)
|
||||
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp 5bf00677-c1d9-484b-8a50-5cd0c873eeb5))
|
||||
(fp_line (start -4.2 -2.25) (end -4.2 2.25)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp ffee2b26-d7e4-4284-9263-c6aca5b9749a))
|
||||
(fp_line (start -4.2 2.25) (end -5.5 2.25)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp 32f065d2-8bb4-4f1a-84da-02bc6ff17e4d))
|
||||
(fp_line (start -3.8 -4.7) (end -5.5 -4.7)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp abfac670-5770-42a2-a09b-98c42789dc0a))
|
||||
(fp_line (start -3.6 5.35) (end -3.6 5)
|
||||
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp 12653866-eba9-48de-9c11-2db40ab42242))
|
||||
(fp_line (start -1.4 -4.7) (end 6.1 -4.7)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp e7e22f9d-9cb3-4f0f-81d0-1e6f401e1325))
|
||||
(fp_line (start 0.4 4.3) (end 0.4 5.4)
|
||||
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp 44432717-bbe5-4b53-abc2-4fff5060c314))
|
||||
(fp_line (start 0.4 5.4) (end 1.3 5.4)
|
||||
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp dd54a902-0e87-4221-9694-bf2b3bf84625))
|
||||
(fp_line (start 1.3 5.4) (end 1.7 4.6)
|
||||
(stroke (width 0.1) (type default)) (layer "F.SilkS") (tstamp 1d9fc1f8-7c3b-4056-8cd2-e1b881e3711f))
|
||||
(fp_line (start 1.5 4.3) (end -1.55 4.3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp ed42dbf6-5647-4586-a2ce-063b416c4194))
|
||||
(fp_line (start 6.1 -4.7) (end 6.1 -2.7)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp 4619c36d-b0cd-415b-ae48-395ee76ef585))
|
||||
(fp_line (start 6.1 -0.35) (end 6.1 4.3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp c05166e3-0591-4801-8c91-d3dd803cca16))
|
||||
(fp_line (start 6.1 4.3) (end 3.4 4.3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.SilkS") (tstamp 3c5ea8b3-2ced-4df4-9fc4-309b967f50ce))
|
||||
(fp_circle (center -4 -5.5) (end -3.8 -5.5)
|
||||
(stroke (width 0.4) (type solid)) (fill none) (layer "F.SilkS") (tstamp 1a0330d0-db00-4dfa-9914-25086b1fbfbf))
|
||||
(fp_line (start -5.5 -8.35) (end -5.5 -2.25)
|
||||
(stroke (width 0.01) (type solid)) (layer "Edge.Cuts") (tstamp ecdf0e30-8453-4e73-b5ab-aa93010d888d))
|
||||
(fp_line (start -5.5 -2.25) (end -4.2 -2.25)
|
||||
(stroke (width 0.01) (type solid)) (layer "Edge.Cuts") (tstamp d61220d3-0c4a-46fe-966c-fa6d3205a6bd))
|
||||
(fp_line (start -5.5 2.25) (end -5.5 8.85)
|
||||
(stroke (width 0.01) (type solid)) (layer "Edge.Cuts") (tstamp 4b0c47eb-fff4-443f-a38b-fabcc1e8eb82))
|
||||
(fp_line (start -4.2 -2.25) (end -4.2 2.25)
|
||||
(stroke (width 0.01) (type solid)) (layer "Edge.Cuts") (tstamp 89f05533-9365-4886-8c31-515ca2e0d00b))
|
||||
(fp_line (start -4.2 2.25) (end -5.5 2.25)
|
||||
(stroke (width 0.01) (type solid)) (layer "Edge.Cuts") (tstamp ae1988c7-803b-4b56-b7fd-d8e2dd7b830c))
|
||||
(fp_line (start -8.75 -3.25) (end -5.75 -3.25)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 940af57e-dd0f-4060-9be4-fe34e7aa903e))
|
||||
(fp_line (start -8.75 3.25) (end -8.75 -3.25)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 266b0d05-a27e-450f-8538-bc9affd19b04))
|
||||
(fp_line (start -5.75 -5) (end -3.65 -5)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 3b5bc2e3-9f5a-409a-993b-83f5f819c072))
|
||||
(fp_line (start -5.75 -3.25) (end -5.75 -5)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 9ae91dfe-d4b6-4dfa-bddf-91c145ccc5f6))
|
||||
(fp_line (start -5.75 3.25) (end -8.75 3.25)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 62e06b49-3ebe-49ed-a4c2-3e93da53c16d))
|
||||
(fp_line (start -5.75 4.5) (end -5.75 3.25)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 097944c5-fe4f-4da3-8780-42e8a8eeff4d))
|
||||
(fp_line (start -5.25 4.5) (end -5.75 4.5)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 7233d18f-b358-4e74-9555-a6a75d6127dc))
|
||||
(fp_line (start -5.25 5.55) (end -5.25 4.5)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 5dd71fc4-88f7-45c2-b6be-97a22f0df7f9))
|
||||
(fp_line (start -3.65 -5.85) (end -1.5 -5.85)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp ccba6cef-50a5-421e-9d4f-7f2a0e8b80a4))
|
||||
(fp_line (start -3.65 -5) (end -3.65 -5.85)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 135bbc13-e01b-436c-a876-d8b74759ae6d))
|
||||
(fp_line (start -1.5 -5.85) (end -1.5 -5)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 396eebd4-23db-4244-bfb5-c7a05b73ec13))
|
||||
(fp_line (start -1.5 -5) (end 6.3 -5)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 2f5078ca-1522-4faf-96ff-fa75e32013ee))
|
||||
(fp_line (start 2 5.55) (end -5.25 5.55)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp dbe5204d-c99e-4064-98e1-bdf7b7b37874))
|
||||
(fp_line (start 2 5.55) (end 2 4.6)
|
||||
(stroke (width 0.05) (type default)) (layer "F.CrtYd") (tstamp cdd79330-522a-4535-8c78-14c4608d4d55))
|
||||
(fp_line (start 6.3 -5) (end 6.3 -2.6)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 570b790c-1c58-4b29-bc5e-93fbc00a1601))
|
||||
(fp_line (start 6.3 -2.6) (end 6.5 -2.6)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 167c1098-293c-4d8b-b749-92216e026450))
|
||||
(fp_line (start 6.3 -0.5) (end 6.3 4.6)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp e3966f22-fca2-4ca3-b5f0-05222dd717de))
|
||||
(fp_line (start 6.3 4.6) (end 2 4.6)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp 9cdb0a50-a0c6-4a55-87c8-48783fc5368e))
|
||||
(fp_line (start 6.5 -2.6) (end 6.5 -0.5)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp e8cc2a6b-ffb6-4f90-90f4-d497d1f0a692))
|
||||
(fp_line (start 6.5 -0.5) (end 6.3 -0.5)
|
||||
(stroke (width 0.05) (type solid)) (layer "F.CrtYd") (tstamp d29942c8-f25a-41dc-9e05-ac32b1a9f741))
|
||||
(fp_line (start -8.5 -3) (end -8.5 3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp a27f1ab1-c6f9-4b28-9728-cc59daa92ea7))
|
||||
(fp_line (start -8.5 3) (end -5.5 3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp e5e3bbf8-cd0b-4d9e-9f24-64dd16354f96))
|
||||
(fp_line (start -5.5 -4.7) (end -5.5 -3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp 4242f01b-41cd-4da5-b700-6107f22cd2ee))
|
||||
(fp_line (start -5.5 -4.7) (end 6.1 -4.7)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp 27a82db8-2858-4f01-baec-c0c199045d07))
|
||||
(fp_line (start -5.5 -3) (end -8.5 -3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp f5372e4a-5bde-4c18-81bf-5e6b13679292))
|
||||
(fp_line (start -5.5 -3) (end -5.5 -2.25)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp 203ba3fa-cb1d-4968-b9f5-596155c2dadf))
|
||||
(fp_line (start -5.5 -2.25) (end -4.2 -2.25)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp fc87e254-1807-4d59-b472-92b5dc84a38e))
|
||||
(fp_line (start -5.5 2.25) (end -5.5 3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp 11b2e23c-dadb-4b7a-aca5-7f204e0de401))
|
||||
(fp_line (start -5.5 3) (end -5.5 4.3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp 981f06cf-dc71-4fbc-83d9-b9bff68dddc8))
|
||||
(fp_line (start -5.5 4.3) (end -5.05 4.3)
|
||||
(stroke (width 0.127) (type default)) (layer "F.Fab") (tstamp b939b474-cc9b-403b-a66e-5145b84f511b))
|
||||
(fp_line (start -5.05 4.3) (end -4.55 5.35)
|
||||
(stroke (width 0.127) (type default)) (layer "F.Fab") (tstamp b365aa16-9e8d-43a4-992e-7f39a81b3c25))
|
||||
(fp_line (start -4.55 5.35) (end -3.6 5.35)
|
||||
(stroke (width 0.127) (type default)) (layer "F.Fab") (tstamp 1c73b2ee-5dc0-4690-9ed4-932d3c0a1b18))
|
||||
(fp_line (start -4.2 -2.25) (end -4.2 2.25)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp ab5dcbaa-38c1-4be7-9a9d-f958f0e3a05e))
|
||||
(fp_line (start -4.2 2.25) (end -5.5 2.25)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp 0356b2dc-c9bc-4829-8343-27ed86d2e19b))
|
||||
(fp_line (start -3.6 4.3) (end 0.4 4.3)
|
||||
(stroke (width 0.127) (type default)) (layer "F.Fab") (tstamp 28bf17a6-3221-4254-b5e3-442590091c92))
|
||||
(fp_line (start -3.6 5.35) (end -3.6 4.3)
|
||||
(stroke (width 0.127) (type default)) (layer "F.Fab") (tstamp fede174c-82d4-4214-9a80-dee671777d81))
|
||||
(fp_line (start 0.4 4.3) (end 0.4 5.4)
|
||||
(stroke (width 0.127) (type default)) (layer "F.Fab") (tstamp 86c7aabb-f8c0-4c73-b019-b85bebb71f06))
|
||||
(fp_line (start 0.4 5.4) (end 1.3 5.4)
|
||||
(stroke (width 0.127) (type default)) (layer "F.Fab") (tstamp b346b889-f83f-4e44-ac3c-b9c18c4bfeca))
|
||||
(fp_line (start 1.3 5.4) (end 1.85 4.3)
|
||||
(stroke (width 0.127) (type default)) (layer "F.Fab") (tstamp 83601258-2c7d-4c55-9996-ee590a16f411))
|
||||
(fp_line (start 1.85 4.3) (end 6.1 4.3)
|
||||
(stroke (width 0.127) (type default)) (layer "F.Fab") (tstamp decc39a6-5210-4338-a0bf-27444887de8e))
|
||||
(fp_line (start 6.1 -4.7) (end 6.1 4.3)
|
||||
(stroke (width 0.127) (type solid)) (layer "F.Fab") (tstamp f0bcef93-c605-4782-9671-50816bcff153))
|
||||
(pad "" np_thru_hole circle (at -2.6 0) (size 1.1 1.1) (drill 1.1) (layers "*.Cu" "*.Mask") (tstamp 4bf3c14b-548d-46b8-b495-96bd6a488313))
|
||||
(pad "" np_thru_hole circle (at 2.4 0) (size 1.1 1.1) (drill 1.1) (layers "*.Cu" "*.Mask") (tstamp d20a6657-1fc2-4113-8548-24694ff1e021))
|
||||
(pad "1" thru_hole rect (at -2.6 -4.8) (size 1.65 1.65) (drill 1.1) (layers "*.Cu" "*.Mask")
|
||||
(solder_mask_margin 0.102) (tstamp 32f3146d-6082-43d2-96fd-12e0385460bd))
|
||||
(pad "2" thru_hole circle (at 2.4 3.6) (size 1.65 1.65) (drill 1.1) (layers "*.Cu" "*.Mask")
|
||||
(solder_mask_margin 0.102) (tstamp 49f2bf78-3fd2-4bd7-9f90-9e57a7203293))
|
||||
(pad "3" thru_hole circle (at 5.5 -1.6) (size 1.65 1.65) (drill 1.1) (layers "*.Cu" "*.Mask")
|
||||
(solder_mask_margin 0.102) (tstamp dc557e88-b134-41f4-966a-5f977c97ee79))
|
||||
(pad "4" thru_hole circle (at -2.6 4.5) (size 1.65 1.65) (drill 1.1) (layers "*.Cu" "*.Mask")
|
||||
(solder_mask_margin 0.102) (tstamp 076cf2ff-8dd7-4070-a098-78b9ee4a7912))
|
||||
(model "${KIPRJMOD}/CUI_DEVICES_SJ-43514.step"
|
||||
(offset (xyz -5.5 0 2.25))
|
||||
(scale (xyz 1 1 1))
|
||||
(rotate (xyz -90 0 180))
|
||||
)
|
||||
)
|
43
hardware/LICENSE
Normal file
43
hardware/LICENSE
Normal file
@ -0,0 +1,43 @@
|
||||
|
||||
Solderpad Hardware License v2.1
|
||||
|
||||
This license operates as a wraparound license to the Apache License Version 2.0 (the “Apache License”) and incorporates the terms and conditions of the Apache License (which can be found here: http://apache.org/licenses/LICENSE-2.0), with the following additions and modifications. It must be read in conjunction with the Apache License. Section 1 below modifies definitions and terminology in the Apache License and Section 2 below replaces Section 2 of the Apache License. The Appendix replaces the Appendix in the Apache License. You may, at your option, choose to treat any Work released under this license as released under the Apache License (thus ignoring all sections written below entirely).
|
||||
|
||||
1. Terminology in the Apache License is supplemented or modified as follows:
|
||||
|
||||
“Authorship”: any reference to ‘authorship’ shall be taken to read “authorship or design”.
|
||||
|
||||
“Copyright owner”: any reference to ‘copyright owner’ shall be taken to read “Rights owner”.
|
||||
|
||||
“Copyright statement”: the reference to ‘copyright statement’ shall be taken to read ‘copyright or other statement pertaining to Rights’.
|
||||
|
||||
The following new definition shall be added to the Definitions section of the Apache License:
|
||||
|
||||
“Rights” means copyright and any similar right including design right (whether registered or unregistered), rights in semiconductor topographies (mask works) and database rights (but excluding Patents and Trademarks).
|
||||
|
||||
The following definitions shall replace the corresponding definitions in the Apache License:
|
||||
|
||||
“License” shall mean this Solderpad Hardware License version 2.1, being the terms and conditions for use, manufacture, instantiation, adaptation, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
“Licensor” shall mean the owner of the Rights or entity authorized by the owner of the Rights that is granting the License.
|
||||
|
||||
“Derivative Works” shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship or design. For the purposes of this License, Derivative Works shall not include works that remain reversibly separable from, or merely link (or bind by name) or physically connect to or interoperate with the Work and Derivative Works thereof.
|
||||
|
||||
“Object” form shall mean any form resulting from mechanical transformation or translation of a Source form or the application of a Source form to physical material, including but not limited to compiled object code, generated documentation, the instantiation of a hardware design or physical object or material and conversions to other media types, including intermediate forms such as bytecodes, FPGA bitstreams, moulds, artwork and semiconductor topographies (mask works).
|
||||
|
||||
“Source” form shall mean the preferred form for making modifications, including but not limited to source code, net lists, board layouts, CAD files, documentation source, and configuration files.
|
||||
|
||||
“Work” shall mean the work of authorship or design, whether in Source or Object form, made available under the License, as indicated by a notice relating to Rights that is included in or attached to the work (an example is provided in the Appendix below).
|
||||
|
||||
2. Grant of License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable license under the Rights to reproduce, prepare Derivative Works of, make, adapt, repair, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form and do anything in relation to the Work as if the Rights did not exist.
|
||||
|
||||
APPENDIX
|
||||
|
||||
Copyright 2023 Allen Hill
|
||||
SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
|
||||
|
||||
Licensed under the Solderpad Hardware License v 2.1 (the “License”); you may not use this file except in compliance with the License, or, at your option, the Apache License version 2.0. You may obtain a copy of the License at
|
||||
|
||||
https://solderpad.org/licenses/SHL-2.1/
|
||||
|
||||
Unless required by applicable law or agreed to in writing, any work 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.
|
289
hardware/LOGO.kicad_mod
Normal file
289
hardware/LOGO.kicad_mod
Normal file
@ -0,0 +1,289 @@
|
||||
(footprint "LOGO" (version 20221018) (generator pcbnew)
|
||||
(layer "F.Cu")
|
||||
(fp_text reference "G***" (at 0 2.65176) (layer "F.SilkS") hide
|
||||
(effects (font (size 0.22606 0.22606) (thickness 0.04318)))
|
||||
(tstamp f5008734-4f8c-480e-9150-6066c4d15e62)
|
||||
)
|
||||
(fp_text value "LOGO" (at 0 -2.65176) (layer "F.SilkS") hide
|
||||
(effects (font (size 0.22606 0.22606) (thickness 0.04318)))
|
||||
(tstamp d485c02f-25a5-4145-a68b-5c44bbcce627)
|
||||
)
|
||||
(fp_poly
|
||||
(pts
|
||||
(xy -1.51384 2.24536)
|
||||
(xy -1.48844 2.23012)
|
||||
(xy -1.43002 2.19456)
|
||||
(xy -1.3462 2.13868)
|
||||
(xy -1.24714 2.07264)
|
||||
(xy -1.14808 2.0066)
|
||||
(xy -1.0668 1.95326)
|
||||
(xy -1.01092 1.91516)
|
||||
(xy -0.98552 1.90246)
|
||||
(xy -0.97282 1.90754)
|
||||
(xy -0.9271 1.9304)
|
||||
(xy -0.85852 1.96596)
|
||||
(xy -0.81788 1.98628)
|
||||
(xy -0.75692 2.01168)
|
||||
(xy -0.7239 2.0193)
|
||||
(xy -0.71882 2.00914)
|
||||
(xy -0.69596 1.96088)
|
||||
(xy -0.6604 1.8796)
|
||||
(xy -0.61468 1.77038)
|
||||
(xy -0.5588 1.64338)
|
||||
(xy -0.50292 1.50876)
|
||||
(xy -0.4445 1.36906)
|
||||
(xy -0.38862 1.23444)
|
||||
(xy -0.34036 1.11506)
|
||||
(xy -0.29972 1.01854)
|
||||
(xy -0.27432 0.94996)
|
||||
(xy -0.26416 0.92202)
|
||||
(xy -0.2667 0.9144)
|
||||
(xy -0.29972 0.88392)
|
||||
(xy -0.35306 0.84328)
|
||||
(xy -0.47244 0.74676)
|
||||
(xy -0.58928 0.60198)
|
||||
(xy -0.6604 0.43688)
|
||||
(xy -0.68326 0.25146)
|
||||
(xy -0.66294 0.08128)
|
||||
(xy -0.5969 -0.08128)
|
||||
(xy -0.4826 -0.2286)
|
||||
(xy -0.3429 -0.33782)
|
||||
(xy -0.18034 -0.4064)
|
||||
(xy 0 -0.42926)
|
||||
(xy 0.17272 -0.40894)
|
||||
(xy 0.34036 -0.3429)
|
||||
(xy 0.48768 -0.23114)
|
||||
(xy 0.55118 -0.16002)
|
||||
(xy 0.63754 -0.01016)
|
||||
(xy 0.6858 0.14732)
|
||||
(xy 0.69088 0.18796)
|
||||
(xy 0.68326 0.36322)
|
||||
(xy 0.63246 0.5334)
|
||||
(xy 0.53848 0.68326)
|
||||
(xy 0.40894 0.80772)
|
||||
(xy 0.3937 0.81788)
|
||||
(xy 0.33528 0.8636)
|
||||
(xy 0.29464 0.89408)
|
||||
(xy 0.26416 0.91948)
|
||||
(xy 0.48768 1.45796)
|
||||
(xy 0.52324 1.54178)
|
||||
(xy 0.5842 1.6891)
|
||||
(xy 0.63754 1.8161)
|
||||
(xy 0.68072 1.9177)
|
||||
(xy 0.7112 1.98374)
|
||||
(xy 0.7239 2.01168)
|
||||
(xy 0.7239 2.01422)
|
||||
(xy 0.74422 2.01676)
|
||||
(xy 0.78486 2.00152)
|
||||
(xy 0.86106 1.96596)
|
||||
(xy 0.90932 1.94056)
|
||||
(xy 0.96774 1.91262)
|
||||
(xy 0.99314 1.90246)
|
||||
(xy 1.016 1.91516)
|
||||
(xy 1.06934 1.95072)
|
||||
(xy 1.15062 2.00406)
|
||||
(xy 1.24714 2.06756)
|
||||
(xy 1.33858 2.13106)
|
||||
(xy 1.4224 2.18694)
|
||||
(xy 1.48336 2.22504)
|
||||
(xy 1.51384 2.24282)
|
||||
(xy 1.51892 2.24282)
|
||||
(xy 1.54432 2.22758)
|
||||
(xy 1.59258 2.18694)
|
||||
(xy 1.66624 2.11836)
|
||||
(xy 1.77038 2.01422)
|
||||
(xy 1.78562 1.99898)
|
||||
(xy 1.87198 1.91262)
|
||||
(xy 1.94056 1.83896)
|
||||
(xy 1.98628 1.78816)
|
||||
(xy 2.00406 1.7653)
|
||||
(xy 1.98882 1.73482)
|
||||
(xy 1.95072 1.67386)
|
||||
(xy 1.89484 1.5875)
|
||||
(xy 1.82626 1.48844)
|
||||
(xy 1.64846 1.22936)
|
||||
(xy 1.74498 0.98552)
|
||||
(xy 1.77546 0.90932)
|
||||
(xy 1.81356 0.82042)
|
||||
(xy 1.8415 0.75438)
|
||||
(xy 1.85674 0.72644)
|
||||
(xy 1.88214 0.71628)
|
||||
(xy 1.95072 0.70104)
|
||||
(xy 2.04724 0.68072)
|
||||
(xy 2.16154 0.6604)
|
||||
(xy 2.2733 0.64008)
|
||||
(xy 2.37236 0.61976)
|
||||
(xy 2.44348 0.60706)
|
||||
(xy 2.4765 0.59944)
|
||||
(xy 2.48412 0.59436)
|
||||
(xy 2.49174 0.57912)
|
||||
(xy 2.49428 0.5461)
|
||||
(xy 2.49682 0.48514)
|
||||
(xy 2.49936 0.39116)
|
||||
(xy 2.49936 0.25146)
|
||||
(xy 2.49936 0.23622)
|
||||
(xy 2.49682 0.10668)
|
||||
(xy 2.49428 0)
|
||||
(xy 2.49174 -0.06604)
|
||||
(xy 2.48666 -0.09398)
|
||||
(xy 2.45618 -0.1016)
|
||||
(xy 2.38506 -0.11684)
|
||||
(xy 2.286 -0.13462)
|
||||
(xy 2.16662 -0.15748)
|
||||
(xy 2.159 -0.16002)
|
||||
(xy 2.04216 -0.18288)
|
||||
(xy 1.9431 -0.2032)
|
||||
(xy 1.87198 -0.21844)
|
||||
(xy 1.84404 -0.2286)
|
||||
(xy 1.83642 -0.23622)
|
||||
(xy 1.81356 -0.28194)
|
||||
(xy 1.78054 -0.3556)
|
||||
(xy 1.7399 -0.4445)
|
||||
(xy 1.7018 -0.53848)
|
||||
(xy 1.66878 -0.6223)
|
||||
(xy 1.64592 -0.68326)
|
||||
(xy 1.6383 -0.7112)
|
||||
(xy 1.64084 -0.71374)
|
||||
(xy 1.65862 -0.74168)
|
||||
(xy 1.69926 -0.80264)
|
||||
(xy 1.75514 -0.88646)
|
||||
(xy 1.82372 -0.98806)
|
||||
(xy 1.8288 -0.99568)
|
||||
(xy 1.89738 -1.09474)
|
||||
(xy 1.95326 -1.1811)
|
||||
(xy 1.98882 -1.23952)
|
||||
(xy 2.00406 -1.26746)
|
||||
(xy 2.00406 -1.27)
|
||||
(xy 1.9812 -1.30048)
|
||||
(xy 1.9304 -1.35636)
|
||||
(xy 1.85674 -1.43256)
|
||||
(xy 1.77038 -1.52146)
|
||||
(xy 1.74244 -1.54686)
|
||||
(xy 1.64338 -1.64338)
|
||||
(xy 1.57734 -1.70434)
|
||||
(xy 1.53416 -1.73736)
|
||||
(xy 1.51384 -1.74498)
|
||||
(xy 1.48336 -1.7272)
|
||||
(xy 1.41986 -1.68656)
|
||||
(xy 1.33604 -1.62814)
|
||||
(xy 1.23444 -1.55956)
|
||||
(xy 1.22682 -1.55448)
|
||||
(xy 1.12776 -1.4859)
|
||||
(xy 1.04394 -1.43002)
|
||||
(xy 0.98552 -1.38938)
|
||||
(xy 0.95758 -1.37414)
|
||||
(xy 0.95504 -1.37414)
|
||||
(xy 0.9144 -1.38684)
|
||||
(xy 0.84328 -1.41224)
|
||||
(xy 0.75438 -1.44526)
|
||||
(xy 0.66294 -1.48336)
|
||||
(xy 0.57912 -1.51892)
|
||||
(xy 0.51562 -1.54686)
|
||||
(xy 0.48514 -1.56464)
|
||||
(xy 0.47498 -1.6002)
|
||||
(xy 0.4572 -1.6764)
|
||||
(xy 0.43688 -1.778)
|
||||
(xy 0.41148 -1.89992)
|
||||
(xy 0.40894 -1.92024)
|
||||
(xy 0.38608 -2.03962)
|
||||
(xy 0.3683 -2.13868)
|
||||
(xy 0.35306 -2.20726)
|
||||
(xy 0.34544 -2.2352)
|
||||
(xy 0.3302 -2.23774)
|
||||
(xy 0.27178 -2.24282)
|
||||
(xy 0.18288 -2.24536)
|
||||
(xy 0.07366 -2.24536)
|
||||
(xy -0.0381 -2.24536)
|
||||
(xy -0.14732 -2.24282)
|
||||
(xy -0.2413 -2.24028)
|
||||
(xy -0.30988 -2.2352)
|
||||
(xy -0.33782 -2.23012)
|
||||
(xy -0.33782 -2.22758)
|
||||
(xy -0.34798 -2.18948)
|
||||
(xy -0.36576 -2.11582)
|
||||
(xy -0.38608 -2.01168)
|
||||
(xy -0.40894 -1.88976)
|
||||
(xy -0.41402 -1.8669)
|
||||
(xy -0.43688 -1.75006)
|
||||
(xy -0.4572 -1.651)
|
||||
(xy -0.4699 -1.58496)
|
||||
(xy -0.47752 -1.55702)
|
||||
(xy -0.49022 -1.55194)
|
||||
(xy -0.53848 -1.53162)
|
||||
(xy -0.61722 -1.4986)
|
||||
(xy -0.71628 -1.45796)
|
||||
(xy -0.94488 -1.36652)
|
||||
(xy -1.22682 -1.55702)
|
||||
(xy -1.25222 -1.5748)
|
||||
(xy -1.35382 -1.64338)
|
||||
(xy -1.4351 -1.69926)
|
||||
(xy -1.49352 -1.73736)
|
||||
(xy -1.51638 -1.75006)
|
||||
(xy -1.51892 -1.75006)
|
||||
(xy -1.54686 -1.72466)
|
||||
(xy -1.60274 -1.67132)
|
||||
(xy -1.67894 -1.59766)
|
||||
(xy -1.76784 -1.5113)
|
||||
(xy -1.83134 -1.44526)
|
||||
(xy -1.91008 -1.36652)
|
||||
(xy -1.95834 -1.31318)
|
||||
(xy -1.98628 -1.28016)
|
||||
(xy -1.9939 -1.25984)
|
||||
(xy -1.99136 -1.2446)
|
||||
(xy -1.97358 -1.21666)
|
||||
(xy -1.93294 -1.1557)
|
||||
(xy -1.87452 -1.06934)
|
||||
(xy -1.80594 -0.97028)
|
||||
(xy -1.75006 -0.88646)
|
||||
(xy -1.6891 -0.79248)
|
||||
(xy -1.651 -0.72644)
|
||||
(xy -1.63576 -0.69342)
|
||||
(xy -1.64084 -0.68072)
|
||||
(xy -1.65862 -0.62484)
|
||||
(xy -1.69418 -0.54102)
|
||||
(xy -1.73482 -0.44196)
|
||||
(xy -1.83388 -0.22098)
|
||||
(xy -1.97866 -0.19304)
|
||||
(xy -2.06756 -0.17526)
|
||||
(xy -2.18948 -0.1524)
|
||||
(xy -2.30886 -0.12954)
|
||||
(xy -2.49174 -0.09398)
|
||||
(xy -2.49936 0.58166)
|
||||
(xy -2.47142 0.59436)
|
||||
(xy -2.44348 0.60198)
|
||||
(xy -2.3749 0.61722)
|
||||
(xy -2.27838 0.63754)
|
||||
(xy -2.16154 0.65786)
|
||||
(xy -2.06502 0.67564)
|
||||
(xy -1.96596 0.69596)
|
||||
(xy -1.89484 0.70866)
|
||||
(xy -1.86436 0.71628)
|
||||
(xy -1.8542 0.72644)
|
||||
(xy -1.83134 0.7747)
|
||||
(xy -1.79578 0.8509)
|
||||
(xy -1.75514 0.94234)
|
||||
(xy -1.71704 1.03632)
|
||||
(xy -1.68148 1.12522)
|
||||
(xy -1.65862 1.19126)
|
||||
(xy -1.64846 1.22428)
|
||||
(xy -1.66116 1.25222)
|
||||
(xy -1.69926 1.31064)
|
||||
(xy -1.7526 1.39192)
|
||||
(xy -1.82118 1.49098)
|
||||
(xy -1.88722 1.5875)
|
||||
(xy -1.94564 1.67132)
|
||||
(xy -1.98374 1.73228)
|
||||
(xy -2.00152 1.76022)
|
||||
(xy -1.99136 1.778)
|
||||
(xy -1.95326 1.82626)
|
||||
(xy -1.8796 1.90246)
|
||||
(xy -1.76784 2.01168)
|
||||
(xy -1.75006 2.02946)
|
||||
(xy -1.6637 2.11328)
|
||||
(xy -1.59004 2.18186)
|
||||
(xy -1.5367 2.22758)
|
||||
(xy -1.51384 2.24536)
|
||||
)
|
||||
|
||||
(stroke (width 0.00254) (type solid)) (fill solid) (layer "F.SilkS") (tstamp 52e078f1-f855-4e08-8c35-aff7775e153a))
|
||||
)
|
293
hardware/OSHW_logo_5mm.emp
Normal file
293
hardware/OSHW_logo_5mm.emp
Normal file
@ -0,0 +1,293 @@
|
||||
PCBNEW-LibModule-V1
|
||||
$INDEX
|
||||
LOGO
|
||||
$EndINDEX
|
||||
#
|
||||
# LOGO
|
||||
# pixmap w = 400, h = 400
|
||||
#
|
||||
$MODULE LOGO
|
||||
Po 0 0 0 15 00000000 00000000 ~~
|
||||
Li LOGO
|
||||
T0 0 1044 89 89 0 17 N I 21 N "G***"
|
||||
T1 0 -1044 89 89 0 17 N I 21 N "LOGO"
|
||||
DP 0 0 0 0 277 1 21
|
||||
Dl -596 884
|
||||
Dl -586 878
|
||||
Dl -563 864
|
||||
Dl -530 842
|
||||
Dl -491 816
|
||||
Dl -452 790
|
||||
Dl -420 769
|
||||
Dl -398 754
|
||||
Dl -388 749
|
||||
Dl -383 751
|
||||
Dl -365 760
|
||||
Dl -338 774
|
||||
Dl -322 782
|
||||
Dl -298 792
|
||||
Dl -285 795
|
||||
Dl -283 791
|
||||
Dl -274 772
|
||||
Dl -260 740
|
||||
Dl -242 697
|
||||
Dl -220 647
|
||||
Dl -198 594
|
||||
Dl -175 539
|
||||
Dl -153 486
|
||||
Dl -134 439
|
||||
Dl -118 401
|
||||
Dl -108 374
|
||||
Dl -104 363
|
||||
Dl -105 360
|
||||
Dl -118 348
|
||||
Dl -139 332
|
||||
Dl -186 294
|
||||
Dl -232 237
|
||||
Dl -260 172
|
||||
Dl -269 99
|
||||
Dl -261 32
|
||||
Dl -235 -32
|
||||
Dl -190 -90
|
||||
Dl -135 -133
|
||||
Dl -71 -160
|
||||
Dl 0 -169
|
||||
Dl 68 -161
|
||||
Dl 134 -135
|
||||
Dl 192 -91
|
||||
Dl 217 -63
|
||||
Dl 251 -4
|
||||
Dl 270 58
|
||||
Dl 272 74
|
||||
Dl 269 143
|
||||
Dl 249 210
|
||||
Dl 212 269
|
||||
Dl 161 318
|
||||
Dl 155 322
|
||||
Dl 132 340
|
||||
Dl 116 352
|
||||
Dl 104 362
|
||||
Dl 192 574
|
||||
Dl 206 607
|
||||
Dl 230 665
|
||||
Dl 251 715
|
||||
Dl 268 755
|
||||
Dl 280 781
|
||||
Dl 285 792
|
||||
Dl 285 793
|
||||
Dl 293 794
|
||||
Dl 309 788
|
||||
Dl 339 774
|
||||
Dl 358 764
|
||||
Dl 381 753
|
||||
Dl 391 749
|
||||
Dl 400 754
|
||||
Dl 421 768
|
||||
Dl 453 789
|
||||
Dl 491 814
|
||||
Dl 527 839
|
||||
Dl 560 861
|
||||
Dl 584 876
|
||||
Dl 596 883
|
||||
Dl 598 883
|
||||
Dl 608 877
|
||||
Dl 627 861
|
||||
Dl 656 834
|
||||
Dl 697 793
|
||||
Dl 703 787
|
||||
Dl 737 753
|
||||
Dl 764 724
|
||||
Dl 782 704
|
||||
Dl 789 695
|
||||
Dl 789 695
|
||||
Dl 783 683
|
||||
Dl 768 659
|
||||
Dl 746 625
|
||||
Dl 719 586
|
||||
Dl 649 484
|
||||
Dl 687 388
|
||||
Dl 699 358
|
||||
Dl 714 323
|
||||
Dl 725 297
|
||||
Dl 731 286
|
||||
Dl 741 282
|
||||
Dl 768 276
|
||||
Dl 806 268
|
||||
Dl 851 260
|
||||
Dl 895 252
|
||||
Dl 934 244
|
||||
Dl 962 239
|
||||
Dl 975 236
|
||||
Dl 978 234
|
||||
Dl 981 228
|
||||
Dl 982 215
|
||||
Dl 983 191
|
||||
Dl 984 154
|
||||
Dl 984 99
|
||||
Dl 984 93
|
||||
Dl 983 42
|
||||
Dl 982 0
|
||||
Dl 981 -26
|
||||
Dl 979 -37
|
||||
Dl 979 -37
|
||||
Dl 967 -40
|
||||
Dl 939 -46
|
||||
Dl 900 -53
|
||||
Dl 853 -62
|
||||
Dl 850 -63
|
||||
Dl 804 -72
|
||||
Dl 765 -80
|
||||
Dl 737 -86
|
||||
Dl 726 -90
|
||||
Dl 723 -93
|
||||
Dl 714 -111
|
||||
Dl 701 -140
|
||||
Dl 685 -175
|
||||
Dl 670 -212
|
||||
Dl 657 -245
|
||||
Dl 648 -269
|
||||
Dl 645 -280
|
||||
Dl 646 -281
|
||||
Dl 653 -292
|
||||
Dl 669 -316
|
||||
Dl 691 -349
|
||||
Dl 718 -389
|
||||
Dl 720 -392
|
||||
Dl 747 -431
|
||||
Dl 769 -465
|
||||
Dl 783 -488
|
||||
Dl 789 -499
|
||||
Dl 789 -500
|
||||
Dl 780 -512
|
||||
Dl 760 -534
|
||||
Dl 731 -564
|
||||
Dl 697 -599
|
||||
Dl 686 -609
|
||||
Dl 647 -647
|
||||
Dl 621 -671
|
||||
Dl 604 -684
|
||||
Dl 596 -687
|
||||
Dl 596 -687
|
||||
Dl 584 -680
|
||||
Dl 559 -664
|
||||
Dl 526 -641
|
||||
Dl 486 -614
|
||||
Dl 483 -612
|
||||
Dl 444 -585
|
||||
Dl 411 -563
|
||||
Dl 388 -547
|
||||
Dl 377 -541
|
||||
Dl 376 -541
|
||||
Dl 360 -546
|
||||
Dl 332 -556
|
||||
Dl 297 -569
|
||||
Dl 261 -584
|
||||
Dl 228 -598
|
||||
Dl 203 -609
|
||||
Dl 191 -616
|
||||
Dl 191 -616
|
||||
Dl 187 -630
|
||||
Dl 180 -660
|
||||
Dl 172 -700
|
||||
Dl 162 -748
|
||||
Dl 161 -756
|
||||
Dl 152 -803
|
||||
Dl 145 -842
|
||||
Dl 139 -869
|
||||
Dl 136 -880
|
||||
Dl 130 -881
|
||||
Dl 107 -883
|
||||
Dl 72 -884
|
||||
Dl 29 -884
|
||||
Dl -15 -884
|
||||
Dl -58 -883
|
||||
Dl -95 -882
|
||||
Dl -122 -880
|
||||
Dl -133 -878
|
||||
Dl -133 -877
|
||||
Dl -137 -862
|
||||
Dl -144 -833
|
||||
Dl -152 -792
|
||||
Dl -161 -744
|
||||
Dl -163 -735
|
||||
Dl -172 -689
|
||||
Dl -180 -650
|
||||
Dl -185 -624
|
||||
Dl -188 -613
|
||||
Dl -193 -611
|
||||
Dl -212 -603
|
||||
Dl -243 -590
|
||||
Dl -282 -574
|
||||
Dl -372 -538
|
||||
Dl -483 -613
|
||||
Dl -493 -620
|
||||
Dl -533 -647
|
||||
Dl -565 -669
|
||||
Dl -588 -684
|
||||
Dl -597 -689
|
||||
Dl -598 -689
|
||||
Dl -609 -679
|
||||
Dl -631 -658
|
||||
Dl -661 -629
|
||||
Dl -696 -595
|
||||
Dl -721 -569
|
||||
Dl -752 -538
|
||||
Dl -771 -517
|
||||
Dl -782 -504
|
||||
Dl -785 -496
|
||||
Dl -784 -490
|
||||
Dl -777 -479
|
||||
Dl -761 -455
|
||||
Dl -738 -421
|
||||
Dl -711 -382
|
||||
Dl -689 -349
|
||||
Dl -665 -312
|
||||
Dl -650 -286
|
||||
Dl -644 -273
|
||||
Dl -646 -268
|
||||
Dl -653 -246
|
||||
Dl -667 -213
|
||||
Dl -683 -174
|
||||
Dl -722 -87
|
||||
Dl -779 -76
|
||||
Dl -814 -69
|
||||
Dl -862 -60
|
||||
Dl -909 -51
|
||||
Dl -981 -37
|
||||
Dl -984 229
|
||||
Dl -973 234
|
||||
Dl -962 237
|
||||
Dl -935 243
|
||||
Dl -897 251
|
||||
Dl -851 259
|
||||
Dl -813 266
|
||||
Dl -774 274
|
||||
Dl -746 279
|
||||
Dl -734 282
|
||||
Dl -730 286
|
||||
Dl -721 305
|
||||
Dl -707 335
|
||||
Dl -691 371
|
||||
Dl -676 408
|
||||
Dl -662 443
|
||||
Dl -653 469
|
||||
Dl -649 482
|
||||
Dl -654 493
|
||||
Dl -669 516
|
||||
Dl -690 548
|
||||
Dl -717 587
|
||||
Dl -743 625
|
||||
Dl -766 658
|
||||
Dl -781 682
|
||||
Dl -788 693
|
||||
Dl -784 700
|
||||
Dl -769 719
|
||||
Dl -740 749
|
||||
Dl -696 792
|
||||
Dl -689 799
|
||||
Dl -655 832
|
||||
Dl -626 859
|
||||
Dl -605 877
|
||||
Dl -596 884
|
||||
$EndMODULE LOGO
|
||||
$EndLIBRARY
|
40
hardware/SJ-43514.lib
Normal file
40
hardware/SJ-43514.lib
Normal file
@ -0,0 +1,40 @@
|
||||
EESchema-LIBRARY Version 2.3
|
||||
#encoding utf-8
|
||||
#(c) SnapEDA 2016 (snapeda.com)
|
||||
#This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License (CC BY-SA) with Design Exception 1.0
|
||||
#
|
||||
# SJ-43514
|
||||
#
|
||||
DEF SJ-43514 J 0 40 Y N 1 L N
|
||||
F0 "J" -300 330 50 H V L BNN
|
||||
F1 "SJ-43514" -300 -400 50 H V L BNN
|
||||
F2 "CUI_SJ-43514" 0 0 50 H I L BNN
|
||||
F3 "" 0 0 50 H I L BNN
|
||||
F4 "CUI INC" 0 0 50 H I L BNN "MANUFACTURER"
|
||||
F5 "1.04" 0 0 50 H I L BNN "PART_REV"
|
||||
F6 "MANUFACTURER RECOMMENDATIONS" 0 0 50 H I L BNN "STANDARD"
|
||||
DRAW
|
||||
P 2 0 0 10 -240 85 -240 -95 N
|
||||
P 2 0 0 10 -240 -95 -160 -95 N
|
||||
P 2 0 0 10 -160 -95 -160 85 N
|
||||
P 2 0 0 10 -160 85 -240 85 N
|
||||
P 2 0 0 10 -90 200 -40 130 N
|
||||
P 2 0 0 10 -40 130 10 200 N
|
||||
P 2 0 0 10 85 -100 300 -100 N
|
||||
P 2 0 0 10 -15 -100 35 -30 N
|
||||
P 2 0 0 10 35 -30 85 -100 N
|
||||
P 2 0 0 10 15 200 300 200 N
|
||||
P 2 0 0 10 195 100 300 100 N
|
||||
P 2 0 0 10 95 100 145 40 N
|
||||
P 2 0 0 10 145 40 195 100 N
|
||||
P 2 0 0 10 -200 -100 -200 -200 N
|
||||
P 2 0 0 10 -200 -200 300 -200 N
|
||||
S -300 -300 300 300 0 0 10 f
|
||||
X ~ 4 400 200 100 L 40 40 0 0 P
|
||||
X ~ 1 400 -200 100 L 40 40 0 0 P
|
||||
X ~ 2 400 100 100 L 40 40 0 0 P
|
||||
X ~ 3 400 -100 100 L 40 40 0 0 P
|
||||
ENDDRAW
|
||||
ENDDEF
|
||||
#
|
||||
# End Library
|
13378
hardware/avclan-mockingboard-rounded.kicad_pcb
Normal file
13378
hardware/avclan-mockingboard-rounded.kicad_pcb
Normal file
File diff suppressed because it is too large
Load Diff
77
hardware/avclan-mockingboard-rounded.kicad_prl
Normal file
77
hardware/avclan-mockingboard-rounded.kicad_prl
Normal file
@ -0,0 +1,77 @@
|
||||
{
|
||||
"board": {
|
||||
"active_layer": 0,
|
||||
"active_layer_preset": "All Layers",
|
||||
"auto_track_width": true,
|
||||
"hidden_netclasses": [],
|
||||
"hidden_nets": [],
|
||||
"high_contrast_mode": 0,
|
||||
"net_color_mode": 1,
|
||||
"opacity": {
|
||||
"images": 0.6,
|
||||
"pads": 1.0,
|
||||
"tracks": 1.0,
|
||||
"vias": 1.0,
|
||||
"zones": 0.6
|
||||
},
|
||||
"selection_filter": {
|
||||
"dimensions": true,
|
||||
"footprints": true,
|
||||
"graphics": true,
|
||||
"keepouts": true,
|
||||
"lockedItems": false,
|
||||
"otherItems": true,
|
||||
"pads": true,
|
||||
"text": true,
|
||||
"tracks": true,
|
||||
"vias": true,
|
||||
"zones": true
|
||||
},
|
||||
"visible_items": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
15,
|
||||
16,
|
||||
17,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23,
|
||||
24,
|
||||
25,
|
||||
26,
|
||||
27,
|
||||
28,
|
||||
29,
|
||||
30,
|
||||
32,
|
||||
33,
|
||||
34,
|
||||
35,
|
||||
36,
|
||||
39,
|
||||
40
|
||||
],
|
||||
"visible_layers": "fffffff_ffffffff",
|
||||
"zone_display_mode": 0
|
||||
},
|
||||
"meta": {
|
||||
"filename": "avclan-mockingboard-rounded.kicad_prl",
|
||||
"version": 3
|
||||
},
|
||||
"project": {
|
||||
"files": []
|
||||
}
|
||||
}
|
509
hardware/avclan-mockingboard-rounded.kicad_pro
Normal file
509
hardware/avclan-mockingboard-rounded.kicad_pro
Normal file
@ -0,0 +1,509 @@
|
||||
{
|
||||
"board": {
|
||||
"3dviewports": [],
|
||||
"design_settings": {
|
||||
"defaults": {
|
||||
"board_outline_line_width": 0.09999999999999999,
|
||||
"copper_line_width": 0.19999999999999998,
|
||||
"copper_text_italic": false,
|
||||
"copper_text_size_h": 1.5,
|
||||
"copper_text_size_v": 1.5,
|
||||
"copper_text_thickness": 0.3,
|
||||
"copper_text_upright": false,
|
||||
"courtyard_line_width": 0.049999999999999996,
|
||||
"dimension_precision": 4,
|
||||
"dimension_units": 3,
|
||||
"dimensions": {
|
||||
"arrow_length": 1270000,
|
||||
"extension_offset": 500000,
|
||||
"keep_text_aligned": true,
|
||||
"suppress_zeroes": false,
|
||||
"text_position": 0,
|
||||
"units_format": 1
|
||||
},
|
||||
"fab_line_width": 0.09999999999999999,
|
||||
"fab_text_italic": false,
|
||||
"fab_text_size_h": 1.0,
|
||||
"fab_text_size_v": 1.0,
|
||||
"fab_text_thickness": 0.15,
|
||||
"fab_text_upright": false,
|
||||
"other_line_width": 0.15,
|
||||
"other_text_italic": false,
|
||||
"other_text_size_h": 1.0,
|
||||
"other_text_size_v": 1.0,
|
||||
"other_text_thickness": 0.15,
|
||||
"other_text_upright": false,
|
||||
"pads": {
|
||||
"drill": 0.762,
|
||||
"height": 1.524,
|
||||
"width": 1.524
|
||||
},
|
||||
"silk_line_width": 0.15,
|
||||
"silk_text_italic": false,
|
||||
"silk_text_size_h": 1.0,
|
||||
"silk_text_size_v": 1.0,
|
||||
"silk_text_thickness": 0.15,
|
||||
"silk_text_upright": false,
|
||||
"zones": {
|
||||
"min_clearance": 0.33299999999999996
|
||||
}
|
||||
},
|
||||
"diff_pair_dimensions": [
|
||||
{
|
||||
"gap": 0.0,
|
||||
"via_gap": 0.0,
|
||||
"width": 0.0
|
||||
}
|
||||
],
|
||||
"drc_exclusions": [
|
||||
"extra_footprint|155000000|98300000|9eb14f8d-8889-43ee-98f8-14d7ff3a00d4|00000000-0000-0000-0000-000000000000",
|
||||
"silk_edge_clearance|127600000|75600000|3c9aeeb6-9bf2-4b70-8ccb-4aa674772f2c|3bc1c510-8140-48c6-9e1d-e37afa6a5a79",
|
||||
"silk_edge_clearance|136600000|75600000|6e55689b-dfcc-4b1b-b6da-416a34456e20|6d777aef-3d67-44dd-a85d-1dbda6171f02",
|
||||
"silk_edge_clearance|138470000|75600000|6e55689b-dfcc-4b1b-b6da-416a34456e20|c93e5386-3bd1-45c9-bd03-1ef6229305ed",
|
||||
"silk_edge_clearance|169440000|75600000|6e55689b-dfcc-4b1b-b6da-416a34456e20|44ebb4f7-c13a-4c59-b036-8212144cec66"
|
||||
],
|
||||
"meta": {
|
||||
"version": 2
|
||||
},
|
||||
"rule_severities": {
|
||||
"annular_width": "error",
|
||||
"clearance": "error",
|
||||
"connection_width": "warning",
|
||||
"copper_edge_clearance": "error",
|
||||
"copper_sliver": "warning",
|
||||
"courtyards_overlap": "error",
|
||||
"diff_pair_gap_out_of_range": "error",
|
||||
"diff_pair_uncoupled_length_too_long": "error",
|
||||
"drill_out_of_range": "error",
|
||||
"duplicate_footprints": "warning",
|
||||
"extra_footprint": "warning",
|
||||
"footprint": "error",
|
||||
"footprint_type_mismatch": "ignore",
|
||||
"hole_clearance": "error",
|
||||
"hole_near_hole": "error",
|
||||
"invalid_outline": "error",
|
||||
"isolated_copper": "warning",
|
||||
"item_on_disabled_layer": "error",
|
||||
"items_not_allowed": "error",
|
||||
"length_out_of_range": "error",
|
||||
"lib_footprint_issues": "warning",
|
||||
"lib_footprint_mismatch": "ignore",
|
||||
"malformed_courtyard": "error",
|
||||
"microvia_drill_out_of_range": "error",
|
||||
"missing_courtyard": "ignore",
|
||||
"missing_footprint": "warning",
|
||||
"net_conflict": "warning",
|
||||
"npth_inside_courtyard": "ignore",
|
||||
"padstack": "warning",
|
||||
"pth_inside_courtyard": "ignore",
|
||||
"shorting_items": "error",
|
||||
"silk_edge_clearance": "warning",
|
||||
"silk_over_copper": "warning",
|
||||
"silk_overlap": "warning",
|
||||
"skew_out_of_range": "error",
|
||||
"solder_mask_bridge": "error",
|
||||
"starved_thermal": "error",
|
||||
"text_height": "warning",
|
||||
"text_thickness": "warning",
|
||||
"through_hole_pad_without_hole": "error",
|
||||
"too_many_vias": "error",
|
||||
"track_dangling": "warning",
|
||||
"track_width": "error",
|
||||
"tracks_crossing": "error",
|
||||
"unconnected_items": "error",
|
||||
"unresolved_variable": "error",
|
||||
"via_dangling": "warning",
|
||||
"zones_intersect": "error"
|
||||
},
|
||||
"rules": {
|
||||
"max_error": 0.005,
|
||||
"min_clearance": 0.09,
|
||||
"min_connection": 0.0,
|
||||
"min_copper_edge_clearance": 0.3,
|
||||
"min_hole_clearance": 0.254,
|
||||
"min_hole_to_hole": 0.5,
|
||||
"min_microvia_diameter": 0.19999999999999998,
|
||||
"min_microvia_drill": 0.09999999999999999,
|
||||
"min_resolved_spokes": 2,
|
||||
"min_silk_clearance": 0.049999999999999996,
|
||||
"min_text_height": 1.0,
|
||||
"min_text_thickness": 0.153,
|
||||
"min_through_hole_diameter": 0.3,
|
||||
"min_track_width": 0.09,
|
||||
"min_via_annular_width": 0.15,
|
||||
"min_via_diameter": 0.5,
|
||||
"solder_mask_clearance": 0.0,
|
||||
"solder_mask_min_width": 0.0,
|
||||
"solder_mask_to_copper_clearance": 0.0,
|
||||
"use_height_for_length_calcs": true
|
||||
},
|
||||
"teardrop_options": [
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 5,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_onpadsmd": true,
|
||||
"td_onroundshapesonly": false,
|
||||
"td_ontrackend": false,
|
||||
"td_onviapad": true
|
||||
}
|
||||
],
|
||||
"teardrop_parameters": [
|
||||
{
|
||||
"td_curve_segcount": 5,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.75,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_target_name": "td_round_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_curve_segcount": 5,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.75,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_target_name": "td_rect_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_curve_segcount": 5,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.75,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_target_name": "td_track_end",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
}
|
||||
],
|
||||
"track_widths": [
|
||||
0.0,
|
||||
0.1,
|
||||
0.2,
|
||||
0.5,
|
||||
0.75,
|
||||
1.0
|
||||
],
|
||||
"via_dimensions": [
|
||||
{
|
||||
"diameter": 0.0,
|
||||
"drill": 0.0
|
||||
}
|
||||
],
|
||||
"zones_allow_external_fillets": false
|
||||
},
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
"boards": [],
|
||||
"cvpcb": {
|
||||
"equivalence_files": []
|
||||
},
|
||||
"erc": {
|
||||
"erc_exclusions": [],
|
||||
"meta": {
|
||||
"version": 0
|
||||
},
|
||||
"pin_map": [
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
2,
|
||||
1,
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
2,
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
2,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2
|
||||
]
|
||||
],
|
||||
"rule_severities": {
|
||||
"bus_definition_conflict": "error",
|
||||
"bus_entry_needed": "error",
|
||||
"bus_to_bus_conflict": "error",
|
||||
"bus_to_net_conflict": "error",
|
||||
"conflicting_netclasses": "error",
|
||||
"different_unit_footprint": "error",
|
||||
"different_unit_net": "error",
|
||||
"duplicate_reference": "error",
|
||||
"duplicate_sheet_names": "error",
|
||||
"endpoint_off_grid": "warning",
|
||||
"extra_units": "error",
|
||||
"global_label_dangling": "warning",
|
||||
"hier_label_mismatch": "error",
|
||||
"label_dangling": "error",
|
||||
"lib_symbol_issues": "warning",
|
||||
"missing_bidi_pin": "warning",
|
||||
"missing_input_pin": "warning",
|
||||
"missing_power_pin": "error",
|
||||
"missing_unit": "warning",
|
||||
"multiple_net_names": "warning",
|
||||
"net_not_bus_member": "warning",
|
||||
"no_connect_connected": "error",
|
||||
"no_connect_dangling": "warning",
|
||||
"pin_not_connected": "warning",
|
||||
"pin_not_driven": "error",
|
||||
"pin_to_pin": "error",
|
||||
"power_pin_not_driven": "error",
|
||||
"similar_labels": "warning",
|
||||
"simulation_model_issue": "ignore",
|
||||
"unannotated": "error",
|
||||
"unit_value_mismatch": "error",
|
||||
"unresolved_variable": "error",
|
||||
"wire_dangling": "error"
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"pinned_footprint_libs": [],
|
||||
"pinned_symbol_libs": []
|
||||
},
|
||||
"meta": {
|
||||
"filename": "avclan-mockingboard-rounded.kicad_pro",
|
||||
"version": 1
|
||||
},
|
||||
"net_settings": {
|
||||
"classes": [
|
||||
{
|
||||
"bus_width": 12,
|
||||
"clearance": 0.2,
|
||||
"diff_pair_gap": 0.25,
|
||||
"diff_pair_via_gap": 0.25,
|
||||
"diff_pair_width": 0.2,
|
||||
"line_style": 0,
|
||||
"microvia_diameter": 0.3,
|
||||
"microvia_drill": 0.1,
|
||||
"name": "Default",
|
||||
"pcb_color": "rgba(0, 0, 0, 0.000)",
|
||||
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||
"track_width": 0.25,
|
||||
"via_diameter": 0.8,
|
||||
"via_drill": 0.4,
|
||||
"wire_width": 6
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"version": 3
|
||||
},
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_patterns": []
|
||||
},
|
||||
"pcbnew": {
|
||||
"last_paths": {
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "low-power-ATtiny-board.net",
|
||||
"specctra_dsn": "",
|
||||
"step": "avclan-mockingboard-rounded.step",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
},
|
||||
"schematic": {
|
||||
"annotate_start_num": 0,
|
||||
"drawing": {
|
||||
"dashed_lines_dash_length_ratio": 12.0,
|
||||
"dashed_lines_gap_length_ratio": 3.0,
|
||||
"default_line_thickness": 6.0,
|
||||
"default_text_size": 44.0,
|
||||
"field_names": [],
|
||||
"intersheets_ref_own_page": false,
|
||||
"intersheets_ref_prefix": "",
|
||||
"intersheets_ref_short": false,
|
||||
"intersheets_ref_show": false,
|
||||
"intersheets_ref_suffix": "",
|
||||
"junction_size_choice": 3,
|
||||
"label_size_ratio": 0.375,
|
||||
"pin_symbol_size": 25.0,
|
||||
"text_offset_ratio": 0.15
|
||||
},
|
||||
"legacy_lib_dir": "",
|
||||
"legacy_lib_list": [],
|
||||
"meta": {
|
||||
"version": 1
|
||||
},
|
||||
"net_format_name": "KiCad",
|
||||
"ngspice": {
|
||||
"fix_include_paths": true,
|
||||
"meta": {
|
||||
"version": 0
|
||||
},
|
||||
"model_mode": 0,
|
||||
"workbook_filename": ""
|
||||
},
|
||||
"page_layout_descr_file": "",
|
||||
"plot_directory": "./",
|
||||
"spice_current_sheet_as_root": false,
|
||||
"spice_external_command": "spice \"%I\"",
|
||||
"spice_model_current_sheet_as_root": true,
|
||||
"spice_save_all_currents": false,
|
||||
"spice_save_all_voltages": false,
|
||||
"subpart_first_id": 65,
|
||||
"subpart_id_separator": 0
|
||||
},
|
||||
"sheets": [
|
||||
[
|
||||
"85a07af0-16ab-4d5b-a3f1-1b717cf4da63",
|
||||
""
|
||||
]
|
||||
],
|
||||
"text_variables": {}
|
||||
}
|
124455
hardware/avclan-mockingboard-rounded.step
Normal file
124455
hardware/avclan-mockingboard-rounded.step
Normal file
File diff suppressed because it is too large
Load Diff
16785
hardware/avclan-mockingboard.kicad_pcb
Normal file
16785
hardware/avclan-mockingboard.kicad_pcb
Normal file
File diff suppressed because it is too large
Load Diff
82
hardware/avclan-mockingboard.kicad_prl
Normal file
82
hardware/avclan-mockingboard.kicad_prl
Normal file
@ -0,0 +1,82 @@
|
||||
{
|
||||
"board": {
|
||||
"active_layer": 37,
|
||||
"active_layer_preset": "",
|
||||
"auto_track_width": false,
|
||||
"hidden_netclasses": [],
|
||||
"hidden_nets": [],
|
||||
"high_contrast_mode": 0,
|
||||
"net_color_mode": 1,
|
||||
"opacity": {
|
||||
"images": 0.6,
|
||||
"pads": 1.0,
|
||||
"tracks": 1.0,
|
||||
"vias": 1.0,
|
||||
"zones": 0.6
|
||||
},
|
||||
"selection_filter": {
|
||||
"dimensions": true,
|
||||
"footprints": true,
|
||||
"graphics": true,
|
||||
"keepouts": true,
|
||||
"lockedItems": true,
|
||||
"otherItems": true,
|
||||
"pads": true,
|
||||
"text": true,
|
||||
"tracks": true,
|
||||
"vias": true,
|
||||
"zones": true
|
||||
},
|
||||
"visible_items": [
|
||||
0,
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5,
|
||||
8,
|
||||
9,
|
||||
10,
|
||||
11,
|
||||
12,
|
||||
13,
|
||||
15,
|
||||
16,
|
||||
18,
|
||||
19,
|
||||
20,
|
||||
21,
|
||||
22,
|
||||
23,
|
||||
24,
|
||||
25,
|
||||
26,
|
||||
27,
|
||||
28,
|
||||
29,
|
||||
30,
|
||||
32,
|
||||
33,
|
||||
34,
|
||||
35,
|
||||
36,
|
||||
39,
|
||||
40
|
||||
],
|
||||
"visible_layers": "002f3ff_80000001",
|
||||
"zone_display_mode": 0
|
||||
},
|
||||
"git": {
|
||||
"repo_password": "",
|
||||
"repo_type": "",
|
||||
"repo_username": "",
|
||||
"ssh_key": ""
|
||||
},
|
||||
"meta": {
|
||||
"filename": "avclan-mockingboard.kicad_prl",
|
||||
"version": 3
|
||||
},
|
||||
"project": {
|
||||
"files": []
|
||||
}
|
||||
}
|
615
hardware/avclan-mockingboard.kicad_pro
Normal file
615
hardware/avclan-mockingboard.kicad_pro
Normal file
@ -0,0 +1,615 @@
|
||||
{
|
||||
"board": {
|
||||
"3dviewports": [],
|
||||
"design_settings": {
|
||||
"defaults": {
|
||||
"apply_defaults_to_fp_fields": false,
|
||||
"apply_defaults_to_fp_shapes": false,
|
||||
"apply_defaults_to_fp_text": false,
|
||||
"board_outline_line_width": 0.1,
|
||||
"copper_line_width": 0.2,
|
||||
"copper_text_italic": false,
|
||||
"copper_text_size_h": 1.5,
|
||||
"copper_text_size_v": 1.5,
|
||||
"copper_text_thickness": 0.3,
|
||||
"copper_text_upright": false,
|
||||
"courtyard_line_width": 0.05,
|
||||
"dimension_precision": 4,
|
||||
"dimension_units": 3,
|
||||
"dimensions": {
|
||||
"arrow_length": 1270000,
|
||||
"extension_offset": 500000,
|
||||
"keep_text_aligned": true,
|
||||
"suppress_zeroes": false,
|
||||
"text_position": 0,
|
||||
"units_format": 1
|
||||
},
|
||||
"fab_line_width": 0.1,
|
||||
"fab_text_italic": false,
|
||||
"fab_text_size_h": 1.0,
|
||||
"fab_text_size_v": 1.0,
|
||||
"fab_text_thickness": 0.15,
|
||||
"fab_text_upright": false,
|
||||
"other_line_width": 0.15,
|
||||
"other_text_italic": false,
|
||||
"other_text_size_h": 1.0,
|
||||
"other_text_size_v": 1.0,
|
||||
"other_text_thickness": 0.15,
|
||||
"other_text_upright": false,
|
||||
"pads": {
|
||||
"drill": 0.0,
|
||||
"height": 1.0,
|
||||
"width": 1.0
|
||||
},
|
||||
"silk_line_width": 0.15,
|
||||
"silk_text_italic": false,
|
||||
"silk_text_size_h": 1.0,
|
||||
"silk_text_size_v": 1.0,
|
||||
"silk_text_thickness": 0.15,
|
||||
"silk_text_upright": false,
|
||||
"zones": {
|
||||
"min_clearance": 0.25
|
||||
}
|
||||
},
|
||||
"diff_pair_dimensions": [
|
||||
{
|
||||
"gap": 0.0,
|
||||
"via_gap": 0.0,
|
||||
"width": 0.0
|
||||
}
|
||||
],
|
||||
"drc_exclusions": [
|
||||
"courtyards_overlap|142951435|95185001|740497d3-ece2-41b1-a2fd-b8f316ceb15a|a16457de-07cc-4841-9375-dde6a241c692"
|
||||
],
|
||||
"meta": {
|
||||
"version": 2
|
||||
},
|
||||
"rule_severities": {
|
||||
"annular_width": "error",
|
||||
"clearance": "error",
|
||||
"connection_width": "warning",
|
||||
"copper_edge_clearance": "error",
|
||||
"copper_sliver": "warning",
|
||||
"courtyards_overlap": "error",
|
||||
"diff_pair_gap_out_of_range": "error",
|
||||
"diff_pair_uncoupled_length_too_long": "error",
|
||||
"drill_out_of_range": "error",
|
||||
"duplicate_footprints": "warning",
|
||||
"extra_footprint": "warning",
|
||||
"footprint": "error",
|
||||
"footprint_symbol_mismatch": "warning",
|
||||
"footprint_type_mismatch": "ignore",
|
||||
"hole_clearance": "error",
|
||||
"hole_near_hole": "error",
|
||||
"holes_co_located": "warning",
|
||||
"invalid_outline": "error",
|
||||
"isolated_copper": "warning",
|
||||
"item_on_disabled_layer": "error",
|
||||
"items_not_allowed": "error",
|
||||
"length_out_of_range": "error",
|
||||
"lib_footprint_issues": "warning",
|
||||
"lib_footprint_mismatch": "ignore",
|
||||
"malformed_courtyard": "error",
|
||||
"microvia_drill_out_of_range": "error",
|
||||
"missing_courtyard": "ignore",
|
||||
"missing_footprint": "warning",
|
||||
"net_conflict": "warning",
|
||||
"npth_inside_courtyard": "ignore",
|
||||
"padstack": "warning",
|
||||
"pth_inside_courtyard": "ignore",
|
||||
"shorting_items": "error",
|
||||
"silk_edge_clearance": "warning",
|
||||
"silk_over_copper": "warning",
|
||||
"silk_overlap": "warning",
|
||||
"skew_out_of_range": "error",
|
||||
"solder_mask_bridge": "error",
|
||||
"starved_thermal": "error",
|
||||
"text_height": "warning",
|
||||
"text_thickness": "warning",
|
||||
"through_hole_pad_without_hole": "error",
|
||||
"too_many_vias": "error",
|
||||
"track_dangling": "warning",
|
||||
"track_width": "error",
|
||||
"tracks_crossing": "error",
|
||||
"unconnected_items": "error",
|
||||
"unresolved_variable": "error",
|
||||
"via_dangling": "warning",
|
||||
"zones_intersect": "error"
|
||||
},
|
||||
"rules": {
|
||||
"max_error": 0.005,
|
||||
"min_clearance": 0.09,
|
||||
"min_connection": 0.0,
|
||||
"min_copper_edge_clearance": 0.3,
|
||||
"min_hole_clearance": 0.254,
|
||||
"min_hole_to_hole": 0.5,
|
||||
"min_microvia_diameter": 0.2,
|
||||
"min_microvia_drill": 0.1,
|
||||
"min_resolved_spokes": 2,
|
||||
"min_silk_clearance": 0.05,
|
||||
"min_text_height": 1.0,
|
||||
"min_text_thickness": 0.153,
|
||||
"min_through_hole_diameter": 0.3,
|
||||
"min_track_width": 0.09,
|
||||
"min_via_annular_width": 0.15,
|
||||
"min_via_diameter": 0.5,
|
||||
"solder_mask_clearance": 0.0,
|
||||
"solder_mask_min_width": 0.0,
|
||||
"solder_mask_to_copper_clearance": 0.0,
|
||||
"use_height_for_length_calcs": true
|
||||
},
|
||||
"teardrop_options": [
|
||||
{
|
||||
"td_onpadsmd": true,
|
||||
"td_onroundshapesonly": false,
|
||||
"td_ontrackend": false,
|
||||
"td_onviapad": true
|
||||
}
|
||||
],
|
||||
"teardrop_parameters": [
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 5,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.75,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_round_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 5,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.75,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_rect_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 5,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.75,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_track_end",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
}
|
||||
],
|
||||
"track_widths": [
|
||||
0.0,
|
||||
0.1,
|
||||
0.2,
|
||||
0.3,
|
||||
0.5,
|
||||
0.75,
|
||||
1.0
|
||||
],
|
||||
"tuning_pattern_settings": {
|
||||
"diff_pair_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 1.0
|
||||
},
|
||||
"diff_pair_skew_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
},
|
||||
"single_track_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
}
|
||||
},
|
||||
"via_dimensions": [
|
||||
{
|
||||
"diameter": 0.0,
|
||||
"drill": 0.0
|
||||
}
|
||||
],
|
||||
"zones_allow_external_fillets": false
|
||||
},
|
||||
"ipc2581": {
|
||||
"dist": "",
|
||||
"distpn": "",
|
||||
"internal_id": "",
|
||||
"mfg": "",
|
||||
"mpn": ""
|
||||
},
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
"boards": [],
|
||||
"cvpcb": {
|
||||
"equivalence_files": []
|
||||
},
|
||||
"erc": {
|
||||
"erc_exclusions": [],
|
||||
"meta": {
|
||||
"version": 0
|
||||
},
|
||||
"pin_map": [
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
2,
|
||||
1,
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
2,
|
||||
1,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
0,
|
||||
2,
|
||||
1,
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
1,
|
||||
0,
|
||||
2,
|
||||
0,
|
||||
0,
|
||||
2
|
||||
],
|
||||
[
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2,
|
||||
2
|
||||
]
|
||||
],
|
||||
"rule_severities": {
|
||||
"bus_definition_conflict": "error",
|
||||
"bus_entry_needed": "error",
|
||||
"bus_to_bus_conflict": "error",
|
||||
"bus_to_net_conflict": "error",
|
||||
"conflicting_netclasses": "error",
|
||||
"different_unit_footprint": "error",
|
||||
"different_unit_net": "error",
|
||||
"duplicate_reference": "error",
|
||||
"duplicate_sheet_names": "error",
|
||||
"endpoint_off_grid": "warning",
|
||||
"extra_units": "error",
|
||||
"global_label_dangling": "warning",
|
||||
"hier_label_mismatch": "error",
|
||||
"label_dangling": "error",
|
||||
"lib_symbol_issues": "warning",
|
||||
"missing_bidi_pin": "warning",
|
||||
"missing_input_pin": "warning",
|
||||
"missing_power_pin": "error",
|
||||
"missing_unit": "warning",
|
||||
"multiple_net_names": "warning",
|
||||
"net_not_bus_member": "warning",
|
||||
"no_connect_connected": "error",
|
||||
"no_connect_dangling": "warning",
|
||||
"pin_not_connected": "warning",
|
||||
"pin_not_driven": "error",
|
||||
"pin_to_pin": "error",
|
||||
"power_pin_not_driven": "error",
|
||||
"similar_labels": "warning",
|
||||
"simulation_model_issue": "ignore",
|
||||
"unannotated": "error",
|
||||
"unit_value_mismatch": "error",
|
||||
"unresolved_variable": "error",
|
||||
"wire_dangling": "error"
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"pinned_footprint_libs": [],
|
||||
"pinned_symbol_libs": []
|
||||
},
|
||||
"meta": {
|
||||
"filename": "avclan-mockingboard.kicad_pro",
|
||||
"version": 1
|
||||
},
|
||||
"net_settings": {
|
||||
"classes": [
|
||||
{
|
||||
"bus_width": 12,
|
||||
"clearance": 0.2,
|
||||
"diff_pair_gap": 0.25,
|
||||
"diff_pair_via_gap": 0.25,
|
||||
"diff_pair_width": 0.2,
|
||||
"line_style": 0,
|
||||
"microvia_diameter": 0.3,
|
||||
"microvia_drill": 0.1,
|
||||
"name": "Default",
|
||||
"pcb_color": "rgba(0, 0, 0, 0.000)",
|
||||
"schematic_color": "rgba(0, 0, 0, 0.000)",
|
||||
"track_width": 0.25,
|
||||
"via_diameter": 0.8,
|
||||
"via_drill": 0.4,
|
||||
"wire_width": 6
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"version": 3
|
||||
},
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_patterns": []
|
||||
},
|
||||
"pcbnew": {
|
||||
"last_paths": {
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "low-power-ATtiny-board.net",
|
||||
"plot": "",
|
||||
"pos_files": "",
|
||||
"specctra_dsn": "",
|
||||
"step": "low-power-ATtiny-board-rounded.step",
|
||||
"svg": "",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
},
|
||||
"schematic": {
|
||||
"annotate_start_num": 0,
|
||||
"bom_export_filename": "",
|
||||
"bom_fmt_presets": [],
|
||||
"bom_fmt_settings": {
|
||||
"field_delimiter": ",",
|
||||
"keep_line_breaks": false,
|
||||
"keep_tabs": false,
|
||||
"name": "CSV",
|
||||
"ref_delimiter": ",",
|
||||
"ref_range_delimiter": "",
|
||||
"string_delimiter": "\""
|
||||
},
|
||||
"bom_presets": [],
|
||||
"bom_settings": {
|
||||
"exclude_dnp": false,
|
||||
"fields_ordered": [
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Reference",
|
||||
"name": "Reference",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": true,
|
||||
"label": "Value",
|
||||
"name": "Value",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Datasheet",
|
||||
"name": "Datasheet",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Footprint",
|
||||
"name": "Footprint",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Qty",
|
||||
"name": "${QUANTITY}",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": true,
|
||||
"label": "DNP",
|
||||
"name": "${DNP}",
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"filter_string": "",
|
||||
"group_symbols": true,
|
||||
"name": "Grouped By Value",
|
||||
"sort_asc": true,
|
||||
"sort_field": "Reference"
|
||||
},
|
||||
"connection_grid_size": 50.0,
|
||||
"drawing": {
|
||||
"dashed_lines_dash_length_ratio": 12.0,
|
||||
"dashed_lines_gap_length_ratio": 3.0,
|
||||
"default_line_thickness": 6.0,
|
||||
"default_text_size": 44.0,
|
||||
"field_names": [],
|
||||
"intersheets_ref_own_page": false,
|
||||
"intersheets_ref_prefix": "",
|
||||
"intersheets_ref_short": false,
|
||||
"intersheets_ref_show": false,
|
||||
"intersheets_ref_suffix": "",
|
||||
"junction_size_choice": 3,
|
||||
"label_size_ratio": 0.375,
|
||||
"operating_point_overlay_i_precision": 3,
|
||||
"operating_point_overlay_i_range": "~A",
|
||||
"operating_point_overlay_v_precision": 3,
|
||||
"operating_point_overlay_v_range": "~V",
|
||||
"overbar_offset_ratio": 1.23,
|
||||
"pin_symbol_size": 25.0,
|
||||
"text_offset_ratio": 0.15
|
||||
},
|
||||
"legacy_lib_dir": "",
|
||||
"legacy_lib_list": [],
|
||||
"meta": {
|
||||
"version": 1
|
||||
},
|
||||
"net_format_name": "KiCad",
|
||||
"ngspice": {
|
||||
"fix_include_paths": true,
|
||||
"meta": {
|
||||
"version": 0
|
||||
},
|
||||
"model_mode": 0,
|
||||
"workbook_filename": ""
|
||||
},
|
||||
"page_layout_descr_file": "",
|
||||
"plot_directory": "./",
|
||||
"spice_current_sheet_as_root": false,
|
||||
"spice_external_command": "spice \"%I\"",
|
||||
"spice_model_current_sheet_as_root": true,
|
||||
"spice_save_all_currents": false,
|
||||
"spice_save_all_dissipations": false,
|
||||
"spice_save_all_voltages": false,
|
||||
"subpart_first_id": 65,
|
||||
"subpart_id_separator": 0
|
||||
},
|
||||
"sheets": [
|
||||
[
|
||||
"85a07af0-16ab-4d5b-a3f1-1b717cf4da63",
|
||||
""
|
||||
]
|
||||
],
|
||||
"text_variables": {}
|
||||
}
|
4990
hardware/avclan-mockingboard.kicad_sch
Normal file
4990
hardware/avclan-mockingboard.kicad_sch
Normal file
File diff suppressed because it is too large
Load Diff
BIN
hardware/avclan-mockingboard.pdf
Normal file
BIN
hardware/avclan-mockingboard.pdf
Normal file
Binary file not shown.
2
hardware/avclan-mockingboard.round-tracks-config
Normal file
2
hardware/avclan-mockingboard.round-tracks-config
Normal file
@ -0,0 +1,2 @@
|
||||
Default True 2.0 3
|
||||
True True False
|
4
hardware/fp-lib-table
Normal file
4
hardware/fp-lib-table
Normal file
@ -0,0 +1,4 @@
|
||||
(fp_lib_table
|
||||
(version 7)
|
||||
(lib (name "cui_audio")(type "KiCad")(uri "${KIPRJMOD}")(options "")(descr ""))
|
||||
)
|
4
hardware/harness/harness.bom.tsv
Normal file
4
hardware/harness/harness.bom.tsv
Normal file
@ -0,0 +1,4 @@
|
||||
Id Description Qty Unit Designators
|
||||
1 Cable, 9 x 24 AWG 1.5 ft W1
|
||||
2 Connector, CN701, female, 11 pins 1 Y1
|
||||
3 Connector, D-Sub, female, 9 pins 1 X1
|
|
403
hardware/harness/harness.html
Normal file
403
hardware/harness/harness.html
Normal file
@ -0,0 +1,403 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en"><head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="generator" content="WireViz 0.4.1 - https://github.com/wireviz/WireViz">
|
||||
<title>harness</title>
|
||||
<style>
|
||||
|
||||
#bom table, th, td {
|
||||
border: 1px solid black;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
#bom th, td {
|
||||
padding: 4px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.bom_col_qty {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head><body style="font-family:arial;background-color:#ffffff">
|
||||
<h1>harness</h1>
|
||||
<h2>Diagram</h2>
|
||||
|
||||
<div id="description">
|
||||
<!-- %description% -->
|
||||
</div>
|
||||
|
||||
<div id="diagram">
|
||||
<!-- XML and DOCTYPE declarations from SVG file removed -->
|
||||
<!-- Generated by graphviz version 2.43.0 (0)
|
||||
-->
|
||||
<!-- Title: %3 Pages: 1 -->
|
||||
<svg width="935pt" height="340pt"
|
||||
viewBox="0.00 0.00 935.00 340.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 336)">
|
||||
<title>%3</title>
|
||||
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-336 931,-336 931,4 -4,4"/>
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="136,-296.5 0,-296.5 0,-43.5 136,-43.5 136,-296.5"/>
|
||||
<polygon fill="none" stroke="black" points="0,-273 0,-296 136,-296 136,-273 0,-273"/>
|
||||
<text text-anchor="start" x="59.5" y="-280.8" font-family="arial" font-size="14.00">X1</text>
|
||||
<polygon fill="none" stroke="black" points="0,-250 0,-273 47,-273 47,-250 0,-250"/>
|
||||
<text text-anchor="start" x="4" y="-257.8" font-family="arial" font-size="14.00">D-Sub</text>
|
||||
<polygon fill="none" stroke="black" points="47,-250 47,-273 97,-273 97,-250 47,-250"/>
|
||||
<text text-anchor="start" x="51" y="-257.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polygon fill="none" stroke="black" points="97,-250 97,-273 136,-273 136,-250 97,-250"/>
|
||||
<text text-anchor="start" x="101" y="-257.8" font-family="arial" font-size="14.00">9-pin</text>
|
||||
<polygon fill="none" stroke="black" points="0,-227 0,-250 84,-250 84,-227 0,-227"/>
|
||||
<text text-anchor="start" x="25.5" y="-234.8" font-family="arial" font-size="14.00">+12V</text>
|
||||
<polygon fill="none" stroke="black" points="84,-227 84,-250 136,-250 136,-227 84,-227"/>
|
||||
<text text-anchor="start" x="106" y="-234.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="0,-204 0,-227 84,-227 84,-204 0,-204"/>
|
||||
<text text-anchor="start" x="29" y="-211.8" font-family="arial" font-size="14.00">TX+</text>
|
||||
<polygon fill="none" stroke="black" points="84,-204 84,-227 136,-227 136,-204 84,-204"/>
|
||||
<text text-anchor="start" x="106" y="-211.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="0,-181 0,-204 84,-204 84,-181 0,-181"/>
|
||||
<text text-anchor="start" x="26.5" y="-188.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="84,-181 84,-204 136,-204 136,-181 84,-181"/>
|
||||
<text text-anchor="start" x="106" y="-188.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="0,-158 0,-181 84,-181 84,-158 0,-158"/>
|
||||
<text text-anchor="start" x="34.5" y="-165.8" font-family="arial" font-size="14.00">R-</text>
|
||||
<polygon fill="none" stroke="black" points="84,-158 84,-181 136,-181 136,-158 84,-158"/>
|
||||
<text text-anchor="start" x="106" y="-165.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="0,-135 0,-158 84,-158 84,-135 0,-135"/>
|
||||
<text text-anchor="start" x="32.5" y="-142.8" font-family="arial" font-size="14.00">R+</text>
|
||||
<polygon fill="none" stroke="black" points="84,-135 84,-158 136,-158 136,-135 84,-135"/>
|
||||
<text text-anchor="start" x="106" y="-142.8" font-family="arial" font-size="14.00">5</text>
|
||||
<polygon fill="none" stroke="black" points="0,-112 0,-135 84,-135 84,-112 0,-112"/>
|
||||
<text text-anchor="start" x="22" y="-119.8" font-family="arial" font-size="14.00">MUTE</text>
|
||||
<polygon fill="none" stroke="black" points="84,-112 84,-135 136,-135 136,-112 84,-112"/>
|
||||
<text text-anchor="start" x="106" y="-119.8" font-family="arial" font-size="14.00">6</text>
|
||||
<polygon fill="none" stroke="black" points="0,-89 0,-112 84,-112 84,-89 0,-89"/>
|
||||
<text text-anchor="start" x="31" y="-96.8" font-family="arial" font-size="14.00">TX-</text>
|
||||
<polygon fill="none" stroke="black" points="84,-89 84,-112 136,-112 136,-89 84,-89"/>
|
||||
<text text-anchor="start" x="106" y="-96.8" font-family="arial" font-size="14.00">7</text>
|
||||
<polygon fill="none" stroke="black" points="0,-66 0,-89 84,-89 84,-66 0,-66"/>
|
||||
<text text-anchor="start" x="35.5" y="-73.8" font-family="arial" font-size="14.00">L-</text>
|
||||
<polygon fill="none" stroke="black" points="84,-66 84,-89 136,-89 136,-66 84,-66"/>
|
||||
<text text-anchor="start" x="106" y="-73.8" font-family="arial" font-size="14.00">8</text>
|
||||
<polygon fill="none" stroke="black" points="0,-43 0,-66 84,-66 84,-43 0,-43"/>
|
||||
<text text-anchor="start" x="34" y="-50.8" font-family="arial" font-size="14.00">L+</text>
|
||||
<polygon fill="none" stroke="black" points="84,-43 84,-66 136,-66 136,-43 84,-43"/>
|
||||
<text text-anchor="start" x="106" y="-50.8" font-family="arial" font-size="14.00">9</text>
|
||||
</g>
|
||||
<!-- W1 -->
|
||||
<g id="node3" class="node">
|
||||
<title>W1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="637,-332 280,-332 280,0 637,0 637,-332"/>
|
||||
<polygon fill="none" stroke="black" points="280.5,-309 280.5,-332 637.5,-332 637.5,-309 280.5,-309"/>
|
||||
<text text-anchor="start" x="448" y="-316.8" font-family="arial" font-size="14.00">W1</text>
|
||||
<polygon fill="none" stroke="black" points="280.5,-286 280.5,-309 382.5,-309 382.5,-286 280.5,-286"/>
|
||||
<text text-anchor="start" x="324" y="-293.8" font-family="arial" font-size="14.00">9x</text>
|
||||
<polygon fill="none" stroke="black" points="382.5,-286 382.5,-309 520.5,-309 520.5,-286 382.5,-286"/>
|
||||
<text text-anchor="start" x="425.5" y="-293.8" font-family="arial" font-size="14.00">24 AWG</text>
|
||||
<polygon fill="none" stroke="black" points="520.5,-286 520.5,-309 637.5,-309 637.5,-286 520.5,-286"/>
|
||||
<text text-anchor="start" x="563.5" y="-293.8" font-family="arial" font-size="14.00">1.5 ft</text>
|
||||
<text text-anchor="start" x="338.5" y="-272.8" font-family="arial" font-size="14.00"> </text>
|
||||
<text text-anchor="start" x="308.5" y="-253.8" font-family="arial" font-size="14.00">X1:1:+12V</text>
|
||||
<text text-anchor="start" x="427" y="-253.8" font-family="arial" font-size="14.00">     1:RD    </text>
|
||||
<text text-anchor="start" x="546" y="-253.8" font-family="arial" font-size="14.00">Y1:5:+12V</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-246 280.5,-248 637.5,-248 637.5,-246 280.5,-246"/>
|
||||
<polygon fill="#ff0000" stroke="transparent" points="280.5,-244 280.5,-246 637.5,-246 637.5,-244 280.5,-244"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-242 280.5,-244 637.5,-244 637.5,-242 280.5,-242"/>
|
||||
<text text-anchor="start" x="311.5" y="-228.8" font-family="arial" font-size="14.00">X1:2:TX+</text>
|
||||
<text text-anchor="start" x="425" y="-228.8" font-family="arial" font-size="14.00">     2:WH    </text>
|
||||
<text text-anchor="start" x="545.5" y="-228.8" font-family="arial" font-size="14.00">Y1:10:TX+</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-221 280.5,-223 637.5,-223 637.5,-221 280.5,-221"/>
|
||||
<polygon fill="#ffffff" stroke="transparent" points="280.5,-219 280.5,-221 637.5,-221 637.5,-219 280.5,-219"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-217 280.5,-219 637.5,-219 637.5,-217 280.5,-217"/>
|
||||
<text text-anchor="start" x="309" y="-203.8" font-family="arial" font-size="14.00">X1:3:GND</text>
|
||||
<text text-anchor="start" x="427.5" y="-203.8" font-family="arial" font-size="14.00">     3:YE    </text>
|
||||
<text text-anchor="start" x="546.5" y="-203.8" font-family="arial" font-size="14.00">Y1:8:GND</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-196 280.5,-198 637.5,-198 637.5,-196 280.5,-196"/>
|
||||
<polygon fill="#ffff00" stroke="transparent" points="280.5,-194 280.5,-196 637.5,-196 637.5,-194 280.5,-194"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-192 280.5,-194 637.5,-194 637.5,-192 280.5,-192"/>
|
||||
<text text-anchor="start" x="317.5" y="-178.8" font-family="arial" font-size="14.00">X1:4:R-</text>
|
||||
<text text-anchor="start" x="426" y="-178.8" font-family="arial" font-size="14.00">     4:GN    </text>
|
||||
<text text-anchor="start" x="555" y="-178.8" font-family="arial" font-size="14.00">Y1:6:R-</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-171 280.5,-173 637.5,-173 637.5,-171 280.5,-171"/>
|
||||
<polygon fill="#00ff00" stroke="transparent" points="280.5,-169 280.5,-171 637.5,-171 637.5,-169 280.5,-169"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-167 280.5,-169 637.5,-169 637.5,-167 280.5,-167"/>
|
||||
<text text-anchor="start" x="315.5" y="-153.8" font-family="arial" font-size="14.00">X1:5:R+</text>
|
||||
<text text-anchor="start" x="425.5" y="-153.8" font-family="arial" font-size="14.00">     5:OG    </text>
|
||||
<text text-anchor="start" x="553" y="-153.8" font-family="arial" font-size="14.00">Y1:1:R+</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-146 280.5,-148 637.5,-148 637.5,-146 280.5,-146"/>
|
||||
<polygon fill="#ff8000" stroke="transparent" points="280.5,-144 280.5,-146 637.5,-146 637.5,-144 280.5,-144"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-142 280.5,-144 637.5,-144 637.5,-142 280.5,-142"/>
|
||||
<text text-anchor="start" x="305" y="-128.8" font-family="arial" font-size="14.00">X1:6:MUTE</text>
|
||||
<text text-anchor="start" x="427.5" y="-128.8" font-family="arial" font-size="14.00">     6:BU    </text>
|
||||
<text text-anchor="start" x="542.5" y="-128.8" font-family="arial" font-size="14.00">Y1:4:MUTE</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-121 280.5,-123 637.5,-123 637.5,-121 280.5,-121"/>
|
||||
<polygon fill="#0066ff" stroke="transparent" points="280.5,-119 280.5,-121 637.5,-121 637.5,-119 280.5,-119"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-117 280.5,-119 637.5,-119 637.5,-117 280.5,-117"/>
|
||||
<text text-anchor="start" x="313.5" y="-103.8" font-family="arial" font-size="14.00">X1:7:TX-</text>
|
||||
<text text-anchor="start" x="428" y="-103.8" font-family="arial" font-size="14.00">     7:VT    </text>
|
||||
<text text-anchor="start" x="551" y="-103.8" font-family="arial" font-size="14.00">Y1:9:TX-</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-96 280.5,-98 637.5,-98 637.5,-96 280.5,-96"/>
|
||||
<polygon fill="#8000ff" stroke="transparent" points="280.5,-94 280.5,-96 637.5,-96 637.5,-94 280.5,-94"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-92 280.5,-94 637.5,-94 637.5,-92 280.5,-92"/>
|
||||
<text text-anchor="start" x="318.5" y="-78.8" font-family="arial" font-size="14.00">X1:8:L-</text>
|
||||
<text text-anchor="start" x="427.5" y="-78.8" font-family="arial" font-size="14.00">     8:BN    </text>
|
||||
<text text-anchor="start" x="556" y="-78.8" font-family="arial" font-size="14.00">Y1:7:L-</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-71 280.5,-73 637.5,-73 637.5,-71 280.5,-71"/>
|
||||
<polygon fill="#895956" stroke="transparent" points="280.5,-69 280.5,-71 637.5,-71 637.5,-69 280.5,-69"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-67 280.5,-69 637.5,-69 637.5,-67 280.5,-67"/>
|
||||
<text text-anchor="start" x="316.5" y="-53.8" font-family="arial" font-size="14.00">X1:9:L+</text>
|
||||
<text text-anchor="start" x="427.5" y="-53.8" font-family="arial" font-size="14.00">     9:BK    </text>
|
||||
<text text-anchor="start" x="554" y="-53.8" font-family="arial" font-size="14.00">Y1:2:L+</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-46 280.5,-48 637.5,-48 637.5,-46 280.5,-46"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-44 280.5,-46 637.5,-46 637.5,-44 280.5,-44"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-42 280.5,-44 637.5,-44 637.5,-42 280.5,-42"/>
|
||||
<text text-anchor="start" x="338.5" y="-28.8" font-family="arial" font-size="14.00"> </text>
|
||||
<polygon fill="none" stroke="black" points="280.5,0 280.5,-23 637.5,-23 637.5,0 280.5,0"/>
|
||||
<text text-anchor="start" x="284.5" y="-7.8" font-family="arial" font-size="14.00">(colors of DSub cable; colors of CN701 harness may vary)</text>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-237C200.76,-237.13 216.65,-243.13 280,-243"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M136,-239C200.06,-239 215.94,-245 280,-245"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-241C199.35,-240.87 215.24,-246.87 280,-247"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-214C200.51,-214.06 216.46,-218.06 280,-218"/>
|
||||
<path fill="none" stroke="#ffffff" stroke-width="2" d="M136,-216C200.02,-216 215.98,-220 280,-220"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-218C199.54,-217.94 215.49,-221.94 280,-222"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-191C200.25,-191.02 216.24,-193.02 280,-193"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M136,-193C200.01,-193 215.99,-195 280,-195"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-195C199.76,-194.98 215.75,-196.98 280,-197"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-167C200.13,-167 216.12,-168 280,-168"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M136,-169C200,-169 216,-170 280,-170"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-171C199.88,-171 215.87,-172 280,-172"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-144C199.88,-144 215.87,-143 280,-143"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M136,-146C200,-146 216,-145 280,-145"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-148C200.13,-148 216.12,-147 280,-147"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-121C199.64,-121.03 215.62,-118.03 280,-118"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M136,-123C200.01,-123 215.99,-120 280,-120"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-125C200.38,-124.97 216.36,-121.97 280,-122"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-98C199.44,-98.09 215.36,-93.09 280,-93"/>
|
||||
<path fill="none" stroke="#8000ff" stroke-width="2" d="M136,-100C200.04,-100 215.96,-95 280,-95"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-102C200.64,-101.91 216.56,-96.91 280,-97"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-75C199.27,-75.17 215.12,-68.17 280,-68"/>
|
||||
<path fill="none" stroke="#895956" stroke-width="2" d="M136,-77C200.08,-77 215.92,-70 280,-70"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-79C200.88,-78.83 216.73,-71.83 280,-72"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-52C199.13,-52.26 214.88,-43.26 280,-43"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-54C200.12,-54 215.88,-45 280,-45"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-56C201.12,-55.74 216.87,-46.74 280,-47"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge19" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-191C200.25,-191.02 216.24,-193.02 280,-193"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M136,-193C200.01,-193 215.99,-195 280,-195"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-195C199.76,-194.98 215.75,-196.98 280,-197"/>
|
||||
</g>
|
||||
<!-- Y1 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Y1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="927,-317.5 781,-317.5 781,-18.5 927,-18.5 927,-317.5"/>
|
||||
<polygon fill="none" stroke="black" points="781,-294 781,-317 927,-317 927,-294 781,-294"/>
|
||||
<text text-anchor="start" x="845.5" y="-301.8" font-family="arial" font-size="14.00">Y1</text>
|
||||
<polygon fill="none" stroke="black" points="781,-271 781,-294 832,-294 832,-271 781,-271"/>
|
||||
<text text-anchor="start" x="785" y="-278.8" font-family="arial" font-size="14.00">CN701</text>
|
||||
<polygon fill="none" stroke="black" points="832,-271 832,-294 882,-294 882,-271 832,-271"/>
|
||||
<text text-anchor="start" x="836" y="-278.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polygon fill="none" stroke="black" points="882,-271 882,-294 927,-294 927,-271 882,-271"/>
|
||||
<text text-anchor="start" x="886" y="-278.8" font-family="arial" font-size="14.00">11-pin</text>
|
||||
<polygon fill="none" stroke="black" points="781,-248 781,-271 842,-271 842,-248 781,-248"/>
|
||||
<text text-anchor="start" x="807.5" y="-255.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="842,-248 842,-271 927,-271 927,-248 842,-248"/>
|
||||
<text text-anchor="start" x="875" y="-255.8" font-family="arial" font-size="14.00">R+</text>
|
||||
<polygon fill="none" stroke="black" points="781,-225 781,-248 842,-248 842,-225 781,-225"/>
|
||||
<text text-anchor="start" x="807.5" y="-232.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="842,-225 842,-248 927,-248 927,-225 842,-225"/>
|
||||
<text text-anchor="start" x="876.5" y="-232.8" font-family="arial" font-size="14.00">L+</text>
|
||||
<polygon fill="none" stroke="black" points="781,-202 781,-225 842,-225 842,-202 781,-202"/>
|
||||
<text text-anchor="start" x="807.5" y="-209.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="842,-202 842,-225 927,-225 927,-202 842,-202"/>
|
||||
<text text-anchor="start" x="864.5" y="-209.8" font-family="arial" font-size="14.00">SGND</text>
|
||||
<polygon fill="none" stroke="black" points="781,-179 781,-202 842,-202 842,-179 781,-179"/>
|
||||
<text text-anchor="start" x="807.5" y="-186.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="842,-179 842,-202 927,-202 927,-179 842,-179"/>
|
||||
<text text-anchor="start" x="864.5" y="-186.8" font-family="arial" font-size="14.00">MUTE</text>
|
||||
<polygon fill="none" stroke="black" points="781,-156 781,-179 842,-179 842,-156 781,-156"/>
|
||||
<text text-anchor="start" x="807.5" y="-163.8" font-family="arial" font-size="14.00">5</text>
|
||||
<polygon fill="none" stroke="black" points="842,-156 842,-179 927,-179 927,-156 842,-156"/>
|
||||
<text text-anchor="start" x="868" y="-163.8" font-family="arial" font-size="14.00">+12V</text>
|
||||
<polygon fill="none" stroke="black" points="781,-133 781,-156 842,-156 842,-133 781,-133"/>
|
||||
<text text-anchor="start" x="807.5" y="-140.8" font-family="arial" font-size="14.00">6</text>
|
||||
<polygon fill="none" stroke="black" points="842,-133 842,-156 927,-156 927,-133 842,-133"/>
|
||||
<text text-anchor="start" x="877" y="-140.8" font-family="arial" font-size="14.00">R-</text>
|
||||
<polygon fill="none" stroke="black" points="781,-110 781,-133 842,-133 842,-110 781,-110"/>
|
||||
<text text-anchor="start" x="807.5" y="-117.8" font-family="arial" font-size="14.00">7</text>
|
||||
<polygon fill="none" stroke="black" points="842,-110 842,-133 927,-133 927,-110 842,-110"/>
|
||||
<text text-anchor="start" x="878" y="-117.8" font-family="arial" font-size="14.00">L-</text>
|
||||
<polygon fill="none" stroke="black" points="781,-87 781,-110 842,-110 842,-87 781,-87"/>
|
||||
<text text-anchor="start" x="807.5" y="-94.8" font-family="arial" font-size="14.00">8</text>
|
||||
<polygon fill="none" stroke="black" points="842,-87 842,-110 927,-110 927,-87 842,-87"/>
|
||||
<text text-anchor="start" x="869" y="-94.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="781,-64 781,-87 842,-87 842,-64 781,-64"/>
|
||||
<text text-anchor="start" x="807.5" y="-71.8" font-family="arial" font-size="14.00">9</text>
|
||||
<polygon fill="none" stroke="black" points="842,-64 842,-87 927,-87 927,-64 842,-64"/>
|
||||
<text text-anchor="start" x="873.5" y="-71.8" font-family="arial" font-size="14.00">TX-</text>
|
||||
<polygon fill="none" stroke="black" points="781,-41 781,-64 842,-64 842,-41 781,-41"/>
|
||||
<text text-anchor="start" x="803.5" y="-48.8" font-family="arial" font-size="14.00">10</text>
|
||||
<polygon fill="none" stroke="black" points="842,-41 842,-64 927,-64 927,-41 842,-41"/>
|
||||
<text text-anchor="start" x="871.5" y="-48.8" font-family="arial" font-size="14.00">TX+</text>
|
||||
<polygon fill="none" stroke="black" points="781,-18 781,-41 842,-41 842,-18 781,-18"/>
|
||||
<text text-anchor="start" x="803.5" y="-25.8" font-family="arial" font-size="14.00">12</text>
|
||||
<polygon fill="none" stroke="black" points="842,-18 842,-41 927,-41 927,-18 842,-18"/>
|
||||
<text text-anchor="start" x="870" y="-25.8" font-family="arial" font-size="14.00">ACC</text>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-243C707.79,-245.04 706.21,-167.04 781,-165"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M637,-245C709.79,-245 708.21,-167 781,-167"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-247C711.79,-244.96 710.21,-166.96 781,-169"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-218C733.43,-220.6 680.75,-52.6 781,-50"/>
|
||||
<path fill="none" stroke="#ffffff" stroke-width="2" d="M637,-220C735.34,-220 682.66,-52 781,-52"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-222C737.25,-219.4 684.57,-51.4 781,-54"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-193C712.18,-195.21 701.85,-98.21 781,-96"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M637,-195C714.17,-195 703.83,-98 781,-98"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-197C716.15,-194.79 705.82,-97.79 781,-100"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-168C700.27,-169.06 714.2,-143.06 781,-142"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M637,-170C702.03,-170 715.97,-144 781,-144"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-172C703.8,-170.94 717.73,-144.94 781,-146"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-143C720.88,-145.34 701.07,-260.34 781,-258"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M637,-145C718.9,-145 699.1,-260 781,-260"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-147C716.93,-144.66 697.12,-259.66 781,-262"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-118C710.36,-119.96 711.64,-190.96 781,-189"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M637,-120C708.36,-120 709.64,-191 781,-191"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-122C706.36,-120.04 707.64,-191.04 781,-193"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-93C700.01,-93.81 714.78,-73.81 781,-73"/>
|
||||
<path fill="none" stroke="#8000ff" stroke-width="2" d="M637,-95C701.61,-95 716.39,-75 781,-75"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-97C703.22,-96.19 717.99,-76.19 781,-77"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-68C706.87,-69.68 715.08,-120.68 781,-119"/>
|
||||
<path fill="none" stroke="#895956" stroke-width="2" d="M637,-70C704.9,-70 713.1,-121 781,-121"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-72C702.92,-70.32 711.13,-121.32 781,-123"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge18" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-43C745.55,-45.68 676.21,-237.68 781,-235"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-45C743.67,-45 674.33,-237 781,-237"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-47C741.79,-44.32 672.45,-236.32 781,-239"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge20" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-193C703.13,-193.77 718.02,-212.77 781,-212"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M637,-195C701.55,-195 716.45,-214 781,-214"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-197C699.98,-196.23 714.87,-215.23 781,-216"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="notes">
|
||||
<!-- %notes% -->
|
||||
</div>
|
||||
|
||||
<h2>Bill of Materials</h2>
|
||||
|
||||
<div id="bom">
|
||||
<table class="bom">
|
||||
<tr>
|
||||
<th class="bom_col_id">Id</th>
|
||||
<th class="bom_col_description">Description</th>
|
||||
<th class="bom_col_qty">Qty</th>
|
||||
<th class="bom_col_unit">Unit</th>
|
||||
<th class="bom_col_designators">Designators</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bom_col_id">1</td>
|
||||
<td class="bom_col_description">Cable, 9 x 24 AWG</td>
|
||||
<td class="bom_col_qty">1.5</td>
|
||||
<td class="bom_col_unit">ft</td>
|
||||
<td class="bom_col_designators">W1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bom_col_id">2</td>
|
||||
<td class="bom_col_description">Connector, CN701, female, 11 pins</td>
|
||||
<td class="bom_col_qty">1</td>
|
||||
<td class="bom_col_unit"></td>
|
||||
<td class="bom_col_designators">Y1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="bom_col_id">3</td>
|
||||
<td class="bom_col_description">Connector, D-Sub, female, 9 pins</td>
|
||||
<td class="bom_col_qty">1</td>
|
||||
<td class="bom_col_unit"></td>
|
||||
<td class="bom_col_designators">X1</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
</body></html>
|
BIN
hardware/harness/harness.png
Normal file
BIN
hardware/harness/harness.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 119 KiB |
330
hardware/harness/harness.svg
Normal file
330
hardware/harness/harness.svg
Normal file
@ -0,0 +1,330 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<!-- Generated by graphviz version 2.43.0 (0)
|
||||
-->
|
||||
<!-- Title: %3 Pages: 1 -->
|
||||
<svg width="935pt" height="340pt"
|
||||
viewBox="0.00 0.00 935.00 340.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 336)">
|
||||
<title>%3</title>
|
||||
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-336 931,-336 931,4 -4,4"/>
|
||||
<!-- X1 -->
|
||||
<g id="node1" class="node">
|
||||
<title>X1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="136,-296.5 0,-296.5 0,-43.5 136,-43.5 136,-296.5"/>
|
||||
<polygon fill="none" stroke="black" points="0,-273 0,-296 136,-296 136,-273 0,-273"/>
|
||||
<text text-anchor="start" x="59.5" y="-280.8" font-family="arial" font-size="14.00">X1</text>
|
||||
<polygon fill="none" stroke="black" points="0,-250 0,-273 47,-273 47,-250 0,-250"/>
|
||||
<text text-anchor="start" x="4" y="-257.8" font-family="arial" font-size="14.00">D-Sub</text>
|
||||
<polygon fill="none" stroke="black" points="47,-250 47,-273 97,-273 97,-250 47,-250"/>
|
||||
<text text-anchor="start" x="51" y="-257.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polygon fill="none" stroke="black" points="97,-250 97,-273 136,-273 136,-250 97,-250"/>
|
||||
<text text-anchor="start" x="101" y="-257.8" font-family="arial" font-size="14.00">9-pin</text>
|
||||
<polygon fill="none" stroke="black" points="0,-227 0,-250 84,-250 84,-227 0,-227"/>
|
||||
<text text-anchor="start" x="25.5" y="-234.8" font-family="arial" font-size="14.00">+12V</text>
|
||||
<polygon fill="none" stroke="black" points="84,-227 84,-250 136,-250 136,-227 84,-227"/>
|
||||
<text text-anchor="start" x="106" y="-234.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="0,-204 0,-227 84,-227 84,-204 0,-204"/>
|
||||
<text text-anchor="start" x="29" y="-211.8" font-family="arial" font-size="14.00">TX+</text>
|
||||
<polygon fill="none" stroke="black" points="84,-204 84,-227 136,-227 136,-204 84,-204"/>
|
||||
<text text-anchor="start" x="106" y="-211.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="0,-181 0,-204 84,-204 84,-181 0,-181"/>
|
||||
<text text-anchor="start" x="26.5" y="-188.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="84,-181 84,-204 136,-204 136,-181 84,-181"/>
|
||||
<text text-anchor="start" x="106" y="-188.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="0,-158 0,-181 84,-181 84,-158 0,-158"/>
|
||||
<text text-anchor="start" x="34.5" y="-165.8" font-family="arial" font-size="14.00">R-</text>
|
||||
<polygon fill="none" stroke="black" points="84,-158 84,-181 136,-181 136,-158 84,-158"/>
|
||||
<text text-anchor="start" x="106" y="-165.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="0,-135 0,-158 84,-158 84,-135 0,-135"/>
|
||||
<text text-anchor="start" x="32.5" y="-142.8" font-family="arial" font-size="14.00">R+</text>
|
||||
<polygon fill="none" stroke="black" points="84,-135 84,-158 136,-158 136,-135 84,-135"/>
|
||||
<text text-anchor="start" x="106" y="-142.8" font-family="arial" font-size="14.00">5</text>
|
||||
<polygon fill="none" stroke="black" points="0,-112 0,-135 84,-135 84,-112 0,-112"/>
|
||||
<text text-anchor="start" x="22" y="-119.8" font-family="arial" font-size="14.00">MUTE</text>
|
||||
<polygon fill="none" stroke="black" points="84,-112 84,-135 136,-135 136,-112 84,-112"/>
|
||||
<text text-anchor="start" x="106" y="-119.8" font-family="arial" font-size="14.00">6</text>
|
||||
<polygon fill="none" stroke="black" points="0,-89 0,-112 84,-112 84,-89 0,-89"/>
|
||||
<text text-anchor="start" x="31" y="-96.8" font-family="arial" font-size="14.00">TX-</text>
|
||||
<polygon fill="none" stroke="black" points="84,-89 84,-112 136,-112 136,-89 84,-89"/>
|
||||
<text text-anchor="start" x="106" y="-96.8" font-family="arial" font-size="14.00">7</text>
|
||||
<polygon fill="none" stroke="black" points="0,-66 0,-89 84,-89 84,-66 0,-66"/>
|
||||
<text text-anchor="start" x="35.5" y="-73.8" font-family="arial" font-size="14.00">L-</text>
|
||||
<polygon fill="none" stroke="black" points="84,-66 84,-89 136,-89 136,-66 84,-66"/>
|
||||
<text text-anchor="start" x="106" y="-73.8" font-family="arial" font-size="14.00">8</text>
|
||||
<polygon fill="none" stroke="black" points="0,-43 0,-66 84,-66 84,-43 0,-43"/>
|
||||
<text text-anchor="start" x="34" y="-50.8" font-family="arial" font-size="14.00">L+</text>
|
||||
<polygon fill="none" stroke="black" points="84,-43 84,-66 136,-66 136,-43 84,-43"/>
|
||||
<text text-anchor="start" x="106" y="-50.8" font-family="arial" font-size="14.00">9</text>
|
||||
</g>
|
||||
<!-- W1 -->
|
||||
<g id="node3" class="node">
|
||||
<title>W1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="637,-332 280,-332 280,0 637,0 637,-332"/>
|
||||
<polygon fill="none" stroke="black" points="280.5,-309 280.5,-332 637.5,-332 637.5,-309 280.5,-309"/>
|
||||
<text text-anchor="start" x="448" y="-316.8" font-family="arial" font-size="14.00">W1</text>
|
||||
<polygon fill="none" stroke="black" points="280.5,-286 280.5,-309 382.5,-309 382.5,-286 280.5,-286"/>
|
||||
<text text-anchor="start" x="324" y="-293.8" font-family="arial" font-size="14.00">9x</text>
|
||||
<polygon fill="none" stroke="black" points="382.5,-286 382.5,-309 520.5,-309 520.5,-286 382.5,-286"/>
|
||||
<text text-anchor="start" x="425.5" y="-293.8" font-family="arial" font-size="14.00">24 AWG</text>
|
||||
<polygon fill="none" stroke="black" points="520.5,-286 520.5,-309 637.5,-309 637.5,-286 520.5,-286"/>
|
||||
<text text-anchor="start" x="563.5" y="-293.8" font-family="arial" font-size="14.00">1.5 ft</text>
|
||||
<text text-anchor="start" x="338.5" y="-272.8" font-family="arial" font-size="14.00"> </text>
|
||||
<text text-anchor="start" x="308.5" y="-253.8" font-family="arial" font-size="14.00">X1:1:+12V</text>
|
||||
<text text-anchor="start" x="427" y="-253.8" font-family="arial" font-size="14.00">     1:RD    </text>
|
||||
<text text-anchor="start" x="546" y="-253.8" font-family="arial" font-size="14.00">Y1:5:+12V</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-246 280.5,-248 637.5,-248 637.5,-246 280.5,-246"/>
|
||||
<polygon fill="#ff0000" stroke="transparent" points="280.5,-244 280.5,-246 637.5,-246 637.5,-244 280.5,-244"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-242 280.5,-244 637.5,-244 637.5,-242 280.5,-242"/>
|
||||
<text text-anchor="start" x="311.5" y="-228.8" font-family="arial" font-size="14.00">X1:2:TX+</text>
|
||||
<text text-anchor="start" x="425" y="-228.8" font-family="arial" font-size="14.00">     2:WH    </text>
|
||||
<text text-anchor="start" x="545.5" y="-228.8" font-family="arial" font-size="14.00">Y1:10:TX+</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-221 280.5,-223 637.5,-223 637.5,-221 280.5,-221"/>
|
||||
<polygon fill="#ffffff" stroke="transparent" points="280.5,-219 280.5,-221 637.5,-221 637.5,-219 280.5,-219"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-217 280.5,-219 637.5,-219 637.5,-217 280.5,-217"/>
|
||||
<text text-anchor="start" x="309" y="-203.8" font-family="arial" font-size="14.00">X1:3:GND</text>
|
||||
<text text-anchor="start" x="427.5" y="-203.8" font-family="arial" font-size="14.00">     3:YE    </text>
|
||||
<text text-anchor="start" x="546.5" y="-203.8" font-family="arial" font-size="14.00">Y1:8:GND</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-196 280.5,-198 637.5,-198 637.5,-196 280.5,-196"/>
|
||||
<polygon fill="#ffff00" stroke="transparent" points="280.5,-194 280.5,-196 637.5,-196 637.5,-194 280.5,-194"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-192 280.5,-194 637.5,-194 637.5,-192 280.5,-192"/>
|
||||
<text text-anchor="start" x="317.5" y="-178.8" font-family="arial" font-size="14.00">X1:4:R-</text>
|
||||
<text text-anchor="start" x="426" y="-178.8" font-family="arial" font-size="14.00">     4:GN    </text>
|
||||
<text text-anchor="start" x="555" y="-178.8" font-family="arial" font-size="14.00">Y1:6:R-</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-171 280.5,-173 637.5,-173 637.5,-171 280.5,-171"/>
|
||||
<polygon fill="#00ff00" stroke="transparent" points="280.5,-169 280.5,-171 637.5,-171 637.5,-169 280.5,-169"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-167 280.5,-169 637.5,-169 637.5,-167 280.5,-167"/>
|
||||
<text text-anchor="start" x="315.5" y="-153.8" font-family="arial" font-size="14.00">X1:5:R+</text>
|
||||
<text text-anchor="start" x="425.5" y="-153.8" font-family="arial" font-size="14.00">     5:OG    </text>
|
||||
<text text-anchor="start" x="553" y="-153.8" font-family="arial" font-size="14.00">Y1:1:R+</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-146 280.5,-148 637.5,-148 637.5,-146 280.5,-146"/>
|
||||
<polygon fill="#ff8000" stroke="transparent" points="280.5,-144 280.5,-146 637.5,-146 637.5,-144 280.5,-144"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-142 280.5,-144 637.5,-144 637.5,-142 280.5,-142"/>
|
||||
<text text-anchor="start" x="305" y="-128.8" font-family="arial" font-size="14.00">X1:6:MUTE</text>
|
||||
<text text-anchor="start" x="427.5" y="-128.8" font-family="arial" font-size="14.00">     6:BU    </text>
|
||||
<text text-anchor="start" x="542.5" y="-128.8" font-family="arial" font-size="14.00">Y1:4:MUTE</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-121 280.5,-123 637.5,-123 637.5,-121 280.5,-121"/>
|
||||
<polygon fill="#0066ff" stroke="transparent" points="280.5,-119 280.5,-121 637.5,-121 637.5,-119 280.5,-119"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-117 280.5,-119 637.5,-119 637.5,-117 280.5,-117"/>
|
||||
<text text-anchor="start" x="313.5" y="-103.8" font-family="arial" font-size="14.00">X1:7:TX-</text>
|
||||
<text text-anchor="start" x="428" y="-103.8" font-family="arial" font-size="14.00">     7:VT    </text>
|
||||
<text text-anchor="start" x="551" y="-103.8" font-family="arial" font-size="14.00">Y1:9:TX-</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-96 280.5,-98 637.5,-98 637.5,-96 280.5,-96"/>
|
||||
<polygon fill="#8000ff" stroke="transparent" points="280.5,-94 280.5,-96 637.5,-96 637.5,-94 280.5,-94"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-92 280.5,-94 637.5,-94 637.5,-92 280.5,-92"/>
|
||||
<text text-anchor="start" x="318.5" y="-78.8" font-family="arial" font-size="14.00">X1:8:L-</text>
|
||||
<text text-anchor="start" x="427.5" y="-78.8" font-family="arial" font-size="14.00">     8:BN    </text>
|
||||
<text text-anchor="start" x="556" y="-78.8" font-family="arial" font-size="14.00">Y1:7:L-</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-71 280.5,-73 637.5,-73 637.5,-71 280.5,-71"/>
|
||||
<polygon fill="#895956" stroke="transparent" points="280.5,-69 280.5,-71 637.5,-71 637.5,-69 280.5,-69"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-67 280.5,-69 637.5,-69 637.5,-67 280.5,-67"/>
|
||||
<text text-anchor="start" x="316.5" y="-53.8" font-family="arial" font-size="14.00">X1:9:L+</text>
|
||||
<text text-anchor="start" x="427.5" y="-53.8" font-family="arial" font-size="14.00">     9:BK    </text>
|
||||
<text text-anchor="start" x="554" y="-53.8" font-family="arial" font-size="14.00">Y1:2:L+</text>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-46 280.5,-48 637.5,-48 637.5,-46 280.5,-46"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-44 280.5,-46 637.5,-46 637.5,-44 280.5,-44"/>
|
||||
<polygon fill="#000000" stroke="transparent" points="280.5,-42 280.5,-44 637.5,-44 637.5,-42 280.5,-42"/>
|
||||
<text text-anchor="start" x="338.5" y="-28.8" font-family="arial" font-size="14.00"> </text>
|
||||
<polygon fill="none" stroke="black" points="280.5,0 280.5,-23 637.5,-23 637.5,0 280.5,0"/>
|
||||
<text text-anchor="start" x="284.5" y="-7.8" font-family="arial" font-size="14.00">(colors of DSub cable; colors of CN701 harness may vary)</text>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge1" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-237C200.76,-237.13 216.65,-243.13 280,-243"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M136,-239C200.06,-239 215.94,-245 280,-245"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-241C199.35,-240.87 215.24,-246.87 280,-247"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge3" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-214C200.51,-214.06 216.46,-218.06 280,-218"/>
|
||||
<path fill="none" stroke="#ffffff" stroke-width="2" d="M136,-216C200.02,-216 215.98,-220 280,-220"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-218C199.54,-217.94 215.49,-221.94 280,-222"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge5" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-191C200.25,-191.02 216.24,-193.02 280,-193"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M136,-193C200.01,-193 215.99,-195 280,-195"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-195C199.76,-194.98 215.75,-196.98 280,-197"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge7" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-167C200.13,-167 216.12,-168 280,-168"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M136,-169C200,-169 216,-170 280,-170"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-171C199.88,-171 215.87,-172 280,-172"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge9" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-144C199.88,-144 215.87,-143 280,-143"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M136,-146C200,-146 216,-145 280,-145"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-148C200.13,-148 216.12,-147 280,-147"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge11" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-121C199.64,-121.03 215.62,-118.03 280,-118"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M136,-123C200.01,-123 215.99,-120 280,-120"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-125C200.38,-124.97 216.36,-121.97 280,-122"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge13" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-98C199.44,-98.09 215.36,-93.09 280,-93"/>
|
||||
<path fill="none" stroke="#8000ff" stroke-width="2" d="M136,-100C200.04,-100 215.96,-95 280,-95"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-102C200.64,-101.91 216.56,-96.91 280,-97"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge15" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-75C199.27,-75.17 215.12,-68.17 280,-68"/>
|
||||
<path fill="none" stroke="#895956" stroke-width="2" d="M136,-77C200.08,-77 215.92,-70 280,-70"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-79C200.88,-78.83 216.73,-71.83 280,-72"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge17" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-52C199.13,-52.26 214.88,-43.26 280,-43"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-54C200.12,-54 215.88,-45 280,-45"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-56C201.12,-55.74 216.87,-46.74 280,-47"/>
|
||||
</g>
|
||||
<!-- X1--W1 -->
|
||||
<g id="edge19" class="edge">
|
||||
<title>X1:e--W1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-191C200.25,-191.02 216.24,-193.02 280,-193"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M136,-193C200.01,-193 215.99,-195 280,-195"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M136,-195C199.76,-194.98 215.75,-196.98 280,-197"/>
|
||||
</g>
|
||||
<!-- Y1 -->
|
||||
<g id="node2" class="node">
|
||||
<title>Y1</title>
|
||||
<polygon fill="#ffffff" stroke="black" points="927,-317.5 781,-317.5 781,-18.5 927,-18.5 927,-317.5"/>
|
||||
<polygon fill="none" stroke="black" points="781,-294 781,-317 927,-317 927,-294 781,-294"/>
|
||||
<text text-anchor="start" x="845.5" y="-301.8" font-family="arial" font-size="14.00">Y1</text>
|
||||
<polygon fill="none" stroke="black" points="781,-271 781,-294 832,-294 832,-271 781,-271"/>
|
||||
<text text-anchor="start" x="785" y="-278.8" font-family="arial" font-size="14.00">CN701</text>
|
||||
<polygon fill="none" stroke="black" points="832,-271 832,-294 882,-294 882,-271 832,-271"/>
|
||||
<text text-anchor="start" x="836" y="-278.8" font-family="arial" font-size="14.00">female</text>
|
||||
<polygon fill="none" stroke="black" points="882,-271 882,-294 927,-294 927,-271 882,-271"/>
|
||||
<text text-anchor="start" x="886" y="-278.8" font-family="arial" font-size="14.00">11-pin</text>
|
||||
<polygon fill="none" stroke="black" points="781,-248 781,-271 842,-271 842,-248 781,-248"/>
|
||||
<text text-anchor="start" x="807.5" y="-255.8" font-family="arial" font-size="14.00">1</text>
|
||||
<polygon fill="none" stroke="black" points="842,-248 842,-271 927,-271 927,-248 842,-248"/>
|
||||
<text text-anchor="start" x="875" y="-255.8" font-family="arial" font-size="14.00">R+</text>
|
||||
<polygon fill="none" stroke="black" points="781,-225 781,-248 842,-248 842,-225 781,-225"/>
|
||||
<text text-anchor="start" x="807.5" y="-232.8" font-family="arial" font-size="14.00">2</text>
|
||||
<polygon fill="none" stroke="black" points="842,-225 842,-248 927,-248 927,-225 842,-225"/>
|
||||
<text text-anchor="start" x="876.5" y="-232.8" font-family="arial" font-size="14.00">L+</text>
|
||||
<polygon fill="none" stroke="black" points="781,-202 781,-225 842,-225 842,-202 781,-202"/>
|
||||
<text text-anchor="start" x="807.5" y="-209.8" font-family="arial" font-size="14.00">3</text>
|
||||
<polygon fill="none" stroke="black" points="842,-202 842,-225 927,-225 927,-202 842,-202"/>
|
||||
<text text-anchor="start" x="864.5" y="-209.8" font-family="arial" font-size="14.00">SGND</text>
|
||||
<polygon fill="none" stroke="black" points="781,-179 781,-202 842,-202 842,-179 781,-179"/>
|
||||
<text text-anchor="start" x="807.5" y="-186.8" font-family="arial" font-size="14.00">4</text>
|
||||
<polygon fill="none" stroke="black" points="842,-179 842,-202 927,-202 927,-179 842,-179"/>
|
||||
<text text-anchor="start" x="864.5" y="-186.8" font-family="arial" font-size="14.00">MUTE</text>
|
||||
<polygon fill="none" stroke="black" points="781,-156 781,-179 842,-179 842,-156 781,-156"/>
|
||||
<text text-anchor="start" x="807.5" y="-163.8" font-family="arial" font-size="14.00">5</text>
|
||||
<polygon fill="none" stroke="black" points="842,-156 842,-179 927,-179 927,-156 842,-156"/>
|
||||
<text text-anchor="start" x="868" y="-163.8" font-family="arial" font-size="14.00">+12V</text>
|
||||
<polygon fill="none" stroke="black" points="781,-133 781,-156 842,-156 842,-133 781,-133"/>
|
||||
<text text-anchor="start" x="807.5" y="-140.8" font-family="arial" font-size="14.00">6</text>
|
||||
<polygon fill="none" stroke="black" points="842,-133 842,-156 927,-156 927,-133 842,-133"/>
|
||||
<text text-anchor="start" x="877" y="-140.8" font-family="arial" font-size="14.00">R-</text>
|
||||
<polygon fill="none" stroke="black" points="781,-110 781,-133 842,-133 842,-110 781,-110"/>
|
||||
<text text-anchor="start" x="807.5" y="-117.8" font-family="arial" font-size="14.00">7</text>
|
||||
<polygon fill="none" stroke="black" points="842,-110 842,-133 927,-133 927,-110 842,-110"/>
|
||||
<text text-anchor="start" x="878" y="-117.8" font-family="arial" font-size="14.00">L-</text>
|
||||
<polygon fill="none" stroke="black" points="781,-87 781,-110 842,-110 842,-87 781,-87"/>
|
||||
<text text-anchor="start" x="807.5" y="-94.8" font-family="arial" font-size="14.00">8</text>
|
||||
<polygon fill="none" stroke="black" points="842,-87 842,-110 927,-110 927,-87 842,-87"/>
|
||||
<text text-anchor="start" x="869" y="-94.8" font-family="arial" font-size="14.00">GND</text>
|
||||
<polygon fill="none" stroke="black" points="781,-64 781,-87 842,-87 842,-64 781,-64"/>
|
||||
<text text-anchor="start" x="807.5" y="-71.8" font-family="arial" font-size="14.00">9</text>
|
||||
<polygon fill="none" stroke="black" points="842,-64 842,-87 927,-87 927,-64 842,-64"/>
|
||||
<text text-anchor="start" x="873.5" y="-71.8" font-family="arial" font-size="14.00">TX-</text>
|
||||
<polygon fill="none" stroke="black" points="781,-41 781,-64 842,-64 842,-41 781,-41"/>
|
||||
<text text-anchor="start" x="803.5" y="-48.8" font-family="arial" font-size="14.00">10</text>
|
||||
<polygon fill="none" stroke="black" points="842,-41 842,-64 927,-64 927,-41 842,-41"/>
|
||||
<text text-anchor="start" x="871.5" y="-48.8" font-family="arial" font-size="14.00">TX+</text>
|
||||
<polygon fill="none" stroke="black" points="781,-18 781,-41 842,-41 842,-18 781,-18"/>
|
||||
<text text-anchor="start" x="803.5" y="-25.8" font-family="arial" font-size="14.00">12</text>
|
||||
<polygon fill="none" stroke="black" points="842,-18 842,-41 927,-41 927,-18 842,-18"/>
|
||||
<text text-anchor="start" x="870" y="-25.8" font-family="arial" font-size="14.00">ACC</text>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge2" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-243C707.79,-245.04 706.21,-167.04 781,-165"/>
|
||||
<path fill="none" stroke="#ff0000" stroke-width="2" d="M637,-245C709.79,-245 708.21,-167 781,-167"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-247C711.79,-244.96 710.21,-166.96 781,-169"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge4" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-218C733.43,-220.6 680.75,-52.6 781,-50"/>
|
||||
<path fill="none" stroke="#ffffff" stroke-width="2" d="M637,-220C735.34,-220 682.66,-52 781,-52"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-222C737.25,-219.4 684.57,-51.4 781,-54"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge6" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-193C712.18,-195.21 701.85,-98.21 781,-96"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M637,-195C714.17,-195 703.83,-98 781,-98"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-197C716.15,-194.79 705.82,-97.79 781,-100"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge8" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-168C700.27,-169.06 714.2,-143.06 781,-142"/>
|
||||
<path fill="none" stroke="#00ff00" stroke-width="2" d="M637,-170C702.03,-170 715.97,-144 781,-144"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-172C703.8,-170.94 717.73,-144.94 781,-146"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge10" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-143C720.88,-145.34 701.07,-260.34 781,-258"/>
|
||||
<path fill="none" stroke="#ff8000" stroke-width="2" d="M637,-145C718.9,-145 699.1,-260 781,-260"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-147C716.93,-144.66 697.12,-259.66 781,-262"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge12" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-118C710.36,-119.96 711.64,-190.96 781,-189"/>
|
||||
<path fill="none" stroke="#0066ff" stroke-width="2" d="M637,-120C708.36,-120 709.64,-191 781,-191"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-122C706.36,-120.04 707.64,-191.04 781,-193"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge14" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-93C700.01,-93.81 714.78,-73.81 781,-73"/>
|
||||
<path fill="none" stroke="#8000ff" stroke-width="2" d="M637,-95C701.61,-95 716.39,-75 781,-75"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-97C703.22,-96.19 717.99,-76.19 781,-77"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge16" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-68C706.87,-69.68 715.08,-120.68 781,-119"/>
|
||||
<path fill="none" stroke="#895956" stroke-width="2" d="M637,-70C704.9,-70 713.1,-121 781,-121"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-72C702.92,-70.32 711.13,-121.32 781,-123"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge18" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-43C745.55,-45.68 676.21,-237.68 781,-235"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-45C743.67,-45 674.33,-237 781,-237"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-47C741.79,-44.32 672.45,-236.32 781,-239"/>
|
||||
</g>
|
||||
<!-- W1--Y1 -->
|
||||
<g id="edge20" class="edge">
|
||||
<title>W1:e--Y1:w</title>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-193C703.13,-193.77 718.02,-212.77 781,-212"/>
|
||||
<path fill="none" stroke="#ffff00" stroke-width="2" d="M637,-195C701.55,-195 716.45,-214 781,-214"/>
|
||||
<path fill="none" stroke="#000000" stroke-width="2" d="M637,-197C699.98,-196.23 714.87,-215.23 781,-216"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 24 KiB |
26
hardware/harness/harness.yml
Normal file
26
hardware/harness/harness.yml
Normal file
@ -0,0 +1,26 @@
|
||||
connectors:
|
||||
X1:
|
||||
type: D-Sub
|
||||
subtype: female
|
||||
pinlabels: [+12V, TX+, GND, R-, R+, MUTE, TX-, L-, L+]
|
||||
Y1:
|
||||
type: CN701
|
||||
subtype: female
|
||||
pins: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12]
|
||||
pinlabels: [R+, L+, SGND, MUTE, +12V, R-, L-, GND, TX-, TX+, ACC]
|
||||
|
||||
cables:
|
||||
W1:
|
||||
wirecount: 9
|
||||
length: 1.5 ft
|
||||
gauge: 24 AWG
|
||||
colors: [RD, WH, YE, GN, OG, BU, VT, BN, BK]
|
||||
notes: (colors of DSub cable; colors of CN701 harness may vary)
|
||||
|
||||
connections:
|
||||
- - X1: [1-9]
|
||||
- W1: [1-9]
|
||||
- Y1: [5, 10, 8, 6, 1, 4, 9, 7, 2]
|
||||
- - X1: 3
|
||||
- W1: 3
|
||||
- Y1: 3
|
BIN
hardware/hbexn23350-3062983.pdf
Normal file
BIN
hardware/hbexn23350-3062983.pdf
Normal file
Binary file not shown.
1645
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-CuBottom.gbr
Normal file
1645
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-CuBottom.gbr
Normal file
File diff suppressed because it is too large
Load Diff
2598
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-CuIn1.gbr
Normal file
2598
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-CuIn1.gbr
Normal file
File diff suppressed because it is too large
Load Diff
2598
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-CuIn2.gbr
Normal file
2598
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-CuIn2.gbr
Normal file
File diff suppressed because it is too large
Load Diff
5450
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-CuTop.gbr
Normal file
5450
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-CuTop.gbr
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,54 @@
|
||||
%TF.GenerationSoftware,KiCad,Pcbnew,7.0.7-7.0.7~ubuntu22.04.1*%
|
||||
%TF.CreationDate,2023-09-02T15:09:26-04:00*%
|
||||
%TF.ProjectId,avclan-mockingboard-rounded,6176636c-616e-42d6-9d6f-636b696e6762,rev?*%
|
||||
%TF.SameCoordinates,Original*%
|
||||
%TF.FileFunction,Profile,NP*%
|
||||
%FSLAX46Y46*%
|
||||
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
|
||||
G04 Created by KiCad (PCBNEW 7.0.7-7.0.7~ubuntu22.04.1) date 2023-09-02 15:09:26*
|
||||
%MOMM*%
|
||||
%LPD*%
|
||||
G01*
|
||||
G04 APERTURE LIST*
|
||||
%TA.AperFunction,Profile*%
|
||||
%ADD10C,0.100000*%
|
||||
%TD*%
|
||||
G04 APERTURE END LIST*
|
||||
D10*
|
||||
X0Y-37000000D02*
|
||||
X0Y-2000000D01*
|
||||
X53000000Y-2000000D02*
|
||||
G75*
|
||||
G03*
|
||||
X51000000Y0I-2000000J0D01*
|
||||
G01*
|
||||
X7000000Y0D02*
|
||||
X7000000Y-1500000D01*
|
||||
X2000000Y0D02*
|
||||
X7000000Y0D01*
|
||||
X7000000Y-1500000D02*
|
||||
X12000000Y-1500000D01*
|
||||
X12000000Y0D02*
|
||||
X51000000Y0D01*
|
||||
X2000000Y0D02*
|
||||
G75*
|
||||
G03*
|
||||
X0Y-2000000I0J-2000000D01*
|
||||
G01*
|
||||
X12000000Y-1500000D02*
|
||||
X12000000Y0D01*
|
||||
X51000000Y-39000000D02*
|
||||
X2000000Y-39000000D01*
|
||||
X53000000Y-2000000D02*
|
||||
X53000000Y-37000000D01*
|
||||
X0Y-37000000D02*
|
||||
G75*
|
||||
G03*
|
||||
X2000000Y-39000000I2000000J0D01*
|
||||
G01*
|
||||
X51000000Y-39000000D02*
|
||||
G75*
|
||||
G03*
|
||||
X53000000Y-37000000I0J2000000D01*
|
||||
G01*
|
||||
M02*
|
@ -0,0 +1,91 @@
|
||||
%TF.GenerationSoftware,KiCad,Pcbnew,7.0.7-7.0.7~ubuntu22.04.1*%
|
||||
%TF.CreationDate,2023-09-02T15:09:26-04:00*%
|
||||
%TF.ProjectId,avclan-mockingboard-rounded,6176636c-616e-42d6-9d6f-636b696e6762,rev?*%
|
||||
%TF.SameCoordinates,Original*%
|
||||
%TF.FileFunction,Soldermask,Bot*%
|
||||
%TF.FilePolarity,Negative*%
|
||||
%FSLAX46Y46*%
|
||||
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
|
||||
G04 Created by KiCad (PCBNEW 7.0.7-7.0.7~ubuntu22.04.1) date 2023-09-02 15:09:26*
|
||||
%MOMM*%
|
||||
%LPD*%
|
||||
G01*
|
||||
G04 APERTURE LIST*
|
||||
G04 Aperture macros list*
|
||||
%AMRoundRect*
|
||||
0 Rectangle with rounded corners*
|
||||
0 $1 Rounding radius*
|
||||
0 $2 $3 $4 $5 $6 $7 $8 $9 X,Y pos of 4 corners*
|
||||
0 Add a 4 corners polygon primitive as box body*
|
||||
4,1,4,$2,$3,$4,$5,$6,$7,$8,$9,$2,$3,0*
|
||||
0 Add four circle primitives for the rounded corners*
|
||||
1,1,$1+$1,$2,$3*
|
||||
1,1,$1+$1,$4,$5*
|
||||
1,1,$1+$1,$6,$7*
|
||||
1,1,$1+$1,$8,$9*
|
||||
0 Add four rect primitives between the rounded corners*
|
||||
20,1,$1+$1,$2,$3,$4,$5,0*
|
||||
20,1,$1+$1,$4,$5,$6,$7,0*
|
||||
20,1,$1+$1,$6,$7,$8,$9,0*
|
||||
20,1,$1+$1,$8,$9,$2,$3,0*%
|
||||
G04 Aperture macros list end*
|
||||
%ADD10C,2.000000*%
|
||||
%ADD11R,1.700000X1.700000*%
|
||||
%ADD12O,1.700000X1.700000*%
|
||||
%ADD13C,1.100000*%
|
||||
%ADD14RoundRect,0.102000X-0.825000X0.825000X-0.825000X-0.825000X0.825000X-0.825000X0.825000X0.825000X0*%
|
||||
%ADD15C,1.854000*%
|
||||
%ADD16C,4.000000*%
|
||||
%ADD17R,1.600000X1.600000*%
|
||||
%ADD18C,1.600000*%
|
||||
G04 APERTURE END LIST*
|
||||
D10*
|
||||
%TO.C,RV1*%
|
||||
X49175000Y-22400000D03*
|
||||
X47025000Y-32400000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,J4*%
|
||||
X17500000Y-36200000D03*
|
||||
D12*
|
||||
X14960000Y-36200000D03*
|
||||
X12420000Y-36200000D03*
|
||||
X9880000Y-36200000D03*
|
||||
X7340000Y-36200000D03*
|
||||
X4800000Y-36200000D03*
|
||||
%TD*%
|
||||
D13*
|
||||
%TO.C,J1*%
|
||||
X9500000Y-2750000D03*
|
||||
X9500000Y-7750000D03*
|
||||
D14*
|
||||
X14300000Y-2750000D03*
|
||||
D15*
|
||||
X5900000Y-7750000D03*
|
||||
X11100000Y-10850000D03*
|
||||
X5000000Y-2750000D03*
|
||||
%TD*%
|
||||
D16*
|
||||
%TO.C,J2*%
|
||||
X44055000Y-9020000D03*
|
||||
X19055000Y-9020000D03*
|
||||
D17*
|
||||
X37095000Y-10440000D03*
|
||||
D18*
|
||||
X34325000Y-10440000D03*
|
||||
X31555000Y-10440000D03*
|
||||
X28785000Y-10440000D03*
|
||||
X26015000Y-10440000D03*
|
||||
X35710000Y-7600000D03*
|
||||
X32940000Y-7600000D03*
|
||||
X30170000Y-7600000D03*
|
||||
X27400000Y-7600000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,J3*%
|
||||
X9850000Y-31200000D03*
|
||||
D12*
|
||||
X7310000Y-31200000D03*
|
||||
X4770000Y-31200000D03*
|
||||
%TD*%
|
||||
M02*
|
323
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-MaskTop.gbr
Normal file
323
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-MaskTop.gbr
Normal file
@ -0,0 +1,323 @@
|
||||
%TF.GenerationSoftware,KiCad,Pcbnew,7.0.7-7.0.7~ubuntu22.04.1*%
|
||||
%TF.CreationDate,2023-09-02T15:09:26-04:00*%
|
||||
%TF.ProjectId,avclan-mockingboard-rounded,6176636c-616e-42d6-9d6f-636b696e6762,rev?*%
|
||||
%TF.SameCoordinates,Original*%
|
||||
%TF.FileFunction,Soldermask,Top*%
|
||||
%TF.FilePolarity,Negative*%
|
||||
%FSLAX46Y46*%
|
||||
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
|
||||
G04 Created by KiCad (PCBNEW 7.0.7-7.0.7~ubuntu22.04.1) date 2023-09-02 15:09:26*
|
||||
%MOMM*%
|
||||
%LPD*%
|
||||
G01*
|
||||
G04 APERTURE LIST*
|
||||
G04 Aperture macros list*
|
||||
%AMRoundRect*
|
||||
0 Rectangle with rounded corners*
|
||||
0 $1 Rounding radius*
|
||||
0 $2 $3 $4 $5 $6 $7 $8 $9 X,Y pos of 4 corners*
|
||||
0 Add a 4 corners polygon primitive as box body*
|
||||
4,1,4,$2,$3,$4,$5,$6,$7,$8,$9,$2,$3,0*
|
||||
0 Add four circle primitives for the rounded corners*
|
||||
1,1,$1+$1,$2,$3*
|
||||
1,1,$1+$1,$4,$5*
|
||||
1,1,$1+$1,$6,$7*
|
||||
1,1,$1+$1,$8,$9*
|
||||
0 Add four rect primitives between the rounded corners*
|
||||
20,1,$1+$1,$2,$3,$4,$5,0*
|
||||
20,1,$1+$1,$4,$5,$6,$7,0*
|
||||
20,1,$1+$1,$6,$7,$8,$9,0*
|
||||
20,1,$1+$1,$8,$9,$2,$3,0*%
|
||||
G04 Aperture macros list end*
|
||||
%ADD10RoundRect,0.200000X0.275000X-0.200000X0.275000X0.200000X-0.275000X0.200000X-0.275000X-0.200000X0*%
|
||||
%ADD11RoundRect,0.200000X0.200000X0.275000X-0.200000X0.275000X-0.200000X-0.275000X0.200000X-0.275000X0*%
|
||||
%ADD12RoundRect,0.250000X-0.325000X-0.650000X0.325000X-0.650000X0.325000X0.650000X-0.325000X0.650000X0*%
|
||||
%ADD13RoundRect,0.218750X-0.218750X-0.256250X0.218750X-0.256250X0.218750X0.256250X-0.218750X0.256250X0*%
|
||||
%ADD14RoundRect,0.225000X-0.225000X-0.250000X0.225000X-0.250000X0.225000X0.250000X-0.225000X0.250000X0*%
|
||||
%ADD15RoundRect,0.250000X0.450000X-0.262500X0.450000X0.262500X-0.450000X0.262500X-0.450000X-0.262500X0*%
|
||||
%ADD16RoundRect,0.250000X-1.000000X-0.900000X1.000000X-0.900000X1.000000X0.900000X-1.000000X0.900000X0*%
|
||||
%ADD17RoundRect,0.250000X-1.000000X-0.650000X1.000000X-0.650000X1.000000X0.650000X-1.000000X0.650000X0*%
|
||||
%ADD18C,2.000000*%
|
||||
%ADD19RoundRect,0.150000X-0.512500X-0.150000X0.512500X-0.150000X0.512500X0.150000X-0.512500X0.150000X0*%
|
||||
%ADD20RoundRect,0.140000X-0.170000X0.140000X-0.170000X-0.140000X0.170000X-0.140000X0.170000X0.140000X0*%
|
||||
%ADD21RoundRect,0.200000X-0.200000X-0.275000X0.200000X-0.275000X0.200000X0.275000X-0.200000X0.275000X0*%
|
||||
%ADD22RoundRect,0.250000X-0.850000X-0.350000X0.850000X-0.350000X0.850000X0.350000X-0.850000X0.350000X0*%
|
||||
%ADD23RoundRect,0.249997X-2.950003X-2.650003X2.950003X-2.650003X2.950003X2.650003X-2.950003X2.650003X0*%
|
||||
%ADD24RoundRect,0.250000X0.325000X0.650000X-0.325000X0.650000X-0.325000X-0.650000X0.325000X-0.650000X0*%
|
||||
%ADD25RoundRect,0.250000X0.400000X0.600000X-0.400000X0.600000X-0.400000X-0.600000X0.400000X-0.600000X0*%
|
||||
%ADD26RoundRect,0.250000X-0.262500X-0.450000X0.262500X-0.450000X0.262500X0.450000X-0.262500X0.450000X0*%
|
||||
%ADD27RoundRect,0.140000X-0.140000X-0.170000X0.140000X-0.170000X0.140000X0.170000X-0.140000X0.170000X0*%
|
||||
%ADD28R,1.700000X1.700000*%
|
||||
%ADD29O,1.700000X1.700000*%
|
||||
%ADD30RoundRect,0.150000X0.875000X0.150000X-0.875000X0.150000X-0.875000X-0.150000X0.875000X-0.150000X0*%
|
||||
%ADD31C,1.100000*%
|
||||
%ADD32RoundRect,0.102000X-0.825000X0.825000X-0.825000X-0.825000X0.825000X-0.825000X0.825000X0.825000X0*%
|
||||
%ADD33C,1.854000*%
|
||||
%ADD34C,4.000000*%
|
||||
%ADD35R,1.600000X1.600000*%
|
||||
%ADD36C,1.600000*%
|
||||
%ADD37RoundRect,0.250000X0.650000X-0.325000X0.650000X0.325000X-0.650000X0.325000X-0.650000X-0.325000X0*%
|
||||
%ADD38RoundRect,0.250000X-0.650000X0.325000X-0.650000X-0.325000X0.650000X-0.325000X0.650000X0.325000X0*%
|
||||
%ADD39RoundRect,0.250000X-0.650000X1.000000X-0.650000X-1.000000X0.650000X-1.000000X0.650000X1.000000X0*%
|
||||
G04 APERTURE END LIST*
|
||||
D10*
|
||||
%TO.C,R9*%
|
||||
X26550000Y-15425000D03*
|
||||
X26550000Y-13775000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,R6*%
|
||||
X14850000Y-11950331D03*
|
||||
X13200000Y-11950331D03*
|
||||
%TD*%
|
||||
D12*
|
||||
%TO.C,C3*%
|
||||
X41450000Y-28100000D03*
|
||||
X44400000Y-28100000D03*
|
||||
%TD*%
|
||||
D13*
|
||||
%TO.C,D9*%
|
||||
X16384118Y-18700000D03*
|
||||
X17959118Y-18700000D03*
|
||||
%TD*%
|
||||
D14*
|
||||
%TO.C,C5*%
|
||||
X35900000Y-28700000D03*
|
||||
X37450000Y-28700000D03*
|
||||
%TD*%
|
||||
D15*
|
||||
%TO.C,R2*%
|
||||
X32512500Y-17400000D03*
|
||||
X32512500Y-15575000D03*
|
||||
%TD*%
|
||||
D16*
|
||||
%TO.C,D4*%
|
||||
X39400000Y-22300000D03*
|
||||
X43700000Y-22300000D03*
|
||||
%TD*%
|
||||
D17*
|
||||
%TO.C,D2*%
|
||||
X39700000Y-18200000D03*
|
||||
X43700000Y-18200000D03*
|
||||
%TD*%
|
||||
D18*
|
||||
%TO.C,RV1*%
|
||||
X49175000Y-22400000D03*
|
||||
X47025000Y-32400000D03*
|
||||
%TD*%
|
||||
D19*
|
||||
%TO.C,D6*%
|
||||
X25662500Y-29050000D03*
|
||||
X25662500Y-30950000D03*
|
||||
X27937500Y-30000000D03*
|
||||
%TD*%
|
||||
D20*
|
||||
%TO.C,C10*%
|
||||
X18662500Y-15050000D03*
|
||||
X18662500Y-16010000D03*
|
||||
%TD*%
|
||||
D21*
|
||||
%TO.C,R7*%
|
||||
X23500000Y-15325000D03*
|
||||
X25150000Y-15325000D03*
|
||||
%TD*%
|
||||
D22*
|
||||
%TO.C,U1*%
|
||||
X35500000Y-30745000D03*
|
||||
X35500000Y-33025000D03*
|
||||
D23*
|
||||
X41800000Y-33025000D03*
|
||||
D22*
|
||||
X35500000Y-35305000D03*
|
||||
%TD*%
|
||||
D24*
|
||||
%TO.C,C1*%
|
||||
X42875000Y-14100000D03*
|
||||
X39925000Y-14100000D03*
|
||||
%TD*%
|
||||
%TO.C,C11*%
|
||||
X10100000Y-13800000D03*
|
||||
X7150000Y-13800000D03*
|
||||
%TD*%
|
||||
D25*
|
||||
%TO.C,D10*%
|
||||
X26550000Y-17250000D03*
|
||||
X23050000Y-17250000D03*
|
||||
%TD*%
|
||||
D21*
|
||||
%TO.C,R12*%
|
||||
X7175000Y-11900000D03*
|
||||
X8825000Y-11900000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,R11*%
|
||||
X6450000Y-28600000D03*
|
||||
X4800000Y-28600000D03*
|
||||
%TD*%
|
||||
D26*
|
||||
%TO.C,R3*%
|
||||
X32587500Y-13775000D03*
|
||||
X34412500Y-13775000D03*
|
||||
%TD*%
|
||||
D27*
|
||||
%TO.C,C9*%
|
||||
X22968236Y-33385000D03*
|
||||
X23928236Y-33385000D03*
|
||||
%TD*%
|
||||
D28*
|
||||
%TO.C,J4*%
|
||||
X17500000Y-36200000D03*
|
||||
D29*
|
||||
X14960000Y-36200000D03*
|
||||
X12420000Y-36200000D03*
|
||||
X9880000Y-36200000D03*
|
||||
X7340000Y-36200000D03*
|
||||
X4800000Y-36200000D03*
|
||||
%TD*%
|
||||
D19*
|
||||
%TO.C,D8*%
|
||||
X28600000Y-34700000D03*
|
||||
X28600000Y-36600000D03*
|
||||
X30875000Y-35650000D03*
|
||||
%TD*%
|
||||
D30*
|
||||
%TO.C,U2*%
|
||||
X23278236Y-31950000D03*
|
||||
X23278236Y-30680000D03*
|
||||
X23278236Y-29410000D03*
|
||||
X23278236Y-28140000D03*
|
||||
X23278236Y-26870000D03*
|
||||
X23278236Y-25600000D03*
|
||||
X23278236Y-24330000D03*
|
||||
X23278236Y-23060000D03*
|
||||
X23278236Y-21790000D03*
|
||||
X23278236Y-20520000D03*
|
||||
X13978236Y-20520000D03*
|
||||
X13978236Y-21790000D03*
|
||||
X13978236Y-23060000D03*
|
||||
X13978236Y-24330000D03*
|
||||
X13978236Y-25600000D03*
|
||||
X13978236Y-26870000D03*
|
||||
X13978236Y-28140000D03*
|
||||
X13978236Y-29410000D03*
|
||||
X13978236Y-30680000D03*
|
||||
X13978236Y-31950000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,R13*%
|
||||
X4050000Y-4600000D03*
|
||||
X2400000Y-4600000D03*
|
||||
%TD*%
|
||||
D17*
|
||||
%TO.C,D1*%
|
||||
X45400000Y-14600000D03*
|
||||
X49400000Y-14600000D03*
|
||||
%TD*%
|
||||
D31*
|
||||
%TO.C,J1*%
|
||||
X9500000Y-2750000D03*
|
||||
X9500000Y-7750000D03*
|
||||
D32*
|
||||
X14300000Y-2750000D03*
|
||||
D33*
|
||||
X5900000Y-7750000D03*
|
||||
X11100000Y-10850000D03*
|
||||
X5000000Y-2750000D03*
|
||||
%TD*%
|
||||
D12*
|
||||
%TO.C,C2*%
|
||||
X41450000Y-25800000D03*
|
||||
X44400000Y-25800000D03*
|
||||
%TD*%
|
||||
D19*
|
||||
%TO.C,D7*%
|
||||
X25600000Y-24100000D03*
|
||||
X25600000Y-26000000D03*
|
||||
X27875000Y-25050000D03*
|
||||
%TD*%
|
||||
D34*
|
||||
%TO.C,J2*%
|
||||
X44055000Y-9020000D03*
|
||||
X19055000Y-9020000D03*
|
||||
D35*
|
||||
X37095000Y-10440000D03*
|
||||
D36*
|
||||
X34325000Y-10440000D03*
|
||||
X31555000Y-10440000D03*
|
||||
X28785000Y-10440000D03*
|
||||
X26015000Y-10440000D03*
|
||||
X35710000Y-7600000D03*
|
||||
X32940000Y-7600000D03*
|
||||
X30170000Y-7600000D03*
|
||||
X27400000Y-7600000D03*
|
||||
%TD*%
|
||||
D37*
|
||||
%TO.C,C7*%
|
||||
X33000000Y-32200000D03*
|
||||
X33000000Y-29250000D03*
|
||||
%TD*%
|
||||
D14*
|
||||
%TO.C,C6*%
|
||||
X35350000Y-37300000D03*
|
||||
X36900000Y-37300000D03*
|
||||
%TD*%
|
||||
D10*
|
||||
%TO.C,R4*%
|
||||
X36212500Y-17300000D03*
|
||||
X36212500Y-15650000D03*
|
||||
%TD*%
|
||||
D19*
|
||||
%TO.C,U3*%
|
||||
X14925000Y-15100000D03*
|
||||
X14925000Y-16050000D03*
|
||||
X14925000Y-17000000D03*
|
||||
X17200000Y-17000000D03*
|
||||
X17200000Y-15100000D03*
|
||||
%TD*%
|
||||
D28*
|
||||
%TO.C,J3*%
|
||||
X9850000Y-31200000D03*
|
||||
D29*
|
||||
X7310000Y-31200000D03*
|
||||
X4770000Y-31200000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,R10*%
|
||||
X14984118Y-18700000D03*
|
||||
X13334118Y-18700000D03*
|
||||
%TD*%
|
||||
%TO.C,R5*%
|
||||
X14850000Y-13440331D03*
|
||||
X13200000Y-13440331D03*
|
||||
%TD*%
|
||||
D38*
|
||||
%TO.C,C8*%
|
||||
X33000000Y-33900000D03*
|
||||
X33000000Y-36850000D03*
|
||||
%TD*%
|
||||
D39*
|
||||
%TO.C,D3*%
|
||||
X49395000Y-6609669D03*
|
||||
X49395000Y-10609669D03*
|
||||
%TD*%
|
||||
D37*
|
||||
%TO.C,C12*%
|
||||
X3200000Y-9150000D03*
|
||||
X3200000Y-6200000D03*
|
||||
%TD*%
|
||||
D15*
|
||||
%TO.C,R1*%
|
||||
X34412500Y-17400000D03*
|
||||
X34412500Y-15575000D03*
|
||||
%TD*%
|
||||
D37*
|
||||
%TO.C,C4*%
|
||||
X39400000Y-28400000D03*
|
||||
X39400000Y-25450000D03*
|
||||
%TD*%
|
||||
D21*
|
||||
%TO.C,R8*%
|
||||
X23500000Y-13825000D03*
|
||||
X25150000Y-13825000D03*
|
||||
%TD*%
|
||||
M02*
|
Binary file not shown.
18
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-NPTH.drl
Normal file
18
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-NPTH.drl
Normal file
@ -0,0 +1,18 @@
|
||||
M48
|
||||
; DRILL file {KiCad 7.0.7-7.0.7~ubuntu22.04.1} date Sat 02 Sep 2023 03:09:26 PM EDT
|
||||
; FORMAT={-:-/ absolute / inch / decimal}
|
||||
; #@! TF.CreationDate,2023-09-02T15:09:26-04:00
|
||||
; #@! TF.GenerationSoftware,Kicad,Pcbnew,7.0.7-7.0.7~ubuntu22.04.1
|
||||
; #@! TF.FileFunction,NonPlated,1,4,NPTH
|
||||
FMAT,2
|
||||
INCH
|
||||
; #@! TA.AperFunction,NonPlated,NPTH,ComponentDrill
|
||||
T1C0.0433
|
||||
%
|
||||
G90
|
||||
G05
|
||||
T1
|
||||
X0.374Y-0.1083
|
||||
X0.374Y-0.3051
|
||||
T0
|
||||
M30
|
Binary file not shown.
110
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-PTH.drl
Normal file
110
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-PTH.drl
Normal file
@ -0,0 +1,110 @@
|
||||
M48
|
||||
; DRILL file {KiCad 7.0.7-7.0.7~ubuntu22.04.1} date Sat 02 Sep 2023 03:09:26 PM EDT
|
||||
; FORMAT={-:-/ absolute / inch / decimal}
|
||||
; #@! TF.CreationDate,2023-09-02T15:09:26-04:00
|
||||
; #@! TF.GenerationSoftware,Kicad,Pcbnew,7.0.7-7.0.7~ubuntu22.04.1
|
||||
; #@! TF.FileFunction,Plated,1,4,PTH
|
||||
FMAT,2
|
||||
INCH
|
||||
; #@! TA.AperFunction,Plated,PTH,ViaDrill
|
||||
T1C0.0157
|
||||
; #@! TA.AperFunction,Plated,PTH,ComponentDrill
|
||||
T2C0.0394
|
||||
; #@! TA.AperFunction,Plated,PTH,ComponentDrill
|
||||
T3C0.0433
|
||||
; #@! TA.AperFunction,Plated,PTH,ComponentDrill
|
||||
T4C0.1260
|
||||
%
|
||||
G90
|
||||
G05
|
||||
T1
|
||||
X0.0591Y-0.0591
|
||||
X0.0591Y-0.3543
|
||||
X0.0591Y-0.6496
|
||||
X0.2362Y-0.0394
|
||||
X0.2441Y-0.4055
|
||||
X0.4035Y-0.2402
|
||||
X0.4843Y-1.2598
|
||||
X0.4882Y-0.5
|
||||
X0.5118Y-0.0394
|
||||
X0.5197Y-1.2953
|
||||
X0.5315Y-0.6417
|
||||
X0.5492Y-0.3878
|
||||
X0.563Y-0.3465
|
||||
X0.6102Y-0.2382
|
||||
X0.7087Y-0.4921
|
||||
X0.7677Y-0.5925
|
||||
X0.7692Y-0.6358
|
||||
X0.7874Y-0.0394
|
||||
X0.9646Y-0.2874
|
||||
X0.9843Y-1.3031
|
||||
X1.0236Y-0.4921
|
||||
X1.0551Y-1.2579
|
||||
X1.0748Y-1.3681
|
||||
X1.1811Y-0.0394
|
||||
X1.2047Y-1.2362
|
||||
X1.2126Y-1.4764
|
||||
X1.2205Y-1.0709
|
||||
X1.2992Y-1.1024
|
||||
X1.4567Y-0.0394
|
||||
X1.4665Y-0.8071
|
||||
X1.4764Y-0.3346
|
||||
X1.4833Y-1.3012
|
||||
X1.4862Y-1.0039
|
||||
X1.4951Y-1.2382
|
||||
X1.4951Y-1.3602
|
||||
X1.5059Y-1.4764
|
||||
X1.5236Y-0.6024
|
||||
X1.5778Y-1.1732
|
||||
X1.5787Y-1.437
|
||||
X1.6447Y-1.1732
|
||||
X1.6457Y-1.437
|
||||
X1.7116Y-1.1634
|
||||
X1.7126Y-1.437
|
||||
X1.752Y-0.0394
|
||||
X1.7904Y-1.2382
|
||||
X1.7904Y-1.3031
|
||||
X1.7904Y-1.3602
|
||||
X1.7913Y-1.4764
|
||||
X1.8012Y-1.0138
|
||||
X1.8012Y-1.1122
|
||||
X1.8504Y-0.4823
|
||||
X1.8819Y-0.2598
|
||||
X1.9449Y-0.189
|
||||
X2.0079Y-0.2598
|
||||
X2.0276Y-0.0591
|
||||
X2.0276Y-0.4134
|
||||
X2.0276Y-0.7677
|
||||
X2.0276Y-1.122
|
||||
X2.0276Y-1.4764
|
||||
T2
|
||||
X0.1878Y-1.2283
|
||||
X0.189Y-1.4252
|
||||
X0.2878Y-1.2283
|
||||
X0.289Y-1.4252
|
||||
X0.3878Y-1.2283
|
||||
X0.389Y-1.4252
|
||||
X0.489Y-1.4252
|
||||
X0.589Y-1.4252
|
||||
X0.689Y-1.4252
|
||||
X1.0242Y-0.411
|
||||
X1.0787Y-0.2992
|
||||
X1.1333Y-0.411
|
||||
X1.1878Y-0.2992
|
||||
X1.2423Y-0.411
|
||||
X1.2969Y-0.2992
|
||||
X1.3514Y-0.411
|
||||
X1.4059Y-0.2992
|
||||
X1.4604Y-0.411
|
||||
X1.8514Y-1.2756
|
||||
X1.936Y-0.8819
|
||||
T3
|
||||
X0.1969Y-0.1083
|
||||
X0.2323Y-0.3051
|
||||
X0.437Y-0.4272
|
||||
X0.563Y-0.1083
|
||||
T4
|
||||
X0.7502Y-0.3551
|
||||
X1.7344Y-0.3551
|
||||
T0
|
||||
M30
|
@ -0,0 +1,15 @@
|
||||
%TF.GenerationSoftware,KiCad,Pcbnew,7.0.7-7.0.7~ubuntu22.04.1*%
|
||||
%TF.CreationDate,2023-09-02T15:09:26-04:00*%
|
||||
%TF.ProjectId,avclan-mockingboard-rounded,6176636c-616e-42d6-9d6f-636b696e6762,rev?*%
|
||||
%TF.SameCoordinates,Original*%
|
||||
%TF.FileFunction,Paste,Bot*%
|
||||
%TF.FilePolarity,Positive*%
|
||||
%FSLAX46Y46*%
|
||||
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
|
||||
G04 Created by KiCad (PCBNEW 7.0.7-7.0.7~ubuntu22.04.1) date 2023-09-02 15:09:26*
|
||||
%MOMM*%
|
||||
%LPD*%
|
||||
G01*
|
||||
G04 APERTURE LIST*
|
||||
G04 APERTURE END LIST*
|
||||
M02*
|
268
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-PasteTop.gbr
Normal file
268
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-PasteTop.gbr
Normal file
@ -0,0 +1,268 @@
|
||||
%TF.GenerationSoftware,KiCad,Pcbnew,7.0.7-7.0.7~ubuntu22.04.1*%
|
||||
%TF.CreationDate,2023-09-02T15:09:26-04:00*%
|
||||
%TF.ProjectId,avclan-mockingboard-rounded,6176636c-616e-42d6-9d6f-636b696e6762,rev?*%
|
||||
%TF.SameCoordinates,Original*%
|
||||
%TF.FileFunction,Paste,Top*%
|
||||
%TF.FilePolarity,Positive*%
|
||||
%FSLAX46Y46*%
|
||||
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
|
||||
G04 Created by KiCad (PCBNEW 7.0.7-7.0.7~ubuntu22.04.1) date 2023-09-02 15:09:26*
|
||||
%MOMM*%
|
||||
%LPD*%
|
||||
G01*
|
||||
G04 APERTURE LIST*
|
||||
G04 Aperture macros list*
|
||||
%AMRoundRect*
|
||||
0 Rectangle with rounded corners*
|
||||
0 $1 Rounding radius*
|
||||
0 $2 $3 $4 $5 $6 $7 $8 $9 X,Y pos of 4 corners*
|
||||
0 Add a 4 corners polygon primitive as box body*
|
||||
4,1,4,$2,$3,$4,$5,$6,$7,$8,$9,$2,$3,0*
|
||||
0 Add four circle primitives for the rounded corners*
|
||||
1,1,$1+$1,$2,$3*
|
||||
1,1,$1+$1,$4,$5*
|
||||
1,1,$1+$1,$6,$7*
|
||||
1,1,$1+$1,$8,$9*
|
||||
0 Add four rect primitives between the rounded corners*
|
||||
20,1,$1+$1,$2,$3,$4,$5,0*
|
||||
20,1,$1+$1,$4,$5,$6,$7,0*
|
||||
20,1,$1+$1,$6,$7,$8,$9,0*
|
||||
20,1,$1+$1,$8,$9,$2,$3,0*%
|
||||
G04 Aperture macros list end*
|
||||
%ADD10RoundRect,0.200000X0.275000X-0.200000X0.275000X0.200000X-0.275000X0.200000X-0.275000X-0.200000X0*%
|
||||
%ADD11RoundRect,0.200000X0.200000X0.275000X-0.200000X0.275000X-0.200000X-0.275000X0.200000X-0.275000X0*%
|
||||
%ADD12RoundRect,0.250000X-0.325000X-0.650000X0.325000X-0.650000X0.325000X0.650000X-0.325000X0.650000X0*%
|
||||
%ADD13RoundRect,0.218750X-0.218750X-0.256250X0.218750X-0.256250X0.218750X0.256250X-0.218750X0.256250X0*%
|
||||
%ADD14RoundRect,0.225000X-0.225000X-0.250000X0.225000X-0.250000X0.225000X0.250000X-0.225000X0.250000X0*%
|
||||
%ADD15RoundRect,0.250000X0.450000X-0.262500X0.450000X0.262500X-0.450000X0.262500X-0.450000X-0.262500X0*%
|
||||
%ADD16RoundRect,0.250000X-1.000000X-0.900000X1.000000X-0.900000X1.000000X0.900000X-1.000000X0.900000X0*%
|
||||
%ADD17RoundRect,0.250000X-1.000000X-0.650000X1.000000X-0.650000X1.000000X0.650000X-1.000000X0.650000X0*%
|
||||
%ADD18RoundRect,0.150000X-0.512500X-0.150000X0.512500X-0.150000X0.512500X0.150000X-0.512500X0.150000X0*%
|
||||
%ADD19RoundRect,0.140000X-0.170000X0.140000X-0.170000X-0.140000X0.170000X-0.140000X0.170000X0.140000X0*%
|
||||
%ADD20RoundRect,0.200000X-0.200000X-0.275000X0.200000X-0.275000X0.200000X0.275000X-0.200000X0.275000X0*%
|
||||
%ADD21RoundRect,0.250000X-0.850000X-0.350000X0.850000X-0.350000X0.850000X0.350000X-0.850000X0.350000X0*%
|
||||
%ADD22RoundRect,0.250000X-1.275000X-1.125000X1.275000X-1.125000X1.275000X1.125000X-1.275000X1.125000X0*%
|
||||
%ADD23RoundRect,0.250000X0.325000X0.650000X-0.325000X0.650000X-0.325000X-0.650000X0.325000X-0.650000X0*%
|
||||
%ADD24RoundRect,0.250000X0.400000X0.600000X-0.400000X0.600000X-0.400000X-0.600000X0.400000X-0.600000X0*%
|
||||
%ADD25RoundRect,0.250000X-0.262500X-0.450000X0.262500X-0.450000X0.262500X0.450000X-0.262500X0.450000X0*%
|
||||
%ADD26RoundRect,0.140000X-0.140000X-0.170000X0.140000X-0.170000X0.140000X0.170000X-0.140000X0.170000X0*%
|
||||
%ADD27RoundRect,0.150000X0.875000X0.150000X-0.875000X0.150000X-0.875000X-0.150000X0.875000X-0.150000X0*%
|
||||
%ADD28RoundRect,0.250000X0.650000X-0.325000X0.650000X0.325000X-0.650000X0.325000X-0.650000X-0.325000X0*%
|
||||
%ADD29RoundRect,0.250000X-0.650000X0.325000X-0.650000X-0.325000X0.650000X-0.325000X0.650000X0.325000X0*%
|
||||
%ADD30RoundRect,0.250000X-0.650000X1.000000X-0.650000X-1.000000X0.650000X-1.000000X0.650000X1.000000X0*%
|
||||
G04 APERTURE END LIST*
|
||||
D10*
|
||||
%TO.C,R9*%
|
||||
X26550000Y-15425000D03*
|
||||
X26550000Y-13775000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,R6*%
|
||||
X14850000Y-11950331D03*
|
||||
X13200000Y-11950331D03*
|
||||
%TD*%
|
||||
D12*
|
||||
%TO.C,C3*%
|
||||
X41450000Y-28100000D03*
|
||||
X44400000Y-28100000D03*
|
||||
%TD*%
|
||||
D13*
|
||||
%TO.C,D9*%
|
||||
X16384118Y-18700000D03*
|
||||
X17959118Y-18700000D03*
|
||||
%TD*%
|
||||
D14*
|
||||
%TO.C,C5*%
|
||||
X35900000Y-28700000D03*
|
||||
X37450000Y-28700000D03*
|
||||
%TD*%
|
||||
D15*
|
||||
%TO.C,R2*%
|
||||
X32512500Y-17400000D03*
|
||||
X32512500Y-15575000D03*
|
||||
%TD*%
|
||||
D16*
|
||||
%TO.C,D4*%
|
||||
X39400000Y-22300000D03*
|
||||
X43700000Y-22300000D03*
|
||||
%TD*%
|
||||
D17*
|
||||
%TO.C,D2*%
|
||||
X39700000Y-18200000D03*
|
||||
X43700000Y-18200000D03*
|
||||
%TD*%
|
||||
D18*
|
||||
%TO.C,D6*%
|
||||
X25662500Y-29050000D03*
|
||||
X25662500Y-30950000D03*
|
||||
X27937500Y-30000000D03*
|
||||
%TD*%
|
||||
D19*
|
||||
%TO.C,C10*%
|
||||
X18662500Y-15050000D03*
|
||||
X18662500Y-16010000D03*
|
||||
%TD*%
|
||||
D20*
|
||||
%TO.C,R7*%
|
||||
X23500000Y-15325000D03*
|
||||
X25150000Y-15325000D03*
|
||||
%TD*%
|
||||
D21*
|
||||
%TO.C,U1*%
|
||||
X35500000Y-30745000D03*
|
||||
X35500000Y-33025000D03*
|
||||
D22*
|
||||
X40125000Y-31500000D03*
|
||||
X40125000Y-34550000D03*
|
||||
X43475000Y-31500000D03*
|
||||
X43475000Y-34550000D03*
|
||||
D21*
|
||||
X35500000Y-35305000D03*
|
||||
%TD*%
|
||||
D23*
|
||||
%TO.C,C1*%
|
||||
X42875000Y-14100000D03*
|
||||
X39925000Y-14100000D03*
|
||||
%TD*%
|
||||
%TO.C,C11*%
|
||||
X10100000Y-13800000D03*
|
||||
X7150000Y-13800000D03*
|
||||
%TD*%
|
||||
D24*
|
||||
%TO.C,D10*%
|
||||
X26550000Y-17250000D03*
|
||||
X23050000Y-17250000D03*
|
||||
%TD*%
|
||||
D20*
|
||||
%TO.C,R12*%
|
||||
X7175000Y-11900000D03*
|
||||
X8825000Y-11900000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,R11*%
|
||||
X6450000Y-28600000D03*
|
||||
X4800000Y-28600000D03*
|
||||
%TD*%
|
||||
D25*
|
||||
%TO.C,R3*%
|
||||
X32587500Y-13775000D03*
|
||||
X34412500Y-13775000D03*
|
||||
%TD*%
|
||||
D26*
|
||||
%TO.C,C9*%
|
||||
X22968236Y-33385000D03*
|
||||
X23928236Y-33385000D03*
|
||||
%TD*%
|
||||
D18*
|
||||
%TO.C,D8*%
|
||||
X28600000Y-34700000D03*
|
||||
X28600000Y-36600000D03*
|
||||
X30875000Y-35650000D03*
|
||||
%TD*%
|
||||
D27*
|
||||
%TO.C,U2*%
|
||||
X23278236Y-31950000D03*
|
||||
X23278236Y-30680000D03*
|
||||
X23278236Y-29410000D03*
|
||||
X23278236Y-28140000D03*
|
||||
X23278236Y-26870000D03*
|
||||
X23278236Y-25600000D03*
|
||||
X23278236Y-24330000D03*
|
||||
X23278236Y-23060000D03*
|
||||
X23278236Y-21790000D03*
|
||||
X23278236Y-20520000D03*
|
||||
X13978236Y-20520000D03*
|
||||
X13978236Y-21790000D03*
|
||||
X13978236Y-23060000D03*
|
||||
X13978236Y-24330000D03*
|
||||
X13978236Y-25600000D03*
|
||||
X13978236Y-26870000D03*
|
||||
X13978236Y-28140000D03*
|
||||
X13978236Y-29410000D03*
|
||||
X13978236Y-30680000D03*
|
||||
X13978236Y-31950000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,R13*%
|
||||
X4050000Y-4600000D03*
|
||||
X2400000Y-4600000D03*
|
||||
%TD*%
|
||||
D17*
|
||||
%TO.C,D1*%
|
||||
X45400000Y-14600000D03*
|
||||
X49400000Y-14600000D03*
|
||||
%TD*%
|
||||
D12*
|
||||
%TO.C,C2*%
|
||||
X41450000Y-25800000D03*
|
||||
X44400000Y-25800000D03*
|
||||
%TD*%
|
||||
D18*
|
||||
%TO.C,D7*%
|
||||
X25600000Y-24100000D03*
|
||||
X25600000Y-26000000D03*
|
||||
X27875000Y-25050000D03*
|
||||
%TD*%
|
||||
D28*
|
||||
%TO.C,C7*%
|
||||
X33000000Y-32200000D03*
|
||||
X33000000Y-29250000D03*
|
||||
%TD*%
|
||||
D14*
|
||||
%TO.C,C6*%
|
||||
X35350000Y-37300000D03*
|
||||
X36900000Y-37300000D03*
|
||||
%TD*%
|
||||
D10*
|
||||
%TO.C,R4*%
|
||||
X36212500Y-17300000D03*
|
||||
X36212500Y-15650000D03*
|
||||
%TD*%
|
||||
D18*
|
||||
%TO.C,U3*%
|
||||
X14925000Y-15100000D03*
|
||||
X14925000Y-16050000D03*
|
||||
X14925000Y-17000000D03*
|
||||
X17200000Y-17000000D03*
|
||||
X17200000Y-15100000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,R10*%
|
||||
X14984118Y-18700000D03*
|
||||
X13334118Y-18700000D03*
|
||||
%TD*%
|
||||
%TO.C,R5*%
|
||||
X14850000Y-13440331D03*
|
||||
X13200000Y-13440331D03*
|
||||
%TD*%
|
||||
D29*
|
||||
%TO.C,C8*%
|
||||
X33000000Y-33900000D03*
|
||||
X33000000Y-36850000D03*
|
||||
%TD*%
|
||||
D30*
|
||||
%TO.C,D3*%
|
||||
X49395000Y-6609669D03*
|
||||
X49395000Y-10609669D03*
|
||||
%TD*%
|
||||
D28*
|
||||
%TO.C,C12*%
|
||||
X3200000Y-9150000D03*
|
||||
X3200000Y-6200000D03*
|
||||
%TD*%
|
||||
D15*
|
||||
%TO.C,R1*%
|
||||
X34412500Y-17400000D03*
|
||||
X34412500Y-15575000D03*
|
||||
%TD*%
|
||||
D28*
|
||||
%TO.C,C4*%
|
||||
X39400000Y-28400000D03*
|
||||
X39400000Y-25450000D03*
|
||||
%TD*%
|
||||
D20*
|
||||
%TO.C,R8*%
|
||||
X23500000Y-13825000D03*
|
||||
X25150000Y-13825000D03*
|
||||
%TD*%
|
||||
M02*
|
@ -0,0 +1,93 @@
|
||||
%TF.GenerationSoftware,KiCad,Pcbnew,7.0.7-7.0.7~ubuntu22.04.1*%
|
||||
%TF.CreationDate,2023-09-02T15:09:26-04:00*%
|
||||
%TF.ProjectId,avclan-mockingboard-rounded,6176636c-616e-42d6-9d6f-636b696e6762,rev?*%
|
||||
%TF.SameCoordinates,Original*%
|
||||
%TF.FileFunction,Legend,Bot*%
|
||||
%TF.FilePolarity,Positive*%
|
||||
%FSLAX46Y46*%
|
||||
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
|
||||
G04 Created by KiCad (PCBNEW 7.0.7-7.0.7~ubuntu22.04.1) date 2023-09-02 15:09:26*
|
||||
%MOMM*%
|
||||
%LPD*%
|
||||
G01*
|
||||
G04 APERTURE LIST*
|
||||
G04 Aperture macros list*
|
||||
%AMRoundRect*
|
||||
0 Rectangle with rounded corners*
|
||||
0 $1 Rounding radius*
|
||||
0 $2 $3 $4 $5 $6 $7 $8 $9 X,Y pos of 4 corners*
|
||||
0 Add a 4 corners polygon primitive as box body*
|
||||
4,1,4,$2,$3,$4,$5,$6,$7,$8,$9,$2,$3,0*
|
||||
0 Add four circle primitives for the rounded corners*
|
||||
1,1,$1+$1,$2,$3*
|
||||
1,1,$1+$1,$4,$5*
|
||||
1,1,$1+$1,$6,$7*
|
||||
1,1,$1+$1,$8,$9*
|
||||
0 Add four rect primitives between the rounded corners*
|
||||
20,1,$1+$1,$2,$3,$4,$5,0*
|
||||
20,1,$1+$1,$4,$5,$6,$7,0*
|
||||
20,1,$1+$1,$6,$7,$8,$9,0*
|
||||
20,1,$1+$1,$8,$9,$2,$3,0*%
|
||||
G04 Aperture macros list end*
|
||||
%ADD10C,2.000000*%
|
||||
%ADD11R,1.700000X1.700000*%
|
||||
%ADD12O,1.700000X1.700000*%
|
||||
%ADD13C,1.100000*%
|
||||
%ADD14RoundRect,0.102000X-0.825000X0.825000X-0.825000X-0.825000X0.825000X-0.825000X0.825000X0.825000X0*%
|
||||
%ADD15C,1.854000*%
|
||||
%ADD16C,4.000000*%
|
||||
%ADD17R,1.600000X1.600000*%
|
||||
%ADD18C,1.600000*%
|
||||
G04 APERTURE END LIST*
|
||||
%LPC*%
|
||||
D10*
|
||||
%TO.C,RV1*%
|
||||
X49175000Y-22400000D03*
|
||||
X47025000Y-32400000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,J4*%
|
||||
X17500000Y-36200000D03*
|
||||
D12*
|
||||
X14960000Y-36200000D03*
|
||||
X12420000Y-36200000D03*
|
||||
X9880000Y-36200000D03*
|
||||
X7340000Y-36200000D03*
|
||||
X4800000Y-36200000D03*
|
||||
%TD*%
|
||||
D13*
|
||||
%TO.C,J1*%
|
||||
X9500000Y-2750000D03*
|
||||
X9500000Y-7750000D03*
|
||||
D14*
|
||||
X14300000Y-2750000D03*
|
||||
D15*
|
||||
X5900000Y-7750000D03*
|
||||
X11100000Y-10850000D03*
|
||||
X5000000Y-2750000D03*
|
||||
%TD*%
|
||||
D16*
|
||||
%TO.C,J2*%
|
||||
X44055000Y-9020000D03*
|
||||
X19055000Y-9020000D03*
|
||||
D17*
|
||||
X37095000Y-10440000D03*
|
||||
D18*
|
||||
X34325000Y-10440000D03*
|
||||
X31555000Y-10440000D03*
|
||||
X28785000Y-10440000D03*
|
||||
X26015000Y-10440000D03*
|
||||
X35710000Y-7600000D03*
|
||||
X32940000Y-7600000D03*
|
||||
X30170000Y-7600000D03*
|
||||
X27400000Y-7600000D03*
|
||||
%TD*%
|
||||
D11*
|
||||
%TO.C,J3*%
|
||||
X9850000Y-31200000D03*
|
||||
D12*
|
||||
X7310000Y-31200000D03*
|
||||
X4770000Y-31200000D03*
|
||||
%TD*%
|
||||
%LPD*%
|
||||
M02*
|
3654
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-SilkTop.gbr
Normal file
3654
hardware/jlcpcb/gerber/avclan-mockingboard-rounded-SilkTop.gbr
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,14 @@
|
||||
%TF.GenerationSoftware,KiCad,Pcbnew,7.0.7-7.0.7~ubuntu22.04.1*%
|
||||
%TF.CreationDate,2023-09-02T15:09:26-04:00*%
|
||||
%TF.ProjectId,avclan-mockingboard-rounded,6176636c-616e-42d6-9d6f-636b696e6762,rev?*%
|
||||
%TF.SameCoordinates,Original*%
|
||||
%TF.FileFunction,Other,Comment*%
|
||||
%FSLAX46Y46*%
|
||||
G04 Gerber Fmt 4.6, Leading zero omitted, Abs format (unit mm)*
|
||||
G04 Created by KiCad (PCBNEW 7.0.7-7.0.7~ubuntu22.04.1) date 2023-09-02 15:09:26*
|
||||
%MOMM*%
|
||||
%LPD*%
|
||||
G01*
|
||||
G04 APERTURE LIST*
|
||||
G04 APERTURE END LIST*
|
||||
M02*
|
@ -0,0 +1,19 @@
|
||||
Comment,Designator,Footprint,LCSC
|
||||
SM6T15A,D4,D_SMB,C118275
|
||||
"BAT54A,215",D7,SOT-23-3,C130910
|
||||
10u 50V,"C2,C3,C4",C_1206_3216Metric,C13585
|
||||
SS210,"D1,D2",D_SMA,C14996
|
||||
1u 50V,"C5,C6",C_0603_1608Metric,C15849
|
||||
10k,"R4,R5,R6,R7,R8,R9",R_0603_1608Metric,C17414
|
||||
120,R3,R_0805_2012Metric,C17437
|
||||
15,"R12,R13",R_0603_1608Metric,C22810
|
||||
KT-0603R,D9,LED_0603_1608Metric,C2286
|
||||
470,"R10,R11",R_0603_1608Metric,C23179
|
||||
4u7,"C10,C9",C_0402_1005Metric,C23733
|
||||
180,"R1,R2",R_0805_2012Metric,C25270
|
||||
1SMAF4742A,D3,D_SMA,C3013762
|
||||
"BAT54C,215","D6,D8",SOT-23-3,C37704
|
||||
74LVC1G66,U3,SOT-23-5,C5375974
|
||||
3V3,D10,D_MiniMELF,C8056
|
||||
1n 100V,C1,C_1206_3216Metric,C9196
|
||||
47u 10V,"C11,C12,C7,C8",C_1206_3216Metric,C96123
|
|
@ -0,0 +1,36 @@
|
||||
Designator,Val,Package,Mid X,Mid Y,Rotation,Layer
|
||||
C1,1n 100V,C_1206_3216Metric,41.4,-14.1,180,top
|
||||
C2,10u 50V,C_1206_3216Metric,42.925,-25.8,0,top
|
||||
C3,10u 50V,C_1206_3216Metric,42.925,-28.1,0,top
|
||||
C4,10u 50V,C_1206_3216Metric,39.4,-26.925,90,top
|
||||
C5,1u 50V,C_0603_1608Metric,36.675,-28.7,0,top
|
||||
C6,1u 50V,C_0603_1608Metric,36.125,-37.3,0,top
|
||||
C7,47u 10V,C_1206_3216Metric,33,-30.725,90,top
|
||||
C8,47u 10V,C_1206_3216Metric,33,-35.375,-90,top
|
||||
C9,4u7,C_0402_1005Metric,23.448236,-33.385,0,top
|
||||
C10,4u7,C_0402_1005Metric,18.6625,-15.53,-90,top
|
||||
C11,47u 10V,C_1206_3216Metric,8.625,-13.8,180,top
|
||||
C12,47u 10V,C_1206_3216Metric,3.2,-7.675,90,top
|
||||
D1,SS210,D_SMA,47.4,-14.6,0,top
|
||||
D2,SS210,D_SMA,41.7,-18.2,0,top
|
||||
D3,1SMAF4742A,D_SMA,49.395,-8.609669,-90,top
|
||||
D4,SM6T15A,D_SMB,41.55,-22.3,0,top
|
||||
D6,"BAT54C,215",SOT-23-3,26.8,-30,180,top
|
||||
D7,"BAT54A,215",SOT-23-3,26.7375,-25.05,180,top
|
||||
D8,"BAT54C,215",SOT-23-3,29.7375,-35.65,180,top
|
||||
D9,KT-0603R,LED_0603_1608Metric,17.171618,-18.7,0,top
|
||||
D10,3V3,D_MiniMELF,24.8,-17.25,180,top
|
||||
R1,180,R_0805_2012Metric,34.4125,-16.4875,90,top
|
||||
R2,180,R_0805_2012Metric,32.5125,-16.4875,90,top
|
||||
R3,120,R_0805_2012Metric,33.5,-13.775,0,top
|
||||
R4,10k,R_0603_1608Metric,36.2125,-16.475,90,top
|
||||
R5,10k,R_0603_1608Metric,14.025,-13.440331,180,top
|
||||
R6,10k,R_0603_1608Metric,14.025,-11.950331,180,top
|
||||
R7,10k,R_0603_1608Metric,24.325,-15.325,0,top
|
||||
R8,10k,R_0603_1608Metric,24.325,-13.825,0,top
|
||||
R9,10k,R_0603_1608Metric,26.55,-14.6,90,top
|
||||
R10,470,R_0603_1608Metric,14.159118,-18.7,180,top
|
||||
R11,470,R_0603_1608Metric,5.625,-28.6,180,top
|
||||
R12,15,R_0603_1608Metric,8,-11.9,0,top
|
||||
R13,15,R_0603_1608Metric,3.225,-4.6,180,top
|
||||
U3,74LVC1G66,SOT-23-5,16.0625,-16.05,180,top
|
|
Binary file not shown.
36
hardware/local.kicad_sym
Normal file
36
hardware/local.kicad_sym
Normal file
@ -0,0 +1,36 @@
|
||||
(kicad_symbol_lib (version 20220914) (generator kicad_symbol_editor)
|
||||
(symbol "XC6701" (in_bom yes) (on_board yes)
|
||||
(property "Reference" "U" (at 0 5.08 0)
|
||||
(effects (font (size 1.27 1.27)))
|
||||
)
|
||||
(property "Value" "" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)))
|
||||
)
|
||||
(property "Footprint" "" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(property "Datasheet" "" (at 0 0 0)
|
||||
(effects (font (size 1.27 1.27)) hide)
|
||||
)
|
||||
(symbol "XC6701_0_0"
|
||||
(pin power_in line (at -8.89 1.27 0) (length 2.54)
|
||||
(name "Vin" (effects (font (size 1.27 1.27))))
|
||||
(number "1" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin power_in line (at 0 -6.35 90) (length 2.54)
|
||||
(name "GND" (effects (font (size 1.27 1.27))))
|
||||
(number "2" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
(pin power_out line (at 8.89 1.27 180) (length 2.54)
|
||||
(name "Vout" (effects (font (size 1.27 1.27))))
|
||||
(number "3" (effects (font (size 1.27 1.27))))
|
||||
)
|
||||
)
|
||||
(symbol "XC6701_1_1"
|
||||
(rectangle (start -6.35 3.81) (end 6.35 -3.81)
|
||||
(stroke (width 0) (type default))
|
||||
(fill (type background))
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
BIN
hardware/mockingboard-logo.png
Normal file
BIN
hardware/mockingboard-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 189 KiB |
BIN
hardware/pcbv1.png
Normal file
BIN
hardware/pcbv1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 174 KiB |
5
hardware/sym-lib-table
Normal file
5
hardware/sym-lib-table
Normal file
@ -0,0 +1,5 @@
|
||||
(sym_lib_table
|
||||
(version 7)
|
||||
(lib (name "local")(type "KiCad")(uri "${KIPRJMOD}/local.kicad_sym")(options "")(descr ""))
|
||||
(lib (name "audio")(type "Legacy")(uri "${KIPRJMOD}/SJ-43514.lib")(options "")(descr ""))
|
||||
)
|
1578
screenlog.0
1578
screenlog.0
File diff suppressed because it is too large
Load Diff
1
scripts/install-toolchain.sh
Normal file
1
scripts/install-toolchain.sh
Normal file
@ -0,0 +1 @@
|
||||
sudo apk add make cmake avrdude avr-libc gcc-avr
|
251
scripts/packet-analysis/Manifest.toml
Normal file
251
scripts/packet-analysis/Manifest.toml
Normal file
@ -0,0 +1,251 @@
|
||||
# This file is machine-generated - editing it directly is not advised
|
||||
|
||||
julia_version = "1.10.0"
|
||||
manifest_format = "2.0"
|
||||
project_hash = "2d299f8e3abb5302e3c8ed5120acc4d9928016b1"
|
||||
|
||||
[[deps.ArgTools]]
|
||||
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
|
||||
version = "1.1.1"
|
||||
|
||||
[[deps.Artifacts]]
|
||||
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
|
||||
|
||||
[[deps.Base64]]
|
||||
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
||||
|
||||
[[deps.Compat]]
|
||||
deps = ["UUIDs"]
|
||||
git-tree-sha1 = "886826d76ea9e72b35fcd000e535588f7b60f21d"
|
||||
uuid = "34da2185-b29b-5c13-b0c7-acf172513d20"
|
||||
version = "4.10.1"
|
||||
|
||||
[deps.Compat.extensions]
|
||||
CompatLinearAlgebraExt = "LinearAlgebra"
|
||||
|
||||
[deps.Compat.weakdeps]
|
||||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
||||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
|
||||
|
||||
[[deps.Dates]]
|
||||
deps = ["Printf"]
|
||||
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
||||
|
||||
[[deps.Downloads]]
|
||||
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
|
||||
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
|
||||
version = "1.6.0"
|
||||
|
||||
[[deps.ExprTools]]
|
||||
git-tree-sha1 = "27415f162e6028e81c72b82ef756bf321213b6ec"
|
||||
uuid = "e2ba6199-217a-4e67-a87a-7c52f15ade04"
|
||||
version = "0.1.10"
|
||||
|
||||
[[deps.FileWatching]]
|
||||
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
|
||||
|
||||
[[deps.InlineStrings]]
|
||||
deps = ["Parsers"]
|
||||
git-tree-sha1 = "9cc2baf75c6d09f9da536ddf58eb2f29dedaf461"
|
||||
uuid = "842dd82b-1e85-43dc-bf29-5d0ee9dffc48"
|
||||
version = "1.4.0"
|
||||
|
||||
[[deps.InteractiveUtils]]
|
||||
deps = ["Markdown"]
|
||||
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
|
||||
|
||||
[[deps.JLLWrappers]]
|
||||
deps = ["Artifacts", "Preferences"]
|
||||
git-tree-sha1 = "7e5d6779a1e09a36db2a7b6cff50942a0a7d0fca"
|
||||
uuid = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
|
||||
version = "1.5.0"
|
||||
|
||||
[[deps.LazyArtifacts]]
|
||||
deps = ["Artifacts", "Pkg"]
|
||||
uuid = "4af54fe1-eca0-43a8-85a7-787d91b784e3"
|
||||
|
||||
[[deps.LibCURL]]
|
||||
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
|
||||
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
|
||||
version = "0.6.4"
|
||||
|
||||
[[deps.LibCURL_jll]]
|
||||
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
|
||||
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
|
||||
version = "8.4.0+0"
|
||||
|
||||
[[deps.LibGit2]]
|
||||
deps = ["Base64", "LibGit2_jll", "NetworkOptions", "Printf", "SHA"]
|
||||
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
|
||||
|
||||
[[deps.LibGit2_jll]]
|
||||
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll"]
|
||||
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5"
|
||||
version = "1.6.4+0"
|
||||
|
||||
[[deps.LibSSH2_jll]]
|
||||
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
|
||||
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
|
||||
version = "1.11.0+1"
|
||||
|
||||
[[deps.LibSerialPort]]
|
||||
deps = ["Libdl", "libserialport_jll"]
|
||||
git-tree-sha1 = "69403284a6217f6e60e76553032a103893b7d910"
|
||||
uuid = "a05a14c7-6e3b-5ba9-90a2-45558833e1df"
|
||||
version = "0.5.2"
|
||||
|
||||
[[deps.Libdl]]
|
||||
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
|
||||
|
||||
[[deps.Logging]]
|
||||
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
|
||||
|
||||
[[deps.Markdown]]
|
||||
deps = ["Base64"]
|
||||
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
|
||||
|
||||
[[deps.MbedTLS_jll]]
|
||||
deps = ["Artifacts", "Libdl"]
|
||||
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
|
||||
version = "2.28.2+1"
|
||||
|
||||
[[deps.Mmap]]
|
||||
uuid = "a63ad114-7e13-5084-954f-fe012c677804"
|
||||
|
||||
[[deps.Mocking]]
|
||||
deps = ["Compat", "ExprTools"]
|
||||
git-tree-sha1 = "4cc0c5a83933648b615c36c2b956d94fda70641e"
|
||||
uuid = "78c3b35d-d492-501b-9361-3d52fe80e533"
|
||||
version = "0.7.7"
|
||||
|
||||
[[deps.MozillaCACerts_jll]]
|
||||
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
|
||||
version = "2023.1.10"
|
||||
|
||||
[[deps.NetworkOptions]]
|
||||
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
|
||||
version = "1.2.0"
|
||||
|
||||
[[deps.Parsers]]
|
||||
deps = ["Dates", "PrecompileTools", "UUIDs"]
|
||||
git-tree-sha1 = "8489905bcdbcfac64d1daa51ca07c0d8f0283821"
|
||||
uuid = "69de0a69-1ddd-5017-9359-2bf0b02dc9f0"
|
||||
version = "2.8.1"
|
||||
|
||||
[[deps.PcapTools]]
|
||||
deps = ["Dates", "Mmap", "UnixTimes", "UnsafeArrays"]
|
||||
path = "dev/PcapTools"
|
||||
uuid = "222fe7e8-3f39-464a-bf97-d9bbb753f246"
|
||||
version = "1.1.1"
|
||||
|
||||
[[deps.Pkg]]
|
||||
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Serialization", "TOML", "Tar", "UUIDs", "p7zip_jll"]
|
||||
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
|
||||
version = "1.10.0"
|
||||
|
||||
[[deps.PrecompileTools]]
|
||||
deps = ["Preferences"]
|
||||
git-tree-sha1 = "03b4c25b43cb84cee5c90aa9b5ea0a78fd848d2f"
|
||||
uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
|
||||
version = "1.2.0"
|
||||
|
||||
[[deps.Preferences]]
|
||||
deps = ["TOML"]
|
||||
git-tree-sha1 = "00805cd429dcb4870060ff49ef443486c262e38e"
|
||||
uuid = "21216c6a-2e73-6563-6e65-726566657250"
|
||||
version = "1.4.1"
|
||||
|
||||
[[deps.Printf]]
|
||||
deps = ["Unicode"]
|
||||
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
|
||||
|
||||
[[deps.REPL]]
|
||||
deps = ["InteractiveUtils", "Markdown", "Sockets", "Unicode"]
|
||||
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
|
||||
|
||||
[[deps.Random]]
|
||||
deps = ["SHA"]
|
||||
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
|
||||
|
||||
[[deps.SHA]]
|
||||
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
|
||||
version = "0.7.0"
|
||||
|
||||
[[deps.Scratch]]
|
||||
deps = ["Dates"]
|
||||
git-tree-sha1 = "3bac05bc7e74a75fd9cba4295cde4045d9fe2386"
|
||||
uuid = "6c6a2e73-6563-6170-7368-637461726353"
|
||||
version = "1.2.1"
|
||||
|
||||
[[deps.Serialization]]
|
||||
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
|
||||
|
||||
[[deps.Sockets]]
|
||||
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
|
||||
|
||||
[[deps.TOML]]
|
||||
deps = ["Dates"]
|
||||
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
|
||||
version = "1.0.3"
|
||||
|
||||
[[deps.TZJData]]
|
||||
deps = ["Artifacts"]
|
||||
git-tree-sha1 = "d39314cdbaf5b90a047db33858626f8d1cc973e1"
|
||||
uuid = "dc5dba14-91b3-4cab-a142-028a31da12f7"
|
||||
version = "1.0.0+2023c"
|
||||
|
||||
[[deps.Tar]]
|
||||
deps = ["ArgTools", "SHA"]
|
||||
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
|
||||
version = "1.10.0"
|
||||
|
||||
[[deps.TimeZones]]
|
||||
deps = ["Artifacts", "Dates", "Downloads", "InlineStrings", "LazyArtifacts", "Mocking", "Printf", "Scratch", "TZJData", "Unicode", "p7zip_jll"]
|
||||
git-tree-sha1 = "89e64d61ef3cd9e80f7fc12b7d13db2d75a23c03"
|
||||
uuid = "f269a46b-ccf7-5d73-abea-4c690281aa53"
|
||||
version = "1.13.0"
|
||||
|
||||
[deps.TimeZones.extensions]
|
||||
TimeZonesRecipesBaseExt = "RecipesBase"
|
||||
|
||||
[deps.TimeZones.weakdeps]
|
||||
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
|
||||
|
||||
[[deps.UUIDs]]
|
||||
deps = ["Random", "SHA"]
|
||||
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
|
||||
|
||||
[[deps.Unicode]]
|
||||
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
|
||||
|
||||
[[deps.UnixTimes]]
|
||||
deps = ["Dates", "TimeZones"]
|
||||
git-tree-sha1 = "406de9a6ee22f2030477ed7a50455aef3038bd4b"
|
||||
uuid = "ab1a18e7-b408-4913-896c-624bb82ed7f4"
|
||||
version = "1.3.0"
|
||||
|
||||
[[deps.UnsafeArrays]]
|
||||
git-tree-sha1 = "e7f1c67ba99ac6df440de191fa4d5cbfcbdddcd1"
|
||||
uuid = "c4a57d5a-5b31-53a6-b365-19f8c011fbd6"
|
||||
version = "1.0.5"
|
||||
|
||||
[[deps.Zlib_jll]]
|
||||
deps = ["Libdl"]
|
||||
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
|
||||
version = "1.2.13+1"
|
||||
|
||||
[[deps.libserialport_jll]]
|
||||
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
|
||||
git-tree-sha1 = "aacc5af8e8ba0b48a6feadac7afd4bca5d4e98d8"
|
||||
uuid = "220460dc-b50e-5ed0-8176-09b0fd261e90"
|
||||
version = "0.1.3+0"
|
||||
|
||||
[[deps.nghttp2_jll]]
|
||||
deps = ["Artifacts", "Libdl"]
|
||||
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
|
||||
version = "1.52.0+1"
|
||||
|
||||
[[deps.p7zip_jll]]
|
||||
deps = ["Artifacts", "Libdl"]
|
||||
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
|
||||
version = "17.4.0+2"
|
10
scripts/packet-analysis/Project.toml
Normal file
10
scripts/packet-analysis/Project.toml
Normal file
@ -0,0 +1,10 @@
|
||||
name = "AVCLANPipe"
|
||||
uuid = "bfacebfd-1bd5-49e7-81bd-5edd8f4074de"
|
||||
authors = ["Allen Hill <allenofthehills@gmail.com>"]
|
||||
version = "0.1.0"
|
||||
|
||||
[deps]
|
||||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
||||
LibSerialPort = "a05a14c7-6e3b-5ba9-90a2-45558833e1df"
|
||||
PcapTools = "222fe7e8-3f39-464a-bf97-d9bbb753f246"
|
||||
UnixTimes = "ab1a18e7-b408-4913-896c-624bb82ed7f4"
|
11
scripts/packet-analysis/README.md
Normal file
11
scripts/packet-analysis/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
# Packet analysis with Wireshark
|
||||
|
||||
- Install the Lua IEBUS/AVCLAN packet dissector to the Wireshark Lua Plugins folder
|
||||
- Look in Help > About Wireshark dialog, Folders tab, "Personal Lua Plugins". It was `~/.local/lib/wireshark/plugins` for me, but it didn't exist until I manually created it.
|
||||
- Copy or link `avclan_plugin.lua` to the Wireshark Lua Pluginds folder
|
||||
- Linking is more convenient if modifying/developing the dissector
|
||||
`ln -s $(pwd)/avclan_plugin.lua ~/.local/lib/wireshark/plugins/avclan_plugin.lua`
|
||||
- Install Julia and needed packages (I recommend using [juliaup](https://github.com/JuliaLang/juliaup) or an official binary from the Julialang website. Binaries from your distribution are typically out of date and/or built incorrectly.)
|
||||
- From this folder, start Julia with the local project environment using `julia --project=@.`
|
||||
- Run `] instantiate` to install the necessary Julia packages
|
||||
- Run `julia src/pipepackets.jl | wireshark -k -i -` to pipe packets logged by the Mockingboard over serial into Wireshark. If the Lua dissector is installed correctly, the packets should be correctly recognized and dissected as IEBUS/AVCLAN packets
|
583
scripts/packet-analysis/avclan_plugin.lua
Normal file
583
scripts/packet-analysis/avclan_plugin.lua
Normal file
@ -0,0 +1,583 @@
|
||||
--[[
|
||||
Copyright (C) 2023 Allen Hill <allenofthehills@gmail.com>
|
||||
|
||||
Portions of the following are based on code from libsigrokdecode PR that is
|
||||
copyright (C) 2023 Maciej Grela <enki@fsck.pl>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
--]]
|
||||
|
||||
local iebusproto = Proto("iebus", "IEBus protocol")
|
||||
|
||||
local f_broadcast = ProtoField.bool("iebus.broadcast", "Broadcast", base.NONE, { [1] = "false", [2] = "true" })
|
||||
local f_controller_addr = ProtoField.uint16("iebus.controller", "Controller address", base.HEX, nil, 0x0FFF)
|
||||
local f_peripheral_addr = ProtoField.uint16("iebus.peripheral", "Peripheral address", base.HEX, nil, 0x0FFF)
|
||||
local f_control = ProtoField.uint8("iebus.control", "Control field", base.HEX)
|
||||
local f_length = ProtoField.uint8("iebus.length", "Data length", base.DEC)
|
||||
local f_data = ProtoField.bytes("iebus.data", "Frame data", base.SPACE)
|
||||
|
||||
iebusproto.fields = {
|
||||
f_broadcast,
|
||||
f_controller_addr,
|
||||
f_peripheral_addr,
|
||||
f_control,
|
||||
f_length,
|
||||
f_data
|
||||
}
|
||||
|
||||
local controlbits = {
|
||||
[0x0] = "READ PERIPH STATUS (SSR)",
|
||||
[0x1] = "UNDEFINED",
|
||||
[0x2] = "UNDEFINED",
|
||||
[0x3] = "READ & LOCK DATA",
|
||||
[0x4] = "READ LOCK ADDR (lo8)",
|
||||
[0x5] = "READ LOCK ADDR (hi4)",
|
||||
[0x6] = "READ & UNLOCK PERIPH STATUS (SSR)",
|
||||
[0x7] = "READ DATA",
|
||||
[0x8] = "UNDEFINED",
|
||||
[0x9] = "UNDEFINED",
|
||||
[0xA] = "WRITE & LOCK CMD",
|
||||
[0xB] = "WRITE & LOCK DATA",
|
||||
[0xC] = "UNDEFINED",
|
||||
[0xD] = "UNDEFINED",
|
||||
[0xE] = "WRITE CMD",
|
||||
[0xF] = "WRITE DATA"
|
||||
}
|
||||
|
||||
local periphstatusbits = {
|
||||
[0] = "TX BUFFER EMPTY",
|
||||
[1] = "RX BUFFER EMPTY",
|
||||
[2] = "UNIT LOCKED",
|
||||
[4] = "TX ENABLED",
|
||||
[6] = "IEBUS MODE 1",
|
||||
[7] = "IEBUS MODE 2",
|
||||
}
|
||||
|
||||
-- Expert info for unknown packet types, set as group PI_UNDECODED, severity PI_NOTE or PI_WARN
|
||||
-- Expert info for LAN Check [0x3, SW_ID, 0x01, 0x20] as severity PI_CHAT
|
||||
|
||||
function iebusproto.dissector(buffer, pinfo, tree)
|
||||
length = buffer:len()
|
||||
if length == 0 then return end
|
||||
|
||||
pinfo.cols.protocol = iebusproto.name
|
||||
|
||||
local subtree = tree:add(iebusproto, buffer(), "IEBus frame")
|
||||
|
||||
subtree:add_le(f_broadcast, buffer(0,1))
|
||||
pinfo.cols.src = buffer(1,2):bytes():tohex():sub(2,-1)
|
||||
pinfo.cols.dst = buffer(3,2):bytes():tohex():sub(2,-1)
|
||||
|
||||
local control_item, control = subtree:add_packet_field(f_control, buffer(5,1), ENC_LITTLE_ENDIAN)
|
||||
-- print("control val" .. control)
|
||||
control_item:append_text(" (" .. controlbits[buffer(5,1):uint()] .. ")")
|
||||
|
||||
local _, datalen = subtree:add_packet_field(f_length, buffer(6,1), ENC_LITTLE_ENDIAN)
|
||||
|
||||
local data = subtree:add(iebusproto, buffer(), "IEBus message")
|
||||
data:add(f_data, buffer(7, datalen))
|
||||
|
||||
end
|
||||
|
||||
local udlt = DissectorTable.get("wtap_encap")
|
||||
udlt:add(wtap.USER15, iebusproto)
|
||||
|
||||
local avclanproto = Proto("avclan", "AVCLAN protocol")
|
||||
|
||||
local known_devices_names = {
|
||||
["COMM_CTRL"] = 0x01,
|
||||
["COMMUNICATION v1"] = 0x11,
|
||||
["COMMUNICATION v2"] = 0x12,
|
||||
["SW"] = 0x21,
|
||||
["SW_NAME"] = 0x23,
|
||||
["SW_CONVERTING"] = 0x24,
|
||||
["CMD_SW"] = 0x25,
|
||||
["STATUS"] = 0x31,
|
||||
["BEEP_HU"] = 0x28,
|
||||
["BEEP_SPEAKERS"] = 0x29,
|
||||
["FRONT_PSNG_MONITOR"] = 0x34,
|
||||
["CD_CHANGER2"] = 0x43,
|
||||
["BLUETOOTH_TEL"] = 0x55,
|
||||
["INFO_DRAWING"] = 0x56,
|
||||
["NAV_ECU"] = 0x58,
|
||||
["CAMERA"] = 0x5C,
|
||||
["CLIMATE_DRAWING"] = 0x5D,
|
||||
["AUDIO_DRAWING"] = 0x5E,
|
||||
["TRIP_INFO_DRAWING"] = 0x5F,
|
||||
["TUNER"] = 0x60,
|
||||
["TAPE_DECK"] = 0x61,
|
||||
["CD"] = 0x62,
|
||||
["CD_CHANGER"] = 0x63,
|
||||
["AUDIO_AMP"] = 0x74,
|
||||
["GPS"] = 0x80,
|
||||
["VOICE_CTRL"] = 0x85,
|
||||
["CLIMATE_CTRL_DEV"] = 0xE0,
|
||||
["TRIP_INFO"] = 0xE5,
|
||||
}
|
||||
|
||||
local known_devices = {
|
||||
[0x01] = "COMM_CTRL",
|
||||
[0x11] = "COMMUNICATION v1",
|
||||
[0x12] = "COMMUNICATION v2",
|
||||
[0x21] = "SW",
|
||||
[0x23] = "SW_NAME",
|
||||
[0x24] = "SW_CONVERTING",
|
||||
[0x25] = "CMD_SW",
|
||||
[0x31] = "STATUS",
|
||||
[0x28] = "BEEP_HU",
|
||||
[0x29] = "BEEP_SPEAKERS",
|
||||
[0x34] = "FRONT_PSNG_MONITOR",
|
||||
[0x43] = "CD_CHANGER2",
|
||||
[0x55] = "BLUETOOTH_TEL",
|
||||
[0x56] = "INFO_DRAWING",
|
||||
[0x58] = "NAV_ECU",
|
||||
[0x5C] = "CAMERA",
|
||||
[0x5D] = "CLIMATE_DRAWING",
|
||||
[0x5E] = "AUDIO_DRAWING",
|
||||
[0x5F] = "TRIP_INFO_DRAWING",
|
||||
[0x60] = "TUNER",
|
||||
[0x61] = "TAPE_DECK",
|
||||
[0x62] = "CD",
|
||||
[0x63] = "CD_CHANGER",
|
||||
[0x74] = "AUDIO_AMP",
|
||||
[0x80] = "GPS",
|
||||
[0x85] = "VOICE_CTRL",
|
||||
[0xE0] = "CLIMATE_CTRL_DEV",
|
||||
[0xE5] = "TRIP_INFO",
|
||||
}
|
||||
|
||||
local f_from_device = ProtoField.uint8("avclan.from_device", "From device", base.HEX, known_devices)
|
||||
local f_to_device = ProtoField.uint8("avclan.to_device", "To device", base.HEX, known_devices)
|
||||
local f_active_device = ProtoField.uint8("avclan.active_device", "Active device", base.HEX, known_devices)
|
||||
|
||||
local known_actions_names = {
|
||||
-- LAN related
|
||||
["LIST_FUNCTIONS_REQ"] = 0x00,
|
||||
["LIST_FUNCTIONS_RESP"] = 0x10,
|
||||
["RESTART_LAN"] = 0x01,
|
||||
["LANCHECK_END_REQ"] = 0x08,
|
||||
["LANCHECK_END_RESP"] = 0x18,
|
||||
["LANCHECK_SCAN_REQ"] = 0x0a,
|
||||
["LANCHECK_SCAN_RESP"] = 0x1a,
|
||||
["LANCHECK_REQ"] = 0x0c,
|
||||
["LANCHECK_RESP"] = 0x1c,
|
||||
["PING_REQ"] = 0x20,
|
||||
["PING_RESP"] = 0x30,
|
||||
|
||||
-- Device switching
|
||||
["DISABLE_FUNCTION_REQ"] = 0x43,
|
||||
["DISABLE_FUNCTION_RESP"] = 0x53,
|
||||
["ENABLE_FUNCTION_REQ"] = 0x42,
|
||||
["ENABLE_FUNCTION_RESP"] = 0x52,
|
||||
|
||||
["ADVERTISE_FUNCTION"] = 0x45,
|
||||
["GENERAL_QUERY"] = 0x46,
|
||||
|
||||
-- Physical interface
|
||||
["EJECT"] = 0x80,
|
||||
["DISC_UP"] = 0x90,
|
||||
["DISC_DOWN"] = 0x91,
|
||||
["PWRVOL_KNOB_RIGHTHAND_TURN"] = 0x9c,
|
||||
["PWRVOL_KNOB_LEFTHAND_TURN"] = 0x9d,
|
||||
["TRACK_SEEK_UP"] = 0x94,
|
||||
["TRACK_SEEK_DOWN"] = 0x95,
|
||||
["CD_ENABLE_SCAN"] = 0xa6,
|
||||
["CD_DISABLE_SCAN"] = 0xa7,
|
||||
["CD_ENABLE_REPEAT"] = 0xa0,
|
||||
["CD_DISABLE_REPEAT"] = 0xa1,
|
||||
["CD_ENABLE_RANDOM"] = 0xb0,
|
||||
["CD_DISABLE_RANDOM"] = 0xb1,
|
||||
|
||||
-- CD functions
|
||||
-- Events
|
||||
["INSERTED_CD"] = 0x50,
|
||||
["REMOVED_CD"] = 0x51,
|
||||
|
||||
-- Requests
|
||||
["REQUEST_REPORT"] = 0xe0,
|
||||
["REQUEST_REPORT2"] = 0xe2,
|
||||
["REQUEST_LOADER2"] = 0xe4,
|
||||
["REQUEST_TRACK_NAME"] = 0xed,
|
||||
|
||||
-- Reports
|
||||
["REPORT"] = 0xf1,
|
||||
["REPORT2"] = 0xf2,
|
||||
["REPORT_LOADER"] = 0xf3,
|
||||
["REPORT_LOADER2"] = 0xf4,
|
||||
["REPORT_TOC"] = 0xf9,
|
||||
["REPORT_TRACK_NAME"] = 0xfd,
|
||||
}
|
||||
local known_actions = {
|
||||
-- LAN related
|
||||
[0x00] = "LIST_FUNCTIONS_REQ",
|
||||
[0x10] = "LIST_FUNCTIONS_RESP",
|
||||
[0x01] = "RESTART_LAN",
|
||||
[0x08] = "LANCHECK_END_REQ",
|
||||
[0x18] = "LANCHECK_END_RESP",
|
||||
[0x0a] = "LANCHECK_SCAN_REQ",
|
||||
[0x1a] = "LANCHECK_SCAN_RESP",
|
||||
[0x0c] = "LANCHECK_REQ",
|
||||
[0x1c] = "LANCHECK_RESP",
|
||||
[0x20] = "PING_REQ",
|
||||
[0x30] = "PING_RESP",
|
||||
|
||||
-- Used when HU is switching between Radio and CD
|
||||
[0x43] = "DISABLE_FUNCTION_REQ",
|
||||
[0x53] = "DISABLE_FUNCTION_RESP",
|
||||
[0x42] = "ENABLE_FUNCTION_REQ",
|
||||
[0x52] = "ENABLE_FUNCTION_RESP",
|
||||
|
||||
[0x45] = "ADVERTISE_FUNCTION",
|
||||
[0x46] = "GENERAL_QUERY",
|
||||
|
||||
-- Physical interface
|
||||
[0x80] = "EJECT",
|
||||
[0x90] = "DISC_UP",
|
||||
[0x91] = "DISC_DOWN",
|
||||
[0x9c] = "PWRVOL_KNOB_RIGHTHAND_TURN",
|
||||
[0x9d] = "PWRVOL_KNOB_LEFTHAND_TURN",
|
||||
[0x94] = "TRACK_SEEK_UP",
|
||||
[0x95] = "TRACK_SEEK_DOWN",
|
||||
[0xa6] = "CD_ENABLE_SCAN",
|
||||
[0xa7] = "CD_DISABLE_SCAN",
|
||||
[0xa0] = "CD_ENABLE_REPEAT",
|
||||
[0xa1] = "CD_DISABLE_REPEAT",
|
||||
[0xb0] = "CD_ENABLE_RANDOM",
|
||||
[0xb1] = "CD_DISABLE_RANDOM",
|
||||
|
||||
-- CD functions
|
||||
-- Events
|
||||
[0x50] = "INSERTED_CD",
|
||||
[0x51] = "REMOVED_CD",
|
||||
|
||||
-- Requests
|
||||
[0xe0] = "REQUEST_REPORT",
|
||||
[0xe2] = "REQUEST_REPORT2",
|
||||
[0xe4] = "REQUEST_LOADER2",
|
||||
[0xed] = "REQUEST_TRACK_NAME",
|
||||
|
||||
-- Reports
|
||||
[0xf1] = "REPORT",
|
||||
[0xf2] = "REPORT2",
|
||||
[0xf3] = "REPORT_LOADER",
|
||||
[0xf4] = "REPORT_LOADER2",
|
||||
[0xf9] = "REPORT_TOC",
|
||||
[0xfd] = "REPORT_TRACK_NAME",
|
||||
}
|
||||
|
||||
local f_action = ProtoField.uint8("avclan.action", "Action", base.HEX, known_actions)
|
||||
local f_functions = ProtoField.bytes("avclan.functions", "Functions", base.SPACE, "Device functions")
|
||||
|
||||
local f_ping_count = ProtoField.uint8("avclan.ping.count", "Ping count")
|
||||
|
||||
local f_radio_active = ProtoField.bool("avclan.radio.active", "Radio", base.NONE, {"ON", "OFF"})
|
||||
local f_radio_status = ProtoField.uint8("avclan.radio.status", "Radio status", base.HEX,
|
||||
{
|
||||
[0x00] = "OFF",
|
||||
[0x01] = "READY",
|
||||
[0x06] = "SCAN UP",
|
||||
[0x07] = "SCAN DOWN",
|
||||
[0x0A] = "AST SEARCH",
|
||||
[0x27] = "MANUAL"
|
||||
}
|
||||
)
|
||||
local f_radio_flags = ProtoField.uint8("avclan.radio.flags", "Radio flags")
|
||||
local f_radio_flags2 = ProtoField.uint8("avclan.radio.flags2", "Radio flags (byte 2)")
|
||||
|
||||
local f_radioflag_st = ProtoField.bool("avclan.radio.flags.st", "Stereo", 8, {"Set", "Not set"}, 0x04)
|
||||
local f_radioflag_ta = ProtoField.bool("avclan.radio.flags.ta", "TA", 8, {"Set", "Not set"}, 0x08)
|
||||
local f_radioflag_reg = ProtoField.bool("avclan.radio.flags.reg", "REG", 8, {"Set", "Not set"}, 0x10)
|
||||
local f_radioflag_af = ProtoField.bool("avclan.radio.flags.af", "AF", 8, {"Set", "Not set"}, 0x40)
|
||||
|
||||
local f_radio_band = ProtoField.uint8("avclan.radio.band", "Radio band", base.HEX,
|
||||
{[0x8] = "FM", [0xC] = "AM (Long-wave)", [0x0] = "AM (Medium-wave)"}, 0xF0)
|
||||
local f_radio_bandnumber = ProtoField.int8("avclan.radio.bandnumber", "Radio band number", base.DEC, nil, 0x0F)
|
||||
local f_radio_freq = ProtoField.uint16("avclan.radio.freq", "Radio frequency")
|
||||
|
||||
local f_amp_volume = ProtoField.uint8("avclan.amp.volume", "Volume", base.DEC)
|
||||
local f_amp_bass = ProtoField.uint8("avclan.amp.bass", "Bass", base.HEX, {
|
||||
[0x0B] = "-5", [0x0C] = "-4", [0x0D] = "-3", [0x0E] = "-2", [0x0F] = "-1",
|
||||
[0x10] = "0",
|
||||
[0x11] = "+1", [0x12] = "+2", [0x13] = "+3", [0x14] = "+4", [0x15] = "+5"
|
||||
})
|
||||
local f_amp_mid = ProtoField.uint8("avclan.amp.mid", "Mid", base.HEX, {
|
||||
[0x0B] = "-5", [0x0C] = "-4", [0x0D] = "-3", [0x0E] = "-2", [0x0F] = "-1",
|
||||
[0x10] = "0",
|
||||
[0x11] = "+1", [0x12] = "+2", [0x13] = "+3", [0x14] = "+4", [0x15] = "+5"
|
||||
})
|
||||
local f_amp_treble = ProtoField.uint8("avclan.amp.treble", "Treble", base.HEX, {
|
||||
[0x0B] = "-5", [0x0C] = "-4", [0x0D] = "-3", [0x0E] = "-2", [0x0F] = "-1",
|
||||
[0x10] = "0",
|
||||
[0x11] = "+1", [0x12] = "+2", [0x13] = "+3", [0x14] = "+4", [0x15] = "+5"
|
||||
})
|
||||
local f_amp_fade = ProtoField.uint8("avclan.amp.fade", "Fade (forward/rear)", base.HEX, {
|
||||
[0x09] = "-7", [0x0A] = "-6", [0x0B] = "-5", [0x0C] = "-4", [0x0D] = "-3", [0x0E] = "-2", [0x0F] = "-1",
|
||||
[0x10] = "0",
|
||||
[0x11] = "+1", [0x12] = "+2", [0x13] = "+3", [0x14] = "+4", [0x15] = "+5", [0x16] = "+6", [0x17] = "+7"
|
||||
})
|
||||
local f_amp_balance = ProtoField.uint8("avclan.amp.balance", "Balance (right/left)", base.HEX, {
|
||||
[0x09] = "-7", [0x0A] = "-6", [0x0B] = "-5", [0x0C] = "-4", [0x0D] = "-3", [0x0E] = "-2", [0x0F] = "-1",
|
||||
[0x10] = "0",
|
||||
[0x11] = "+1", [0x12] = "+2", [0x13] = "+3", [0x14] = "+4", [0x15] = "+5", [0x16] = "+6", [0x17] = "+7"
|
||||
})
|
||||
|
||||
local f_cd_slots = ProtoField.uint8("avclan.cd.slots", "CD player disc slots")
|
||||
local f_cd_slot1 = ProtoField.bool("avclan.cd.slot1", "Slot 1", 6, {"Filled", "Empty"}, 0x01)
|
||||
local f_cd_slot2 = ProtoField.bool("avclan.cd.slot1", "Slot 2", 6, {"Filled", "Empty"}, 0x02)
|
||||
local f_cd_slot3 = ProtoField.bool("avclan.cd.slot1", "Slot 3", 6, {"Filled", "Empty"}, 0x04)
|
||||
local f_cd_slot4 = ProtoField.bool("avclan.cd.slot1", "Slot 4", 6, {"Filled", "Empty"}, 0x08)
|
||||
local f_cd_slot5 = ProtoField.bool("avclan.cd.slot1", "Slot 5", 6, {"Filled", "Empty"}, 0x10)
|
||||
local f_cd_slot6 = ProtoField.bool("avclan.cd.slot1", "Slot 6", 6, {"Filled", "Empty"}, 0x20)
|
||||
|
||||
local f_cd_state = ProtoField.uint8("avclan.cd.state", "CD player state")
|
||||
local f_cd_open = ProtoField.bool("avclan.cd.state.open", "OPEN", 8, nil, 0x01)
|
||||
local f_cd_err1 = ProtoField.bool("avclan.cd.state.err1", "ERR1", 8, nil, 0x02)
|
||||
local f_cd_seeking = ProtoField.bool("avclan.cd.state.seeking", "SEEKING", 8, nil, 0x08)
|
||||
local f_cd_playback = ProtoField.bool("avclan.cd.state.playback", "PLAYBACK", 8, nil, 0x10)
|
||||
local f_cd_seeking_track = ProtoField.bool("avclan.cd.state.seeking_track", "SEEKING_TRACK", 8, nil, 0x20)
|
||||
local f_cd_loading = ProtoField.bool("avclan.cd.state.loading", "LOADING", 8, nil, 0x80)
|
||||
|
||||
local f_cd_disc = ProtoField.uint8("avclan.cd.disc", "Current disc", base.DEC)
|
||||
local f_cd_track = ProtoField.uint8("avclan.cd.track", "Track number", base.HEX)
|
||||
local f_cd_min = ProtoField.uint8("avclan.cd.mins", "CD track play time, minutes", base.HEX)
|
||||
local f_cd_sec = ProtoField.uint8("avclan.cd.secs", "CD track play time, seconds", base.HEX)
|
||||
|
||||
local f_cd_flags = ProtoField.uint8("avclan.cd.flags", "CD player flags", base.HEX, {
|
||||
[0x02] = "DISK_RANDOM",
|
||||
[0x04] = "RANDOM",
|
||||
[0x08] = "DISK_REPEAT",
|
||||
[0x10] = "REPEAT",
|
||||
[0x20] = "DISK_SCAN",
|
||||
[0x40] = "SCAN",
|
||||
})
|
||||
|
||||
avclanproto.fields = {
|
||||
f_from_device,
|
||||
f_to_device,
|
||||
f_active_device,
|
||||
f_action,
|
||||
f_functions,
|
||||
f_ping_count,
|
||||
f_radio_active,
|
||||
f_radio_status,
|
||||
f_radio_flags,
|
||||
f_radio_flags2,
|
||||
f_radio_band,
|
||||
f_radio_bandnumber,
|
||||
f_radio_freq,
|
||||
f_radioflag_af,
|
||||
f_radioflag_reg,
|
||||
f_radioflag_st,
|
||||
f_radioflag_ta,
|
||||
f_amp_volume,
|
||||
f_amp_bass,
|
||||
f_amp_mid,
|
||||
f_amp_treble,
|
||||
f_amp_fade,
|
||||
f_amp_balance,
|
||||
f_cd_slots,
|
||||
f_cd_slot1,
|
||||
f_cd_slot2,
|
||||
f_cd_slot3,
|
||||
f_cd_slot4,
|
||||
f_cd_slot5,
|
||||
f_cd_slot6,
|
||||
f_cd_state,
|
||||
f_cd_open,
|
||||
f_cd_err1,
|
||||
f_cd_seeking,
|
||||
f_cd_playback,
|
||||
f_cd_seeking_track,
|
||||
f_cd_loading,
|
||||
f_cd_disc,
|
||||
f_cd_track,
|
||||
f_cd_min,
|
||||
f_cd_sec,
|
||||
f_cd_flags,
|
||||
}
|
||||
|
||||
local pe_unhandled_msg = ProtoExpert.new("avclan.expert", "Message not decoded",
|
||||
expert.group.UNDECODED, expert.severity.WARN)
|
||||
-- local pe_lan_check = ProtoExpert.new("avclan.lan.expert", "")
|
||||
local pe_ping_req = ProtoExpert.new("avclan.ping_req.expert", "Ping request",
|
||||
expert.group.SEQUENCE, expert.severity.CHAT)
|
||||
local pe_ping_resp = ProtoExpert.new("avclan.ping_resp.expert", "Ping response",
|
||||
expert.group.SEQUENCE, expert.severity.CHAT)
|
||||
|
||||
avclanproto.experts = {
|
||||
pe_unhandled_msg,
|
||||
pe_ping_req,
|
||||
pe_ping_resp,
|
||||
}
|
||||
|
||||
local field_from_device = Field.new("avclan.from_device")
|
||||
local field_to_device = Field.new("avclan.to_device")
|
||||
local field_action = Field.new("avclan.action")
|
||||
local field_radio_freq = Field.new("avclan.radio.freq")
|
||||
local field_radio_band = Field.new("avclan.radio.band")
|
||||
local field_cd_disc = Field.new("avclan.cd.disc")
|
||||
local field_cd_track = Field.new("avclan.cd.track")
|
||||
local field_cd_min = Field.new("avclan.cd.mins")
|
||||
local field_cd_sec = Field.new("avclan.cd.secs")
|
||||
|
||||
function avclanproto.dissector(buffer, pinfo, tree)
|
||||
local length = buffer:len()
|
||||
if length == 0 then
|
||||
return
|
||||
end
|
||||
|
||||
iebusproto.dissector(buffer, pinfo, tree)
|
||||
|
||||
local subtree = tree:add(avclanproto, buffer(7,-1), "AVCLAN message")
|
||||
local offset = 7
|
||||
if buffer(7,1):uint() == 0 then
|
||||
offset = 8
|
||||
subtree:add(f_from_device, buffer(offset+0,1))
|
||||
subtree:add(f_to_device, buffer(offset+1,1))
|
||||
else
|
||||
subtree:add(f_from_device, buffer(offset+0,1))
|
||||
subtree:add(f_to_device, buffer(offset+1,1))
|
||||
end
|
||||
|
||||
local from_device = field_from_device().value
|
||||
local to_device = field_to_device().value
|
||||
|
||||
if from_device == known_devices_names["CMD_SW"] then
|
||||
subtree:add(f_action, buffer(offset+2,1))
|
||||
elseif from_device == known_devices_names["COMMUNICATION v1"] or
|
||||
from_device == known_devices_names["COMMUNICATION v2"] then
|
||||
if to_device == known_devices_names["COMM_CTRL"] then
|
||||
subtree:add(f_action, buffer(offset+2,1))
|
||||
local action = field_action().value
|
||||
if action == known_actions_names["ADVERTISE_FUNCTION"] then
|
||||
subtree:add(f_active_device, buffer(offset+3,1))
|
||||
elseif action == known_actions_names["PING_REQ"] then
|
||||
subtree:add(f_ping_count, buffer(offset+3,1))
|
||||
subtree:add_proto_expert_info(pe_ping_req, "Ping request " .. buffer(offset+3,1):uint())
|
||||
elseif known_actions[action] then
|
||||
else
|
||||
subtree:add_proto_expert_info(pe_unhandled_msg)
|
||||
end
|
||||
else
|
||||
subtree:add_proto_expert_info(pe_unhandled_msg)
|
||||
end
|
||||
elseif from_device == known_devices_names["COMM_CTRL"] then
|
||||
if to_device == known_devices_names["COMMUNICATION v1"] or
|
||||
to_device == known_devices_names["COMMUNICATION v2"] then
|
||||
local action_tree = subtree:add(f_action, buffer(offset+2,1))
|
||||
local action = field_action().value
|
||||
if action == known_actions_names["PING_RESP"] then
|
||||
subtree:add(f_ping_count, buffer(offset+3,1))
|
||||
subtree:add_proto_expert_info(pe_ping_resp, "Ping response " .. buffer(offset+3,1):uint())
|
||||
elseif action == known_actions_names["LIST_FUNCTIONS_RESP"] then
|
||||
local functions = action_tree:add(f_functions, buffer(offset+3))
|
||||
functions:append_text(" (")
|
||||
for v = 0,(buffer:bytes(offset+3)):len()-1 do
|
||||
if known_devices[buffer(offset+3+v,1):uint()] then
|
||||
functions:append_text(" " .. known_devices[buffer(offset+3+v,1):uint()])
|
||||
else
|
||||
functions:append_text(" UNKNOWN_DEVICE")
|
||||
end
|
||||
end
|
||||
functions:append_text(" ) ")
|
||||
elseif known_actions[action] then
|
||||
else
|
||||
subtree:add_proto_expert_info(pe_unhandled_msg)
|
||||
end
|
||||
elseif to_device == known_actions_names["LANCHECK_SCAN_REQ"] or
|
||||
to_device == known_actions_names["LANCHECK_REQ"] or
|
||||
to_device == known_actions_names["LANCHECK_END_REQ"] then
|
||||
subtree:add(f_action, buffer(offset+1,1))
|
||||
elseif to_device == 0x00 then
|
||||
subtree:add(f_action, buffer(offset+2,1))
|
||||
else
|
||||
subtree:add_proto_expert_info(pe_unhandled_msg)
|
||||
end
|
||||
elseif from_device == known_devices_names["STATUS"] then
|
||||
subtree:add(f_action, buffer(offset+2,1))
|
||||
elseif from_device == known_devices_names["TUNER"] then
|
||||
subtree:add(f_action, buffer(offset+2,1))
|
||||
local radiotree = subtree:add(avclanproto, buffer(offset,10), "Device: Radio")
|
||||
radiotree:add_le(f_radio_active, buffer(offset+3,1))
|
||||
radiotree:add_le(f_radio_status, buffer(offset+4,1))
|
||||
radiotree:add_le(f_radio_band, buffer(offset+5,1))
|
||||
radiotree:add(f_radio_bandnumber, buffer(offset+5,1))
|
||||
local freqtree = radiotree:add(f_radio_freq, buffer(offset+6,2))
|
||||
local radio_band = buffer(offset+5,1):uint()
|
||||
local freq = field_radio_freq().value
|
||||
if bit32.band(radio_band, 0xF0) == 0x80 then
|
||||
freqtree:append_text(" (" .. 87.5+(freq-1)*.05 .. " MHz)")
|
||||
elseif bit32.band(radio_band, 0xF0) == 0xC0 then
|
||||
freqtree:append_text(" (" .. 153+(freq-1)*1 .. " kHz)")
|
||||
elseif bit32.band(radio_band, 0xF0) == 0x00 then
|
||||
freqtree:append_text(" (" .. 522+(freq-1)*9 .. " kHz)")
|
||||
end
|
||||
|
||||
local flags = radiotree:add(f_radio_flags, buffer(15,1))
|
||||
flags:add(f_radioflag_st, buffer(15,1))
|
||||
flags:add(f_radioflag_ta, buffer(15,1))
|
||||
flags:add(f_radioflag_reg, buffer(15,1))
|
||||
flags:add(f_radioflag_af, buffer(15,1))
|
||||
radiotree:add(f_radio_flags2, buffer(16,1))
|
||||
elseif from_device == known_devices_names["AUDIO_AMP"] then
|
||||
subtree:add(f_action, buffer(offset+2,1))
|
||||
local amptree = subtree:add(avclanproto, buffer(offset,10), "Device: Audio amplifier")
|
||||
|
||||
amptree:add(f_amp_volume, buffer(offset+4,1))
|
||||
amptree:add(f_amp_balance, buffer(offset+5,1))
|
||||
amptree:add(f_amp_fade, buffer(offset+6,1))
|
||||
amptree:add(f_amp_bass, buffer(offset+7,1))
|
||||
amptree:add(f_amp_mid, buffer(offset+8,1))
|
||||
amptree:add(f_amp_treble, buffer(offset+9,1))
|
||||
elseif from_device == known_devices_names["CD"] or
|
||||
from_device == known_devices_names["CD_CHANGER"] or
|
||||
from_device == known_devices_names["CD_CHANGER2"] then
|
||||
subtree:add(f_action, buffer(offset+2,1))
|
||||
|
||||
local action = field_action().value
|
||||
if action == known_actions_names["REPORT"] then
|
||||
local cdtree = subtree:add(avclanproto, buffer(offset,9), "Device: CD player")
|
||||
local cd_slots = cdtree:add(f_cd_slots, buffer(offset+3,1))
|
||||
cd_slots:add(f_cd_slot1, buffer(offset+3,1))
|
||||
cd_slots:add(f_cd_slot2, buffer(offset+3,1))
|
||||
cd_slots:add(f_cd_slot3, buffer(offset+3,1))
|
||||
cd_slots:add(f_cd_slot4, buffer(offset+3,1))
|
||||
cd_slots:add(f_cd_slot5, buffer(offset+3,1))
|
||||
cd_slots:add(f_cd_slot6, buffer(offset+3,1))
|
||||
|
||||
local cd_state = cdtree:add(f_cd_state, buffer(offset+4,1))
|
||||
cd_state:add(f_cd_open, buffer(offset+4,1))
|
||||
cd_state:add(f_cd_err1, buffer(offset+4,1))
|
||||
cd_state:add(f_cd_seeking, buffer(offset+4,1))
|
||||
cd_state:add(f_cd_playback, buffer(offset+4,1))
|
||||
cd_state:add(f_cd_seeking_track, buffer(offset+4,1))
|
||||
cd_state:add(f_cd_loading, buffer(offset+4,1))
|
||||
local cd_status = cdtree:add(avclanproto, buffer(offset+5,-1), "")
|
||||
cd_status:add(f_cd_disc, buffer(offset+5,1))
|
||||
cd_status:add(f_cd_track, buffer(offset+6,1))
|
||||
cd_status:add(f_cd_min, buffer(offset+7,1))
|
||||
cd_status:add(f_cd_sec, buffer(offset+8,1))
|
||||
cd_status:append_text("Disc " .. field_cd_disc().value .. ", ")
|
||||
cd_status:append_text("track " .. tostring(buffer(offset+6,1)):gsub("(.)(.)", "%1%2") .. ", ")
|
||||
cd_status:append_text("time " .. tostring(buffer(offset+7,1)):gsub("0x(.)(.)", "%1%2") .. ":")
|
||||
cd_status:append_text(tostring(buffer(offset+8,1)):gsub("(.)(.)", "%1%2"))
|
||||
cdtree:add(f_cd_flags, buffer(offset+9,1))
|
||||
end
|
||||
else
|
||||
subtree:add_proto_expert_info(pe_unhandled_msg)
|
||||
end
|
||||
end
|
||||
|
||||
-- for i,v in ipairs(DissectorTable.list()) do print(v) end
|
||||
udlt:add(wtap.USER15, avclanproto)
|
19
scripts/packet-analysis/dev/PcapTools/LICENSE
Normal file
19
scripts/packet-analysis/dev/PcapTools/LICENSE
Normal file
@ -0,0 +1,19 @@
|
||||
Copyright (c) 2020 Christian Rorvik <christian.rorvik@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
21
scripts/packet-analysis/dev/PcapTools/Project.toml
Normal file
21
scripts/packet-analysis/dev/PcapTools/Project.toml
Normal file
@ -0,0 +1,21 @@
|
||||
name = "PcapTools"
|
||||
uuid = "222fe7e8-3f39-464a-bf97-d9bbb753f246"
|
||||
authors = ["Christian Rorvik <christian.rorvik@gmail.com>"]
|
||||
version = "1.1.1"
|
||||
|
||||
[deps]
|
||||
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
||||
Mmap = "a63ad114-7e13-5084-954f-fe012c677804"
|
||||
UnixTimes = "ab1a18e7-b408-4913-896c-624bb82ed7f4"
|
||||
UnsafeArrays = "c4a57d5a-5b31-53a6-b365-19f8c011fbd6"
|
||||
|
||||
[compat]
|
||||
UnixTimes = "1"
|
||||
UnsafeArrays = "1"
|
||||
julia = "1.4"
|
||||
|
||||
[extras]
|
||||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
|
||||
|
||||
[targets]
|
||||
test = ["Test"]
|
5
scripts/packet-analysis/dev/PcapTools/README.md
Normal file
5
scripts/packet-analysis/dev/PcapTools/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# PcapTools
|
||||
|
||||
[](https://travis-ci.com/ancapdev/PcapTools.jl)
|
||||
|
||||
[](https://coveralls.io/github/ancapdev/PcapTools.jl)
|
26
scripts/packet-analysis/dev/PcapTools/src/PcapTools.jl
Normal file
26
scripts/packet-analysis/dev/PcapTools/src/PcapTools.jl
Normal file
@ -0,0 +1,26 @@
|
||||
module PcapTools
|
||||
|
||||
using Dates
|
||||
using Mmap
|
||||
using UnixTimes
|
||||
using UnsafeArrays
|
||||
|
||||
export PcapHeader, RecordHeader
|
||||
export PcapRecord
|
||||
export PcapReader, PcapStreamReader, PcapBufferReader
|
||||
export PcapWriter, PcapStreamWriter
|
||||
export LINKTYPE_NULL, LINKTYPE_ETHERNET
|
||||
export splitcap
|
||||
|
||||
abstract type PcapReader end
|
||||
abstract type PcapWriter end
|
||||
|
||||
include("pcap_header.jl")
|
||||
include("record_header.jl")
|
||||
include("record.jl")
|
||||
include("buffer_reader.jl")
|
||||
include("stream_reader.jl")
|
||||
include("stream_writer.jl")
|
||||
include("splitcap.jl")
|
||||
|
||||
end
|
96
scripts/packet-analysis/dev/PcapTools/src/buffer_reader.jl
Normal file
96
scripts/packet-analysis/dev/PcapTools/src/buffer_reader.jl
Normal file
@ -0,0 +1,96 @@
|
||||
"""
|
||||
Reads pcap data from an array of bytes.
|
||||
"""
|
||||
mutable struct PcapBufferReader <: PcapReader
|
||||
data::Vector{UInt8}
|
||||
raw_header::Vector{UInt8}
|
||||
header::PcapHeader
|
||||
offset::Int64
|
||||
mark::Int64
|
||||
usec_mul::Int64
|
||||
bswapped::Bool
|
||||
|
||||
@doc """
|
||||
PcapBufferReader(data::Vector{UInt8})
|
||||
|
||||
Create reader over `data`. Will read and process pcap header,
|
||||
and yield records through `read(::PcapBufferReader)`.
|
||||
"""
|
||||
function PcapBufferReader(data::Vector{UInt8})
|
||||
length(data) < sizeof(PcapHeader) && throw(EOFError())
|
||||
rh = data[1:sizeof(PcapHeader)]
|
||||
h = unsafe_load(Ptr{PcapHeader}(pointer(data)))
|
||||
h, bswapped, nanotime = process_header(h)
|
||||
new(data, rh, h, sizeof(h), -1, nanotime ? 1 : 1000, bswapped)
|
||||
end
|
||||
end
|
||||
|
||||
"""
|
||||
PcapBufferReader(path::AbstractString)
|
||||
|
||||
Memory map file in `path` and create PcapBufferReader over its content.
|
||||
"""
|
||||
function PcapBufferReader(path::AbstractString)
|
||||
io = open(path)
|
||||
data = Mmap.mmap(io)
|
||||
PcapBufferReader(data)
|
||||
end
|
||||
|
||||
function Base.close(x::PcapBufferReader)
|
||||
x.data = UInt8[]
|
||||
x.offset = 0
|
||||
nothing
|
||||
end
|
||||
|
||||
Base.length(x::PcapBufferReader) = length(x.data)
|
||||
Base.position(x::PcapBufferReader) = x.offset; nothing
|
||||
Base.seek(x::PcapBufferReader, pos) = x.offset = pos; nothing
|
||||
|
||||
function Base.mark(x::PcapBufferReader)
|
||||
x.mark = x.offset
|
||||
x.mark
|
||||
end
|
||||
|
||||
function Base.unmark(x::PcapBufferReader)
|
||||
if x.mark >= 0
|
||||
x.mark = -1
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
Base.ismarked(x::PcapBufferReader) = x.mark >= 0
|
||||
|
||||
function Base.reset(x::PcapBufferReader)
|
||||
!ismarked(x) && error("PcapBufferReader not marked")
|
||||
x.offset = x.mark
|
||||
x.mark = -1
|
||||
x.offset
|
||||
end
|
||||
|
||||
Base.eof(x::PcapBufferReader) = (length(x) - x.offset) < sizeof(RecordHeader)
|
||||
|
||||
"""
|
||||
read(x::PcapBufferReader) -> PcapRecord
|
||||
|
||||
Read one record from pcap data.
|
||||
Throws `EOFError` if no more data available.
|
||||
"""
|
||||
@inline function Base.read(x::PcapBufferReader)
|
||||
eof(x) && throw(EOFError())
|
||||
record_offset = x.offset
|
||||
p = pointer(x.data) + record_offset
|
||||
GC.@preserve x begin
|
||||
h = unsafe_load(Ptr{RecordHeader}(p))
|
||||
end
|
||||
if x.bswapped
|
||||
h = bswap(h)
|
||||
end
|
||||
t1 = (h.ts_sec + x.header.thiszone) * 1_000_000_000
|
||||
t2 = Int64(h.ts_usec) * x.usec_mul
|
||||
t = UnixTime(Dates.UTInstant(Nanosecond(t1 + t2)))
|
||||
x.offset += sizeof(RecordHeader) + h.incl_len
|
||||
x.offset > length(x) && error("Insufficient data in pcap record")
|
||||
PcapRecord(h, t, x.data, record_offset)
|
||||
end
|
46
scripts/packet-analysis/dev/PcapTools/src/pcap_header.jl
Normal file
46
scripts/packet-analysis/dev/PcapTools/src/pcap_header.jl
Normal file
@ -0,0 +1,46 @@
|
||||
# NOTE: Not using @enum because it craps out when displaying unknown values
|
||||
const LINKTYPE_NULL = UInt32(0)
|
||||
const LINKTYPE_ETHERNET = UInt32(1)
|
||||
|
||||
struct PcapHeader
|
||||
magic::UInt32
|
||||
version_major::UInt16
|
||||
version_minor::UInt16
|
||||
thiszone::Int32
|
||||
sigfigs::UInt32
|
||||
snaplen::UInt32
|
||||
linktype::UInt32
|
||||
end
|
||||
|
||||
function Base.bswap(x::PcapHeader)
|
||||
PcapHeader(
|
||||
bswap(x.magic),
|
||||
bswap(x.version_major),
|
||||
bswap(x.version_minor),
|
||||
bswap(x.thiszone),
|
||||
bswap(x.sigfigs),
|
||||
bswap(x.snaplen),
|
||||
bswap(x.linktype))
|
||||
end
|
||||
|
||||
function process_header(x::PcapHeader)
|
||||
if x.magic == 0xa1b2c3d4
|
||||
bswapped = false
|
||||
nanotime = false
|
||||
elseif x.magic == 0xd4c3b2a1
|
||||
bswapped = true
|
||||
nanotime = false
|
||||
elseif x.magic == 0xa1b23c4d
|
||||
bswapped = false
|
||||
nanotime = true
|
||||
elseif x.magic == 0x4d3cb2a1
|
||||
bswapped = true
|
||||
nanotime = true
|
||||
else
|
||||
throw(ArgumentError("Invalid pcap header"))
|
||||
end
|
||||
if bswapped
|
||||
x = bswap(x)
|
||||
end
|
||||
x, bswapped, nanotime
|
||||
end
|
25
scripts/packet-analysis/dev/PcapTools/src/record.jl
Normal file
25
scripts/packet-analysis/dev/PcapTools/src/record.jl
Normal file
@ -0,0 +1,25 @@
|
||||
"""
|
||||
Record of pcap data
|
||||
"""
|
||||
struct PcapRecord
|
||||
header::RecordHeader
|
||||
timestamp::UnixTime
|
||||
underlying_data::Vector{UInt8}
|
||||
record_offset::Int
|
||||
end
|
||||
|
||||
@inline function record_field_(x::PcapRecord, ::Val{:data})
|
||||
offset = getfield(x, :record_offset) + sizeof(RecordHeader)
|
||||
len = Int(getfield(x, :header).incl_len)
|
||||
UnsafeArray{UInt8, 1}(pointer(getfield(x, :underlying_data)) + offset, (len,))
|
||||
end
|
||||
|
||||
@inline function record_field_(x::PcapRecord, ::Val{:raw})
|
||||
offset = getfield(x, :record_offset)
|
||||
len = sizeof(RecordHeader) + getfield(x, :header).incl_len
|
||||
UnsafeArray{UInt8, 1}(pointer(getfield(x, :underlying_data)) + offset, (len,))
|
||||
end
|
||||
|
||||
@inline record_field_(x::PcapRecord, ::Val{f}) where {f} = getfield(x, f)
|
||||
|
||||
@inline Base.getproperty(x::PcapRecord, f::Symbol) = record_field_(x, Val(f))
|
14
scripts/packet-analysis/dev/PcapTools/src/record_header.jl
Normal file
14
scripts/packet-analysis/dev/PcapTools/src/record_header.jl
Normal file
@ -0,0 +1,14 @@
|
||||
struct RecordHeader
|
||||
ts_sec::UInt32
|
||||
ts_usec::UInt32
|
||||
incl_len::UInt32
|
||||
orig_len::UInt32
|
||||
end
|
||||
|
||||
function Base.bswap(x::RecordHeader)
|
||||
RecordHeader(
|
||||
bswap(x.ts_sec),
|
||||
bswap(x.ts_usec),
|
||||
bswap(x.incl_len),
|
||||
bswap(x.orig_len))
|
||||
end
|
102
scripts/packet-analysis/dev/PcapTools/src/splitcap.jl
Normal file
102
scripts/packet-analysis/dev/PcapTools/src/splitcap.jl
Normal file
@ -0,0 +1,102 @@
|
||||
strip_nothing_(::Type{Union{Nothing, T}}) where T = T
|
||||
strip_nothing_(::Type{T}) where T = T
|
||||
|
||||
progress_noop_(n) = nothing
|
||||
|
||||
mutable struct SplitCapOutput{S}
|
||||
work_buffer::Vector{UInt8}
|
||||
complete_buffers::Channel{Vector{UInt8}}
|
||||
stream::S
|
||||
end
|
||||
|
||||
# Since Julia (as of 1.5) doesn't support task migration,
|
||||
# continue with new task after each buffer write, to rebalance across threads
|
||||
function write_one_and_continue_(output::SplitCapOutput, free_buffers::Channel, pending::Threads.Atomic{Int})
|
||||
i = iterate(output.complete_buffers)
|
||||
if i === nothing
|
||||
Threads.atomic_sub!(pending, 1)
|
||||
return nothing
|
||||
end
|
||||
b, _ = i
|
||||
write(output.stream, b)
|
||||
empty!(b)
|
||||
put!(free_buffers, b)
|
||||
Threads.@spawn write_one_and_continue_($output, $free_buffers, $pending)
|
||||
end
|
||||
|
||||
function splitcap(
|
||||
::Type{KeyType},
|
||||
::Type{StreamType},
|
||||
reader::PcapReader,
|
||||
record2key,
|
||||
key2stream,
|
||||
progress_callback = progress_noop_;
|
||||
own_streams::Bool = true
|
||||
) where {KeyType, StreamType}
|
||||
buffer_size = 1024 * 1024 * 2
|
||||
max_pending_buffers = 4
|
||||
outputs = Dict{KeyType, SplitCapOutput{StreamType}}()
|
||||
free_buffers = Channel{Vector{UInt8}}(Inf)
|
||||
n = 0
|
||||
pending = Threads.Atomic{Int}(0)
|
||||
try
|
||||
while !eof(reader)
|
||||
record = read(reader)
|
||||
dst = record2key(record)
|
||||
if dst isa KeyType
|
||||
output = get!(outputs, dst) do
|
||||
stream = key2stream(dst)
|
||||
buffer = sizehint!(UInt8[], buffer_size + 1500)
|
||||
own_streams && append!(buffer, reader.raw_header)
|
||||
output = SplitCapOutput{StreamType}(
|
||||
buffer,
|
||||
Channel{Vector{UInt8}}(max_pending_buffers),
|
||||
stream)
|
||||
Threads.atomic_add!(pending, 1)
|
||||
Threads.@spawn write_one_and_continue_($output, $free_buffers, $pending)
|
||||
output
|
||||
end
|
||||
append!(output.work_buffer, record.raw)
|
||||
if length(output.work_buffer) >= buffer_size
|
||||
put!(output.complete_buffers, output.work_buffer)
|
||||
if isready(free_buffers)
|
||||
output.work_buffer = take!(free_buffers)
|
||||
else
|
||||
output.work_buffer = sizehint!(UInt8[], buffer_size + 1500)
|
||||
end
|
||||
end
|
||||
end
|
||||
n += 1
|
||||
progress_callback(n)
|
||||
GC.safepoint()
|
||||
end
|
||||
for output in values(outputs)
|
||||
if !isempty(output.work_buffer)
|
||||
put!(output.complete_buffers, output.work_buffer)
|
||||
end
|
||||
close(output.complete_buffers)
|
||||
end
|
||||
while pending[] != 0
|
||||
sleep(0.1)
|
||||
end
|
||||
finally
|
||||
if own_streams
|
||||
for output in values(outputs)
|
||||
close(output.stream)
|
||||
end
|
||||
end
|
||||
end
|
||||
nothing
|
||||
end
|
||||
|
||||
function splitcap(
|
||||
reader::PcapReader,
|
||||
record2key,
|
||||
key2stream,
|
||||
progress_callback = progress_noop_;
|
||||
kwargs...
|
||||
)
|
||||
KeyType = strip_nothing_(Core.Compiler.return_type(record2key, Tuple{PcapRecord}))
|
||||
StreamType = Core.Compiler.return_type(key2stream, Tuple{KeyType})
|
||||
splitcap(KeyType, StreamType, reader, record2key, key2stream, progress_callback; kwargs...)
|
||||
end
|
63
scripts/packet-analysis/dev/PcapTools/src/stream_reader.jl
Normal file
63
scripts/packet-analysis/dev/PcapTools/src/stream_reader.jl
Normal file
@ -0,0 +1,63 @@
|
||||
"""
|
||||
Reads pcap data from a stream.
|
||||
"""
|
||||
mutable struct PcapStreamReader{Src <: IO} <: PcapReader
|
||||
src::Src
|
||||
raw_header::Vector{UInt8}
|
||||
header::PcapHeader
|
||||
usec_mul::Int64
|
||||
bswapped::Bool
|
||||
record_buffer::Vector{UInt8}
|
||||
|
||||
@doc """
|
||||
PcapStreamReader(src::IO)
|
||||
|
||||
Create reader over `src`. Will read and process pcap header,
|
||||
and yield records through `read(::PcapStreamReader)`.
|
||||
"""
|
||||
function PcapStreamReader(src::Src) where {Src <: IO}
|
||||
raw_header = read(src, sizeof(PcapHeader))
|
||||
length(raw_header) != sizeof(PcapHeader) && throw(EOFError())
|
||||
h = GC.@preserve raw_header unsafe_load(Ptr{PcapHeader}(pointer(raw_header)))
|
||||
header, bswapped, nanotime = process_header(h)
|
||||
new{Src}(src, raw_header, header, nanotime ? 1 : 1000, bswapped, zeros(UInt8, 9000 + sizeof(RecordHeader)))
|
||||
end
|
||||
end
|
||||
|
||||
"""
|
||||
PcapStreamReader(path)
|
||||
|
||||
Open file at `path` and create PcapStreamReader over its content.
|
||||
"""
|
||||
PcapStreamReader(path::AbstractString) = PcapStreamReader(open(path))
|
||||
|
||||
Base.close(x::PcapStreamReader) = close(x.src)
|
||||
Base.position(x::PcapStreamReader) = position(x.src)
|
||||
Base.seek(x::PcapStreamReader, pos) = seek(x.src, pos)
|
||||
Base.mark(x::PcapStreamReader) = mark(x.src)
|
||||
Base.unmark(x::PcapStreamReader) = unmark(x.src)
|
||||
Base.ismarked(x::PcapStreamReader) = ismarked(x.src)
|
||||
Base.reset(x::PcapStreamReader) = reset(x.src)
|
||||
Base.eof(x::PcapStreamReader) = eof(x.src)
|
||||
|
||||
"""
|
||||
read(x::PcapStreamReader) -> PcapRecord
|
||||
|
||||
Read one record from pcap data. Record is valid until next read().
|
||||
Throws `EOFError` if no more data available.
|
||||
"""
|
||||
function Base.read(x::PcapStreamReader)
|
||||
p = pointer(x.record_buffer)
|
||||
GC.@preserve x begin
|
||||
unsafe_read(x.src, p, sizeof(RecordHeader))
|
||||
h = unsafe_load(Ptr{RecordHeader}(p))
|
||||
if x.bswapped
|
||||
h = bswap(h)
|
||||
end
|
||||
unsafe_read(x.src, p + sizeof(RecordHeader), h.incl_len)
|
||||
end
|
||||
t1 = (h.ts_sec + x.header.thiszone) * 1_000_000_000
|
||||
t2 = Int64(h.ts_usec) * x.usec_mul
|
||||
t = UnixTime(Dates.UTInstant(Nanosecond(t1 + t2)))
|
||||
PcapRecord(h, t, x.record_buffer, 0)
|
||||
end
|
30
scripts/packet-analysis/dev/PcapTools/src/stream_writer.jl
Normal file
30
scripts/packet-analysis/dev/PcapTools/src/stream_writer.jl
Normal file
@ -0,0 +1,30 @@
|
||||
struct PcapStreamWriter{Dst <: IO} <: PcapWriter
|
||||
dst::Dst
|
||||
|
||||
function PcapStreamWriter{Dst}(dst::Dst; thiszone = 0, snaplen = 65535, linktype = LINKTYPE_ETHERNET) where {Dst <: IO}
|
||||
h = PcapHeader(
|
||||
0xa1b23c4d,
|
||||
0x0002,
|
||||
0x0004,
|
||||
thiszone,
|
||||
0,
|
||||
snaplen,
|
||||
linktype)
|
||||
write(dst, reinterpret(UInt8, [h]))
|
||||
new(dst)
|
||||
end
|
||||
end
|
||||
|
||||
PcapStreamWriter(io::IO; kwargs...) = PcapStreamWriter{typeof(io)}(io; kwargs...)
|
||||
PcapStreamWriter(path::AbstractString; kwargs...) = PcapStreamWriter(open(path, "w"); kwargs...)
|
||||
|
||||
Base.close(x::PcapStreamWriter) = close(x.dst)
|
||||
|
||||
function Base.write(x::PcapStreamWriter, timestamp::UnixTime, data)
|
||||
sec, nsec = fldmod(Dates.value(timestamp), 1_000_000_000)
|
||||
data_length = length(data)
|
||||
h = RecordHeader(sec, nsec, data_length, data_length)
|
||||
write(x.dst, reinterpret(UInt8, [h]))
|
||||
write(x.dst, collect(data))
|
||||
nothing
|
||||
end
|
BIN
scripts/packet-analysis/msgdumps/CQ-TS7471LC_bootup.pcap
Normal file
BIN
scripts/packet-analysis/msgdumps/CQ-TS7471LC_bootup.pcap
Normal file
Binary file not shown.
BIN
scripts/packet-analysis/msgdumps/amp-settings.pcapng
Normal file
BIN
scripts/packet-analysis/msgdumps/amp-settings.pcapng
Normal file
Binary file not shown.
BIN
scripts/packet-analysis/msgdumps/avclan.pcap
Normal file
BIN
scripts/packet-analysis/msgdumps/avclan.pcap
Normal file
Binary file not shown.
Binary file not shown.
BIN
scripts/packet-analysis/msgdumps/initial-bus-scan.pcap
Normal file
BIN
scripts/packet-analysis/msgdumps/initial-bus-scan.pcap
Normal file
Binary file not shown.
BIN
scripts/packet-analysis/msgdumps/lan-test-bus-scan.pcap
Normal file
BIN
scripts/packet-analysis/msgdumps/lan-test-bus-scan.pcap
Normal file
Binary file not shown.
BIN
scripts/packet-analysis/msgdumps/startup.pcapng
Normal file
BIN
scripts/packet-analysis/msgdumps/startup.pcapng
Normal file
Binary file not shown.
Binary file not shown.
73
scripts/packet-analysis/src/AVCLANPipe.jl
Normal file
73
scripts/packet-analysis/src/AVCLANPipe.jl
Normal file
@ -0,0 +1,73 @@
|
||||
module AVCLANPipe
|
||||
|
||||
using PcapTools, Dates, UnixTimes
|
||||
|
||||
export AVCLANframe, avclan_text_to_pcap, tobytes
|
||||
|
||||
mutable struct AVCLANframe
|
||||
broadcast::Bool
|
||||
controller_addr::UInt16
|
||||
peripheral_addr::UInt16
|
||||
control::UInt8
|
||||
length::UInt8
|
||||
data::NTuple{32,UInt8}
|
||||
end
|
||||
|
||||
AVCLANframe() = AVCLANframe(false, 0x0000, 0x0000, 0xf, 0x0, ntuple(x -> 0x0, 32))
|
||||
|
||||
function Base.tryparse(::Type{AVCLANframe}, str::String)
|
||||
vals = split(str)
|
||||
|
||||
broadcast = tryparse(Bool, vals[1])
|
||||
isnothing(broadcast) && return nothing
|
||||
|
||||
controller_addr = tryparse(UInt16, vals[2])
|
||||
isnothing(controller_addr) && return nothing
|
||||
|
||||
peripheral_addr = tryparse(UInt16, vals[3])
|
||||
isnothing(peripheral_addr) && return nothing
|
||||
|
||||
control = tryparse(UInt8, vals[4])
|
||||
isnothing(control) && return nothing
|
||||
|
||||
len = tryparse(UInt8, vals[5])
|
||||
isnothing(len) && return nothing
|
||||
|
||||
if (length(vals) - 5) != len || len > 32
|
||||
return nothing
|
||||
end
|
||||
_data = tryparse.(UInt8, vals[6:end])
|
||||
data = ntuple(i -> checkindex(Bool, axes(_data, 1), i) ? _data[i] : 0x0, 32)
|
||||
|
||||
return AVCLANframe(broadcast, controller_addr, peripheral_addr, control, len, data)
|
||||
end
|
||||
|
||||
function tobytes(frame::AVCLANframe)
|
||||
data = Vector{UInt8}(undef, 0)
|
||||
push!(data, frame.broadcast)
|
||||
append!(data, reverse(reinterpret(reshape, UInt8, [frame.controller_addr])),
|
||||
reverse(reinterpret(reshape, UInt8, [frame.peripheral_addr])),
|
||||
reinterpret(reshape, UInt8, [frame.control]),
|
||||
reinterpret(reshape, UInt8, [frame.length]),
|
||||
frame.data[1:frame.length])
|
||||
|
||||
return data
|
||||
end
|
||||
|
||||
function avclan_text_to_pcap(textlog::String, pcap_fn::String)
|
||||
pcapstream = PcapStreamWriter(pcap_fn; snaplen=64, linktype = 162)
|
||||
t = UnixTime(now())
|
||||
|
||||
for line in eachline(textlog)
|
||||
frame = tryparse(AVCLANframe, line)
|
||||
t += Microsecond(rand(1:15))
|
||||
if !isnothing(frame)
|
||||
write(pcapstream, t, tobytes(frame))
|
||||
end
|
||||
end
|
||||
close(pcapstream)
|
||||
|
||||
return pcap_fn
|
||||
end
|
||||
|
||||
end # module AVCLANPipe
|
55
scripts/packet-analysis/src/convert-sr-annotation-export.jl
Normal file
55
scripts/packet-analysis/src/convert-sr-annotation-export.jl
Normal file
@ -0,0 +1,55 @@
|
||||
using AVCLANPipe, PcapTools, Dates, UnixTimes
|
||||
|
||||
file = ARGS[1]
|
||||
outfile = ARGS[2]
|
||||
|
||||
function convert_fields_to_pcap(file, outfile)
|
||||
|
||||
io = open(file, "r")
|
||||
outio = PcapStreamWriter(outfile; snaplen=64, linktype = 162)
|
||||
|
||||
packet = AVCLANframe()
|
||||
packetcomplete = false
|
||||
local t::UnixTime
|
||||
i = 1
|
||||
|
||||
for line in readlines(io)
|
||||
m = match(r"(\d+)-(\d+) IEBus: Raw Fields: (?<field>\w+)(:? ((?<hex>0x[0-9a-f]{2,3})|WRITE_DATA|Length: (?<length>\d+)))?",
|
||||
line)
|
||||
|
||||
if m[:field] == "Broadcast"
|
||||
packet.broadcast = true
|
||||
t = UnixTime(1970,1,1,0,0,0,0, something(tryparse(Int, m[1]), 0))
|
||||
elseif m[:field] == "Unicast"
|
||||
packet.broadcast = false
|
||||
t = UnixTime(1970,1,1,0,0,0,0, something(tryparse(Int, m[1]), 0))
|
||||
elseif m[:field] == "Master"
|
||||
packet.controller_addr = tryparse(UInt16, m[:hex])
|
||||
elseif m[:field] == "Slave"
|
||||
packet.peripheral_addr = tryparse(UInt16, m[:hex])
|
||||
elseif m[:field] == "Data"
|
||||
if !isnothing(m[:length])
|
||||
packet.length = convert(UInt8, tryparse(Int, m[:length]))
|
||||
else
|
||||
data = collect(packet.data)
|
||||
data[i] = tryparse(UInt8, m[:hex])
|
||||
packet.data = ntuple(n -> data[n], 32)
|
||||
i += 1
|
||||
end
|
||||
end
|
||||
|
||||
if i > packet.length
|
||||
packetcomplete = true
|
||||
end
|
||||
|
||||
if packetcomplete
|
||||
packetcomplete = false
|
||||
i = 1
|
||||
write(outio, t, tobytes(packet))
|
||||
end
|
||||
end
|
||||
|
||||
close(io)
|
||||
close(outio)
|
||||
|
||||
end
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user