![]() |
Re: Developing is soo difficult
Quote:
Quote:
Quote:
Quote:
Quote:
|
Re: Developing is soo difficult
Quote:
Code:
ifconfig |
Re: Developing is soo difficult
Quote:
laptop n900 wireless router etc... But I'm guessing if you [i]had[/] a wireless router, we wouldn't be having this conversation. |
Re: Developing is soo difficult
Quote:
My problem was connecting to N900 and Wireless Router at the same time from my Fedora 12 laptop. Since I couldn't achieve this yet I am trying to resort to bluetooth networking. Right now without actually connecting to the N900 adhoc wireless point I can't talk to the device via ssh. And when I do that I lose the internet on the laptop. |
Re: Developing is soo difficult
Quote:
|
Re: Developing is soo difficult
Quote:
According to your explanation I should be able to connect N900 using these settings. What is the next step? |
Re: Developing is soo difficult
Last time I tried the MADDE/Qt Creator combo, I discovered that it did not support QT-4.6...
Has this changed at all? It IS difficult to get a build environment up and running for this device. More than once I've given up on an idea for an application because I did not want to spend all afternoon tinkering with scratchbox/MADDE/whatever just to get it to work seemlessly.. |
Re: Developing is soo difficult
Quote:
Did apt-get install iproute (Very interesting that app manager GUI can't find this while it is found via shell :) Get my IP address from ifconfig. Tadaaa... Both ssh and vnc work as I originally expected. |
Re: Developing is soo difficult
Quote:
I think I made bnep0 device with Desktop: System/Preferences/Network_Connections/Wired/Add Connect_automatically: Yes, name: bnep0, MAC: <your BT MAC on PC>, MTU: automatic Then to try PAND connection manually, on PC: # pand -c EC:9B:5B:23:XX:XX -S -E -e bnep0 X=your N900 BT MAC. # pand -l # to check After that you should be able manually configure bnep0 device: # ifconfig bnep0 192.168.3.14 netmask 255.255.255.0 dstaddr 192.168.3.15 |
Re: Developing is soo difficult
Quote:
|
Re: Developing is soo difficult
Quote:
From N900 ->Settings -> PC-Connectivity Manager I activated bluetooth. In advanced tab: Bluetooth enabled DHCP server checked IP address: 192.168.3.15 Gateway: 192.168.3.14 Network mask: 255.255.255.0 Bluetooth address search successfully discover and pair with my FC12 laptop. Settings are all applied. Quote:
pand -c EC:9B:5B:01:XX:XX -S -E -e bnep0 pand -l # This responds after the restart bnep0 EC:9B:5B:01:XX:XX PANU # Guessing the last should be the IP of N900 ifconfig bnep0 192.168.3.14 netmask 255.255.255.0 dstaddr 192.168.3.15 However still isn't working :( ssh root@192.168.3.15 ssh: connect to host 192.168.3.15 port 22: No route to host It should be close I know. I sometimes get similar messages trying to ssh other Redhat and Fedora machines. We hijacked the topic but we are getting useful responses for everybody (ok especially for FC12 users :) Device connectivity is an important part of the development. WLAN works nicely, however there times it is pain to connect another device (oh VPN etc..) In these situations bluetooth would provide a very simple and useful solution. |
Re: Developing is soo difficult
Quote:
|
Re: Developing is soo difficult
Quote:
Queen Beecon Widget (swiss army tool) can do it. Widget type: Snippet, Status: Enabled, Command Selection: Internal IP Width 130, Height 115 Font Face: 12 Beecon Command Exit Status=0 ;anythingsjfdgfg Image Filename: ;dfjfgohdganything About PAND in F12: Does ifconfig now show you have a bnep0 device up at least? What does route show about routes or both ends? I think it is only a routing problem anymore for you. (Yep, sorry for hijacking. Moderator, if feels like it, could move these to "PAND Bluetooth tethernet in Fedora 12".) |
Re: Developing is soo difficult
Quote:
|
Re: Developing is soo difficult
Quote:
Quote:
Code:
HWADDR=My BT MACifup bnep0 Device has different MAC address than expected, ignoring. Very interesting. Do you get a similar behavior? Quote:
|
Re: Developing is soo difficult
Quote:
Code:
# cat /etc/sysconfig/network-scripts/ifcfg-bnep0 I don't think N900 has DHCPD, so BOOTPROTO=none and manual IP address. |
Re: Developing is soo difficult
Quote:
I booted and used your pand settings from page 4. Still nothing happens, get no route to host messages. Neither ifconfig nor route list any activity about bnep0. N900 bluetooth is transmitting. If I set ifcfg-bnep0 following his instructions I can get a bnep0 available option on Network Manager applet on F12. But still no ssh :( No More Twist: Bluetooth PAN from Windows Mobile to Fedora 11 |
Re: Developing is soo difficult
Have you checked the routing table on N900 is OK? Also ping usually is the first protocol which is good to try. Also ´tcpdump -i bnep0´ may reveal what is wrong.
Does hciconfig show there is data going in and out? "BT tethering is soo difficult" :-) |
Re: Developing is soo difficult
Quote:
Code:
[gsever@ccn Desktop]$ ssh root@N900Is there an alternative way to set Bluetooth network on N900 --GUI or shell doesn't matter? Quote:
Code:
[root@ccn network-scripts]# tcpdump -i bnep0Quote:
Code:
Nokia-N900-42-11:~# hciconfig |
Re: Developing is soo difficult
Quote:
# brctl show I noticed, if there is bridge driver connected to pan1/bnep0, then the same configuration which otherwise works do not work. 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) 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. and btw, I couldn't get DHCP working either, although N900 PC-connectivity manager would have "DHCP server" option enabled. |
Re: Developing is soo difficult
Hey.
Thank you for the replies everyone, really appreciate it. Right, Quote:
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... |
Re: Developing is soo difficult
Quote:
[gsever@ccn Desktop]$ brctl show bridge name bridge id STP enabled interfaces pan0 8000.000000000000 no Quote:
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 Quote:
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? |
Re: Developing is soo difficult
Quote:
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 Quote:
So try to delete that bridge: # brctl delbr pan0 Quote:
Quote:
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. Quote:
Quote:
Just check HWADDR is the same what you get with "hciconfig" Quote:
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. |
Re: Developing is soo difficult
Quote:
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:~# |
Re: Developing is soo difficult
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.) |
Re: Developing is soo difficult
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/ |
Re: Developing is soo difficult
Quote:
Quote:
Quote:
Quote:
hcitool info BT-Addr It list LMP version 2.1 Does this mean I get BT 2.1 EDR? Quote:
Quote:
|
Re: Developing is soo difficult
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. |
Re: Developing is soo difficult
Quote:
|
Re: Developing is soo difficult
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! |
| All times are GMT. The time now is 03:00. |
vBulletin® Version 3.8.8