-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Feature: implement PowerMeter pin config for serial interfaces #772
Conversation
in your pin_mapping.json, add a powermeter object like this: [ { "name": "My Board", ... "powermeter": { "rx": <num>, "tx": <num>, "dere": <num> }, ... } ] the SML power meter requires the rx pin to be set. the SDM power meter requires the rx and tx pins are set. the "dere" pin pin is optional and if set, this pin controls the driver enable and receiver enable pins of the RS485 transceiver. the SDM library handles this pin. closes #771.
@cerise21 Würdest du das bitte einmal testen? Firmware gibt's als Artefakte im PR Build Run, und die solltest du nun auch nehmen können, es sei denn du hast noch andere Anpassungen die ein Selbstkompilieren nötig machen? |
Ui, cool, danke für's Einbauen! |
Jawoll, super, die vorcompilierte Firmware läuft nun auch (mit angepasstem pinmapping.json) bei mir; alle Geräte, incl. Powermeter, sind in der Webapp eingebunden. Was mir noch auf die Schnelle aufgefallen ist: Per POST an die API kann ich die DPL-Konfiguration nicht mehr ändern. |
Super, vielen Dank für deine Mitarbeit!
Der JSON Payload ist sicherlich zu lang. Die WebApp schneidet den Knoten "metadata" raus beim Absenden des POST Request. Das solltest du auch tun. Ich kann verstehen, wenn das zu Problemen führt. Das kann lästig sein für den ein oder anderen Anwendungsfall. Wenn das wichtig ist, dann müsste ich mir überlegen, wie die Metadaten in die WebApp kommen, ohne den bisherigen PowerLimiterConfig JSON payload zu hijacken. Mh... Vielleicht sollte ich das besser? Du bist garantiert nicht der einzige, der den DPL mit HTTP POST konfiguriert?! |
Ah, ok, danke für die Erklärung; das Löschen von 'metadata' vor dem Wegschicken ist leicht gemacht, wenn man’s weiss. |
Ist ab 054a677, also ab dem nächsten Release, nicht mehr nötig. |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion or issue for related concerns. |
in your pin_mapping.json, add a powermeter object like this:
the SML power meter requires the rx pin to be set. the SDM power meter requires the rx and tx pins are set. the "dere" pin pin is optional and if set, this pin controls the driver enable and receiver enable pins of the RS485 transceiver. the SDM library handles this pin.
closes #771.