JavaME GPRS

Hi!
I have a problem sending data with my phone over GPRS to my server! When I run my code on emulator (netbeans) it runs OK! But when i try it for real, the phone connects via GPRS, but no data is sent. Here is my code if someone could help! Thanks
SERVER:
ServerSocket server = new ServerSocket(11111);
Socket socket = server.accept();
DataInputStream in = new DataInputStream(socket.getInputStream());
byte[] data = new byte[8];
while (in.read(data,0,8)!=-1) {
                   System.out.println(in.read());
CLIENT(PHONE):
DataOutputStream output= new DataOutputStream(Connector.openDataOutputStream("socket://(serverip):11111"));
byte[] data = new byte[8];
                 data[0]=3;data[1]=63;data[2]=63;data[3]=37;data[4]=38;data[5]=30;data[6]=13;data[7]=23;
                 while(true)
                    output.write(data,0,8);Thanks

i wud like to know as to what are u doing to create a
GPRS connection?? http connection or a socket as is
shown above. sorry if this sounds naive but i need to
know this.Just connect to socket or http url, and the phone will do the rest if you configured it correctly. You cannot setup the connection via MIDP.
also do u know as to how i can get the packet size
that is sent/received using the GPRS signal.It is not possible to get the max MTU in MIDP.

Similar Messages

  • IPhone 5S GPRS/E slow / unusable

    Hi,
    A month ago I upgraded from an iPhone 4 to the iPhone 5S. Ever since I had the 5S I have noticed the GPRS / E data is extremely slow and most of the time it is unusable as pages time out or you end up giving up.
    I am on Tesco mobile in the UK (O2).
    I decided a few days ago to compare my 5S with the iPhone 4 which my wife now has and is also on the same type of contact with Tesco mobile.
    If I turn wifi off and turn off 3G/4G (Settings / Enable 3G/4G toggle) on both phones then I can see they both switch to GPRS mode. I load the same webpage on both phones together and although slow as you would expect on GPRS the iPhone 4 loads the page first while the iPhone 5S just sits there blank with the blue bar at the top initially moving then paused.
    So I contacted Apple support to ask why. After many calls reseting the phone and updating to iOS7.1, checking setting with Tesco mobile etc I still dont have a fix.
    Today I went into the Southampton Apple store, a genius lady acknowledged the issue once I showed her and straight away gave me a replacement saying it looked like hardware fault. However on testing the replacement it still had the issue. A more senior genius guy then looked at it and also saw the issue. He was suggesting that it must be my sim card so I said to them to show me an iPhone 5S with another sim card working like the iPhone4. They searched for another sim and then tried a new pay as you go O2 sim which they could not get working as it didn't seem to be activated. In the end I gave up as had already been in the store over an hour and thought as I got a replacement phone it was worth checking at home again.
    Back home though as expected I get exactly the same issue with GPRS/E not being usable.
    Does anyone else have this issue or know a fix? I also contacted a relative who also owns an iPhone 5S on vodafone and he also thought the GPRS / E is not usable compared to the iPhone 4.
    I guess my next step will be to purchase a working pay as you go sim on O2 to see if it has the same issue.
    Is this a general iPhone 5S hardware or software issue, I know must people probably are using 3G or 4G so maybe do not notice.
    Be great to hear other 5S users experience using GPRS/E.
    Thanks
    Nigel

    Hi Nigel. I was having the same issue after recently getting a new 5s operating 7.1.2  however I'm not sure it's linked to GPRS/Edge. I'm on tesco mobile so probably a similar network to you in England. The phone for the past few weeks has been performing a lot slower than my previous 5 which was performing a lot quicker and snappier. I have been searching for a solution in the forums and nothing. I think I have found a solution though and I don't know how this works but it does. I simply changed the time format to 24 hours and vola it seemed to have fixed the problem. The 5s operates as it was designed to do now. It is so much snappier and responsive now with no lagging when loading apps or switching between apps and no more slow loading blue bar while loading webpages. Im very happy with the speed of the phone now so just flagging it up as a potential solution. Hope it works for you too. Let us know if it makes a difference. I'm hoping apple bring out a fix in this because I much prefer 12 hour time format.

  • How to STOP syncing with Outlook via GPRS?

    I use an unlocked iPhone 3G with a prepaid mobile card.
    Everytime I open my Calendar function on the iPhone (just to see the days and dates) the iPhone attempts to sync over the air with my Outlook account calendar via GPRS.
    This costs a bomb on the prepaid card, and I want to stop the sync function.
    Would someone kindly tell me how to STOP the iPhone from syncing with my Outlook Calendar?

    If calendar events are synced over the air, this means you are accessing an Exchange account or a MobileMe account.
    If you don't want to sync calendar events over the air with the account, you need to turn Calendars off for over the air syncing for the account preferences on your iPhone. This will erase all calendars and calendar events from your iPhone and you will need to sync direct with a supported application on your computer via the iTunes sync process. If an Exchange account with Outlook on a Winblows PeeCee, this will not be possible.

  • E72 unable to connect to WIFI or GPRS after firmwa...

    I hope someone here can help with my problem. My E72 cannot connect to WIFI or GPRS after I got a firmware update. Whenever I try to connect, I get error messages like "Connection not available" or "Web: Unable to perform operation". My software version is 054.005 for RM-530. I have tried reinstalling the firmware update thru Ovi suite, but it did not help. Also tried *#7370# and the phone still won't connect.
    Solved!
    Go to Solution.

    Try with Hard Reset (shift+space+backspace+on/off). Make a full backup before!
    Cheers
    Einar

  • E66 How do I email using WiFi instead of GPRS?

    Hi, this is probably a really simple question.
    How do I get my E66 to connect to my mail server using a WIFI network, and not the default GPRS network?
    Thanks in advance (p.s. love this phone )
    Message Edited by opplevelse on 30-Oct-2008 12:25 PM
    Solved!
    Go to Solution.

    Hi,
    I have an E61, so I can only guess, going from what works on my phone:
    - You have to set up Access_Points somewhere, right? You can then assign a default Access Point or you can set the phone to always prompt you which one to use. Setting your Wifi as default AP will work fine if you always connect to the same one if you do - it will still prompt you to choose one when that isn´t available.
    - There is a built-in WIFI tool. Assuming you have set it up to always prompt you for the AP to use, you can choose "Search for WIFI".
    - There are third-party apps you can install. I´m currently testing wefi, it´s working quite well. A few annoying things like it prompts you to set if you want it to start automatically when your phone (re-)starts and it somehow won´t take No for an answer, but you can then set an AP to "Automatic wefi" and it will connect to whatever open spot it can find.
    IT will paint our future - either green or black
    * ecosia, the eco-friendly search engine (powered by Yahoo/Bing/WWF);
    * Searching for pics online? Try ecocho.eu or treehoo.com
    * For those who don´t want to miss Google: Try znout.de - it´s Google running on green energy
    * CO2-free chatting: Try Jabber-server.de (running on 100% waterpower)

  • How to connect my mobile with GPRS to Macbook?

    How to connect my samsung mobile with GPRS to MacBook?

    Hope this helps..
    http://www.theinternetpatrol.com/how-to-connect-your-computer-to-the-internet-using-your-cell-phone-...
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • Need help in using my GPRS connection to surf internet on macbook

    Hi,
    I have a Nokia 9300 communicator, with a GPRS conenction. I want to use it to connect to the internet on my macbook. Since I am in India, my service provider, not having sufficient knowledge of the mac, cannot help me with configuring it.
    can anyone hwlp me here?
    i want to connect using bluetooth. Also, although I can connect the phone to the macbook via bluetooth and can trabsfer files to & fro, I cannot syncronise my phone book.
    How do I go about doing that??
    Thanks in advance.

    Hi Brian, Thanks for that. I went to meet my service provider (Hutch) yesterday. What he told me is very close to yours. Here it is
    First, when we have to make the new connection, there are 2 options - dial up or GPRS line. We tried GPRS line and set up as follows:
    Username: Blank
    Password:Blank
    Number to dial 99**# or *99#
    Here, the guy wants to know where we can enter the APN number - & I have no clue.
    Second, using these settings, I got connected, the MB says it was authenticating user and my call also showed the "G" sign, but it went away after a second, giving me an error message - Could not negotiate connection with PPP server.
    Just for curiousity sake, this guy tried his cell- a Nokia 6230. & it worked just fine. There was this problem, though, that every few seconds, the connectiion went off, giving the message that the modem had unexpectedly hung -up (& the poor guy's cell would switch off & on again on its own). But this is still distant for me.
    I need your help in getting the modem script that you are talking about. I can only see 3 nokia modems- & they are all ir, none of them are for GPRS.
    My problem is that there is no store or anything like that in India. I just bought the MB when in London recently, as it looked nice. Not very sure what to do now.
    Awaiting more help
    Rajat

  • C3 - Google Maps don't work whith gprs

    Hi,
    I am from Portugal and I am a vodafone client.
    I want to use google maps whith gprs connection but, as others apps that I download from ovi store, anyone works. It say internet connection fail alltimes... 
    I think is a configuration issue, but i try some changings in config, and nothing work.
    Apps like communites and mail, that came whith the cell, work fine. 
    Can anyone help?
    Tanks! 

    andrejs,
    I just tried the tutorial (works fine) and the tutorial with ADF security (works fine). It seems to be something more specific to your application than anything else.
    John

  • Error: there is a problem connection to the GPRS service in your registered home network, error trying to make data connection. this may be casued by a voice call, a wired activesync connection or inncorrect network setting

    like 2 weeks ago i called in to att to see how much is the data plan and it would end up costing $30.
    so i was like screw that. well they figured that i got a new phone replacing the LG shine. so they asked
    for to call this number so they can recieve data which would updated the system that i have a plam treo 750.
    ever since this conflict i can't send picture messages. i get that problem. everytime i attempt to send a picture
    i recieve this.
    - there is a problem connection to the GPRS service in your registered home network.
    - then i get a test that says error trying to make data connection. this may be casued by a voice call,
    a wired activesync connection or inncorrect network setting.
    please someone help me.
    btw. hard reset and soft reset did not work for me.
    Post relates to: Treo 750 (AT&T)

    problem fix, i had to call in. customer serivce. and when i called to ask about the plan. they blocked it. so i had to unblock my internet.
    Post relates to: Treo 750 (AT&T)

  • How to set GPRS on iphone 4 with ATT ?

    i need to get my internet work by gprs on my iphone , i'm using ATT carrier , anyone show me how to set it
    thanks ...............

    There should be nothing to set up. AT&T is a supported carrier. Assuming you have a data plan and AT&T has provisioned your account for an iPhone, all you have to do is put in the SIM and go. (This assumes the phone is either legitimately unlocked or is an AT&T phone).
    AT&T does NOT support pre-paid plans on the iPhone, so if that's what you're trying to do, you're pretty much out of luck. You will have to go post-paid.

  • Can I use J2ME to send/receive GPRS data?

    Hi guys
    Firstly, I hope I'm on the most suitable forum - if not, feel free to redirect me to the best place for this question.
    I'm working on a vehicle tracking project and we're evaluating several devices that are designed to be placed inside vehicles - the devices have GPS capability for vehicle tracking and SMS or GPRS functionality to send or receive data.
    What we'd like to be able to do is to have these tracking boxes relay vehicle positioning information back to a central server PC over GPRS. Also, we'd like the server to be able to send information back to the devices. The tracking boxes do not support Java, so I'm concentrating completely on the server side of things... so here's my question....
    Can I send and receive data to and from these devices over GPRS using something like a GPRS WLAN card? If I can, what's the best way to do this?
    I don't really know too much about J2ME so feel free to "dumb things down" if you need to.
    Thanks a million,
    Jason

    off the top of my head:
    How about sourcing for a SCADA / telemetry package that support GPRS I/O? So you have the scada run time on your server, and you can ask for a GPRS to ethernet card along with it.
    It'd probly not be cheap but if it's a university project you could get a trial / edu version.
    Try wonderware (www.wonderware.com) as they're pretty aggressive in sales.
    I believe J2me is java technology for mobile devices, so J2me is for developing applications that have small memory footprint so that they can be deployed on mobile devices like hand phone and pdas. So, yes, I think you're in the wrong forum!

  • Uploading data from a windows mobile device to a server using GPRS

    I want to upload data from a java application in pda (a Windows Mobile 6.1 device) to a server using a GPRS connection.My application uses a IBM weme VM.
    I want to know whether I can do this in Java itself,because otherwise I would have to resort to some C++ methods(that uses the connection manager api) and call that using jni. But if there is some java method for this,it would have been helpful and straightforward..
    Can I do this using socket connection in java? if so, Would somebody provide a code snippet ?Which port to connect to in that case?
    Plz let me know about this.
    Thanks in advance.
    Edited by: shreya_ann on Sep 23, 2010 4:44 AM

    Hey forum....
    When I dock my Windows Mobile device in a Windows 7 PC, the Windows Mobile Device Center opens and I can browse the device and copy files between it and the PC. However, I'm looking some kind of way to automate this process. All I'm really interested in
    is a single file named TEXT.TXT which is stored in the My Documents folder. Basically, I'm looking for a script that will detect the Windows device (it's USB-attached) when docked, find the file TEXT.TXT in the My Documents folder and then copy this file to
    the /Temp folder on the desktop.
    I've tried using the synchronization feature of WMDC but it copies the file to a documents folder set up for the specific device. Instead, I'm looking to find and copy the file to C:\TEMP regardless of the device.
    Thanks in advance for any help!
    Everett
    Just configure the device to sync the folders you want to sync.  Start by reading the help very carefully.
    This is not a scripting question and this forum is not for end user questions.   I suggest posting in the Windows Phone forum.
    You can also sync via OneDrive over a cellular or wireless connection.
    ¯\_(ツ)_/¯

  • Iphone 4s unable to send mms over gprs, is there a fix for this?

    OK so after much hunting around the net and many calls to both my network provider and apple i found this link myself http://www.nowsms.com/iphone-mms-message-send-failure-on-gprs-and-edge that answered my problem. The answer being there is no solution :-S  ............ so im now asking here if anyone knows of a fix or work around for this problem.

    Howdy there Tuna241,
    Thank you for using Apple Support Communities.
    It sounds like your iPhone is restarting unexpectedly after the update to iOS 7.0.2.
    I recommend the steps outlined in the article named:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Will not turn on, will not turn on unless connected to power, or unexpected power off
    Verify that the Sleep/Wake button functions. If it does not function, inspect it for signs of damage. If the button is damaged or is not functioning when pressed, seek service.
    Check if a Liquid Contact Indicator (LCI) is activated or there are signs of corrosion. Learn about LCIsand corrosion.
    Connect the iPhone to the iPhone's USB power adapter and let it charge for at least ten minutes.
    After at least 30 minutes, if:
    The home screen appears: The iPhone should be working. Update to the latest version of iOS if necessary. Continue charging it until it is completely charged and you see this battery icon in the upper-right corner of the screen . Then unplug the phone from power. If it immediately turns off, seek service.
    The low-battery image appears, even after the phone has charged for at least 20 minutes: See "iPhone displays the low-battery image and is unresponsive" symptom in this article.
    Something other than the Home screen or Low Battery image appears, continue with this article for further troubleshooting steps.
    If the iPhone did not turn on, reset it while connected to the iPhone USB power adapter.
    If the display turns on, go to step 4.
    If the display remains black, go to next step.
    Connect the iPhone to a computer and open iTunes. If iTunes recognizes the iPhone and indicates that it is in recovery mode, attempt to restore the iPhone. If the iPhone doesn't appear in iTunes or if you have difficulties in restoring the iPhone, see this article for further assistance.
    If restoring the iPhone resolved the issue, go to step 4. If restoring the iPhone did not solve the issue, seek service.
    Regards,
    Sterling

  • How to solve the error message "Could not activate cellular data network: PDP authentication failure"when using 3g or gPRS on safari with an iphone 4 and latest software updates

    Please can someone help me to solve the error message "Could not activate cellular data network: PDP authentication failure"when using 3G or GPRS on safari with an iphone 4GS and latest software updates. I have tried resetting the network and phone settings. I have restored the factory settings on itunes and still the problem persists.

    All iPhones sold in Japan are sold carrier locked and cannot be officially unlocked by the carrier. If you unlocked it, it was by unauthorized means (hacked), and support cannot be given to you in this forum.
    Hacked iPhones are subject to countermeasures by Apple, particularly when updating the firmware. It is likely permanently re-locked or permanently disabled.
    Message was edited by: modular747

  • [Solved] PCMCIA gprs/edge and wvdial, don't work

    Hi all...
    I have bought a pcmcia gprs/edge Lightspeed EDGE-100M, but don't work.
    I load the modules pcmcia, pcmcia_core, rsrc_nonstatic, yenta_socket (I have found they whit hwdetect --show-pcmcia).
    PCMCIA it comes recognized like ttyS0.
    I run wvdial but I got "Modem not responding".
    I have also added line "options usb_serial vendor=0x0279 product=0x950b" into /etc/modprobe.conf but I don't got any results.
    Thanks
    /etc/wvdial.conf
    [Dialer Defaults]
    Modem = /dev/ttyS0
    Baud = 230400
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 &C1 &D2 +FCLASS=0
    Init3 = AT+CGDCONT=1,"IP","ibox.tim.it"
    Dial Command = ATDT
    Phone = *99***1#
    Username = no_user
    Password = no_pwd
    ISDN = 0
    Modem Type = Analog Modem
    /var/log/messages.log
    Oct 1 03:14:58 bash-laptop pccard: PCMCIA card inserted into slot 0
    Oct 1 03:14:58 bash-laptop pcmcia: registering new device pcmcia0.0
    Oct 1 03:14:59 bash-laptop ttyS0: detected caps 00000700 should be 00000100
    Oct 1 03:14:59 bash-laptop 0.0: ttyS0 at I/O 0x400 (irq = 3) is a 16C950/954
    Oct 1 03:14:59 bash-laptop logger: /lib/udev/bluetooth_serial: setserial or hciattach not executable, cannot start /dev/tts/0
    Last edited by ilpianista (2008-02-28 21:04:57)

    I have resolved
    http://www.deelab.org/bash/2007/10/07/p … -on-linux/
    Last edited by ilpianista (2008-02-28 21:04:40)

Maybe you are looking for

  • Error while passing checkbox value

    hi, i'm passing my checkbox value like this.. first.jsp <%for (l=0;l < row;++l) {%> <tr> <td><input type="checkbox" name="delete<%=l%>" value="<%=tm.getValueAt(l,0)%>"></td> <%}%> second .jsp i call it as int number=Integer.parseInt(request.getParame

  • Oracle PL/SQL or JavaScript Interaction with a PDF Document

    I'm new to LiveCycle - be gentle. . . :-) My department is attempting to develop a web application which will, among other things, generate fixed layout forms filled with data from the database or from an application web page. The web pages for this

  • Is it really not possible to change outgoing name in Gmail when I am using Microsoft Exchange?

    I am using Microsoft Exchange for the PUSH notification because Gmail Account only fetches data. I want to use PUSH because I want to receive real time email messages. I also want to add my middle name in the outgoing name. Is this not possible?

  • Swing ADF - New transaction in a java panel.

    How can I create a new ADF Transaction (session/unit of work/ independant dataset) within a panel? I have two issues that I'm trying to resolve: 1) I already have a framework that I need to use, so I cannot use the defaultly created ADF JFrames or In

  • Warning massage while saving the asset master record

    Hi all, I have a problem while saving the asset master record.My client manages the group asset in the depreciation area 15 for tax reporting.What I have done in the configuration that, I have created a separate asset class for group asset and marked