Skip to content
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

Fix Multiple Send delay #941

Merged
merged 34 commits into from
Jun 7, 2021
Merged

Fix Multiple Send delay #941

merged 34 commits into from
Jun 7, 2021

Conversation

sidey79
Copy link
Contributor

@sidey79 sidey79 commented Feb 10, 2021

  • Please check if the PR fulfills these requirements
  • Tests for the changes have been added / modified (needed for for bug fixes / features)
  • commandref has been added / updated (needed for bug fixes / features)
  • CHANGED has been updated (needed for bug fixes / features)
  • What kind of change does this PR introduce?

It fixes a bug between uC and Module communication.

  • What is the current behavior? (You can also link to an open issue here)

#823
Multiple send commands can overlap each other. Older firmware is most affected.

  • What is the new behavior (if this is a feature change)?

If the uC sends a SR response, the module waits for a "D=[A-Za-z0-9]+;/ " part instead of only anything that starts with SR; to be sure that the uC has finished his send action bevore sending a new command.

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

I havn't found anything, but may some user incorporated workarounds doesn't fit well with thix fix.

  • Other information:

sidey79 and others added 24 commits January 5, 2021 00:59
Fixes #823  for firmware 3.4.0 without delay
Version changed
…ause we can send again if there is something in the queue
…ause we can send again if there is something in the queue
…ause we can send again if there is something in the queue
@codecov
Copy link

codecov bot commented Feb 10, 2021

Codecov Report

Merging #941 (9f6c72b) into master (b0d916f) will decrease coverage by 0.01%.
The diff coverage is 44.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #941      +/-   ##
==========================================
- Coverage   58.67%   58.65%   -0.02%     
==========================================
  Files         107      107              
  Lines        8585     8587       +2     
  Branches     1339     1341       +2     
==========================================
  Hits         5037     5037              
  Misses       2638     2638              
- Partials      910      912       +2     
Flag Coverage Δ
fhem 48.67% <44.44%> (-0.02%) ⬇️
modules 58.65% <44.44%> (-0.02%) ⬇️
perl 91.57% <ø> (ø)
unittests 58.65% <44.44%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
..._SIGNALduino/01_SIGNALduino_CheckSendRawResponse.t 100.00% <ø> (ø)
FHEM/00_SIGNALduino.pm 62.03% <44.44%> (-0.03%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b0d916f...9f6c72b. Read the comment docs.

@sidey79 sidey79 linked an issue Jun 3, 2021 that may be closed by this pull request
@sidey79 sidey79 added the bug label Jun 3, 2021
@sidey79 sidey79 marked this pull request as ready for review June 5, 2021 18:14
@HomeAutoUser
Copy link
Contributor

@sidey79 wenn ich das richtig sehe, so hattest u schon zum approve angefragt. Es müsste nur noch einmal der Konflikt beseitigt werden.

@sidey79
Copy link
Contributor Author

sidey79 commented Jun 7, 2021

@HomeAutoUser

Den Konflikt habe ich gelöst.
Ich habe hier die Version auf 3.5.2 gehoben, da es doch eine kleine Veränderung ist.
Ob 3.5 überhaupt angebracht wäre oder wir eher auf 3.6 dabei gehen sollen, könnten wir diskutieren wenn Interesse besteht.

@HomeAutoUser
Copy link
Contributor

@sidey79 die Größe der Anpassung kannst nur du einschätzen. Wenn es ein Bug ist, so reicht es einen kleinen Sprung zu machen aber wenn es eine "größere Neuerung" ist, so kann man auf 3.6 wechseln. Letztendlich kann man die Nummernanpassung ja jederzeit anpassen.

@sidey79
Copy link
Contributor Author

sidey79 commented Jun 7, 2021

Ist ein Bug, den wir das 2. mal (hoffentlich endgültig) beheben

HomeAutoUser
HomeAutoUser previously approved these changes Jun 7, 2021
Copy link
Contributor

@HomeAutoUser HomeAutoUser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Es wäre nur von "Vorteil" um Missverständnisse auszuschließen, das die Versionsnummer (Datum) mindestens dem Merge oder Übernahmedatum entspricht. ;-)

