Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - DaveR

Pages: [1]
1
Zaurus - pdaXrom / Gprs Config Wierdness Modem Init String [solved]
« on: August 03, 2006, 05:58:01 am »
My Z860 | bluetooth | Nokia 6310i | GPRS connection works OK -  so no problem. But I've discovered that I always need a modem init string (AT+cgdcont= ...) with the Z - but not if I use WinXP. I wanted to understand why so I posted to usenet alt.celluar.gsm - here's the thread:
http://groups.google.com/group/alt.cellula...e65942b9cd433a/

Can anybody here shed any light on this, or suggest why the difference between the Z and Win? Does anyone here not need an init string - and if so do they have to specify anything more that the APN (e.g.PDP-type="IP") to the phone?

It might explain this post
https://www.oesf.org/forums/index.php?showtopic=16558

For the record, here's my working ppp script
Code: [Select]
# DR 28/7/2006
#
/dev/rfcomm0
115200
# I need the "" to be sent to the phone - hence \' used in setup string
# ATDT*99# works but ATDT*99***1# probably will too - assumes CID=1
connect '/usr/sbin/chat -s -v -t 60 ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "BUSY" "" "ATZ" OK \'AT+cgdcont=1,"IP","internet.wind"\' OK "ATDT*99#" CONNECT'
crtscts
local
noipdefault
modem
# I think I need (PAP) authentication even though no username/password - cannot be blank hence...
user anything
usepeerdns
defaultroute
connect-delay 5000
remotename Wind
Like I said, just curious.
Dave

2
Zaurus - pdaXrom / Bluetooth Pairing Worked Before - Not Now [solved]
« on: July 06, 2006, 05:22:04 am »
I installed BlueZ and paired to a Nokia 6310i mobile a while ago. I didn't have any problem with the Bluetooth part of the setup - in fact the pairing was so easy I can't remember exactly what I did. I do remember putting the pin into the phone then into the little window put up by the pin helper - and it was done. My problems were all to do with PPP - which was another thread here.

