Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active May 17, 2023 06:10
Show Gist options
  • Save lupyuen/b4195155d0899986ab72d955e386fcdb to your computer and use it in GitHub Desktop.
Save lupyuen/b4195155d0899986ab72d955e386fcdb to your computer and use it in GitHub Desktop.
UART Test Log for PinePhone Modem Build Config. See https://github.com/apache/nuttx/pull/9304
Script started on Tue May 16 11:30:00 2023
command: screen /dev/tty.usbserial-1410 115200
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.2(release):v2.2-904-gf9ea3a629
NOTICE: BL31: Built : 15:32:12, Apr 9 2020
NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE: BL31: Found U-Boot DTB at 0x4064410, model: PinePhone
NOTICE: PSCI: System suspend is unavailable
U-Boot 2020.07 (Nov 08 2020 - 00:15:12 +0100)
DRAM: 2 GiB
MMC: Device 'mmc@1c11000': seq 1 is in use by 'mmc@1c10000'
mmc@1c0f000: 0, mmc@1c10000: 2, mmc@1c11000: 1
Loading Environment from FAT... *** Warning - bad CRC, using default environment
starting USB...
No working controllers found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
653 bytes read in 3 ms (211.9 KiB/s)
## Executing script at 4fc00000
gpio: pin 114 (gpio 114) value is 1
109375 bytes read in 9 ms (11.6 MiB/s)
Uncompressed size: 311296 = 0x4C000
36162 bytes read in 4 ms (8.6 MiB/s)
1078500 bytes read in 50 ms (20.6 MiB/s)
## Flattened Device Tree blob at 4fa00000
Booting using the fdt blob at 0x4fa00000
Loading Ramdisk to 49ef8000, end 49fff4e4 ... OK
Loading Device Tree to 0000000049eec000, end 0000000049ef7d41 ... OK
Starting kernel ...
nsh: mkfatfs: command not found
NuttShell (NSH) NuttX-12.0.3
nsh> uname -a
NuttX 12.0.3 a3c1585 May 16 2023 11:29:05 arm64 pinephone
nsh> ls /dev
/dev:
console
null
ram0
ram2
ttyS0
ttyS1
userleds
zero
nsh> hello
Hello, World!!
Open /dev/ttyS1: fd=3
Write command: nbytes=3
AT
Response: nbytes=7
RDY
Write command: nbytes=3
AT
Response: nbytes=12
+CFUN: 1
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=9
AT+CREG?
Response: nbytes=9
AT
OK
Write command: nbytes=9
AT+COPS?
Response: nbytes=58
AT+CREG?
+CREG: 0,4
OK
+CPIN: READY
+QUSIM: 1
Write command: nbytes=9
AT+CSCA?
Response: nbytes=46
AT+COPS?
+COPS: 0
OK
+QIND: SMS DONE
Write command: nbytes=24
AT+QCFG="servicedomain"
Response: nbytes=43
AT+CSCA?
+CSCA: "+6596845999",145
OK
Write command: nbytes=21
AT+QCFG="nwscanmode"
Response: nbytes=58
AT+QCFG="servicedomain"
+QCFG: "servicedomain",2
OK
dial_number
Write command: nbytes=10
AT+QDAI=?
Response: nbytes=52
AT+QCFG="nwscanmode"
+QCFG: "nwscanmode",0
OK
Write command: nbytes=9
AT+QDAI?
Response: nbytes=89
AT+QDAI=?
+QDAI: (1-4),(0,1),(0,1),(0-5),(0-2),(0,1)(1)(1-16)
OK
+QIND: PB DONE
Write command: nbytes=16
ATDyourphonenumber;
Response: nbytes=41
AT+QDAI?
+QDAI: 1,1,0,1,0,0,1,1
OK
Write command: nbytes=4
ATH
Response: nbytes=36
ATDyourphonenumber;
OK
NO CARRIER
Write command: nbytes=3
AT
Response: nbytes=10
ATH
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
send_sms_text
Write command: nbytes=10
AT+CMGF=1
Response: nbytes=16
AT+CMGF=1
OK
Write command: nbytes=14
AT+CSCS="GSM"
Response: nbytes=20
AT+CSCS="GSM"
OK
Write command: nbytes=22
AT+CMGS="yourphonenumber"
Response: nbytes=26
AT+CMGS="yourphonenumber"
>
Write command: nbytes=59
Hello from Apache NuttX RTOS on PinePhone! (SMS Text Mode)
Response: nbytes=32
Hello from Apache NuttX RTOS on
Write command: nbytes=3
AT
Response: nbytes=26
PinePhone! (SMS Text Mode)
Write command: nbytes=3
AT
Response: nbytes=19
+CMS ERROR: 350
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
send_sms_pdu
Write command: nbytes=10
AT+CMGF=0
Response: nbytes=10
AT+CMGF=0
Write command: nbytes=11
AT+CMGS=41
Response: nbytes=6
OK
Response: nbytes=15
AT+CMGS=41
>
Write command: nbytes=85
0011000A91yourphonenumberpdu0008011C00480065006C006C006F002C005100750065006300740065006C0021
Response: nbytes=32
0011000A91yourphonenumberpdu0008011C0048
Write command: nbytes=3
AT
Response: nbytes=52
0065006C006C006F002C005100750065006300740065006C0021
Write command: nbytes=3
AT
Response: nbytes=19
+CMS ERROR: 350
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
nsh> hello
Hello, World!!
Open /dev/ttyS1: fd=3
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=9
AT+CREG?
Response: nbytes=9
AT+CREG?
Write command: nbytes=9
AT+COPS?
Response: nbytes=20
+CREG: 0,1
OK
Write command: nbytes=9
AT+CSCA?
Response: nbytes=40
AT+COPS?
+COPS: 0,0,"SGP-M1",7
OK
Write command: nbytes=24
AT+QCFG="servicedomain"
Response: nbytes=43
AT+CSCA?
+CSCA: "+6596845999",145
OK
Write command: nbytes=21
AT+QCFG="nwscanmode"
Response: nbytes=58
AT+QCFG="servicedomain"
+QCFG: "servicedomain",2
OK
dial_number
Write command: nbytes=10
AT+QDAI=?
Response: nbytes=52
AT+QCFG="nwscanmode"
+QCFG: "nwscanmode",0
OK
Write command: nbytes=9
AT+QDAI?
Response: nbytes=71
AT+QDAI=?
+QDAI: (1-4),(0,1),(0,1),(0-5),(0-2),(0,1)(1)(1-16)
OK
Write command: nbytes=16
ATDyourphonenumber;
Response: nbytes=41
AT+QDAI?
+QDAI: 1,1,0,1,0,0,1,1
OK
Write command: nbytes=4
ATH
Response: nbytes=36
ATDyourphonenumber;
OK
NO CARRIER
Write command: nbytes=3
AT
Response: nbytes=10
ATH
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
send_sms_text
Write command: nbytes=10
AT+CMGF=1
Response: nbytes=16
AT+CMGF=1
OK
Write command: nbytes=14
AT+CSCS="GSM"
Response: nbytes=20
AT+CSCS="GSM"
OK
Write command: nbytes=22
AT+CMGS="yourphonenumber"
Response: nbytes=26
AT+CMGS="yourphonenumber"
>
Write command: nbytes=59
Hello from Apache NuttX RTOS on PinePhone! (SMS Text Mode)
Response: nbytes=32
Hello from Apache NuttX RTOS on
Write command: nbytes=3
AT
Response: nbytes=26
PinePhone! (SMS Text Mode)
Write command: nbytes=3
AT
Response: nbytes=19
+CMS ERROR: 350
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
send_sms_pdu
Write command: nbytes=10
AT+CMGF=0
Response: nbytes=10
AT+CMGF=0
Write command: nbytes=11
AT+CMGS=41
Response: nbytes=6
OK
Response: nbytes=15
AT+CMGS=41
>
Write command: nbytes=85
0011000A91yourphonenumberpdu0008011C00480065006C006C006F002C005100750065006300740065006C0021
Response: nbytes=32
0011000A91yourphonenumberpdu0008011C0048
Write command: nbytes=3
AT
Response: nbytes=52
0065006C006C006F002C005100750065006300740065006C0021
Write command: nbytes=3
AT
Response: nbytes=19
+CMS ERROR: 350
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
Write command: nbytes=3
AT
Response: nbytes=9
AT
OK
nsh>
Script done on Tue May 16 11:34:35 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment