-
Notifications
You must be signed in to change notification settings - Fork 89
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
Error: Invalid argument in OWFS #47
Comments
Thanks for a great library! Any progress here? I am using attiny85 and experience the same for each command sent to DS2413. DS2405 is working fine, but I need readback possibility. DS2408 is also working fine with OWFS but is not working well with Domoticz, leaving me with DS2413 as the last option for controlling outputs. So, is there something that I need to try to change, given the fact that with 05 and 08 the timing seems ok? (Master is a ds2482-800 on RPI) |
@pklarsjo so did you work through my previous tipps? it seems to be that timing-issue. easy to fix by changing one value |
No, not yet since timing is ok with other types. But maybe i need to try
differenting them?
|
of course you should! ds2405/2413 does almost nothing on the bus, very short messages. when more memory is involved the ow-messages get longer. timing problems are more likely to occur. |
Ok, will try and come back. Which exact parameter do you suggest changing
and to what (currently no scope available)?
ONEWIRE_TIME_MSG_HIGH_TIMEOUT is mentioned in readme.md but ONEWIRE_TIME_SLOT_MAX is motioned in #43 referenced above.
Edit: Added detailed parameter question.
|
ONEWIRE_TIME_MSG_HIGH_TIMEOUT changed to x10, no difference. Some additional info: My code:
#include "OneWireHub.h" constexpr uint8_t pin_led { 1 }; auto hub = OneWireHub(pin_onewire); bool blinking(void); void setup()
} void loop()
} bool blinking(void)
} |
This is getting even more strange. I enabled toggling of the state in the blinking function (ds2413.setPinState(0,ledState);) to see if device is live or not. After some normal 1sec flashes it suddenly freezes on or off. I know for sure it's not rebooting since I have added some fast boot blinks, it just stays for a while longer than expected. In addition I've tried changing some parameters withou getting any progress (ONEWIRE_TIME_MSG_HIGH_TIMEOUT * 10, ONEWIRE_TIME_SLOT_MAX (120/135/150), VALUE_IPL (12, 13, 14) without any improvements. Starting to despair... Is someone else using this device; has it been verified? |
I am using an ATtiny85 to emulate DS2502.
It works fine with OWFS on Raspberry Pi
When using OWFS on Synology DS115 (Same compiled version as on Pi), I get an error: "Invalid argument"
I think it is a timing issue, but can I fix it?
The text was updated successfully, but these errors were encountered: