[solved] (Quectel m10) + (AT+QPOWD) = Fail


hi everyone,

the setup

i have trouble powering down gsm(m10) module. little setup. using arduino mega 2560 , shield quectel m10 gsm module. have moved pin 3 (gsm tx) arduino's pin 10.

i using software serial @ 9600. not using standard gsm library seems not reliable.

the device should able power off because going mobile , battery powered.

without problem can power device using "power key" on pin 7. auto bounds , start executing commands. getting network info , device status. send "at+qpowd=1" , response "normal power down" - perfect.

the problem
the problem after of 1 cycle of power on -> execute commands -> power down. power down (at+qpowd=1) stops working. status light , net lights keep on blinking.

after first at+qpowd=1 command sent 10 more. of them responded "normal power down" , module kept on going.

any ideas how fix this. there emergency shut down pin. in spec says it's use not recommended.

cheers
mitko

i figured out. stupid mistake.

in data sheet of m10 says have pull power key gnd. fine. , read pin 7 connected power key. far good.

this code powering device
code: [select]

digitalwrite(gsm_control_pin, low);
delay(gsm_power_on_delay);
digitalwrite(gsm_control_pin, high);


but if @ schematics can see pin 7 connected base of transistor witch commutates gnd... code above had effect of pushing , holding power button...

and fix

code: [select]

digitalwrite(gsm_control_pin, high);
delay(gsm_power_on_delay);
digitalwrite(gsm_control_pin, low);


ps post log later today



Arduino Forum > Using Arduino > Networking, Protocols, and Devices (Moderator: fabioc84) > [solved] (Quectel m10) + (AT+QPOWD) = Fail


arduino

Comments