Maybe you have an MTU different on both ends?
Well, my 2 cents, i don't really know![]()
Hi all.. I'm trying to automatize some things with my ming, like, a back-up of my main.db to my desktop, synchronize my mp3's and some other things.....
What I had in mind and is almost done is the following.
My linux-PC with a bluetooth dongle have a cron task that check every 2min if the phone is near the computer, then, if it is close it try to make a ppp connection ( the one used for blueFI )
Once the ppp connection is up the script start to sync, back-up, etc...
In the phone part, I have another cron task that every 6 min try to make a ppp connection.
Ok, almost everything is working, I have both cron task scripted an working, the phone is detected, PC and phone connect and I get the ppp0 device with the ip...
I can make a telnet connection an ssh connection with dropbear and explore the phone with samba and ftp.
the problem comes when I want to copy a file bigger than 50kb, the link break and the only error that I receive from pppd from both sides is
Hangup (SIGHUP)
Modem hangup
Can somebody help me with that??
If I get every-thing working I will post here all my work thanks.
Maybe you have an MTU different on both ends?
Well, my 2 cents, i don't really know![]()
Say developer, but it's so hard!
@sabrod
The MTU from both sides are equal, I have chequed with 576 that is the standar for DUN conections, and probed with 1500, the standar for Ethernet. In both case it hangs.
I have proved to limit the download speed to 1kb/s and it stil hang.... it looks like its not a speed problem.
Here are some result from some commands
From PC
#ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.2.1 P-t-P:192.168.2.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3531 errors:0 dropped:0 overruns:0 frame:0
TX packets:3532 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:303050 (295.9 KiB) TX bytes:307088 (299.8 KiB)
# ping -f 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
...^C
--- 192.168.2.2 ping statistics ---
3608 packets transmitted, 3605 received, 0% packet loss, time 60078ms
rtt min/avg/max/mdev = 13.172/37.950/153.410/17.073 ms, pipe 11, ipg/ewma 16.656/33.427 ms
Here you can see with the ping -f that the conection suport hi load and didnt hang.
what other propierty of network can be afectin this?
here are the pppd peers files
from PC
921600
debug
192.168.2.1:192.168.2.2
noauth
crtscts
local
mtu 1500
lock
debug
logfile /var/log/ppp.log
from A1200
/dev/pts/0
912600
192.168.2.2:192.168.2.1
noauth
crtscts
local
#connect 'sleep 1; echo -n CLIENTSERVER'
logfile /var/log/ppp.log
mtu 1500
#mru 1500
lock
debug
I have proved with less speed, from 9600 to 912600, using and not using crtscts control.
Some idea?
ok, I get the samba server working, but no FTP an SCP, that would be easier for scripting.
I couldn't find the main problem, but with samba things seems to be ok...
When Everything work I will post the results...
I tested the battery life with the cron daemon running every 6 minutes, and its life is the same as when you have the bluetooth on (that you need for this to work)
With WiteMing1 and bluetooth on all day, and common use(2 o 3 calls/day 6-10 sms/day), battery life is 2,5 days.
PD:Sorry for the double post, but this is different from the previous one
PD2: Mods, if this thread might be in other place, move it, thanks.