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

ajout d'un permit join listener au zigbee network manager -> amelioration reporting gateway cloud #93 #1456

Open
wants to merge 286 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
286 commits
Select commit Hold shift + click to select a range
263c7e2
create keystore dir if it doesn't exist
mikomarrache Sep 20, 2023
76e3c82
ncprouting command changes
mikomarrache Sep 20, 2023
7a9173e
forgot to comment block that was previously commented
mikomarrache Sep 20, 2023
ea67344
missing information + bug outgoing frame counter
mikomarrache Sep 20, 2023
435cbf9
add receive on when idle to output
mikomarrache Sep 20, 2023
eb5b599
reportcfg command - add more info
mikomarrache Sep 20, 2023
d6c2a34
log device status update + unknown device
mikomarrache Sep 20, 2023
7994442
Merge pull request #5 from passmanSA/on_off_extension
mikomarrache Sep 20, 2023
029aea1
Merge pull request #4 from passmanSA/read_after_report
mikomarrache Sep 20, 2023
0785ea2
improve command description
mikomarrache Sep 20, 2023
5f5052d
Merge branch 'poll_control_extension'
mikomarrache Sep 20, 2023
dbdd38a
add help + repeat argument
mikomarrache Sep 20, 2023
e96788f
Merge branch 'spam_read_command'
mikomarrache Sep 20, 2023
1a8135d
Merge pull request #9 from passmanSA/keystore_directory
mikomarrache Sep 20, 2023
2ae91e8
Merge branch 'announcelistener_console'
mikomarrache Sep 20, 2023
742a28a
Merge pull request #13 from passmanSA/reportcfg_command
mikomarrache Sep 20, 2023
1de004f
Merge pull request #12 from passmanSA/nodes_command_rxonwhenidle
mikomarrache Sep 20, 2023
655ccce
Merge pull request #11 from passmanSA/netbackup_command
mikomarrache Sep 20, 2023
35abeeb
Merge pull request #7 from passmanSA/ota_jitter
mikomarrache Sep 20, 2023
a1d042f
multiple issues
mikomarrache Sep 20, 2023
e09c024
improve attrsupported command
mikomarrache Sep 20, 2023
40889f5
fix
mikomarrache Sep 20, 2023
38fdd7a
fixed in public repo
mikomarrache Sep 20, 2023
8f0e60f
Merge pull request #18 from passmanSA/device_type_bug
mikomarrache Sep 20, 2023
7181cb6
Merge pull request #16 from passmanSA/attrsupported_command
mikomarrache Sep 20, 2023
281871c
Merge pull request #15 from passmanSA/read_attr_command
mikomarrache Sep 20, 2023
0f70923
Merge pull request #17 from passmanSA/whitelist_command_bug
mikomarrache Sep 20, 2023
1331de7
fix enroll command
mikomarrache Sep 20, 2023
cf14784
disable ias extension
mikomarrache Sep 20, 2023
953c569
Merge branch 'ias_extension_changes'
mikomarrache Sep 20, 2023
b449b42
change config according to passenergy daemon
mikomarrache Sep 20, 2023
69ef3d9
fix typo
mikomarrache Sep 20, 2023
befec6e
Merge pull request #20 from passmanSA/thermostat_cluster_typo
mikomarrache Sep 20, 2023
aed26c3
add missing attribute
mikomarrache Sep 20, 2023
18ea7af
Merge pull request #21 from passmanSA/occupancysensing_cluster
mikomarrache Sep 20, 2023
38552d2
Merge pull request #19 from passmanSA/console_config
mikomarrache Sep 20, 2023
0d2ddd9
Merge pull request #10 from passmanSA/ncprouting_command
mikomarrache Sep 20, 2023
da47458
fix concurrent modification exception when iterating txs
mikomarrache Sep 20, 2023
bb5fc39
Merge pull request #22 from passmanSA/concurrent_modification_exception
mikomarrache Sep 20, 2023
1054dd8
add ias cluster as supported since we don't load the extension
mikomarrache Sep 20, 2023
77bcc4d
Merge pull request #23 from passmanSA/ias_extension_changes
mikomarrache Sep 20, 2023
d440645
ensure we register the application in all cases
mikomarrache Sep 26, 2023
bb65267
Merge pull request #24 from passmanSA/ota_extension_issue
mikomarrache Sep 26, 2023
599b498
add syntax string + apply even if listening is not enabled
mikomarrache Oct 1, 2023
2873d65
Merge pull request #29 from passmanSA/27-console-pb-avec-readafterreport
mikomarrache Oct 1, 2023
f5c4c27
return error message if node or endpoint is unknown
mikomarrache Oct 6, 2023
23bbc47
add ability to specify config file as parameter
mikomarrache Oct 6, 2023
3be722a
Merge pull request #33 from passmanSA/28-console-changement-configura…
mikomarrache Oct 6, 2023
62bdd67
ota - disable default response when sending image notify command
mikomarrache Oct 16, 2023
d0622dc
Merge pull request #35 from passmanSA/30-console-problème-échange-ota
mikomarrache Oct 16, 2023
2851395
Merge pull request #32 from passmanSA/31-console-test-paramètres-enroll
mikomarrache Oct 16, 2023
a933e21
add new logger
mikomarrache Oct 16, 2023
fad38b4
Merge pull request #37 from passmanSA/txrxlogger
mikomarrache Oct 16, 2023
df28dc3
ensure the poll control client is registered in all cases
mikomarrache Oct 17, 2023
5f04950
Merge pull request #39 from passmanSA/ensure_pollcontrol_extension_re…
mikomarrache Oct 17, 2023
2d77ad2
use string instead of boolean
mikomarrache Oct 17, 2023
ec0b992
Merge pull request #40 from passmanSA/34-console-rediscover-dans-atts…
mikomarrache Oct 17, 2023
84f38f4
add help
mikomarrache Oct 17, 2023
817ac28
Merge pull request #42 from passmanSA/41-console-aide-setcheckintimeout
mikomarrache Oct 17, 2023
d9e89f2
fix argument check
mikomarrache Oct 17, 2023
2944bd2
Merge pull request #43 from passmanSA/34-console-rediscover-dans-atts…
mikomarrache Oct 17, 2023
afd7d99
add support for help (new commands)
mikomarrache Oct 17, 2023
90a6a76
Merge pull request #45 from passmanSA/44-help-not-displayed-for-new-c…
mikomarrache Oct 17, 2023
d81edc7
port fix from public repo
mikomarrache Oct 20, 2023
a833fa8
add ability to set identifier for logging
mikomarrache Oct 21, 2023
fa2d18b
Merge pull request #46 from passmanSA/logging_identifier
mikomarrache Oct 21, 2023
116501e
make the handler identifier accessible
mikomarrache Dec 8, 2023
1223be2
expose parent node address to node status
mikomarrache Dec 10, 2023
a9034bb
Merge pull request #47 from passmanSA/node-status-update-expose-paren…
mikomarrache Dec 10, 2023
3d323e7
announce listener add parent address
mikomarrache Dec 10, 2023
a4b00e0
Merge pull request #48 from passmanSA/announce-listener-add-parent-ad…
mikomarrache Dec 10, 2023
219a074
add network manager id to logs
mikomarrache Dec 14, 2023
3ef1e3a
Merge pull request #49 from passmanSA/add-networkmanagerid-to-logs
mikomarrache Dec 14, 2023
1ba824c
add network manager id to logs
mikomarrache Dec 14, 2023
f82e60e
Merge pull request #50 from passmanSA/add-networkmanagerid-to-logs-2
mikomarrache Dec 14, 2023
1fa5bda
add queue name to logs
mikomarrache Dec 15, 2023
f845927
Merge pull request #51 from passmanSA/add-queue-name-sleepy_txs
mikomarrache Dec 15, 2023
eb73e9b
mac capabilities should be initialized at null (unknown)
mikomarrache Dec 15, 2023
4d2ef4e
Merge pull request #52 from passmanSA/maccapabilities-initialize-null
mikomarrache Dec 15, 2023
7ef55bc
fix npe
mikomarrache Dec 15, 2023
83032d1
Merge pull request #53 from passmanSA/fix-npe-when-maccapabilities-is…
mikomarrache Dec 15, 2023
43eb721
FIX connexion problem
gaelcharbonnier Feb 2, 2024
003a061
Remove log4j.xml
gaelcharbonnier Feb 6, 2024
1d5dffa
forgotten line
gaelcharbonnier Feb 14, 2024
9f4b44c
New command xncpversion and display bootloader version
gaelcharbonnier Feb 8, 2024
3af0ce5
#766 more explicite message when whitelist is not supported
gaelcharbonnier Feb 8, 2024
822254a
#766 EmberNcp.sendCustomFrame always return response
gaelcharbonnier Feb 16, 2024
660d0c7
#763: display xncp version
gaelcharbonnier Feb 16, 2024
ed85acc
#766: Whitelist not supported is not an IllegalArgumentException
gaelcharbonnier Feb 16, 2024
6f2f5cf
#796 NPE when ncp has no extension
gaelcharbonnier Feb 16, 2024
3725389
#766 custom exception
gaelcharbonnier Feb 16, 2024
2ec9af9
Update .gitignore
gaelcharbonnier Mar 13, 2024
4d2f0d8
#64 add gateway MAC in ZigBeeTransactionQueue's logs
gaelcharbonnier Mar 7, 2024
0e68fd8
#66 logs normalisation
gaelcharbonnier Mar 14, 2024
3b15518
set some attributs as writable
berty2000 Apr 29, 2024
b7f1229
Auto generate ZclThermostatCluster
gaelcharbonnier May 3, 2024
8a6265c
FIX log TX
charbopassman Jul 15, 2024
7534278
[maven-release-plugin] prepare release zigbee-1.4.1
cdjackson Sep 25, 2021
b130875
[maven-release-plugin] prepare for next development iteration
cdjackson Sep 25, 2021
7e7df87
Fix potential NPEs when displaying unknown profiles and device types …
cdjackson Oct 18, 2021
fb6ad9e
Fix derivation of ZigBeeProfileType (#1271)
cdjackson Oct 25, 2021
ef70be9
Fix for CC2531 missing transaction ID (#1272)
Ziver Nov 11, 2021
b63962e
Ensure consistent use of SLF4J in pom (#1275)
cdjackson Nov 11, 2021
7da631c
Fix attribute definition errors in Thermostat cluster (#1274)
cdjackson Nov 12, 2021
92721b4
Updates from UG100 release 4.2 (#1277)
cdjackson Nov 12, 2021
389006e
Explicitly disallow rejoins using a well-known key (#1269)
triller-telekom Nov 12, 2021
e3bc035
Add Ember Multicast table management commands (#1276)
cdjackson Nov 12, 2021
6147e61
Fix cherry-pick
gaelcharbonnier Jun 25, 2024
635cfe8
[maven-release-plugin] prepare for next development iteration
cdjackson Nov 12, 2021
f046dee
Remove deprecated methods from discovery and improve naming consisten…
cdjackson Dec 5, 2021
1f14da2
Fix EmberKeyStatus (#1283)
cdjackson Jan 5, 2022
f5fdf25
Fix potential NPE in Ember routing console command (#1284)
cdjackson Jan 5, 2022
d9cefba
Add optional EZSP transaction timeout and improve ncpscan command (#1…
cdjackson Jan 5, 2022
55067ef
Null-check Future in ZclCluster.readAttributeValue (#1289)
TomTravaglino Jan 17, 2022
8aac658
Use isConfigured flag in telegesis and ezsp dongle implementation (#1…
TomTravaglino Jan 19, 2022
2344cfe
Add support for Ember address table management (#1292)
cdjackson Jan 21, 2022
8c0c03a
[maven-release-plugin] prepare release zigbee-1.4.3
cdjackson Jan 21, 2022
3033f4b
Fix cherry-pick
charbopassman Jul 10, 2024
f7562ae
Update license headers to 2022 (#1298)
cdjackson Jan 29, 2022
6c1f529
[maven-release-plugin] prepare for next development iteration
cdjackson Jan 21, 2022
15f8669
Add support for DATA_16_BIT (#1294)
cdjackson Jan 27, 2022
a2f0896
Remove deprecated constructors from CommandResult (#1297)
cdjackson Jan 28, 2022
7a3f64b
Bump xstream in /com.zsmartsystems.zigbee.console.main (#1300)
dependabot[bot] Feb 1, 2022
9dd4962
Improve OTA CLI command to print firmware version (#1299)
cdjackson Feb 2, 2022
3678a77
Improve group management response reporting (#1296)
cdjackson Feb 4, 2022
ec33317
Fix EMBER_APS_OPTION_RETRY setting (#1295)
cdjackson Feb 5, 2022
7c44190
Add EZSP frames for setting address table (#1302)
cdjackson Feb 14, 2022
5ea028e
Fix gpepIncomingMessageHandler definition (#1303)
cdjackson Feb 22, 2022
9dd4489
Add comment to ASH RST (#1304)
cdjackson Feb 22, 2022
6433100
Deprecate ZclAttribute.getCluster - replace with getClusterType (#1307)
cdjackson Feb 27, 2022
3624d5e
Add getZigBeeAddress method to ZclAttribute (#1308)
cdjackson Feb 27, 2022
15e184a
Add tests for getZigBeeAddress (#1309)
cdjackson Feb 27, 2022
10b18c8
Fix group tests (#1310)
cdjackson Feb 27, 2022
095a168
[maven-release-plugin] prepare release zigbee-1.4.4
cdjackson Feb 27, 2022
ca93297
Fix cherry-pick
charbopassman Jul 15, 2024
23545aa
FIX empty if is alright
charbopassman Jul 17, 2024
841891e
[maven-release-plugin] prepare for next development iteration
cdjackson Feb 27, 2022
32f2335
Changed shutdown methods of drivers to always close handlers (#1311)
TomTravaglino Mar 1, 2022
0dc6aa2
Improve handling of Ember energy to improve robustness (#1312)
cdjackson Mar 3, 2022
523d383
Fix error in unsubscribe console command (#1313)
cdjackson Mar 14, 2022
77d058c
Improve error reporting when decoding EZSP frame (#1316)
cdjackson Apr 12, 2022
5532551
Fix change detection for node tables (#1315)
cdjackson Apr 13, 2022
47808c3
Fix test failure in neighbour table (#1317)
cdjackson Apr 13, 2022
d1db426
[maven-release-plugin] prepare release zigbee-1.4.5
cdjackson Apr 13, 2022
816d0c9
FIX cherry-pick
charbopassman Jul 17, 2024
e9b6199
Following EmberAutocoder execution
charbopassman Jul 19, 2024
1a88124
[maven-release-plugin] prepare for next development iteration
cdjackson Apr 13, 2022
ca9199d
Add DATA_16_BIT for console commands (#1319)
cdjackson May 5, 2022
1536211
Only perform energy scan if channel is UNKNOWN (#1321)
cdjackson May 11, 2022
9518f04
Add support for Ballast Configuration Cluster (#1320)
cdjackson May 13, 2022
32abd49
Add more clusters to console application definition (#1322)
cdjackson May 14, 2022
726b7a8
Increased the size of the receive queue in AshFrameHandler (#1324)
TomTravaglino May 18, 2022
7f8640f
Add manufacturerCode field to ZclCluster (#1326)
cdjackson May 28, 2022
4670e7f
Add identity console command (#1325)
cdjackson May 28, 2022
d9ccf3b
Add support for global attributes (#1327)
cdjackson May 28, 2022
02cbc5a
Update README.md
cdjackson May 29, 2022
c902bf1
Improve fingerprint command to also read attribute values (#1328)
cdjackson May 29, 2022
b921eab
[maven-release-plugin] prepare release zigbee-1.4.6
cdjackson May 29, 2022
cca19cd
FIX cherry-pick
charbopassman Jul 19, 2024
bc7b401
[maven-release-plugin] prepare for next development iteration
cdjackson May 29, 2022
6e254b7
Add more local cluster support to console (#1329)
cdjackson May 29, 2022
4067e07
Update README.md
cdjackson May 29, 2022
175280c
Add test for ExtendedPanId.equals (#1333)
lacinoire Jun 10, 2022
b308da7
Present data type in device fingerprint console command (#1336)
cdjackson Jun 18, 2022
738455b
Add updated UG101 V4.4
cdjackson Jun 18, 2022
dd96427
Minor fixes to color console command (#1337)
cdjackson Jun 18, 2022
b71f346
Add node reset to factory defaults console command (#1338)
cdjackson Jun 18, 2022
9da10fd
Improve identify console command to support command all endpoints on …
cdjackson Jun 18, 2022
dfb9814
Remove EZSP Source Route Handler (#1341)
cdjackson Jun 18, 2022
03a25ac
Add support for EZSP extended value (#1340)
cdjackson Jun 18, 2022
986686a
Reduce ASH debug logging (#1342)
cdjackson Jun 18, 2022
af34a2f
Refactor bind/unbind to use BindingTable structure (#1335)
cdjackson Jun 18, 2022
eb65ef9
Update console command list
cdjackson Jun 18, 2022
8f570f9
Add callback notification if OTA query is received to allow applicati…
cdjackson Jun 20, 2022
104e1da
[maven-release-plugin] prepare release zigbee-1.4.7
cdjackson Jun 20, 2022
9be1bbd
Fix cherry-pick
charbopassman Jul 22, 2024
747b4a7
Change log level in AshFrameHandler
charbopassman Jul 23, 2024
8b8a2e5
[maven-release-plugin] prepare for next development iteration
cdjackson Jun 20, 2022
16ea141
add mac capabilities at the node level (#1349)
mikomarrache Sep 30, 2022
a699e59
add ASH raw frame logging when trace enabled (#1350)
mikomarrache Sep 30, 2022
3cacc9f
Add support to deserialise UNSIGNED_64_BIT_INTEGER and BITMAP_64_BIT …
cdjackson Oct 1, 2022
8c04f71
Fix failing macCapabilities test by ensuring macCapabilities is not n…
cdjackson Oct 1, 2022
161530c
[maven-release-plugin] prepare release zigbee-1.4.8
cdjackson Oct 1, 2022
658c104
Fix cherry-pick
charbopassman Jul 23, 2024
159183a
[maven-release-plugin] prepare for next development iteration
cdjackson Oct 1, 2022
fe4211c
Update jSSC to resolve Windows exception (#1356)
cdjackson Oct 26, 2022
9b3b16e
Improve error handling in Ember NCP (#1355)
cdjackson Oct 26, 2022
d8a6902
[maven-release-plugin] prepare release zigbee-1.4.9
cdjackson Oct 26, 2022
001d1a1
Bump license to 2023
charbopassman Jul 23, 2024
1be96c7
[maven-release-plugin] prepare for next development iteration
cdjackson Oct 26, 2022
00c23e2
Add CodeQL workflow for GitHub code scanning (#1358)
lgtm-com[bot] Nov 11, 2022
431ec1c
Improve logging in OTA classes (#1364)
cdjackson Dec 9, 2022
87427d7
Ensure all attribute updates received in a frame have same update tim…
cdjackson Dec 28, 2022
319a678
Bump animal sniffer to check against Android level 21 (#1369)
cdjackson Dec 31, 2022
7dce2bc
Bump license to 2023 (#1370)
cdjackson Dec 31, 2022
ad03b66
Add check to avoid NPE when adding application with no supporting clu…
cdjackson Jan 17, 2023
23ccc5a
Ensure network state is OFFLINE before SHUTDOWN (#1373)
cdjackson Jan 18, 2023
0f8fd76
[maven-release-plugin] prepare release zigbee-1.4.10
cdjackson Jan 18, 2023
84b0be0
[maven-release-plugin] prepare for next development iteration
cdjackson Jan 18, 2023
ba350bc
Fix typo in log entry in AshHandler (#1374)
cdjackson Jan 21, 2023
c433fe5
Explicitly remove transactions from queue on shutdown (#1376)
cdjackson Feb 5, 2023
71fc969
Improve debug logging in OTA server (#1377)
cdjackson Feb 9, 2023
d5f5cfe
Update eclipse project files (#1386)
cdjackson Apr 18, 2023
b9c9674
Add CANCEL command to OTA CLI and fix formatting bug (#1385)
cdjackson Apr 18, 2023
06024fd
Make ZigBeeDongleTelegesis return NO_NETWORK when NoPAN (#1387)
TomTravaglino Apr 20, 2023
4ea17c5
Rework queue management for concurrency (#1381)
ViToni Apr 21, 2023
46f03e9
Remove lambda function to fix animal sniffer error (#1388)
cdjackson Apr 21, 2023
5b80ac5
[maven-release-plugin] prepare release zigbee-1.4.11
cdjackson Apr 21, 2023
736c0f0
[maven-release-plugin] prepare for next development iteration
cdjackson Apr 21, 2023
5bbe8f5
Centralise animal sniffer version and configuration (#1389)
ViToni Apr 22, 2023
85972c8
Remove animal-sniffer on some projects (#1391)
cdjackson Apr 22, 2023
b0d037e
Configure removal of scheduled tasks which have been cancelled (#1393)
ViToni Apr 24, 2023
dc26c29
Introduced Thread Pool Optimizations (#1394)
amitjoy May 5, 2023
1b75a59
Integrate Error Prone for static code analysis (#1395)
ViToni May 5, 2023
8b8df35
Create errorprone.yml
cdjackson May 5, 2023
06d3ebc
Fix warnings for rawtypes (#1398)
ViToni May 28, 2023
357c5d0
Fix warnings for unchecked conversion (#1397)
ViToni May 28, 2023
ed88295
Fix missing line break when outputting in class generators (#1399)
ViToni May 29, 2023
09484fc
Fix javadoc typos
cdjackson Jun 13, 2023
d5a4d47
Add type inference to avoid warnings due to explicit casting (#1400)
ViToni Jun 13, 2023
b8f639e
fix typo + add missing attribute (#1402)
mikomarrache Jul 11, 2023
4fdab50
Add handler for DATA_40_BIT
cdjackson Sep 14, 2023
29ecf7c
[maven-release-plugin] prepare release zigbee-1.4.12
cdjackson Sep 14, 2023
1555c03
[maven-release-plugin] prepare for next development iteration
cdjackson Sep 14, 2023
68379f4
Initial update to EZSP12 (#1405)
cdjackson Oct 3, 2023
6a9cbed
Add GetRadioParameters methods (#1407)
cdjackson Oct 21, 2023
36b1761
Change random key generator to use secure random generator (#1408)
cdjackson Oct 25, 2023
c324494
Update parameters in getRadioParameters (#1409)
cdjackson Oct 25, 2023
add883c
Fix cherry-pick
charbopassman Jul 26, 2024
a3823c0
[maven-release-plugin] prepare release zigbee-1.4.13
cdjackson Oct 26, 2023
a51ba0a
[maven-release-plugin] prepare for next development iteration
cdjackson Oct 26, 2023
4c47d47
feat: Bump EZSP to V13 (#1413)
pdecat Jan 17, 2024
955e819
Little less overhead when trace/debug logging is disabled (#1415)
joerg1985 Jan 20, 2024
9dce604
Fixed NPE (#1419)
amitjoy Feb 23, 2024
fc26700
Fix fingerprint typo (#1420)
cdjackson Apr 22, 2024
cd4e44f
Use random number for PAN ID when creating new network (#1421)
cdjackson Apr 22, 2024
7d432a7
Update license to 2024 (#1422)
cdjackson Apr 26, 2024
10a4d7a
Add enhancements for better management of manufacturer specific clust…
cdjackson May 7, 2024
609363c
[maven-release-plugin] prepare release zigbee-1.4.14
cdjackson May 7, 2024
d33bba7
[maven-release-plugin] prepare for next development iteration
cdjackson May 7, 2024
4d16347
Update console on command to also support OnWithTimedOff (#1424)
cdjackson May 15, 2024
1902961
Fix minor bigs (#1426)
cdjackson May 18, 2024
4a47fe5
Fix inconsistent type error (#1427)
cdjackson May 18, 2024
63255a9
Update Door Lock cluster definition to add more commands and attribut…
cdjackson May 18, 2024
0864a31
Fix javadoc generated for attribute setters (#1428)
cdjackson May 18, 2024
cf51ada
Increase duplicate window detection to 15 seconds and make configurab…
cdjackson Jul 8, 2024
368b134
Fix discovery NPE (#1430)
cdjackson Jul 8, 2024
d62502d
Add PM2.5, CO, CO2 and Formaldehyde measurement clusters (#1432)
cdjackson Jul 18, 2024
d1230fc
Some fixes about logs
gaelcharbonnier Feb 16, 2024
d59791f
create new permit join listener to improve cloud gateway report conne…
berty2000 Jan 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
45 changes: 45 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: 'CodeQL'

on:
push:
branches: ['master']
pull_request:
branches: ['master']
schedule:
- cron: '47 12 * * 4'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [java]

steps:
- name: Checkout
uses: actions/checkout@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: '/language:${{ matrix.language }}'
30 changes: 30 additions & 0 deletions .github/workflows/errorprone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Error Prone Check

on:
push:
branches: ['master']
pull_request:
branches: ['master']

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -P error-prone-check clean compile --file pom.xml
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ simple-network.xml
*.gbl
*.s37

com.zsmartsystems.zigbee.console.main/database/


# Gradle
.gradle
build/
.gradletasknamecache
!gradle-wrapper.jar

#runtime
com.zsmartsystems.zigbee.console.main/database/
database/
log4j.xml*
438 changes: 220 additions & 218 deletions README.md

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions com.zsmartsystems.zigbee.autocode/.project
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.pde.PluginNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
Expand Down
70 changes: 32 additions & 38 deletions com.zsmartsystems.zigbee.autocode/pom.xml
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.zsmartsystems.zigbee</groupId>
<artifactId>com.zsmartsystems.zigbee.autocode</artifactId>
<packaging>jar</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.main.skip>true</maven.main.skip>
</properties>
<parent>
<groupId>com.zsmartsystems</groupId>
<artifactId>zigbee</artifactId>
<version>1.4.1-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
</plugin>
<plugin>
<modelVersion>4.0.0</modelVersion>

<groupId>com.zsmartsystems.zigbee</groupId>
<artifactId>com.zsmartsystems.zigbee.autocode</artifactId>
<packaging>jar</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.main.skip>true</maven.main.skip>
</properties>

<parent>
<groupId>com.zsmartsystems</groupId>
<artifactId>zigbee</artifactId>
<version>1.4.15-SNAPSHOT</version>
</parent>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.5</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
Expand All @@ -41,21 +41,15 @@
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>animal-sniffer-maven-plugin</artifactId>
<version>1.16</version>
<configuration>
<skip>true</skip>
</configuration>
<executions>
<execution>
<id>animal-sniffer</id>
<phase />
</execution>
</executions>
</plugin>
</plugins>
</build>
</plugins>
</build>

<dependencies>
<dependencies>

</dependencies>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2021 by the respective copyright holders.
* Copyright (c) 2016-2024 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -106,6 +106,7 @@ public static class DataTypeMap {
dataTypeMapping.put("ENUMERATION_32_BIT", new DataTypeMap("Integer", 0x33, 4, false, 0xffffffff));
dataTypeMapping.put("FLOAT_32_BIT", new DataTypeMap("Double", 0x39, 4, true));
dataTypeMapping.put("DATA_8_BIT", new DataTypeMap("Integer", 0x08, 1, false));
dataTypeMapping.put("DATA_16_BIT", new DataTypeMap("Integer", 0x09, 2, false));
dataTypeMapping.put("OCTET_STRING", new DataTypeMap("ByteArray", 0x41, -1, false));
dataTypeMapping.put("CHARACTER_STRING", new DataTypeMap("String", 0x42, -1, false));
dataTypeMapping.put("LONG_OCTET_STRING", new DataTypeMap("ByteArray", 0x43, -1, false));
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2021 by the respective copyright holders.
* Copyright (c) 2016-2024 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -286,9 +286,8 @@ protected void outputWithLinebreak(PrintStream out, String indent, List<ZigBeeXm
len += word.length();
}

if (len != 2 + indent.length()) {
out.println();
}
// loop or skipping loop doesn't end line so we do
out.println();
}
}

Expand Down Expand Up @@ -347,9 +346,10 @@ protected void outputClassGenerated(PrintStream out) {

protected void outputAttributeJavaDoc(PrintStream out, String type, ZigBeeXmlAttribute attribute,
DataTypeMap zclDataType) {
String name = attribute.name.replaceAll("\\{\\{count\\}\\}", "");
out.println();
out.println(" /**");
out.println(" * " + type + " the <i>" + attribute.name + "</i> attribute [attribute ID <b>0x"
out.println(" * " + type + " the <i>" + name + "</i> attribute [attribute ID <b>0x"
+ String.format("%04X", attribute.code) + "</b>].");
if (attribute.description.size() != 0) {
out.println(" * <p>");
Expand Down Expand Up @@ -385,7 +385,7 @@ protected void outputAttributeJavaDoc(PrintStream out, String type, ZigBeeXmlAtt
out.println(" * @param reportableChange {@link Object} delta required to trigger report");
}
} else if ("Set".equals(type)) {
out.println(" * @param " + stringToLowerCamelCase(attribute.name) + " the {@link "
out.println(" * @param " + stringToLowerCamelCase(name) + " the {@link "
+ getDataTypeClass(attribute) + "} attribute value to be set");
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2021 by the respective copyright holders.
* Copyright (c) 2016-2024 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -164,8 +164,8 @@ protected void generateFields(PrintStream out, String parentClass, String classN
}
if (getAutoSized(fields, stringToLowerCamelCase(field.name)) != null) {
out.println(
" Integer " + stringToLowerCamelCase(field.name) + " = (" + getDataTypeClass(field)
+ ") deserializer.deserialize(" + "ZclDataType." + field.type + ");");
" Integer " + stringToLowerCamelCase(field.name) + " = deserializer.deserialize(" +
"ZclDataType." + field.type + ");");
continue;
}

Expand All @@ -175,8 +175,8 @@ protected void generateFields(PrintStream out, String parentClass, String classN

out.println(" if (" + field.sizer + " != null) {");
out.println(" for (int cnt = 0; cnt < " + field.sizer + "; cnt++) {");
out.println(" " + stringToLowerCamelCase(field.name) + ".add((" + dataType
+ ") deserializer.deserialize(" + "ZclDataType." + field.type + "));");
out.println(" " + stringToLowerCamelCase(field.name) +
".add(deserializer.deserialize(" + "ZclDataType." + field.type + "));");
out.println(" }");
out.println(" }");
} else if (field.condition != null) {
Expand All @@ -185,7 +185,7 @@ protected void generateFields(PrintStream out, String parentClass, String classN
// This checks for a single response
out.println(" if (deserializer.getRemainingLength() == 1) {");
out.println(
" status = (ZclStatus) deserializer.deserialize(ZclDataType.ZCL_STATUS);");
" status = deserializer.deserialize(ZclDataType.ZCL_STATUS);");
out.println(" return;");
out.println(" }");
continue;
Expand All @@ -196,13 +196,13 @@ protected void generateFields(PrintStream out, String parentClass, String classN
out.println(" if (" + field.condition.field + " " + getOperator(field.condition.operator)
+ " " + field.condition.value + ") {");
}
out.println(" " + stringToLowerCamelCase(field.name) + " = (" + getDataTypeClass(field)
+ ") deserializer.deserialize(" + "ZclDataType." + field.type + ");");
out.println(" " + stringToLowerCamelCase(field.name) + " = deserializer.deserialize(" +
"ZclDataType." + field.type + ");");
out.println(" }");
} else {
if (!field.type.isEmpty()) {
out.println(" " + stringToLowerCamelCase(field.name) + " = (" + getDataTypeClass(field)
+ ") deserializer.deserialize(" + "ZclDataType." + field.type + ");");
out.println(" " + stringToLowerCamelCase(field.name) + " = deserializer.deserialize(" +
"ZclDataType." + field.type + ");");
} else {
out.println(" " + stringToLowerCamelCase(field.name) + " = new "
+ getDataTypeClass(field) + "();");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2021 by the respective copyright holders.
* Copyright (c) 2016-2024 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -76,6 +76,7 @@ public static void main(final String[] args) {
zclParser.addFile("src/main/resources/0204_ThermostatUserInterfaceConfiguration.xml");

zclParser.addFile("src/main/resources/0300_ColorControl.xml");
zclParser.addFile("src/main/resources/0301_BallastConfiguration.xml");

zclParser.addFile("src/main/resources/0400_IlluminanceMeasurement.xml");
zclParser.addFile("src/main/resources/0401_IlluminanceLevelSensing.xml");
Expand All @@ -87,6 +88,12 @@ public static void main(final String[] args) {
zclParser.addFile("src/main/resources/0407_LeafWetness.xml");
zclParser.addFile("src/main/resources/0408_SoilMoisture.xml");

zclParser.addFile("src/main/resources/040C_CarbonMonoxide.xml");
zclParser.addFile("src/main/resources/040D_CarbonDioxide.xml");

zclParser.addFile("src/main/resources/042A_PM25Measurement.xml");
zclParser.addFile("src/main/resources/042B_FormaldehydeMeasurement.xml");

zclParser.addFile("src/main/resources/0500_IasZone.xml");
zclParser.addFile("src/main/resources/0501_IasAce.xml");
zclParser.addFile("src/main/resources/0502_IasWd.xml");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2016-2021 by the respective copyright holders.
* Copyright (c) 2016-2024 by the respective copyright holders.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -194,11 +194,13 @@ private void generateZclClusterClasses(ZigBeeXmlCluster cluster, String packageR

out.println(" @Override");
out.println(" protected Map<Integer, ZclAttribute> initializeClientAttributes() {");
out.println(" Map<Integer, ZclAttribute> attributeMap = super.initializeClientAttributes();");
createInitializeAttributes(out, cluster.name, attributesClient);
out.println();

out.println(" @Override");
out.println(" protected Map<Integer, ZclAttribute> initializeServerAttributes() {");
out.println(" Map<Integer, ZclAttribute> attributeMap = super.initializeServerAttributes();");
createInitializeAttributes(out, cluster.name, attributesServer);
out.println();

Expand Down Expand Up @@ -276,7 +278,8 @@ private void generateZclClusterClasses(ZigBeeXmlCluster cluster, String packageR
out.println(" * @param response the {@link " + commandClassName + "} to send");
out.println(" */");
out.println(
" public Future<CommandResult> sendResponse(" + commandClassName + " command, " + commandClassName
" public Future<CommandResult> sendResponse(" + commandClassName + " command, "
+ commandClassName
+ " response) {");
out.println(" return super.sendResponse(command, response);");
out.println(" }");
Expand All @@ -297,17 +300,22 @@ private void generateZclClusterClasses(ZigBeeXmlCluster cluster, String packageR
outputAttributeJavaDoc(out, "Set", attribute, zclDataType);
out.println(" @Deprecated");
if (attribute.arrayStart != null && attribute.arrayCount != null && attribute.arrayCount > 0) {
String name = attribute.name.replaceAll("\\{\\{count\\}\\}", "");
out.println(" public Future<CommandResult> set" + stringToUpperCamelCase(name).replace("_", "")
+ "(final int arrayOffset, final " + getDataTypeClass(attribute) + " value) {");
name = attribute.name.replaceAll("\\{\\{count\\}\\}", Integer.toString(attribute.arrayStart));
String baseName = attribute.name.replaceAll("\\{\\{count\\}\\}", "");
out.println(
" return write(serverAttributes.get(" + getEnum(name) + " + arrayOffset), value);");
" public Future<CommandResult> set" + stringToUpperCamelCase(baseName).replace("_", "")
+ "(final int arrayOffset, final " + getDataTypeClass(attribute) + " "
+ stringToLowerCamelCase(baseName) + ") {");
String name = attribute.name.replaceAll("\\{\\{count\\}\\}",
Integer.toString(attribute.arrayStart));
out.println(
" return write(serverAttributes.get(" + getEnum(name) + " + arrayOffset), "
+ stringToLowerCamelCase(baseName) + ");");
} else {
out.println(" public Future<CommandResult> set"
+ stringToUpperCamelCase(attribute.name).replace("_", "") + "(final "
+ getDataTypeClass(attribute) + " value) {");
out.println(" return write(serverAttributes.get(" + getEnum(attribute.name) + "), value);");
+ getDataTypeClass(attribute) + " " + stringToLowerCamelCase(attribute.name) + ") {");
out.println(" return write(serverAttributes.get(" + getEnum(attribute.name) + "), "
+ stringToLowerCamelCase(attribute.name) + ");");
}
out.println(" }");
}
Expand Down Expand Up @@ -483,8 +491,6 @@ private void generateZclClusterClasses(ZigBeeXmlCluster cluster, String packageR
}

private void createInitializeAttributes(PrintStream out, String clusterName, List<ZigBeeXmlAttribute> attributes) {
out.println(" Map<Integer, ZclAttribute> attributeMap = new ConcurrentSkipListMap<>();");

if (attributes.size() != 0) {
out.println();
for (final ZigBeeXmlAttribute attribute : attributes) {
Expand Down
Loading