hostmobility / meta-hostmobility-bsp

Yocto/OE-core Board Support Package layer for MX-4, HMX and more
http://www.hostmobility.com
MIT License
3 stars 4 forks source link

Quectel firmware update for CT-Rocko #56

Closed RikardO-HM closed 1 year ago

RikardO-HM commented 1 year ago

TODO fix a application that flash co cpu so the modem does not restart(when the odem is in recovery mode) maybe introduse echo 2 > /opt/h/pic_attributes/ctrl_modem_on (or other value?).

RikardO-HM commented 1 year ago

we will need to change this
case PROT_TYPE_MODEM_ON: modem_ctrl_modem_on_signal = (write_cmd->msg.write_msg.data) ? 1 : 0; break; maybe to case PROT_TYPE_MODEM_ON: if(write_cmd->msg.write_msg.data == 0xaa) modem_ctrl_modem_on_signal = 0xaa; else modem_ctrl_modem_on_signal = (write_cmd->msg.write_msg.data) ? 1 : 0; break; then in modem.c change so we set Set_Mode_State(state_turn_on); and when it gets to state_turn_on_finished we can add an extra state so it not check the modem_pwr_indicator_input if modem_ctrl_modem_on_signal == 0xaa.

state_modem_update: only get out here if modem reset or modem_ctl_on =0

is that a good soulution @hugfro