WellDone / MoMo-Firmware

Embedded PIC Firmware and hardware designs for the WellDone Mobile Monitor (MoMo).
welldone.org
Other
8 stars 6 forks source link

Fix the GSM off issue and implement a simple workaround for the simcard logic issue. #143

Closed amcgee closed 9 years ago

amcgee commented 9 years ago

INFORMATION ONLY, NOT TO BE COMMITED

There appears to be something wrong with the SimCard detection logic (simcard.c) that prevents SMS from sending. The workaround is just to disable the check in the openstream handler. This isn't a good long-term solution.

There was also an issue with gsm_off that prevented the module from actually turning off. The module power pin was never released (on the old hardware this was accomplished by changing from digital to analog, but I guess that pin can't be analog on the new chip). The fix here is to change the pin direction to input so the module turns off.

amcgee commented 9 years ago

@timburke you're the authority on these things, let me know what you think.

amcgee commented 9 years ago

The SIM status and power pins were reversed in module_settings.json, I switched them back and removed the workaround.