Open ralcaide opened 7 years ago
Old Main program here: https://github.com/Sinapse-Energia/MIFARE-FreeRTOS/tree/master/third-party-old
At date 27/07/2017
[13:00 -14:00] Reading information about StarUML application.
First version flow diagram. I know it's a very iregular flow diagram. Sorry I don't manage the tool well. Check and fix errors in order to review the flow diagram
New flow diagram version uploaded.
Please check it!
Some comments :startup
Proccess Main (Wait for IRQ and maintain status (like NTP time)
IRQ - RFID message implies (as consequence, different functions)
Read RFID (IRQ routine) If Ok Beep and update LCD Mount http frame Send to server Wait for response (unti ltimeout) Beeps and update LCD with results If NOK Beeps and update LCD
Note: consider a proper attention to the case of new IRQ before sending. Process starts again (with new lecture). Se have to consider always last reading
Recondider program flow with comments
The workflow does not explain very well how the program should work. The WF should display the iterations and the logic in global view in order to ease the understanding.
Some concrete remarks:
Please, see here some WFs more realistic https://github.com/Sinapse-Energia/AP-Sinapse/wiki/Flow-diagrams, these flows maybe could help you to understand how to do the WFs in a better way
@soporteHW, take into account the @sinapseenergia comments a my comments and upload a new version.
New WF version:
Comments - To improve:
Now, WF is much better. Anyway, the if_else statements should be improved. Please take into account the following comments:
Important:
Initial all periphericals fucntion:
As ST reccomends, all not used GPIOS, have to be definet as OUTPUT and inizializated to LOW level. Low level Set have to be done in this function.
EMI/EMC ST Reccomendations uploaded for reference
It is necessary to define the flow diagram of the firmware. The main should be based in the python program available in the code
To use StarUML program to do that: http://staruml.io/ Example: https://github.com/Sinapse-Energia/AP-Sinapse/wiki/Flow-diagrams