1
0
mirror of https://github.com/JoelBender/bacpypes synced 2025-10-05 22:18:16 +08:00
Commit Graph

356 Commits

Author SHA1 Message Date
Joel Bender
fcddac5a82 pull in fixes from #126 in stage 2017-09-09 23:10:12 -04:00
Joel Bender
a050df73a6 offset assignment bug, working around floating point issues, added tests 2017-09-09 22:56:17 -04:00
Joel Bender
e31d7e7d37 bring branch up to date 2017-09-09 02:05:43 -04:00
Joel Bender
17d0074fc5 bring the branch up to date with stage 2017-09-09 01:13:48 -04:00
Joel Bender
1749f2a0af merging #131 which ended up being lots of tests 2017-09-09 00:55:06 -04:00
Joel Bender
1ec923c018 sync python versions 2017-09-08 23:45:39 -04:00
Joel Bender
cd5a4653dd type checking improved, added tests 2017-09-08 15:00:38 -04:00
Joel Bender
5f761b7d91 sync the versions 2017-09-07 00:23:53 -04:00
Joel Bender
c1c4e077ac merge in stuff from stage and retest 2017-09-06 23:07:05 -04:00
Joel Bender
3242556a12 sync the versions 2017-09-05 11:59:02 -04:00
Joel Bender
aee547d050 sync the python versions 2017-08-31 23:59:53 -04:00
Joel Bender
06524869e6 debug the components 2017-08-31 15:44:01 -04:00
Joel Bender
8d93e3d39c bring branch up-to-date with stage 2017-08-30 23:46:53 -04:00
Joel Bender
6ec0e2fb92 bring branch up-to-date with stage 2017-08-30 22:57:57 -04:00
Joel Bender
b9f23bff26 bring branch up-to-date with stage 2017-08-30 22:53:46 -04:00
Joel Bender
2a1acf70af allow missing objects 2017-08-29 23:32:23 -04:00
Joel Bender
f1d4626527 add crude virtual IP network classes and tests 2017-08-16 23:24:07 -04:00
Joel Bender
75b3e1af6b remove the restriction on VLAN nodes to have address of type Address 2017-08-15 00:21:39 -04:00
Joel Bender
f34de1071b password failure is an execution error, add a password to the test application 2017-08-04 10:16:41 -04:00
Joel Bender
77a5f81d79 leftover bits 2017-08-04 02:06:24 -04:00
Joel Bender
263dd9d5a3 remove flakes 2017-08-04 01:23:32 -04:00
Joel Bender
3adcfbe91b shuffled some code around (just py27 for now) 2017-08-04 01:19:59 -04:00
Joel Bender
e21b540d7b Merge branch '78_device_communication_control' of https://github.com/amrx101/bacpypes into 78-device-communication-control 2017-08-03 21:01:00 -04:00
Amit Kumar
79262b29d3 first commit, introduced DeviceCommunicationControlServices class
Application checks and drops packets as per Clause 16

WIP

do_DeviceCommunication implemented

Set deviceInfoCache if not set already

First iteration

removed unused import

proper simpleAckPDU

removed unnecessary comments

Instanciate SMAP in Application class

Removed smap instanciation from BIPForeignApplication

Add support so one can add properties to LocalDeviceObject

Remove adding _dcc variables to LocalDeviceObject

Support for authentication WIP

removed unwanted change

Response with error on authentication failure

Removed unused import

DeviceCommunicationService class added for py3

Device allow for attributes

Changes in Application

Appservice changes for py3

Dont attach smap instance to local device

