Perpetual Mode #22
well-it-wasnt-me
started this conversation in
Ideas
Replies: 5 comments 1 reply
-
sas.start() make this for you ???
На чт, 1.02.2024 г., 14:13 ч. Antonio ***@***.***> написа:
… Right now the lib will try to connect to a serial port until it succeed
without ever stopping.
Somehow this "bad" behaviour is ok in some real world use case. What about
parametrize this thing ?
so around here
<https://github.com/zacharytomlinson/saspy/blob/27f7c54ee6f80796aa67cf7afc0bd2f285c5d09a/sas.py#L56>
we put "if not perpetual" we put a break if fail.
—
Reply to this email directly, view it on GitHub
<#22>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABZYRJN3UFWTS3KEI53TTJDYROBFLAVCNFSM6AAAAABCUZCJKWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGE3DMNJTGI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
open whil check if you remove port and whil initial it again. You no need
while loop in __init__ it is a bad choice
На чт, 1.02.2024 г., 16:50 ч. Григор ***@***.***> написа:
… sas.start() make this for you ???
На чт, 1.02.2024 г., 14:13 ч. Antonio ***@***.***> написа:
> Right now the lib will try to connect to a serial port until it succeed
> without ever stopping.
>
> Somehow this "bad" behaviour is ok in some real world use case. What
> about parametrize this thing ?
>
> so around here
> <https://github.com/zacharytomlinson/saspy/blob/27f7c54ee6f80796aa67cf7afc0bd2f285c5d09a/sas.py#L56>
> we put "if not perpetual" we put a break if fail.
>
> —
> Reply to this email directly, view it on GitHub
> <#22>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABZYRJN3UFWTS3KEI53TTJDYROBFLAVCNFSM6AAAAABCUZCJKWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGE3DMNJTGI>
> .
> You are receiving this because you are subscribed to this thread.Message
> ID: ***@***.***>
>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
start method have reason. EMG load for 5 minute after power down, SMIB load
for 40 secounds. And SMIB initial serial, byt waith for EMG
На чт, 1.02.2024 г., 16:53 ч. Григор ***@***.***> написа:
… open whil check if you remove port and whil initial it again. You no need
while loop in __init__ it is a bad choice
На чт, 1.02.2024 г., 16:50 ч. Григор ***@***.***> написа:
> sas.start() make this for you ???
>
> На чт, 1.02.2024 г., 14:13 ч. Antonio ***@***.***> написа:
>
>> Right now the lib will try to connect to a serial port until it succeed
>> without ever stopping.
>>
>> Somehow this "bad" behaviour is ok in some real world use case. What
>> about parametrize this thing ?
>>
>> so around here
>> <https://github.com/zacharytomlinson/saspy/blob/27f7c54ee6f80796aa67cf7afc0bd2f285c5d09a/sas.py#L56>
>> we put "if not perpetual" we put a break if fail.
>>
>> —
>> Reply to this email directly, view it on GitHub
>> <#22>, or
>> unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/ABZYRJN3UFWTS3KEI53TTJDYROBFLAVCNFSM6AAAAABCUZCJKWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGE3DMNJTGI>
>> .
>> You are receiving this because you are subscribed to this thread.Message
>> ID: ***@***.***>
>>
>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Try to connect SMIB power to EMG, run as service and reboot EMG
На чт, 1.02.2024 г., 16:58 ч. Григор ***@***.***> написа:
… start method have reason. EMG load for 5 minute after power down, SMIB
load for 40 secounds. And SMIB initial serial, byt waith for EMG
На чт, 1.02.2024 г., 16:53 ч. Григор ***@***.***> написа:
> open whil check if you remove port and whil initial it again. You no need
> while loop in __init__ it is a bad choice
>
> На чт, 1.02.2024 г., 16:50 ч. Григор ***@***.***> написа:
>
>> sas.start() make this for you ???
>>
>> На чт, 1.02.2024 г., 14:13 ч. Antonio ***@***.***> написа:
>>
>>> Right now the lib will try to connect to a serial port until it succeed
>>> without ever stopping.
>>>
>>> Somehow this "bad" behaviour is ok in some real world use case. What
>>> about parametrize this thing ?
>>>
>>> so around here
>>> <https://github.com/zacharytomlinson/saspy/blob/27f7c54ee6f80796aa67cf7afc0bd2f285c5d09a/sas.py#L56>
>>> we put "if not perpetual" we put a break if fail.
>>>
>>> —
>>> Reply to this email directly, view it on GitHub
>>> <#22>, or
>>> unsubscribe
>>> <https://github.com/notifications/unsubscribe-auth/ABZYRJN3UFWTS3KEI53TTJDYROBFLAVCNFSM6AAAAABCUZCJKWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZWGE3DMNJTGI>
>>> .
>>> You are receiving this because you are subscribed to this thread.Message
>>> ID: ***@***.***>
>>>
>>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Ok. Then instead of a var parameter to initiate perpetual mode on/off we use a timer then. After 120 sec with cut it off. What you think ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now the lib will try to connect to a serial port until it succeed without ever stopping.
Somehow this "bad" behaviour is ok in some real world use case. What about parametrize this thing ?
so around here we put "if not perpetual" we put a break if fail.
Beta Was this translation helpful? Give feedback.
All reactions