Join Today
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2008
    Location
    Argentina, Cordoba
    Posts
    31

    Thumbs up Proximity sync files with bluetooth HELP

    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.

  2. #2
    Join Date
    Mar 2008
    Location
    just at the other end of the line.
    Posts
    879

    Default

    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!

  3. #3
    Join Date
    Jul 2008
    Location
    Argentina, Cordoba
    Posts
    31

    Default

    @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?

  4. #4
    Join Date
    Jul 2008
    Location
    Argentina, Cordoba
    Posts
    31

    Default

    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.


 
+ Reply to Thread

Similar Threads

  1. BSOD when attempting Bluetooth Sync with MPT
    By JamesK in forum E6 General Chat
    Replies: 0
    Last Post: 04-10-2007, 11:59 PM
  2. Need help on Sync to PC using Bluetooth
    By kilikulu in forum A768i/A760 General Chat
    Replies: 1
    Last Post: 11-21-2006, 12:42 PM
  3. Can sync / connect internet by bluetooth with mac?
    By leosup in forum E680i General Chat
    Replies: 0
    Last Post: 10-03-2006, 02:42 PM
  4. MDB Sync - Mobile Phone - Tools & ICS - Files
    By rubenps in forum A780 General Chat
    Replies: 1
    Last Post: 03-09-2006, 03:54 PM
  5. Bluetooth Sync?
    By tazmanyr in forum E680 General Chat
    Replies: 5
    Last Post: 03-08-2005, 06:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Optimization by vBSEO 3.6.0 RC 1