HomeAutomation issues - HomeAutomation System
View Issue Details
0000021HomeAutomation SystemModules, Embedded softwarepublic2012-10-19 23:472012-10-23 19:30
ReporterLars Englund 
Assigned ToLinus Lundin 
PrioritynormalSeverityminorReproducibilitysometimes
StatusclosedResolutionfixed 
PlatformOSOS Version
Summary0000021: ModuleManager always selects new module ID:s based on the highest sns_power ID
DescriptionSee example in Steps To Reproduce. Same behaviour regardless of node being added. A similar output is shown when deleting a module.
Steps To Reproduce./ModuleManager --add=sns_ds18x20
Trying to add module sns_ds18x20
Added module successfully

Regenerating modules...

Compiling sources.inc...
Creation of sources.inc complete

Compiling new main.c...
Creation of main.c complete

Updating config.inc...
Found id: 0x1 in file: ../nodeMyFirst/config.inc for module: sns_power

New module id set to: 0x2

Update of config.inc complete

Regenerating modules complete
TagsNo tags attached.
Attached Files

Notes
(0000027)
Anders Sandblad   
2012-10-20 09:49   
It's not only if there are sns_power modules, this applies also if adding a sns_counter when there is a sns_ds18x20 module. Seems like this happens if the module name is "less" then the current module name in the same config.
(0000028)
Anders Sandblad   
2012-10-20 14:15   
$ cd Documents/HomeAutomation/EmbeddedSoftware/AVR/personal/
$ svn export template_module/ testBug
$ cd testBug/
$ ./ModuleManager --add=sns_ds18x20
$ ./ModuleManager --add=sns_counter

Output of last command:

Updating config.inc...
Found id: 0x1 in file: ../testBug/config.inc for module: sns_ds18x20

New module id set to: 0x2
(0000029)
Anders Sandblad   
2012-10-20 14:16   
Bug confirmed, steps to reproduce has been provided.
(0000032)
Linus Lundin   
2012-10-23 18:29   
Fixed in svn rev 2228
(0000033)
Anders Sandblad   
2012-10-23 19:30   
Confirmed fixed.

Issue History
2012-10-19 23:47Lars EnglundNew Issue
2012-10-20 09:49Anders SandbladNote Added: 0000027
2012-10-20 14:15Anders SandbladNote Added: 0000028
2012-10-20 14:16Anders SandbladNote Added: 0000029
2012-10-20 14:16Anders SandbladAssigned To => Anders Sandblad
2012-10-20 14:16Anders SandbladStatusnew => confirmed
2012-10-20 14:16Anders SandbladAssigned ToAnders Sandblad =>
2012-10-23 18:29Linus LundinNote Added: 0000032
2012-10-23 18:29Linus LundinStatusconfirmed => resolved
2012-10-23 18:29Linus LundinResolutionopen => fixed
2012-10-23 18:29Linus LundinAssigned To => Linus Lundin
2012-10-23 19:30Anders SandbladNote Added: 0000033
2012-10-23 19:30Anders SandbladStatusresolved => closed