atim-radiocommunications / armapi

API for ARM module
MIT License
7 stars 18 forks source link

ARM_ERR_ARM_GO_AT on RPI 1 #7

Open Michel4OpenOpcUa opened 7 years ago

Michel4OpenOpcUa commented 7 years ago

Hello, in order to test the device i do the following 1- I built arminfo 2- i disabled the gpio 4 with echo command as you explained in another issue 3- i run via SSH sudo ./arminfo i get the following error. ARM Init failed! ARM_ERR_ARM_GO_AT: 'ARM command Error, can't switch to AT command.' I changed cmdline.txt for this dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait then i type echo 4 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio4/direction echo 1 > /sys/class/gpio/gpio4/value Now sometimes it succeed but most of the time it failed with various error ARM Init failed! ARM_ERR_ARM_GET_REG: 'ARM command Error, from get register.' or ARM Init failed! ARM_ERR_PORT_WRITE_READ: 'Port Error, at the port reading/writing.' or ARM Init failed! ARM_ERR_ARM_GO_AT: 'ARM command Error, can't switch to AT command.'

Can you help ? regards Michel

antoine163 commented 7 years ago

Hi,

It is possible if the radio module is busy by sending a message to Sigfox for example. You can drive the reset pin (during 10ms) before to call ./arminfo.

Michel4OpenOpcUa commented 7 years ago

The problem was fix by issuing several time the echo command. We also changed the arminfo code to receive a 64bit representation of the serial num. Your 32bit cast is not correct for registration. But now we have a more critical issue with initialization sequence. Il will open another issue for it. Regards Michel