miscc
2017-08-03 18:17:41 +05:30
Joel Bender
38c8fb2613 vlan node bind in __init__ failed because empty networks are falsy 2017-08-02 23:51:31 -04:00
Joel Bender
ab7ef56fe7 bring the branch up to date with 'stage' 2017-08-02 21:45:41 -04:00
Joel Bender
f1b7f9b1fa the 'description' property is optional 2017-08-02 11:14:34 -04:00
Joel Bender
76f53473e7 old API name for debugging contents 2017-07-25 13:44:11 -04:00
Joel Bender
6e30ea3117 copy/paste error in debugging code 2017-07-24 15:02:57 -04:00
Joel Bender
5333d6e66f allow the sieve queue class to be extended 2017-07-24 15:00:55 -04:00
Joel Bender
9b843f3660 bring the branch up to date with stage 2017-07-20 12:44:45 -04:00
Joel Bender
887e0d0bbc bump for the next release 2017-07-20 12:13:01 -04:00
Joel Bender
66fef855a9 obsolete function name -- I thought I hot fixed this :-/ 2017-07-20 10:40:16 -04:00
Joel Bender
2ebde5a1f2 add some debugging 2017-06-26 14:15:03 -04:00
Joel Bender
4a2474058d bring the branch version up to date with new version number in stage 2017-06-26 14:11:03 -04:00
Joel Bender
4ce878d915 bump the version for the next release 2017-06-26 14:09:20 -04:00
Joel Bender
b1fc637193 wrong function name 2017-06-26 13:54:18 -04:00
Joel Bender
26792bb941 give names to vlan nodes, makes it a little each to see which one is getting an indication 2017-05-25 00:25:23 -04:00
Joel Bender
e9c0111027 ongoing changes 2017-05-23 02:39:09 -04:00
Joel Bender
777ee04843 slightly better error message 2017-05-23 02:38:25 -04:00
Joel Bender
3c223f711b bump the version, this will be an API/behavior change 2017-05-19 22:04:58 -04:00
Joel Bender
fe08d71650 cancel the idle timeout when the socket is closed in the server code 2017-05-11 23:44:40 -04:00
Joel Bender
5698bc907f keep the sockets non-blocking (the settimeout call made them blocking) and handle connection timeouts with a task like the idle timeout 2017-05-11 23:28:12 -04:00
Joel Bender
7a7b069b87 bump the version for the next release 2017-05-09 00:38:03 -04:00
Joel Bender
227bb5fbf6 error code 111 is connection refused 2017-05-08 23:44:48 -04:00
Joel Bender
47cdd325cf add offset to recurring tasks, closes #126 2017-05-02 10:21:41 -04:00
Joel Bender
9fe732c9ca minor version number change because API changed 2017-05-01 00:50:59 -04:00
Joel Bender
b1c86795c4 protect against attempting to install signal handlers on a non-main thread (see #119) 2017-04-30 23:37:19 -04:00
Joel Bender
e491f44610 merging fix and api changes for #125 2017-04-30 23:24:04 -04:00
Joel Bender
9b68c2f7be sync up the changes between the py27 and py34 versions 2017-04-28 15:29:03 -04:00
Joel Bender
547f1216a2 debugging updates 2017-04-28 15:20:35 -04:00
Joel Bender
0bb03f83d7 non-blocking cleanup of the queue for abort 2017-04-27 21:26:24 -04:00
Joel Bender
34039b5cc7 add a simple function to dump the stack 2017-04-27 21:25:51 -04:00
Joel Bender
6565627b98 sync with changes in py3 code 2017-04-27 11:36:44 -04:00
Joel Bender
90a3e62692 copy/paste duplicate 2017-04-27 01:54:16 -04:00
Joel Bender
2e28d3af4d subtle changes to connection logic and renamed timeout pieces 2017-04-26 11:45:54 -04:00
Joel Bender
01e71921ed remove error check, fix names #124 2017-04-21 23:11:59 -04:00
Joel Bender
32db81ed88 update bit string lenghts, closes #121 2017-04-07 19:01:31 -04:00
Joel Bender
e24ddfb4d6 bump the version for the next release 2017-03-27 23:19:13 -04:00
Joel Bender
9cbebd9a91 merge #112 to be released 2017-03-25 22:29:23 -04:00
Joel Bender
89dc240701 bringing doc branch up to date 2017-03-25 00:24:27 -04:00
Joel Bender
8b95e65901 bump the version for the next release 2017-03-25 00:15:49 -04:00
Joel Bender
856cad7a7b bring the branch for #110 up to date with stage 2017-03-23 23:19:58 -04:00
Joel Bender
3d350f6f00 merge #109 with new sample 2017-03-23 23:01:09 -04:00
Joel Bender
a313546196 merge #111 2017-03-23 22:52:29 -04:00
Joel Bender
d7d096ec47 add sigterm and sigusr1 parameters to run, move the stop() and print_stack() functions up, remove code attaching signal handlers at import time 2017-03-21 10:01:45 -04:00
Joel Bender
3be5db8423 patch provided in #111 2017-03-15 01:00:45 -04:00
Joel Bender
54d0f4430b handle no broadcast available in interface (loopback) 2017-03-10 00:41:06 -05:00
Joel Bender
ec01d22eae first crack at supporting interface names 2017-03-10 00:39:35 -05:00
Joel Bender
8db3db25cf propagate the device information cache in the BIPForeignApplication like it does in the BIPSimpleApplication, should fix #109 2017-03-09 11:22:07 -05:00
Joel Bender
836983a1a4 check for limits parameter (untested) 2017-03-08 08:11:59 -05:00
Joel Bender
f2c7d3fe47 bringing branch up-to-date with stage 2017-03-07 18:11:50 -05:00
Joel Bender
363f61242c merging issue branch, closes #107 2017-03-07 17:55:19 -05:00
Joel Bender
66c4eebf55 add the close_socket() function requested in #107 2017-03-03 23:43:05 -05:00
Joel Bender
afcda0d730 weird character snuck in via copy/paste 2017-02-28 10:55:34 -05:00
Joel Bender
49c50f5bd0 additional units submitted in #106 2017-02-27 21:59:11 -05:00
Joel Bender
c795e3b0f0 wrong syntax 2017-02-27 21:35:03 -05:00
Joel Bender
7e544ec637 trap invlid tag in sub-elements, needs testing 2017-02-27 21:24:39 -05:00
Joel Bender
e75257c7d0 allow the INI file name to be specified in the environment 2017-02-24 09:40:00 -05:00
Joel Bender
f6a235d4b1 wrong abort function name (old code hotfix) 2017-02-21 23:39:55 -05:00
Joel Bender
132820c66d wrong abort function name (old code hotfix) 2017-02-21 23:30:57 -05:00
Joel Bender
a1054e1678 add BACPYPES_COLOR optional environment variable to match BACPYPES_DEBUG 2017-01-11 15:54:47 -05:00
Joel Bender
78032e5a43 bump the version for the next release 2016-12-23 09:44:24 -05:00
Joel Bender
cf33aa1c8e Merge branch 'issue-87' into stage 2016-11-30 20:23:00 -05:00
Karol Gil
4c9a2152c1 Issue #99 - fix proposal 2016-11-18 08:46:42 +01:00
Christian Tremblay
820c03e8dd Merge branch 'issue-87' of https://github.com/JoelBender/bacpypes into issue-87
Conflicts:
	py25/bacpypes/app.py
	py27/bacpypes/app.py
	py34/bacpypes/app.py
	samples/SampleConsoleCmd-A.py

Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
2016-11-15 22:39:59 -05:00
Christian Tremblay
70abd268ab Typo : source_address instead of address
Signed-off-by: Christian Tremblay <christian.tremblay@servisys.com>
2016-11-15 21:29:15 -05:00
Joel Bender
e322d4350c a little extra type checking 2016-11-14 22:31:48 -05:00
Joel Bender
39169bd5d7 bug with stream and record file initialization, clean up sample applications 2016-11-14 21:35:30 -05:00
Joel Bender
d610556112 missing import 2016-11-14 00:19:37 -05:00
Joel Bender
2f8f147517 trap the invalid array index 2016-11-14 00:18:30 -05:00
Joel Bender
ba31af7849 check for debugging 2016-11-14 00:17:25 -05:00
Joel Bender
2187bac5f8 use the new API 2016-11-11 00:14:46 -05:00
Joel Bender
418115fc7a sync the versions 2016-11-10 22:39:29 -05:00
Joel Bender
cb2449b5ad rename the internal fn from _confirmation_complete to _app_complete 2016-11-10 09:06:02 -05:00
Joel Bender
12589fe7af improve the isolation of layers between the Application and an IOController 2016-11-10 00:53:19 -05:00
Joel Bender
cdac3f1b10 sync changes across versions 2016-11-07 23:37:46 -05:00
Joel Bender
233486d0a2 remove obnoxious trailing blanks 2016-11-07 22:45:32 -05:00
Joel Bender
cf1a669ab0 synchronize the API update addPeer to add_actor, etc, across versions and sample code 2016-11-04 23:58:26 -04:00
Joel Bender
755b21d692 change the add/delete peer API to add/delete actor 2016-11-04 08:17:37 -04:00
Joel Bender
52c84afa58 the getsockopt() function is of the socket 2016-10-27 14:56:22 -04:00
Joel Bender
e847d876dd PDU data to/from TCP is bytes, request buffer must also be bytes 2016-10-26 20:43:18 -04:00
Joel Bender
34c492617e add the serialNumber property to the device object 2016-10-26 20:23:53 -04:00
Joel Bender
a6f197cf03 define handle_error function to match TCP api 2016-10-26 20:18:56 -04:00
Joel Bender
1864cc5422 be more explicit with bytes in upstream and downstream PDUs 2016-10-26 14:24:36 -04:00
Joel Bender
9b288405ef better handling of ctor order, use None in PDU ctor 2016-10-26 14:11:20 -04:00
Joel Bender
bbf4b25234 fix the API to match the tcp module 2016-10-26 01:57:30 -04:00
Joel Bender
ac3d56f18e change from passing exceptions up the stack (which mever seemed right) to passing them to the application service element via the director 2016-10-26 01:43:57 -04:00
Joel Bender
e7bf984798 more tcp stream error handling 2016-10-23 01:33:07 -04:00
Joel Bender
99996a73fa send IOError exceptions upstream 2016-10-20 16:11:08 -04:00
Joel Bender
a021cfc2e2 debugging output cleanup 2016-10-20 10:34:13 -04:00
Joel Bender
bde964e211 clean up the ClientController and write some docs 2016-10-07 15:14:20 -04:00
Joel Bender
970ed8f7f0 new SieveClientController class for other protocol libs (like MODpypes) 2016-10-06 09:42:23 -04:00
Joel Bender
c57a325920 newline at end of file weirdness 2016-09-20 20:42:09 -04:00
Joel Bender
aa1ec81643 sync changes, clean up names, more testing 2016-09-17 02:12:14 -04:00
Joel Bender
ac36e50324 make sure subscriptions are no longer scheduled when they are canceled 2016-09-16 14:52:12 -04:00
Joel Bender
458c954523 raise execution errors rather than Error objects -- forgot my own API :-) 2016-09-16 11:27:34 -04:00
Joel Bender
b3fec6220e trigger the task manager event when deferred is called to break the asyncore loop 2016-09-16 11:26:16 -04:00
Joel Bender
b07033d258 essentially a new module using detect 2016-09-16 01:36:48 -04:00
Joel Bender
04e18c35af add a detect module 2016-09-16 01:34:02 -04:00
Joel Bender
8e9869c13c enable debugging for deferred() 2016-09-16 01:32:42 -04:00
Joel Bender
06ca93d9c7 clean up names, sync python versions 2016-09-14 22:17:07 -04:00
Joel Bender
af9fd7ead1 hacks and such 2016-09-14 18:20:51 -04:00
Joel Bender
53a95da5b0 split object services from .service.device to .service.object, sync versions, clean up flakes 2016-09-10 20:41:04 -04:00
Joel Bender
c57514b7a9 bump the version number for the API change and include the new modules 2016-09-06 10:34:27 -04:00
Joel Bender
0b05daa93c synchronize all the codes 2016-09-02 23:31:35 -04:00
Joel Bender
0fdc4040f4 update to the new framework 2016-08-30 22:28:14 -04:00
Joel Bender
92a376a68a switch to using IOCBs 2016-08-30 16:44:29 -04:00
Joel Bender
065e385670 clean up i_am() and i_have() functions, raise ExecutionError rather than Error 2016-08-30 15:07:33 -04:00
Joel Bender
f83e6106bb fix the trigger function name, make controller registration explicit 2016-08-30 15:05:06 -04:00
Joel Bender
a8f29e915a separate the upstream traffic into responses and errors by PDU type, minor documentation 2016-08-30 15:03:18 -04:00
Joel Bender
1a9f06fd51 many changes 2016-08-30 02:25:32 -04:00
Joel Bender
1fa3fd1c76 first crack at COV service module -- needs help 2016-08-29 16:41:14 -04:00
Joel Bender
147b29c79a strip out unused imports, remove localAddress from application layer with a deprecation warning, add local address to BIP in case it's needed by other applications 2016-08-29 16:40:12 -04:00
Joel Bender
431eaebe36 move the read/write property services 2016-08-28 18:18:22 -04:00
Joel Bender
3f78fb8adf file and device services, untested 2016-08-28 01:52:51 -04:00
Joel Bender
2b00378904 simplify the error handling and update the API 2016-08-27 18:51:25 -04:00
Joel Bender
40a9a7892d add the capabillity module and tests 2016-08-27 18:49:56 -04:00
Joel Bender
8253619349 merge in stage (with the next release) and keep going 2016-08-26 15:33:06 -04:00
Joel Bender
08b16d5122 ready for the next release 2016-08-26 15:31:57 -04:00
Joel Bender
68463cdd81 missed keeping track of the maximum APDU length accepted 2016-08-26 13:57:42 -04:00
Joel Bender
9fa5b749f9 remove the localDevice dependancy and shift settings over to the state machine access point 2016-08-26 13:42:08 -04:00
Joel Bender
b5671a18c8 return the default value to what's in clause 12.11.27 (hotfix) 2016-08-26 11:07:55 -04:00
Joel Bender
2a623aff98 update the maxSegmentsAccepted in the segmentation state machine when the device supports segmentation 2016-08-26 09:28:36 -04:00
Joel Bender
20a0e6a79f bring branch up to date with stage 2016-08-26 07:44:23 -04:00
Joel Bender
25ddfe1ef3 fix the max APDU length accepted encoding (check was in the wrong direction), make sure the local device has a value that is at least 50 2016-08-26 00:25:50 -04:00
Joel Bender
100aabae2a work in progress 2016-08-25 22:31:14 -04:00
Joel Bender
af6f1cec68 create the service subpackage and a test module in it 2016-08-25 17:24:59 -04:00
Joel Bender
c669b87daa extended debugging #76 works as intended 2016-08-25 12:17:08 -04:00
Joel Bender
122fd355ae tell the cache the device info has been updated when the incoming request APCI fields are inconsistent with the device info (hotfix) 2016-08-25 10:07:40 -04:00