Anyway I had it all working but needed to change to another, identical, Nokia (the original wasn't mine). Since then I've failed to pair the Z with the new phone despite trying every which way. I always get:
Can't connect RFCOMM socket: Connection refused

Googling on this error I find that others have had this problem and there doesn't seem to be a common cause. Some seem never to have solved it. In my case I know that this Z will attach to an identical phone.

The session below is typical
Code: [Select]
[eject/insert BT card]

root@zaurus:/etc/bluetooth> tail /var/log/messages

Jul  5 21:56:06 cardmgr[138]: executing: './bluetooth stop ttyS3 2>&1'
Jul  5 21:56:06 cardmgr[138]: + Shutting down Bluetooth... Done.
Jul  5 21:56:06 hcid[1034]: HCI dev 0 down
Jul  5 21:56:06 hcid[1034]: Stoping security manager 0
Jul  5 21:56:06 hcid[1034]: HCI dev 0 unregistered
Jul  5 21:56:06 /sbin/hotplug: no runnable /etc/hotplug/bluetooth.agent is installed
Jul  5 21:56:33 cardmgr[138]: socket 0: Compaq iPAQ Bluetooth Sleeve
Jul  5 21:56:34 cardmgr[138]: executing: './bluetooth start ttyS3 2>&1'
Jul  5 21:56:34 cardmgr[138]: + Starting Bluetooth... Done.

root@zaurus:/etc/bluetooth> hciattach ttyS3 bcsp

root@zaurus:/etc/bluetooth> hciconfig -a
hci0:   Type: UART
        BD Address: 00:05:4E:00:D9:D7 ACL MTU: 128:8  SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN
        RX bytes:264 acl:0 sco:0 events:13 errors:0
        TX bytes:446 acl:0 sco:0 commands:12 errors:0
        Features: 0xff 0xff 0x05 0x00 0x00 0x00 0x00 0x00
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'BlueZ (0)'
        Class: 0x120114
        Service Classes: Networking, Object Transfer
        Device Class: Computer, Palm
        HCI Ver: 1.1 (0x1) HCI Rev: 0x73 LMP Ver: 1.1 (0x1) LMP Subver: 0x73
        Manufacturer: Cambridge Silicon Radio (10)

root@zaurus:/etc/bluetooth> hcitool scan
Scanning ...
        00:60:57:80:E0:05       DR Nok 6310i
    
root@zaurus:/etc/bluetooth> rfcomm connect hci0 00:60:57:80:E0:05 1
[Phone: Connect with BlueZ(0)? (Accept) Password? - (I provide PIN) - Connecting... Failed...Disconnected]

Can't connect RFCOMM socket: Connection refused

root@zaurus:/etc/bluetooth> tail /var/log/messages

Jul  5 21:56:34 cardmgr[138]: + Starting Bluetooth... Done.
Jul  5 21:57:56 hcid[1034]: HCI dev 0 registered
Jul  5 21:57:56 /sbin/hotplug: no runnable /etc/hotplug/bluetooth.agent is installed
Jul  5 21:57:56 hcid[1034]: HCI dev 0 up
Jul  5 21:57:56 hcid[1034]: Starting security manager 0
Jul  5 21:59:13 hcid[1034]: pin_code_request (sba=00:05:4E:00:D9:D7, dba=00:60:57:80:E0:05)

root@zaurus:/etc/bluetooth> rfcomm show
rfcomm0: 00:60:57:80:E0:05 channel 1 clean

root@zaurus:/etc/bluetooth> ls -al /dev/rfcomm0
crw-rw-rw-    1 root     root     216,   0 Jul  5 21:44 /dev/rfcomm0

[something I noticed that might be relevant:]

root@zaurus:/etc/bluetooth> cat /dev/rfcomm0
[asks for pin on phone - same sequence as above]
cat: /dev/rfcomm0: Connection refused

If I just run the PPP dialler which worked before (rfcomm0 is now pointing to the new phone) I get a similar error:

Jul  5 17:17:17 pppd[1301]: Failed to open /dev/rfcomm0: Connection refused

Things I've tried:
  • With and without a pin file. When I paired the first phone I got a window to put the pin in, but I've failed ever to get that window again. I think this is significant - I get the error message before I'm asked for my pin on the Z. /bin/bluepin is still the pin-helper and does work.
  • PIN files with and without newlines. Some posts claim this is significant. I'm not sure it ever gets to read this though - see above.
  • Deleting the old link-key file.
  • With and without a rfcomm.conf file, and with a default one (bind no) and one set up for the new phone. (The hcid.conf and bt-uart.conf files are as installed.)
  • Just about every hcitool and rfcomm command I can find
  • Installed bluez-spd and checked that channel 1 is correct for DUN
  • Deleting a lock file var/lock/subsys/bluetooth
  • Uninstalling and reinstalling the bluez packages - trying to revert to the original situation.
  • Checked that the Nokia firmware is the same on both phones. The new one is secondhand & BT works with a headset.
Not only can I not pair this new phone I now can't talk to the old one - I get the same error message now. The devices should still be paired (the Nokia thinks it is and I've put back the link-key file, though I might have damaged it since - I didn't take a backup of it before I started all this.)

I'm not sure that it's the pairing process that's at fault - without a pin file I'm not even asked for my pin on the Z. Something to do with /dev/rfcomm0.

Any ideas?

Dave

3
Zaurus - pdaXrom / Ppp Connect To Nokia Mobile [solved]
« on: June 29, 2006, 12:41:10 pm »
Hi.

I want to make a PPP dial-up connection via bluetooth and a Nokia 6310i mobile  - CSD not GPRS. The phone and ISP works OK with the Nokia Windows modem software.

The bluetooth part works OK and I can dial the ISP - but then nothing. I'm pretty sure it fails to PAP authenticate - there are no authentication messages in the log and a ping to an internet address fails.

I've tried several ways of specifying username/password and lots of combinations of PPP parameters - it's a long way from the standard setup now. Here's the latest log:

Code: [Select]
root@zaurus:/etc/ppp/peers>pppd call BTNokDialFreeUK
pppd options in effect:
debug           # (from /etc/ppp/peers/BTNokDialFreeUK)
nodetach                # (from /etc/ppp/peers/BTNokDialFreeUK)
connect-delay 8000              # (from /etc/ppp/peers/BTNokDialFreeUK)
dump            # (from /etc/ppp/peers/BTNokDialFreeUK)
noauth          # (from /etc/ppp/peers/BTNokDialFreeUK)
user royal              # (from /etc/ppp/peers/BTNokDialFreeUK)
remotename FreeUK1              # (from /etc/ppp/peers/BTNokDialFreeUK)
/dev/rfcomm0            # (from /etc/ppp/peers/BTNokDialFreeUK)
115200          # (from /etc/ppp/peers/BTNokDialFreeUK)
connect /usr/sbin/chat -v -f /etc/ppp/chatscript.NokDialFreeUK.connect          # (from /etc/ppp/peers/BTNokDialFreeUK)
disconnect /usr/sbin/chat -v -f /etc/ppp/chatscript.NokDial.disconnect          # (from /etc/ppp/peers/BTNokDialFreeUK)
crtscts         # (from /etc/ppp/peers/BTNokDialFreeUK)
silent          # (from /etc/ppp/peers/BTNokDialFreeUK)
show-password           # (from /etc/ppp/peers/BTNokDialFreeUK)
noipdefault             # (from /etc/ppp/peers/BTNokDialFreeUK)
defaultroute            # (from /etc/ppp/peers/BTNokDialFreeUK)
usepeerdns              # (from /etc/ppp/peers/BTNokDialFreeUK)
AT
OK
ATE1
OK
AT+CBST=14,0,1;+chsn=2,1,0,8
OK
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/rfcomm0

And it just sits there for a minute or so, when the call ends itself. There should be some PAP messages in the log at this point, I think. If I kill it myself I get:

Code: [Select]
Terminating on signal 2
Connection terminated.
Receive serial link is not 8-bit clean:
Problem: all had bit 7 set to 0
Sending break to the modem
PDP context detached
Serial link disconnected.

To debug this I want to look at the messages between the Z and the phone in detail. I have debug on, but as I understand it, the usual syslogd stuff is not implemented by busybox. So how do I get at these messages to find out what's happening?

I'd appreciate a few pointers on this - although I've been using Linux for some years I'm new to the Z.

Dave

Pages: [1]