Reply
Thread Tools
Posts: 53 | Thanked: 51 times | Joined on Feb 2010
#61
Hey.

Thank you for the replies everyone, really appreciate it.
Right,

Originally Posted by arne.anka View Post
what do you mean by "slow loading up"?
what cpu/memory does your box use?
I have a Intel P4 3ghz CPU and 4GB ram that runs at 400. I do need to get a new machine, but it seems to work fine-ish!

After reading all the posts, to be honest, I think it would be better to go via the C/C++ route. Simply because its a language I have wanted to get my teeth into. I want to spend time really getting to know a language so don't want to go via python for prototyping.

Right, I need to find a new distro now that is much will run Qt quicker. I might try Arch and see what that's like....

Shame cos I quite like Arch!

EDIT:: Actually, just a thought, it cant be my Distro. Open Office loads in under 2 seconds and I do remember it taking ages in other distros... I need to investigate this further...

Last edited by TheAccountant; 2010-04-20 at 17:54.
 
Banned | Posts: 388 | Thanked: 57 times | Joined on Mar 2010
#62
Originally Posted by zimon View Post
Does this command show anything? (needs package bridge-utils)

# brctl show

I noticed, if there is bridge driver connected to pan1/bnep0, then the same configuration which otherwise works do not work.
I managed to turn N900 Bluetooth network on. This said, there are bugs in N900 PC-Connectivity manager because sometimes I doesn't turn on it or forget the settings. Anyways, I can see bnep0 listed for both "route" and ifconfig querries on N900. I disabled dhcp from bluetooth options as you suggested. The default IP is 192.168.3.15 unlike your .14

[gsever@ccn Desktop]$ brctl show
bridge name bridge id STP enabled interfaces
pan0 8000.000000000000 no


When Bluetooth network is enabled in N900, you should see these in PC:
# hcitool con
(should show there is BT connection between two)
# pand -l
(should show there is NAP-PANU connection between two)
[gsever@ccn Desktop]$ hcitool con
Connec[gsever@ccn Desktop]$ hcitool con
Connections:
> ACL EX:XX:XX:XX:XX:XX handle 46 state 1 lm MASTER AUTH ENCRYPT

I use the same pand settings as yours.

PANDARGS='--listen --secure --encrypt --persist --role NAP --ethernet bnep0'

[gsever@ccn Desktop]$ pand -l
bnep0 EX:XX:XX:XX:XX:XX NAP


After those OK, just "ifup bnep0" should bring bnep0 network device up with correct IP-addresses if your ifcfg-bnep0 is OK and "brctl show" doesn't show anything.
Does my brctl indicate any problem?

This is my ifcfg-bnep0. Again copying and modifying from yours.

HWADDR=EX:XX:XX:XX:XX:XX
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV6INIT=no
NAME="bnep0"
ONBOOT=yes
IPADDR=192.168.3.15
NETMASK=255.255.255.0
DEVICE=bnep0
NM_CONTROLLED=yes
USERCTL=yes
PREFIX=24
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
UUID=0c56a419-a51d-e7de-cc31-............
# Don't know where this UUID comes from

This is the funny part:

[gsever@ccn Desktop]$ ifup bnep0
Device bnep0 has different MAC address than expected, ignoring.

That last step is missing. What do you think?
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#63
Originally Posted by gsever View Post
I managed to turn N900 Bluetooth network on. This said, there are bugs in N900 PC-Connectivity manager because sometimes I doesn't turn on it or forget the settings. Anyways, I can see bnep0 listed for both "route" and ifconfig querries on N900. I disabled dhcp from bluetooth options as you suggested. The default IP is 192.168.3.15 unlike your .14
N900 has 192.168.3.15
PC has 192.168.3.14
The default route from N900 is through 192.168.3.14 if you want access Internet through PC:
N900# route add default gw 193.168.3.14 bnep0

[gsever@ccn Desktop]$ brctl show
bridge name bridge id STP enabled interfaces
pan0 8000.000000000000 no
Ok. I noticed if I had any bridge on BT, I couldn't use the network.
So try to delete that bridge:
# brctl delbr pan0



