Граф коммитов

36 Коммитов

Автор SHA1 Сообщение Дата
Peli de Halleux c48c77a673 use srvo hint when binding roles 2023-10-27 18:50:26 +00:00
Peli de Halleux d9c6d1d86f reduce logging in jacdac 2023-09-05 16:22:30 +00:00
Peli de Halleux 28e0677a82
add logic to enforce binding to self device (#92) 2022-06-01 17:52:12 -07:00
pelikhan f24f32d1d7 fixing binding logic with queries 2022-04-25 11:40:53 -07:00
Peli de Halleux 038682f900
Use string constants for packing (#84)
* simple server creation

* add packing constants

* generate constants in clients

* patching

* updated constants

* updating clients

* minor bump

* fixing servers

* more fixes

* more server fixes

* support for options

* fixing build

* more build woes

* build issues

* delete .gts files

* use format strings

* formatting

* more

* run update-clients on buildspecs
2022-04-11 09:26:43 -07:00
pelikhan 50c49e46ad add weights to fixed instances 2022-04-08 08:39:19 -07:00
pelikhan 8cfb7b7168 removing get_role constants 2022-01-05 09:07:02 -08:00
pelikhan 0743f9bc7d updated role manager 2022-01-05 09:00:03 -08:00
pelikhan 4a5e83fabd fix logic to maximume role selection 2021-11-29 11:19:15 -08:00
Michal Moskal fcfbef6901 send command_not_impl reports 2021-11-08 17:02:03 -08:00
Peli de Halleux 1bc3670925
use restartCounter to detect proxy modes (#57)
* use resetcounter to detect proxy modes

* consistent naming

* only apply logic when device is client
2021-10-11 10:43:40 -07:00
pelikhan 365c0937ec reduce logging 2021-10-08 09:24:54 -07:00
pelikhan e77fc19eff support for force-proxy mode 2021-09-23 16:49:27 -07:00
pelikhan de763a4968 reduce logging 2021-09-13 11:00:34 -07:00
pelikhan 91822543f9 handle empty instance name 2021-09-09 21:52:37 -07:00
Michal Moskal 316f1dcd66 logging fixes 2021-06-22 15:35:22 -07:00
Michal Moskal 2006b5c799 format code with prettier 2021-06-18 17:20:03 -07:00
Peli de Halleux afe343e3f5
cleaning up event story (#41)
* cleaning up event story

* docs

* some more cleanups

* cleaning some dependencies

* more refactoring

* fix stack overflow

* continued cleanup

* use forof

* add once

* moving more code into bus class

* more events

* more cleanup

* work around sim bugs

* work on settings

* somewhat working decoder
2021-05-19 08:35:56 -07:00
Michal Moskal a9d5fbc720 Don't crash when RoleMgr not running 2021-05-18 16:36:07 -07:00
Michal Moskal c136f5e5e5 Don't check proxy with disabled role mgr 2021-05-18 16:17:20 -07:00
pelikhan fc68b809c4 implement isClient + send client connected blink 2021-05-04 07:01:20 -07:00
pelikhan 17382e0689 implement isClient check 2021-05-04 06:28:27 -07:00
Peli de Halleux a34e165e17 consistently use server notation 2021-04-21 07:09:39 -07:00
pelikhan f368a530b6 host -> server 2021-04-08 10:10:21 +02:00
Peli de Halleux bc0abba2f7 updated logging info 2021-03-24 04:07:23 -07:00
Peli de Halleux 35dc6d97ba notify role manager changes on auto-bind 2021-03-24 03:24:14 -07:00
Peli de Halleux c9052665df added checkproxy impl 2021-03-23 04:00:52 -07:00
pelikhan 0d0291f98d only send change events on autobind 2021-03-15 09:57:11 +01:00
pelikhan 424133be2d keep track of auto-bind hash 2021-03-15 09:14:49 +01:00
pelikhan 500209037b compute hash of bindings to detect changes 2021-03-15 08:53:44 +01:00
pelikhan f9c62c333d revert jacdac.constants renaming 2021-03-07 11:38:49 +01:00
pelikhan fc95c48d6c moving constants from jacdac to jacdac.constants 2021-03-04 10:53:21 +01:00
Michal Moskal f4ece60362 Rename requiredDevice to role everywhere 2021-02-09 18:59:06 -08:00
Michal Moskal 8843f081c3 Drop name from clients, only leave the role
fixes #31
2021-02-09 18:56:59 -08:00
Peli de Halleux c14b5f5afb Move autobind inside of rolemanager to allow emit "changed" event when bindings are modified. 2021-02-09 11:54:37 +01:00
Michał Moskal 70d9cea37a
feat: implement new role manager (#30)
* Start on v2 of role mgr

* Implement the new autobind

* Add missing file

* autobinder fixes

* Check CRCs in sim

* Packet spliting in sim

* fixes in packet splitting

* more testing and logging

* fixing autobinding

* Fix packet sizing

* alpha-sort for role names

* Update constants for role-mgr

* potentially log loopback packets

* Run auto-bind automatically

* Correct initial binding occupancy

* fix AllRolesAllocated

* Remove TODO
2021-02-06 01:53:55 +01:00