I too see a 1 and then a 2 pop up when I start opera, does anyone know what these correspond too?Originally Posted by alebm
@mack
would you be willing to share the source code?
do you have routing, masquerading and so on activated?
ppp0 should be an internal interface in your firewall...
I too see a 1 and then a 2 pop up when I start opera, does anyone know what these correspond too?Originally Posted by alebm
@mack
would you be willing to share the source code?
ok, some answers to your questions:
intoxicated: You need to activate routing and natting on your laptop, as seen in the script I suggested. Adjust my scripts (both host-side and phone-side) to your IPs. Change these everywhere:
192.168.1.4 -> your ppp0 address on the phone.
192.168.1.3 -> your ppp0 address on the host.
10.1.1.1 -> your gprsv0.
rpconnect: first, if you changed the gprsv0 interface's IP, I suggest you use the new version of fake_dsm, attached to this version. It accepts a param, which should be your gprsv0 address if its not 10.1.1.1. The reason is that some applications insist on getting an IP address from dsm and try to bind it for outgoing connections. It should be the same address you ifconfig gprsv0 to. If it still doesn't work for you, try to tcpdump -i ppp0 on the host side, and see which address your packets come from, when you use opera. They should appear as coming from your gprsv0 address. If it doesn't, make sure you properly changed all scripts on both sides to reflect your address settings.
alebm: I haven't used it with usbl0 but it should work. Make sure you changed all occurances of ppp0 to the usb interface on both sides. Also try to change the '...ROUTE --gw 192.168.1.3' to '..ROUTE --oif usbl0'. May help you if usbl operates differently from ppp.
As for the 1,2,8 messages, they're debug messages I forgot there. Removed it now. Basically, they were commands given to dsm by running applications such as opera. 1 and 2 are given upon connection to dsm. 8 asks for an actual connection, and is sent upon every connection attempt. The response I send in case of 8 says that the connection is up and ready, and provides the connection's IP address for binding. The old version in the package always sent 10.1.1.1. The new version (attached) gets a param. With no param given, it falls back to 10.1.1.1 for compatibility with the old scripts.
Re source, sure, I'll attach it too, but it won't do you much good since it just emulates some parts of the dsm protocol without doing any interpretation. Its the minimal implementation to convince applications that GPRS is up and has the IP we gave it. Be warned that fake_dsm is an ugly hack written around 5AM, in an attempt to get the whole fake gprs thing working before going to sleep. No comments, ugly coding, but works.
Good luck everybody.
One more thing - I thought of a cleaner way to do the whole fake gprs thing, which will have the added benefit of allowing connections to localhost by opera and kvm. It requires a bit of messing with the netlink layer. I don't have the time to do it right now, but if anyone's up to it, PM me and I'll be happy to guide you through development.
Hi, I'am posting this using my e680i opera and without spending lots of money on gprs hehehe.
My problem was the opera profile, since I was using my provider profile, opera tried to connect to the proxy/gateway ip... creating a new profile and let the gateway fields empty is the solution![]()
@mack
Thanks for the the help, the updated fake_dsm, and the tcpdump tip (you can tell i'm new to this,)!!! It took some fussing and I had to screw around w/ the opera profile to find somthing that would work, but all seems well now.
Finally, no limiting the internal apps just because t-mobile is too cheap to let me on the net!! Beautiful work, thanks again!!!
Thanks Mack! I got internet working over BTppp to a winXP. Got freeproxy (handcraftedsoftware.org) running on PC & PC address configured as proxy in opera. My first (as I don't have gprs) site visit from the phone was obviously MFC.
I guess its time now my phone loses its virginity status, need to flashthe latest A780 flex for that video/voip phone.
----------------------------------------
sent from my A780![]()
You're welcome, everybody.
Re flashing/flexing, my phone is virgin as well, since I do all my changes in RAM. I did plenty of changes but they're all post-boot.
btw, anyone knows if a newer flash somehow activates a GPS ? I'm starting to think that the phone simply doesn't have it.
Hey Mack, how to update ram with new flash image post-boot? It will be good if you can list down the procedure (just in brief for a Linux developer) , so that we can try new firmware without flash'ucking the phone.
He's talking about inserting modules instead of changing the zImage, using mount --bind to edit RO directories etc, not that difficult.
Yes, but does it run Linux?