[gsever@ccn Desktop]$ hcitool con
Connec[gsever@ccn Desktop]$ hcitool con
Connections:
> ACL EX:XX:XX:XX:XX:XX handle 46 state 1 lm MASTER AUTH ENCRYPT
That seems OK. You are authenticated and encrypted (so when you take ssh connection, you may want to make it less CPU hungry and quicker by using "-c arcfour" with ssh.)


PANDARGS='--listen --secure --encrypt --persist --role NAP --ethernet bnep0'
# cat /etc/sysconfig/pand
PANDARGS='--master --listen --secure --encrypt --persist --autozap --role NAP --ethernet bnep0 --devup /etc/sysconfig/network-scripts/ifup'

I try to get it run "ifup bnep0" automatically when NAP-PANU connection is up, but it just won't run that script. I have to manually do "ifup bnep0" on PC.

[gsever@ccn Desktop]$ pand -l
bnep0 EX:XX:XX:XX:XX:XX NAP
OK, you have NAP-PANU connection working.




This is my ifcfg-bnep0. Again copying and modifying from yours.

....
UUID=0c56a419-a51d-e7de-cc31-............
# Don't know where this UUID comes from
ifcfg-bnep0 seems OK. UUID comes from NetworkManager, I think.
Just check HWADDR is the same what you get with "hciconfig"


This is the funny part:

[gsever@ccn Desktop]$ ifup bnep0
Device bnep0 has different MAC address than expected, ignoring.

That last step is missing. What do you think?
It says ifcfg-bnep0 file's "HWADDR" would be wrong.

Also, I don't know if it helps, but at least makes a little more restrictic yet, is to have "REMOTEBDADDR=<N900_BT_MAC>" also. Maybe even little quicker as it does not need ARP then, I think.

So, try to get rid of that pan0 bridge and check the HWADDR.

Last edited by zimon; 2010-04-20 at 20:29. Reason: default route in n900
 
Banned | Posts: 388 | Thanked: 57 times | Joined on Mar 2010
#64
Originally Posted by gsever View Post
[gsever@ccn Desktop]$ ifup bnep0
Device bnep0 has different MAC address than expected, ignoring.

That last step is missing. What do you think?
Silly me. ifcfg-bnep0 HWADDR= must be Laptop Bluetooth MAC not N900 It has resolved. I get it working, now I can both ssh and vnc via bluetooth without a need for a wlan.

Here is the interesting thing: When I first tried:

ifup bnep0
Error, some other host already uses address 192.168.3.15.

Although bluetooth ip is set to this one. On my next try I changed: IPADDR=192.168.3.14 from .15

And tadaaa....

ifup bnep0
[gsever@ccn Desktop]$ ssh root@192.168.3.15
The authenticity of host '192.168.3.15 (192.168.3.15)' can't be established.
RSA key fingerprint is ...
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.3.15' (RSA) to the list of known hosts.
root@192.168.3.15's password:


BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso26+0m5) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900-42-11:~#
 
Posts: 1,341 | Thanked: 708 times | Joined on Feb 2010
#65
Congrats, you got it working !

So you just had wrong IP-address and HWADDR in ifcfg-bnep0.

