raushankumar586
Junior Member level 1
hey Embedded geek,
Respect!!
I am able to communicate from pic18f4520 to sim800 modules through uart and one I2C connection is established between PIC and arduino2560 to see the received output in pic through arduino serial monitor. Basically , I am writing from pic to sim800 and then sim800 respond back to pic, that response data I am storing in a buffer and sending through I2C to arduino mega 2560.
I now what I want to implement to have a kind of state machine where if I send ---
AT ------ OK(get response from sim) ---state 1
AT+CGMR---- Revision:1418B02SIM800C24_BT \n\n OK (get response from sim) ---state 2
similarly there can be more than 10 states, I want untill once state is passed program should not move in second state.
I have an external RTC ready with connected to pic for timing reference, Can any one suggest me how to do it , I am stucked here for 3 days..... finally posting .....
Respect!!
I am able to communicate from pic18f4520 to sim800 modules through uart and one I2C connection is established between PIC and arduino2560 to see the received output in pic through arduino serial monitor. Basically , I am writing from pic to sim800 and then sim800 respond back to pic, that response data I am storing in a buffer and sending through I2C to arduino mega 2560.
I now what I want to implement to have a kind of state machine where if I send ---
AT ------ OK(get response from sim) ---state 1
AT+CGMR---- Revision:1418B02SIM800C24_BT \n\n OK (get response from sim) ---state 2
similarly there can be more than 10 states, I want untill once state is passed program should not move in second state.
I have an external RTC ready with connected to pic for timing reference, Can any one suggest me how to do it , I am stucked here for 3 days..... finally posting .....