embedded linux - How to execute gsm0710muxd during boot time of android -


i using mux drivers gsm modem android 4.0.4 , executes using command on console, ./gsm0710muxd -s /dev/ttyusb0 -b 115200 -n 3 want automate this, want execute during boot-up time virtual ports may work gsm modem calling functionalities unable automate command, have no idea how because command complicated, don't know how use whole tell system serial port, baudrate, number of ports...

thanks,

adeel

you can giving command in init.rc. here example init.rc. can add in boot section of init.rc other services initialized.

service gsmmuxd /system/bin/logwrapper /system/bin/gsm0710muxd –s /dev/<serial_port> –n3 -v7 –mbasic class main user radio
group radio cache inet misc oneshot

plus need change device used in ril-daemon service. instance, ril library librapid-ril-core.so , using mux, configuration following:

service ril-daemon /system/bin/rild -l /system/lib/librapid-ril-core.so -- -a /dev/pts/0 -n /dev/pts/1

here, if using usb, see /dev/ttyusb0 , /dev/ttyusb1 in init.rc configurations.

i hope helps. please feel free ask further questions.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -