Hi,
I'm developing some Socket applications for the 92xx platform. I've been trying for 2 days (going on 3) to figure out how to connect to the Internet or even a loopback address with NO SUCCESS...
If someone could help out, that would be great. I promise to post my findings whether I am successful or not. I have looked at these forums and those on NewLC without much luck.
I'm using the SDK from the Nokia website, of course. I'm able to build and run most programs. Here's what I've found:
-there are two examples included with the SDK, one is a chat client in the NokiaEx directory: it does not compile at all! Has anyone had any luck with it? The second example is an echo client in the Epoc32Ex directory, it compiles but its icon does NOT appear in the Extras! I checked and it IS on the Z drive! Anyone had any luck starting it?
-There's a third example somewhere on the Nokia site that's called TcpUdp. It DOES build and it DOES show up (so far so good).
BUT, I have had tremendous trouble connecting this emulator to the Internet:
-I'm using the Series 92xx SDK so I can't use the Winsock library (made for the UIQ SDK) posted on the Nokia website
-I can't use the hacked up PrnESOC Winosock library because it's made for the Series60 and it DOES NOT have sufficient functionality (it reimplemented RSocket and RSocketServer)
-I haven't tried using a loopback cable or buying software which will redirect COM1 to COM2 (my motherboard doesn't even have a second serial port!)
SO MY QUESTION IS:
What do I need to do to get the emulator for the 92xx (or any other series SDK) to connect to the Internet using a regular 56k modem on COM1? When I try dialing in, NetDial crashes with error 53. Do I need to set up RAS? Edit the commsdb with setupcomms.bat? Has anyone had luck with a loopback address and a server listening on the local PC?
Thank you so much. Once again, I'll post any new findings.
Thanks a lot,
Vlad
As a follow up to this thread, I should point out that I was able to get some of this code running with a loopback address when the host (server) program was an emulator APP and not a Windows EXE... I really don't see why this made a difference (unless Symbian is so myopic that it can't recognize the existence of ports not opened through it).
Anyways, if anyone wants the source for this program or some help, I'll happily send it out.
I still need an answer for the questions in my previous post as a loopback address only partially solves my problem...
I was able to find a PDF describing RAS setup on W2K (but not WinXP 😞 ), however, from reading similar forums, I would say those instructions are not complete and they won't work on my machine (only one COM port).
If you want the link to the official RAS set up link, I'll hook you up.
Vlad
Sorry, I know I'm making this a monologue but I'm doing it in the hope that posting the solutions may help someone who was as hard up as I was. The Goldern Rule, right?
Seems I finally got the emulator to work through dial-up. The issue was that I was creating the connection in Internet Connections instead of Emulator Internet Connection. After that everything was pretty simple. A dial-up connection to the Net is good enough for my purposes right now and is a more realistic model of the throughput expected from a real device. I would recommend getting an analog modem before messing with RAS and loopback cables, the RAS approach is very error prone.
If you have questions about using emulator through modem, post here, I'd be glad to help if I can.
Vlad
hey vlad, just curious, have you tried connecting the emulator through an Ethernet connection as well? i'm having a lot of difficulting even running a simple socket connection to a time server. i'm running the Series 60 sdk v. 2.1 on codewarrior. Thanks in advance
hi,Vlad2. I am new to symbian, i run the Sockets example(visual c++). I connected 127.0.0.1, and i Enabling RAS for the emulator(sdk help). when i Testing the RAS configuration, failed. i want to know why?
2. Emulator configuration
If your emulator software is installed at the root level (i.e. \epoc32...) then start at step 2.
Substitute a drive for your epoc root then change to this drive i.e.
subst w: D:\Symbian\6.1\Series60
w:
Execute the command:
commsdb_ras
This will create two access points in the communications database (NTRAS and LINUXRAS) with a username and password of 'RasUser'.
The emulator can only use COM1 and COM2 for this so disable/delete any devices/applications using these ports.
Connect a NULL MODEM cable between COM1 and COM2
can you tell me the meaning of the process? isn't com1 and com2 physically connected? My pc has only one com , must i install moderm?
cud aneone plz help me on development of socket server