Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP]: EFR32 EmberZNet EZSP adapter #317

Merged
merged 63 commits into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
53d5a04
blank ezsp adapter
Jan 8, 2021
687fa00
next
Jan 10, 2021
1b8af40
start describe multicast
kirovilya Jan 14, 2021
f9a87e0
try to start network
kirovilya Jan 16, 2021
5fed6ec
form network
kirovilya Jan 17, 2021
156ae4e
started
kirovilya Jan 17, 2021
e9cb698
try to make socket support
kirovilya Jan 18, 2021
4d5e70a
forgoten reset on connect
kirovilya Jan 18, 2021
ef0de09
permit join
kirovilya Jan 19, 2021
70d91c4
next step
kirovilya Jan 21, 2021
38529aa
polices and other
kirovilya Jan 22, 2021
cc76a56
step
kirovilya Jan 24, 2021
e28c1ed
step
kirovilya Jan 25, 2021
7c359fc
small fixes
kirovilya Jan 26, 2021
d27f136
small fix
kirovilya Jan 26, 2021
a36334c
next
kirovilya Jan 26, 2021
2b1f956
working with request
kirovilya Jan 28, 2021
21fee68
temporary block nodeDescriptor request
kirovilya Jan 28, 2021
461452d
starting rewrite uart communication
kirovilya Jan 29, 2021
01f75bc
rewrited uart
kirovilya Jan 29, 2021
31dcb2a
some cleanup
kirovilya Jan 29, 2021
8587f41
queue
kirovilya Jan 30, 2021
ca69b1b
fix and logging
Jan 30, 2021
58e28a0
active endpoints
Jan 30, 2021
f5c1f2d
Source routing
kirovilya Jan 31, 2021
7603543
work with form network
kirovilya Feb 3, 2021
d922bb1
additional configs
kirovilya Feb 4, 2021
47668e9
fix
kirovilya Feb 12, 2021
7d61ed0
isolated serialDriver
kirovilya Feb 18, 2021
b788f4a
fix security issue
kirovilya Feb 18, 2021
6d783d9
fix ieee in device annce
kirovilya Feb 18, 2021
a9bdca6
try to get Simple Descriptor... but not work yet
kirovilya Feb 18, 2021
233f06b
del yargs
G1K Feb 19, 2021
3c7f421
leave device
G1K Feb 19, 2021
a495528
simple decriptor start
G1K Feb 19, 2021
7d60d44
simple descriptor
kirovilya Feb 19, 2021
ad33db0
descriptor & debug
G1K Feb 19, 2021
997ce95
sendZclFrameToEndpoint start
G1K Feb 19, 2021
4660cc1
waitfor
kirovilya Feb 20, 2021
56acea1
getCoordinator
kirovilya Feb 20, 2021
b9b0d1b
bind
kirovilya Feb 21, 2021
4248455
remove
kirovilya Feb 21, 2021
d5dc201
lqi table
kirovilya Feb 21, 2021
444d13e
Unbind
kirovilya Feb 22, 2021
c894fcb
fix bind
kirovilya Feb 22, 2021
16047d5
version
kirovilya Feb 22, 2021
7b4dda0
fix lqi
kirovilya Feb 22, 2021
86a8b71
restructure zdo requests
kirovilya Feb 22, 2021
f6183d5
sequence for waitress zdo request
kirovilya Feb 22, 2021
211e5d5
commands queue
kirovilya Feb 22, 2021
e81b24c
some cleanup
kirovilya Feb 22, 2021
de04735
some logs and restructure
kirovilya Feb 23, 2021
fc4c15a
waitress resolve result
kirovilya Feb 23, 2021
6e1674e
uart queue and waiting
kirovilya Feb 24, 2021
086c5be
fix networkInit proc
kirovilya Feb 24, 2021
c29e67f
small init fix. when network was down
kirovilya Feb 25, 2021
7ffd300
eslint fix
G1K Feb 26, 2021
cc615b1
eslint fix format
G1K Feb 26, 2021
c7c1549
fix
Feb 27, 2021
46f9413
fix lint error
Feb 27, 2021
d2989f9
fix tests
kirovilya Mar 1, 2021
b795b41
test coverage for waitress
kirovilya Mar 1, 2021
de37243
ignore test coverage
kirovilya Mar 2, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/adapter/adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,13 @@ abstract class Adapter extends events.EventEmitter {
const {ZStackAdapter} = await import('./z-stack/adapter');
const {DeconzAdapter} = await import('./deconz/adapter');
const {ZiGateAdapter} = await import('./zigate/adapter');
type AdapterImplementation = typeof ZStackAdapter | typeof DeconzAdapter | typeof ZiGateAdapter;
const {EZSPAdapter} = await import('./ezsp/adapter');
type AdapterImplementation = (typeof ZStackAdapter | typeof DeconzAdapter | typeof ZiGateAdapter
| typeof EZSPAdapter);

let adapters: AdapterImplementation[];
const adapterLookup = {zstack: ZStackAdapter, deconz: DeconzAdapter, zigate: ZiGateAdapter};
const adapterLookup = {zstack: ZStackAdapter, deconz: DeconzAdapter, zigate: ZiGateAdapter,
ezsp: EZSPAdapter};
if (serialPortOptions.adapter) {
if (adapterLookup.hasOwnProperty(serialPortOptions.adapter)) {
adapters = [adapterLookup[serialPortOptions.adapter]];
Expand Down
516 changes: 516 additions & 0 deletions src/adapter/ezsp/adapter/ezspAdapter.ts

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions src/adapter/ezsp/adapter/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/* istanbul ignore file */
/* eslint-disable */
import EZSPAdapter from './ezspAdapter';

export {
EZSPAdapter,
};
Loading