Hi I have a blueangel (vodafone vpx)
I cant synchronise with linux, please help me if you have an idea,
look what I did (guides from synce):
[email protected]:~ # cat /proc/bus/usb/devices > /tmp/after
-- I connected it ---
[email protected]:~ # diff /tmp/before /tmp/after
21a22,29
> T: Bus=02 Lev=02 Prnt=02 Port=03 Cnt=01 Dev#= 4 Spd=12 MxCh= 0
> D: Ver= 1.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=16 #Cfgs= 1
> P: Vendor=0bb4 ProdID=0a05 Rev= 0.00
> C:* #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr= 2mA
> I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ipaq
> E: Ad=81(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
> E: Ad=02(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
>
[email protected]:~ # /sbin/modprobe ipaq
[email protected]:~ # rmmod ipaq
[email protected]:~ # modprobe ipaq
[email protected]:~ # synce-serial-config ttyUSB0
You can now run synce-serial-start to start a serial connection.
[email protected]:~ # dccm -p marcac
[email protected]:~ # synce-serial-start
synce-serial-start is now waiting for your device to connect
-- Now the device shows that it cannot connect to the computer.
synce and pda2k
This should help you, it's in catalan and I guess you won't understand the entire post, but the shell commands are easily recognised, so follow them and if you need me to translate something just ask:
http://pof.eslack.org/blog/2005/03/17/connectar-i-sincronitzar-la-pda2k-amb-linux/
Related
Hi Everyone,
I am writing an app which needs to send sms using a cell phone as GSM modem, using AT commands.
I am using windows 7.
I connected my wife's Samsung S3770 Champ, windows automatically installed the drivers etc and it worked like a charm.
I used putty to connect (MS has removed hyperterminal for some reason) and it worked like a charm.
When I tried with my G2, its simply not working.
I tried installing HTC sync, installed the driver and cancelled the HTC sync installation.
I can connect to my phone using adb.
but somehow the G2 is not detected as a modem.
I have set the USB debug as on when I connect.
Looks like an HTC issue.
Has anyone done this with an HTC andriod phone?
I am using CM 7.1
Thanks and Regards,
Amogh
Have you tried stopping the ril-daemon? I know that's one way of getting AT commands to work (like verifying whether gfree worked)
This might help a bit, http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#3._.28OPTIONAL.29_Verify_you_did_it_right
-Nipqer
Nipqer said:
Have you tried stopping the ril-daemon? I know that's one way of getting AT commands to work (like verifying whether gfree worked)
This might help a bit, http://forum.xda-developers.com/wiki/index.php?title=HTC_Vision#3._.28OPTIONAL.29_Verify_you_did_it_right
-Nipqer
Click to expand...
Click to collapse
Thanks for the reply, i tried it, but didn't work.
Still the phone is missing from the modems.
I think that it needs some config change in the phone, I am missing something...
C:\Program Files\Android\android-sdk\platform-tools>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
# su
su
# stop ril-daemon
stop ril-daemon
#
# cat /dev/smd0 &
cat /dev/smd0 &
# +CREG: 1,"6E12","00004FB3"
+CGREG: 1
+HTCUCSQ: 12
+HTCUCSQ: 11
+HTCUCSQ: 12
#
#
# echo -e 'ATE1\r' > /dev/smd0
echo -e 'ATE1\r' > /dev/smd0
# 0
# echo -e 'ATV1\r' > /dev/smd0
echo -e 'ATV1\r' > /dev/smd0
# ATV1
OK
#
+HTCUCSQ: 10
+HTCUCSQ: 5
+HTCUCSQ: 4
+HTCUCSQ: 13
#
#
#
# AT
AT
AT: not found
#
try redirecting the output of the commands to /dev/smd0 so you can see what it's replying?
-Nipqer
I did:
echo -e 'ATV1\r' > /dev/smd0
do you want me to give the output for all commands?
Here it is
# su
su
# stop ril-daemon
stop ril-daemon
# cat /dev/smd0 &
cat /dev/smd0 &
# +HTCUCSQ: 7
+HTCUCSQ: 6
# +HTCUCSQ: 7
# +HTCUCSQ: 6
# echo -e 'ATE1\r' > /dev/smd0
echo -e 'ATE1\r' > /dev/smd0
# 0
# echo -e 'ATV1\r' > /dev/smd0
echo -e 'ATV1\r' > /dev/smd0
# ATV1
OK
echo -e '[email protected]?\r' > /dev/smd0
echo -e '[email protected]?\r' > /dev/smd0
# [email protected]?
@CID: 11111111
OK
#
+HTCUCSQ: 99
+CREG: 0
+CGREG: 0
+CREG: 1,"6E12","000066DB"
+CGREG: 1
#
+HTCUCSQ: 7
+HTCUCSQ: 6
# echo -e '[email protected]?40\r' > /dev/smd0
echo -e '[email protected]?40\r' > /dev/smd0
# [email protected]?40
@SIMLOCK= 00
OK
#
+HTCUCSQ: 7
# echo -e '[email protected]?AA\r' > /dev/smd0
echo -e '[email protected]?AA\r' > /dev/smd0
# [email protected]?AA
@secu_flag: 0
OK
#
First, let me apologize if solutions to this problem have already been posted on this forum and elsewhere. I developed this solution completely independently, and I am sharing it here in hopes that it may prove useful to someone else.
This pair of scripts will allow you to share your phone's Internet connection with a computer via a USB cable. It definitely works when the computer is running Linux (assuming you have RNDIS support in your kernel), and it should work as well when the computer is running Windows. However, it will not work with Mac, as OS X does not have an RNDIS driver.
First, upload these two scripts to your /sdcard:
/sdcard/usb_tether_start.sh:
Code:
#!/system/bin/sh
prevconfig=$(getprop sys.usb.config)
if [ "${prevconfig}" != "${prevconfig#rndis}" ] ; then
echo 'Is tethering already active?' >&2
exit 1
fi
echo "${prevconfig}" > /cache/usb_tether_prevconfig
setprop sys.usb.config 'rndis,adb'
until [ "$(getprop sys.usb.state)" = 'rndis,adb' ] ; do sleep 1 ; done
ip rule add from all lookup main
ip addr flush dev rndis0
ip addr add 192.168.2.1/24 dev rndis0
ip link set rndis0 up
iptables -t nat -I POSTROUTING 1 -o rmnet0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
dnsmasq --pid-file=/cache/usb_tether_dnsmasq.pid --interface=rndis0 --bind-interfaces --bogus-priv --filterwin2k --no-resolv --domain-needed --server=8.8.8.8 --server=8.8.4.4 --cache-size=1000 --dhcp-range=192.168.2.2,192.168.2.254,255.255.255.0,192.168.2.255 --dhcp-lease-max=253 --dhcp-authoritative --dhcp-leasefile=/cache/usb_tether_dnsmasq.leases < /dev/null
/sdcard/usb_tether_stop.sh:
Code:
#!/system/bin/sh
if [ ! -f /cache/usb_tether_prevconfig ] ; then
echo '/cache/usb_tether_prevconfig not found. Is tethering really active?' >&2
exit 1
fi
if [ -f /cache/usb_tether_dnsmasq.pid ] ; then
kill "$(cat /cache/usb_tether_dnsmasq.pid)"
rm /cache/usb_tether_dnsmasq.pid
fi
echo 0 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -D POSTROUTING 1
ip link set rndis0 down
ip addr flush dev rndis0
ip rule del from all lookup main
setprop sys.usb.config "$(cat /cache/usb_tether_prevconfig)"
rm /cache/usb_tether_prevconfig
while [ "$(getprop sys.usb.state)" = 'rndis,adb' ] ; do sleep 1 ; done
To start USB tethering:
Code:
adb shell "su -c 'sh /sdcard/usb_tether_start.sh'"
Grant the superuser request on the phone if one appears.
If you're on Linux, you'll see a new network interface appear (probably called "usb0"). Bring the link up on that interface (ip link set usb0 up), run a DHCP client, and you're all set!
If you're on Windows, it will probably Just Work™.
To stop USB tethering:
Code:
adb shell "su -c 'sh /sdcard/usb_tether_stop.sh'"
Again, grant the superuser request on the phone if one appears.
That's it!
OMG !!!!
You rock ! This solution is the FIRST one which works on my international i9300 device (not a 'Sprint' version) with cm10.1.
I can't understand why ... but i'll keep your script on my ext SDCard.
I'll prupose this script to french cm10.1 users.
Thank you!
OS X does not have an RNDIS driver? really?
...OS X does not have an RNDIS driver...
Click to expand...
Click to collapse
Please have a look at HoRNDIS: USB tethering driver for Mac OSX (it even supports modern/recent OSX versions!) @ hxxp://joshuawise.com/horndis (unable to embed inline URL link due to new user restriction)
whitslack said:
First, let me apologize if solutions to this problem have already been posted on this forum and elsewhere. I developed this solution completely independently, and I am sharing it here in hopes that it may prove useful to someone else.
This pair of scripts will allow you to share your phone's Internet connection with a computer via a USB cable. It definitely works when the computer is running Linux (assuming you have RNDIS support in your kernel), and it should work as well when the computer is running Windows. However, it will not work with Mac, as OS X does not have an RNDIS driver.
First, upload these two scripts to your /sdcard:
/sdcard/usb_tether_start.sh:
Code:
#!/system/bin/sh
prevconfig=$(getprop sys.usb.config)
if [ "${prevconfig}" != "${prevconfig#rndis}" ] ; then
echo 'Is tethering already active?' >&2
exit 1
fi
echo "${prevconfig}" > /cache/usb_tether_prevconfig
setprop sys.usb.config 'rndis,adb'
until [ "$(getprop sys.usb.state)" = 'rndis,adb' ] ; do sleep 1 ; done
ip rule add from all lookup main
ip addr flush dev rndis0
ip addr add 192.168.2.1/24 dev rndis0
ip link set rndis0 up
iptables -t nat -I POSTROUTING 1 -o rmnet0 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
dnsmasq --pid-file=/cache/usb_tether_dnsmasq.pid --interface=rndis0 --bind-interfaces --bogus-priv --filterwin2k --no-resolv --domain-needed --server=8.8.8.8 --server=8.8.4.4 --cache-size=1000 --dhcp-range=192.168.2.2,192.168.2.254,255.255.255.0,192.168.2.255 --dhcp-lease-max=253 --dhcp-authoritative --dhcp-leasefile=/cache/usb_tether_dnsmasq.leases < /dev/null
/sdcard/usb_tether_stop.sh:
Code:
#!/system/bin/sh
if [ ! -f /cache/usb_tether_prevconfig ] ; then
echo '/cache/usb_tether_prevconfig not found. Is tethering really active?' >&2
exit 1
fi
if [ -f /cache/usb_tether_dnsmasq.pid ] ; then
kill "$(cat /cache/usb_tether_dnsmasq.pid)"
rm /cache/usb_tether_dnsmasq.pid
fi
echo 0 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -D POSTROUTING 1
ip link set rndis0 down
ip addr flush dev rndis0
ip rule del from all lookup main
setprop sys.usb.config "$(cat /cache/usb_tether_prevconfig)"
rm /cache/usb_tether_prevconfig
while [ "$(getprop sys.usb.state)" = 'rndis,adb' ] ; do sleep 1 ; done
To start USB tethering:
Code:
adb shell "su -c 'sh /sdcard/usb_tether_start.sh'"
Grant the superuser request on the phone if one appears.
If you're on Linux, you'll see a new network interface appear (probably called "usb0"). Bring the link up on that interface (ip link set usb0 up), run a DHCP client, and you're all set!
If you're on Windows, it will probably Just Work™.
To stop USB tethering:
Code:
adb shell "su -c 'sh /sdcard/usb_tether_stop.sh'"
Again, grant the superuser request on the phone if one appears.
That's it!
Click to expand...
Click to collapse
what is the difference between this and native tethering?
for rooted stock roms
http://forum.xda-developers.com/showthread.php?t=2224083
this is the by far the easiest..
Hi
I updated from I think 20130302 to the latest 20130402 androidarmv6 (erikcas) rom. Running great as always, but backlight does not work anymore. My old simple start script was:
Code:
echo 1 > /sys/class/misc/backlightnotification/enabled
but its obviously not there anymore:
Code:
localhost userinit.d # cat /sys/class/misc/backlightnotification/enabled
cat: can't open '/sys/class/misc/backlightnotification/enabled': No such file or directory
a search shows:
Code:
localhost userinit.d # find /sys | grep -i backligh
/sys/devices/platform/pmic-leds/leds/button-backlight
/sys/devices/platform/pmic-leds/leds/button-backlight/uevent
/sys/devices/platform/pmic-leds/leds/button-backlight/subsystem
/sys/devices/platform/pmic-leds/leds/button-backlight/device
/sys/devices/platform/pmic-leds/leds/button-backlight/brightness
/sys/devices/platform/pmic-leds/leds/button-backlight/max_brightness
/sys/devices/platform/pmic-leds/leds/button-backlight/power
/sys/devices/platform/pmic-leds/leds/button-backlight/power/wakeup
/sys/devices/platform/msm-battery/power_supply/battery/keypad_backlight
/sys/devices/platform/msm-battery/power_supply/battery/lcd_backlight
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/uevent
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/subsystem
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/device
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/brightness
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/max_brightness
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/power
/sys/devices/platform/msm_fb.196609/leds/lcd-backlight/power/wakeup
/sys/class/backlight
/sys/class/leds/lcd-backlight
/sys/class/leds/button-backlight
Hmmm. Any ideas?
Best Regards
K
I have a galaxy s3 connected to centos 6. I want to access the cellular modem. I have installed the android development kit and rooted the samsung s3. I can get a root shell using 'adb shell'. I installed busybox for 'microcom' but I cant get the serial port to work.
[email protected]:/ # microcom -t 5000 -s 115200 /dev/ttyGS0
< just stalls till I type control-C>
[email protected]:/ #
[email protected]:/ # cat /proc/tty/drivers
/dev/tty /dev/tty 5 0 system:/dev/tty
/dev/console /dev/console 5 1 system:console
/dev/ptmx /dev/ptmx 5 2 system
/dev/vc/0 /dev/vc/0 4 0 system:vtmaster
rfcomm /dev/rfcomm 216 0-255 serial
g_serial /dev/ttyGS 238 0-3 serial
usbserial /dev/ttyUSB 188 0-253 serial
acm /dev/ttyACM 166 0-31 serial
msm_serial_hsl /dev/ttyHSL 244 0-2 serial
msm_serial_hs /dev/ttyHS 245 0-1 serial
pty_slave /dev/pts 136 0-1048575 pty:slave
pty_master /dev/ptm 128 0-1048575 pty:master
pty_slave /dev/ttyp 3 0-255 pty:slave
pty_master /dev/pty 2 0-255 pty:master
smd_tty_driver /dev/smd 252 0-36 serial
unknown /dev/tty 4 1-63 console
thanks,
Yile
ilast 5 dayes i contenue hard working on asus zenfone max enable to daig port this qualcom based cpu phone phone have problem imei crouppeted i install 6.01 marsmallow and root
use these command to enable daig but not done so plz requst to all member plz help
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\Program Files\Minimal ADB and Fastboot>adb shell
[email protected]_Z010:/ $ su
[email protected]_Z010:/ # insmod /system/lib/modules/diagchar.ko
insmod: /system/lib/modules/diagchar.ko: No such file or directory
1|[email protected]_Z010:/ # setprop sys.usb.config diag,adb
[email protected]_Z010:/ #
[email protected]_Z010:/ #
Click to expand...
Click to collapse
setprop sys.usb.diag 0
insmod /system/lib/modules/diagchar.ko /Only for Android 5! Skip this line for Android 6/7!
echo 1 > /sys/class/android_usb/android0/diag
echo 0 > /sys/class/android_usb/android0/enable
echo diag > /sys/class/android_usb/android0/f_diag/clients
echo smd > /sys/class/android_usb/android0/f_serial/transports
echo diag,adb,serial > /sys/class/android_usb/android0/functions
echo "C4ATAS000000" > /sys/class/android_usb/android0/iSerial
echo 1 > /sys/class/android_usb/android0/enable
alex7212 said:
setprop sys.usb.diag 0
insmod /system/lib/modules/diagchar.ko /Only for Android 5! Skip this line for Android 6/7!
echo 1 > /sys/class/android_usb/android0/diag
echo 0 > /sys/class/android_usb/android0/enable
echo diag > /sys/class/android_usb/android0/f_diag/clients
echo smd > /sys/class/android_usb/android0/f_serial/transports
echo diag,adb,serial > /sys/class/android_usb/android0/functions
echo "C4ATAS000000" > /sys/class/android_usb/android0/iSerial
echo 1 > /sys/class/android_usb/android0/enable
Click to expand...
Click to collapse
On my X00TD (ZB602KL) with Android 8.1 I do not see the any of the above files under /sys/class/android_usb/android0. Am I missing something? Thanks