Ben's notes

Linux, Unix, network, radio...

User Tools

Site Tools


initramfs_send_sms

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
initramfs_send_sms [2017/05/29 18:58] – [Configure HSDPA module] admininitramfs_send_sms [2021/10/09 15:14] (current) – external edit 127.0.0.1
Line 1: Line 1:
 {{tag>[hardware apu sms initramfs]}} {{tag>[hardware apu sms initramfs]}}
-~~TOC~~ 
 =====Arch Linux - send SMS from initramfs===== =====Arch Linux - send SMS from initramfs=====
 This is just a proof of concept. Might be useful to notify someone when a system has been booted and reached initramfs, and it is waiting for the decryption pass phrase. This is just a proof of concept. Might be useful to notify someone when a system has been booted and reached initramfs, and it is waiting for the decryption pass phrase.
Line 7: Line 6:
 ====Configure HSDPA module==== ====Configure HSDPA module====
 Huawei MU609 Huawei MU609
-  * The module might be configured for packet switched (PS) only. To be able to send SMS via AT commands, the module needs to be configured for CP_PS, CS or CS_ONLY, CS = circuit switched. If you also want to set up a dataconnection, configure CS_PS. If you don't include CS, you will receive an error: ''+CMS ERROR: 500''. <code># screen /dev/ttyUSB0 115200+  * The module might be configured for packet switched (PS) only. To be able to send SMS via AT commands, the module needs to be configured for CP_PS, CS or CS_ONLY, CS = circuit switched. If you also want to set up a dataconnection, configure CS_PS. If you don't include CS, you will receive the error: ''+CMS ERROR: 500'' when sending an SMS. <code># screen /dev/ttyUSB0 115200
 at^syscfg=2,2,3FFFFFFF,1,2</code> at^syscfg=2,2,3FFFFFFF,1,2</code>
  
Line 102: Line 101:
 expect "> " expect "> "
  
-# Text to send... 1A ctr-z +# Text to send, end with \x1A ctrl-z 
-send "System 'apuarch' has reached initramfs."+send "System has reached initramfs."
 send "\x1a" send "\x1a"
 </code> </code>
initramfs_send_sms.1496084290.txt.gz · Last modified: 2017/05/29 18:58 by admin