Version updated to current date
@sidey79 sidey79 merged commit 8d091a7 into master Jun 7, 2021
@sidey79 sidey79 deleted the sidey79/issue823 branch June 7, 2021 21:19
sidey79 added a commit that referenced this pull request Jan 16, 2022
Release 3.5.2 
     10_SD_Rojaflex.pm 
          new: Module for rojaflex remote controls

     90_SIGNALduino_un.pm
          changed: fix some PerlCritic hints (#914)
          changed: revised commandref

     00_SIGNALduino.pm:
          feature: xFSK processing
          feature: Added support for directio and none.
          feature: Extension for "get sduino ccreg" (#918)
          feature: parse subs optimized (#926)
          feature: update reading  config when change settings (#948)
          feature: Allow incremental addition of match list entries (#1026)
          change: added N to send SN  xFSK sendCommand
          change: added new sub SIGNALduino_calcRSSI to simplification code
          change: revised Parse_MN and loglevel
          change: revised logoutput text SIGNALduino_Get_Command
          change: rename "get raw" to "get rawmsg" (#925)
          feature: added commandref rfmode & cc1101_reg_user
          feature: added hardware ESP32cc1101, MAPLEMINI_F103CB on attribute
          feature: added new attrib rfmode to changed to xFSK & revised commandref
          feature: added separat sub SIGNALduino_Attr_rfmode
          feature: added set cmd LaCrossePairForSec (for LaCrosse
          bugfix: SIGNALduino_CheckccConfResponse is more robust #1015 (#1031)
          bugfix: fix PERL WARNING (#895) (#972)
          bugfix: get ccreg command caused stacktrace #898
          bugfix: Bugfix define with hostname 901 (#904)
          bugfix: Wrong version assignment fixed
          Bugfix, module runs now without fhemweb instance 
          bugfix: display protocol list (#947)
          bugfix: require 99_Utils only if really needed (#950)
          bugfix: corrected incorrect logoutput (#951)
          bugfix: Fix Multiple send delay (#941)
          bugfix: Fixes high CPU and MEM usage in patternExists (#988)

  SD_Protocols.pm:
          change: moved subs for converting in own package
                  ConvLaCrosse, ConvKoppFreeControl and ConvPCA301
          bugfix: Hideki fix inverted message (#974)

  SD_ProtocolData.pm
          feature: added rfmode, register rubric & comments
          change: fix perlcritic Severity 3 - hard tabs
          feature: Added crc checksum verification Revolt (#956)

  14_SD_WS.pm: 
         feature: protocol 27 for sensor EFS-3110A (#890)
         feature: protocol 106 for GT-TMBBQ-0   
         feature: protocol 110 for ADE WS1907 Weather station (#970)
         feature: protocol 111 for TS-FT002 water tank level (#1000)
         feature: protocol 113 for GFGT 433 B1 Wireless Grill sensor (#1003)
         feature: new protocol 108 for BRESSER 5-in-1 Weather Center
                  and BRESSER Professional Rain Gauge (#973)
         feature: protocol 115 for Bresser 6-in-1 and 
                  5-in-1 Comfort Wetter Center (#1010)
         feature: new protocol 107 for Fine Offset WH51 (#1055)
         feature: new protocol 116 for Fine Offset WH57 (#1061)
         bugfix: Update protocol 64 for sensor WH2A (#1009)
         bugfix: Conrad S522 protocol 33 no reading batteryState (#1042)

  14_SD_WS07.pm: 
         feature: protocol definition 7.1 for Mebus HQ7312-2 (#1050)

  14_FLAMINGO.pm: 
         change: Perlcritic (#887)

  14_SD_UT.pm:
         change: PerlCritic (#877)
         feature: new protocol 105 for remote control BF-301
         feature: decode and send protocol 56 remote control AC114-01B (#910)
         feature: decode and send protocol for Visivo remote control
         feature: Remote control SEAV BeSmart S4 (#933)
         feature: new protocol 114 for TR401 (#1002)

 14_SD_BELL.pm:
         change: PerlCritic (#877)
         change: Adjusted little things (#937)
         feature: added AVANTEK Wireless doorbell & LED night light (#981)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Multiple set commands are not processed
3 participants