Mantis Bug Tracker

View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000218LoaderSerial Monitor Commspublic2011-07-19 16:022011-10-24 23:26
ReporterFred 
Assigned Tosean94z 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusassignedResolutionopen 
PlatformAllOSAllOS VersionAll
Product Version 
Target Version0.1.0Fixed in Version 
Summary0000218: Implement SM Reset Button
DescriptionBe able to send a reset packet to the SM to get back into the firmware (if the load/run switch is appropriate). Use state determined in 0000216 to enable/disable this button. And rerun the interrogation after such a reset to find out what happened.
TagsNo tags attached.
Issue Type
Risk of Breakage
Attached Files

- Relationships

-  Notes
User avatar (0000469)
sean94z (reporter)
2011-10-24 20:19

Do you want me to try to detect the position of the load/run switch before giving the ability to reset ?
User avatar (0000482)
Fred (administrator)
2011-10-24 23:26

Hmmm, that's a nice idea! You'd have to have an API in the firmware to call to query that information though. I guess it's possible to add such a thing. I'm planning to add similar things anyway. You could already do it from the SM though.

However, I think that that is icing on the cake, they basically have to know to do that anyway, so just finding out what state it's in and displaying it and offering the ability to reset from either state is enough for the first release.

You've already done the reset functionality in a convenient grouped way, but I think having "(dis)connect" and "send reset" always there would be good. Once connected you'd always be in either SM mode or firmware mode, and would be able to disconnect, or perform actions. "send reset" would always be available as long as you were connected (to either) such that you could always send a reset to switch states without informing the loader why you're doing it. The loader would have to check afterwards to see what state it needed to be in, at the least. To be truly robust it would have to check immediately before too, as you never know when a sneaky user is going to hit the reset button or turn the key on and off. Another alternative would be to poll the device every half a second or so as a "are you still alive" but the lazy "are you alive RIGHT NOW" approach seems better.

I guess the main point is that if the foundations of interrogation and serial mode switching and handling of streaming packets and so on are laid out well, applying more advanced stuff on top should be cake later. It needs to be bullet proof and robust, just like everything else in the fold :-)

I'm happy with how it's been improving, btw, it doesn't balk at streams anymore etc. A bit more solidness from the ground up and it'll be great! :-)


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker