* [Bluez-users] emulating a GPRS modem with a linux PC
@ 2006-11-20 10:02 scostas
2006-11-20 10:34 ` Michael McConnell
0 siblings, 1 reply; 8+ messages in thread
From: scostas @ 2006-11-20 10:02 UTC (permalink / raw)
To: bluez-users
Hi all:
I have a PDA and I need to connect to the internet with it, but at work.
I tried Synce but it doesn't work, because Pocket IE wants a true
connection, and Synce still doesn't support the desktop passthroug.
So I had the idea of emulating a BlueTooth GPRS modem with the PC. This
is: the PDA will think that my PC has a GPRS modem and will use it to
connect to the internet.
Is possible to do that? I tried to do it with pppd and /dev/rfcomm0 but
I was unable to make it work :(
Thanks.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-users] emulating a GPRS modem with a linux PC
2006-11-20 10:02 [Bluez-users] emulating a GPRS modem with a linux PC scostas
@ 2006-11-20 10:34 ` Michael McConnell
2006-11-20 10:48 ` scostas
0 siblings, 1 reply; 8+ messages in thread
From: Michael McConnell @ 2006-11-20 10:34 UTC (permalink / raw)
To: BlueZ users
scostas wrote:
> Hi all:
>
> I have a PDA and I need to connect to the internet with it, but at work.
> I tried Synce but it doesn't work, because Pocket IE wants a true
> connection, and Synce still doesn't support the desktop passthroug.
>
> So I had the idea of emulating a BlueTooth GPRS modem with the PC. This
> is: the PDA will think that my PC has a GPRS modem and will use it to
> connect to the internet.
>
> Is possible to do that? I tried to do it with pppd and /dev/rfcomm0 but
> I was unable to make it work :(
You may need to set up some kind of "chat" script to emulate the AT
interface of the mobile phone, this will take some trial and error since
everything seems to want to send different commands :-/ The important
one would be the ATD<whatever> command, in that case send "CONNECT"
(chat will add the \r\n) then start PPP.
Hope that helps.
--
-- Michael "Soruk" McConnell
Eridani Star System
MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-users] emulating a GPRS modem with a linux PC
2006-11-20 10:34 ` Michael McConnell
@ 2006-11-20 10:48 ` scostas
2006-11-20 11:08 ` Michael McConnell
0 siblings, 1 reply; 8+ messages in thread
From: scostas @ 2006-11-20 10:48 UTC (permalink / raw)
To: BlueZ users
Michael McConnell escribi=F3:
Hi Michael:
>> So I had the idea of emulating a BlueTooth GPRS modem with the PC. This =
>> is: the PDA will think that my PC has a GPRS modem and will use it to =
>> connect to the internet.
> You may need to set up some kind of "chat" script to emulate the AT =
> interface of the mobile phone, this will take some trial and error since =
> everything seems to want to send different commands :-/ The important =
> one would be the ATD<whatever> command, in that case send "CONNECT" =
> (chat will add the \r\n) then start PPP.
The problem is that I didn't receive AT commands. I'm not sure that I =
have configured the RFCOMM port fine. That's my first question: how do I =
have to set up it?
I tried with
rfcomm connect 0 XX:XX:XX:XX:XX:XX
then I launched a cat /dev/rfcomm0 and tried to connect from the PDA, =
but I didn't receive AT commands.
Thanks.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-users] emulating a GPRS modem with a linux PC
2006-11-20 10:48 ` scostas
@ 2006-11-20 11:08 ` Michael McConnell
2006-11-20 12:44 ` scostas
0 siblings, 1 reply; 8+ messages in thread
From: Michael McConnell @ 2006-11-20 11:08 UTC (permalink / raw)
To: BlueZ users
scostas wrote:
> Michael McConnell escribi=F3:
> =
> Hi Michael:
> =
> =
>>>So I had the idea of emulating a BlueTooth GPRS modem with the PC. This =
>>>is: the PDA will think that my PC has a GPRS modem and will use it to =
>>>connect to the internet.
> =
> =
>>You may need to set up some kind of "chat" script to emulate the AT =
>>interface of the mobile phone, this will take some trial and error since =
>>everything seems to want to send different commands :-/ The important =
>>one would be the ATD<whatever> command, in that case send "CONNECT" =
>>(chat will add the \r\n) then start PPP.
> =
> =
> The problem is that I didn't receive AT commands. I'm not sure that I =
> have configured the RFCOMM port fine. That's my first question: how do I =
> have to set up it?
> =
> I tried with
> =
> rfcomm connect 0 XX:XX:XX:XX:XX:XX
> =
> then I launched a cat /dev/rfcomm0 and tried to connect from the PDA, =
> but I didn't receive AT commands.
It's been a while since I had to play with inbound BT connections, but =
IIRC rather than making a connection back to the PDA like what you've =
done above, the PDA is trying to open a new session so you need =
something listening for the inbound BT RFCOMM connection. But I'll be =
damned if I can remember exactly what you need :(
-- =
-- Michael "Soruk" McConnell
Eridani Star System
MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-users] emulating a GPRS modem with a linux PC
2006-11-20 11:08 ` Michael McConnell
@ 2006-11-20 12:44 ` scostas
2006-11-20 13:07 ` Michael McConnell
2006-11-20 13:59 ` Stefan Seyfried
0 siblings, 2 replies; 8+ messages in thread
From: scostas @ 2006-11-20 12:44 UTC (permalink / raw)
To: BlueZ users
Michael McConnell escribi=F3:
Hi:
> It's been a while since I had to play with inbound BT connections, but =
> IIRC rather than making a connection back to the PDA like what you've =
> done above, the PDA is trying to open a new session so you need =
> something listening for the inbound BT RFCOMM connection.
Yes, that was the point. I used
rfcomm listen /dev/rfcomm0 0
and a little python script to answer the AT commands, and it started to =
work. But I don't know the right answer for the AT+CREG? command.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-users] emulating a GPRS modem with a linux PC
2006-11-20 12:44 ` scostas
@ 2006-11-20 13:07 ` Michael McConnell
2006-11-20 13:59 ` Stefan Seyfried
1 sibling, 0 replies; 8+ messages in thread
From: Michael McConnell @ 2006-11-20 13:07 UTC (permalink / raw)
To: BlueZ users
scostas wrote:
> Michael McConnell escribi=F3:
> =
> Hi:
> =
> =
>>It's been a while since I had to play with inbound BT connections, but =
>>IIRC rather than making a connection back to the PDA like what you've =
>>done above, the PDA is trying to open a new session so you need =
>>something listening for the inbound BT RFCOMM connection.
> =
> =
> Yes, that was the point. I used
> =
> rfcomm listen /dev/rfcomm0 0
> =
> and a little python script to answer the AT commands, and it started to =
> work. But I don't know the right answer for the AT+CREG? command.
"OK" should be fine. I'd say answer "OK" to everything apart from ATD, =
which should get "CONNECT" then start PPP.
-- =
-- Michael "Soruk" McConnell
Eridani Star System
MailStripper - http://www.MailStripper.eu/ - SMTP spam filter
Mail Me Anywhere - http://www.MailMeAnywhere.com/ - Mobile email
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-users] emulating a GPRS modem with a linux PC
2006-11-20 12:44 ` scostas
2006-11-20 13:07 ` Michael McConnell
@ 2006-11-20 13:59 ` Stefan Seyfried
1 sibling, 0 replies; 8+ messages in thread
From: Stefan Seyfried @ 2006-11-20 13:59 UTC (permalink / raw)
To: bluez-users
On Mon, Nov 20, 2006 at 01:44:09PM +0100, scostas wrote:
> and a little python script to answer the AT commands, and it started to =
> work. But I don't know the right answer for the AT+CREG? command.
This is pretty off-topic here, and a simple google search for "gsm at coman=
ds"
would have lead you quickly to =
http://webapp.etsi.org/key/key.asp?GSMSpecPart1=3D27&GSMSpecPart2=3D007
and (with a small detour, i admit :-) to:
http://www.3gpp.org/ftp/Specs/archive/27_series/27.007/
-- =
Stefan Seyfried
QA / R&D Team Mobile Devices | "Any ideas, John?"
SUSE LINUX Products GmbH, N=FCrnberg | "Well, surrounding them's out." =
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDE=
VDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Bluez-users] emulating a GPRS modem with a linux PC
@ 2006-11-20 14:19 Philip Barnes
0 siblings, 0 replies; 8+ messages in thread
From: Philip Barnes @ 2006-11-20 14:19 UTC (permalink / raw)
To: BlueZ users
I use this a lot to connect my palm T2 to the net through my pc. I am currently running fc6, however my config has not changed from fc5.
<pedant>
I suspect you mean use, the linux box as a WAP/router, GPRS is a GSM data protocol.
</pedant>
The relevant parts of my rc.local file are below.
HTH Phil
-- start of rc.local
mknod /dev/rfcomm0 c 216 0
mknod /dev/rfcomm1 c 216 1
/sbin/modprobe rfcomm
#
# Start configuration of Bluetooth network
/usr/sbin/hciconfig hci0 up
/usr/sbin/hcid
/usr/sbin/sdpd
dund --listen --msdun 192.168.1.200:192.168.1.201
echo '1' > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i ppp0 -j ACCEPT
/sbin/iptables -A FORWARD -m state --state ESTABLISHED,RELATED
#
-- end of rc.local
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-11-20 14:19 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-20 10:02 [Bluez-users] emulating a GPRS modem with a linux PC scostas
2006-11-20 10:34 ` Michael McConnell
2006-11-20 10:48 ` scostas
2006-11-20 11:08 ` Michael McConnell
2006-11-20 12:44 ` scostas
2006-11-20 13:07 ` Michael McConnell
2006-11-20 13:59 ` Stefan Seyfried
-- strict thread matches above, loose matches on Subject: below --
2006-11-20 14:19 Philip Barnes
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.