FJ Software Foren-Übersicht  
 Homepage   •  Suchen   •  FAQ   •  Mitgliederliste   •  Registrieren   •  Login
 HowTo: Use MyPhoneExplorer under GNU/Linux (English Version) Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Neues Thema eröffnenNeue Antwort erstellen
Autor Nachricht
malleeblue_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:20 Antworten mit ZitatNach oben

Here you go...
Code:
me@mypcname:~$ /etc/init.d/bluetooth restart
 * Stopping bluetooth                                                    [ OK ]
 * Starting bluetooth                                                    [ OK ]
me@mypcname:~$ pgrep bluetoothd
6269
me@mypcname:~$ rfcomm connect 0 00:21:9E:4D:8D:EA 2
Can't connect RFCOMM socket: Connection refused
me@mypcname:~$ ls -l /dev/rfc*
ls: cannot access /dev/rfc*: No such file or directory
sputnick_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:22 Antworten mit ZitatNach oben

heh, same problem on my debian.
Is if you type
Code:
rfcomm bind 0 00:21:9E:4D:8D:EA

before
Code:
rfcom connect (...)

that change something ?
malleeblue_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:23 Antworten mit ZitatNach oben

Had to run as root, but perhaps it's a little better...
Code:
root@mypcname:/home/malleeblue# /etc/init.d/bluetooth restart
 * Stopping bluetooth                                                    [ OK ]
 * Starting bluetooth                                                    [ OK ]
root@mypcname:/home/malleeblue# pgrep bluetoothd
6269
root@mypcname:/home/malleeblue# rfcomm bind 0 00:21:9E:4D:8D:EA
root@mypcname:/home/malleeblue# rfcomm connect 0 00:21:9E:4D:8D:EA 2
Can't connect RFCOMM socket: Operation now in progress
root@mypcname:/home/malleeblue# ls -l /dev/rfc*
crw-rw---- 1 root dialout 216, 0 2008-12-24 09:51 /dev/rfcomm0
sputnick_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:24 Antworten mit ZitatNach oben

Try the following script to launch MPE ( replace the old one ) :
Code:
#!/bin/bash

echo "Running scan... please wait"
hcitool scan | grep -v Scanning > /tmp/hciscan

if [[ ! -s /tmp/hciscan ]]; then
    echo "No bluetooth device found ! Quitting."
    exit 1
fi

tput setaf 2
c=1
arr=( )

while read a; do
   echo "$((c++))) $a"
   arr+=("$a")
done < /tmp/hciscan

tput setaf 3
echo "Choose your bluetooth phone : "
read
tput setaf 7
Hex=$(sed -n $((REPLY))p /tmp/hciscan | awk '{print $1}')
\rm /tmp/hciscan

if [[ ! -f /etc/init.d/bluetooth ]]; then
    echo "You need to install bluez-utils" >&2
    exit 1
fi

if [[ ! $(pgrep bluetoothd) ]]; then
    echo "You need to run \"/etc/init.d/bluetooth start\".\n OK ?"
    read
fi

sudo rfcomm bind 0 $Hex
{ rfcomm connect 0 $Hex 2 & } &>/dev/null
ln -fs /dev/rfcomm0 ~/.wine/dosdevices/com2

if [[ -b /dev/rfcomm0 ]]
    wine ~/.wine/drive_c/Program\ Files/MyPhoneExplorer/MyPhoneExplorer.exe 2>/dev/null || echo "Wine failed to run MPE"
else
    echo "No /dev/rfcomm0 device created"
    exit 1
fi


and tell me if that's works
malleeblue_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:27 Antworten mit ZitatNach oben

Didn't work, here's the output...
Code:
root@mypcname:~# /home/malleeblue/MPE
Running scan... please wait
1) 00:21:9E:4D:8D:EA   C902
Choose your bluetooth phone :
1
/home/malleeblue/MPE: line 25: unexpected token `(', conditional binary operator expected
/home/malleeblue/MPE: line 25: syntax error near `\$(p'
/home/malleeblue/MPE: line 25: `if [[ ! \$(pgrep bluetoothd) ]]; then'
sputnick_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:27 Antworten mit ZitatNach oben

oops, sorry, typo.
The script is edited above...
malleeblue_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:29 Antworten mit ZitatNach oben

There may be another typo here:
Code:
sudo rfcom bind 0 $Hex

I changed rfcom to rfcomm and it ran but I get this output:
Code:
Running scan... please wait
1) 00:21:9E:4D:8D:EA   C902
Choose your bluetooth phone :
1
Wine failed to run MPE

So I started MPE manually and pressed F1 but, after about a 5 second delay, I get this message:
Code:
COM2 could not be opened
Systemerror: 31 [General failure]
putnick_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:31 Antworten mit ZitatNach oben

The problem is there ( rfcomm connect ):
Code:
# rfcomm
rfcomm0: 00:18:13:0F:6A:1A channel 1 clean
# ls -l /dev/rfcomm0
crwxrwxrwx 1 root dialout 216, 0 Dec 24 13:14 /dev/rfcomm0
# rfcomm connect 0 00:18:13:0F:6A:1A 2
Can't connect RFCOMM socket: Connection refused

I get Connection refused like you I guess when trying to connect.
Is anybody here knows what's wrong ?
malleeblue_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:31 Antworten mit ZitatNach oben

I was getting "Can't connect RFCOMM socket: Connection refused" until I ran the commands as root.
MrAntonio_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:32 Antworten mit ZitatNach oben

hi guys, this information has helped also to me to solve similar problems
thanks
sputnick_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:32 Antworten mit ZitatNach oben

Hi MrAntonio.

Can you explain which problem and which solution please ?

Cheers, sputnick.
wasutton3_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:34 Antworten mit ZitatNach oben

i keep getting this error
Code:
./myPhoneExplorer.bash: line 43: syntax error near unexpected token `else'
./myPhoneExplorer.bash: line 43: `else'

i am running ubuntu intrepid ibex 8.10 64 bit that is completely updated
DannyPop_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:35 Antworten mit ZitatNach oben

Everything went fine, but when it tries to do the initial syncronization I get this:

Obex protocol could not be initialized!
Obex errorcode: C0 - Bad Request - server couldn't understand request.
FJ_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:35 Antworten mit ZitatNach oben

Which phone do you use ?
DannyPop_restored
Gast





BeitragVerfasst am: Mo März 30, 2009 00:36 Antworten mit ZitatNach oben

Ah, silly me.
K750i flashed to W800i. Ubuntu 8.10, fully updated.
Beiträge der letzten Zeit anzeigen:      
Neues Thema eröffnenNeue Antwort erstellen


 Gehe zu:   



Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.

Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme :: Alle Zeiten sind GMT + 1 Stunde
Deutsche Übersetzung von phpBB.de