Now if everything just would be automatic on Fedora PC side, after Bluetooth has been enabled on N900 side, it would be good. (Haven't got that far yet, although tried....seems like some bugs.)

btw, do you have that bridge pan0 now removed or not? If not, is it visible with "ifconfig"?

EDIT:
WLAN may be quicker if your PC does not support BT 2.1 EDR (and anyway), but BT at least is VERY power efficient.
For best speed USB networking is the best, right after mounting external microSD card to PC and back to N900, or connecting N900 to PC via USB in mass-storage-mode.

(Sorry again for hijacking the thread...I wish we could transfer all to another thread.)

Last edited by zimon; 2010-04-20 at 20:31.
 
Nyrath's Avatar
Posts: 92 | Thanked: 50 times | Joined on Jan 2006 @ the praeternatural tower
#66
as a side note, I was very pleasantly surprised at how seamlessly PyQt handles cross platform.

I had a large PyQt application I had developed on the Windows platform. On a whim, I copied the source code and data files over to my Nokia 810 (with Python and PyQt). I had to convert all the Windows cr/lf into Linux lf, but that's all.

It worked wonderfully. I have to re-size the controls to fit the 800 x 480 screen, but the application works as is.

In the images, the first image in the pair is on Windows, the second image is on the N810

http://www.flickr.com/photos/nyrath/...7606410052769/
http://www.flickr.com/photos/nyrath/...7606410052769/

http://www.flickr.com/photos/nyrath/...7606410052769/
http://www.flickr.com/photos/nyrath/...7606410052769/

http://www.flickr.com/photos/nyrath/...7606410052769/
http://www.flickr.com/photos/nyrath/...7606410052769/

http://www.flickr.com/photos/nyrath/...7606410052769/
http://www.flickr.com/photos/nyrath/...7606410052769/

http://www.flickr.com/photos/nyrath/...7606410052769/
http://www.flickr.com/photos/nyrath/...7606410052769/
 
Banned | Posts: 388 | Thanked: 57 times | Joined on Mar 2010
#67
Originally Posted by zimon View Post
Congrats, you got it working !

So you just had wrong IP-address and HWADDR in ifcfg-bnep0.
Thank you very much for your help and careful thoughts. I am so scatter minded these and trying to many things at a time. As a result skipping simple things where make huge difference in the final However I still claim Bluetooth networking functionality through N900 PC-Conn-manager has some bugs since it doesn't save settings properly or doesn't set BT up where it is supposed to + plus it doesn't work with dhcp enabled at least on FC12. Could you confirm on these findings again?

Now if everything just would be automatic on Fedora PC side, after Bluetooth has been enabled on N900 side, it would be good. (Haven't got that far yet, although tried....seems like some bugs.)
Is there any progress for these improvements on the upcoming Fedora 13?

btw, do you have that bridge pan0 now removed or not? If not, is it visible with "ifconfig"?
No, brctl still lists pan0, and I haven't removed it to get the BT networking working properly. ifconfig doesn't list pan0 only bnep0 is there in addition to eth0 and wlan0

EDIT:
WLAN may be quicker if your PC does not support BT 2.1 EDR (and anyway), but BT at least is VERY power efficient.
I querried my laptop's BT from N900 using:
hcitool info BT-Addr

It list LMP version 2.1 Does this mean I get BT 2.1 EDR?

For best speed USB networking is the best, right after mounting external microSD card to PC and back to N900, or connecting N900 to PC via USB in mass-storage-mode.
Setting up a USB network is the next step. For now I am content with WLAN and BT options. For the sake of integrity we can complete the steps for USB networking on FC12 and prepare a wiki page or documentation that could placed on pc-connectivity site for other Fedora viewers use.

(Sorry again for hijacking the thread...I wish we could transfer all to another thread.)
I share the same thoughts. We should have already been moved to another thread I will be more careful next time speculating aloud.

Last edited by gsever; 2010-04-20 at 22:10.
 
Posts: 28 | Thanked: 42 times | Joined on Nov 2009 @ Germany
#68
Most things have already been said here, Qt Creator, scratchbox, MADDE and so on.
There's also guide for building debian packages in the wiki.
 
Posts: 299 | Thanked: 241 times | Joined on Oct 2009 @ Singapore
#69
Originally Posted by TheAccountant View Post
I will keep trying cos the applications I want/need are just things to make my everyday life easy. Like an app to manage finance, game scores, shopping lists with auto alarm reminders etc... I would even dare release anything into public domain until I am very comfortable with the coding!
Well, I'm reasonably happy with the ease of development of my Qt based score tracking app QSportsEvent (ignore the current version in Extras-Devel though). This thread is the one to follow for that app: FIFA World Cup App. Don't let you be fooled by the thread title! It does much more than the FIFA World Cup. I plan to support other sports as well.
__________________
My Maemo Apps:
QTeachMe
- Flashcard app
MobiTifo (which was formerly known as QSportsEvent) - Sports leagues tracking (mainly football).
 
Posts: 53 | Thanked: 51 times | Joined on Feb 2010
#70
Thank you for the replies.
I have solved the slow issue by building a new system. i think the board and cpu were rubbish. Qt runs fine now.

Thanks!
 
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 09:19.