Send and receive UDP data package based on siemens TC65 module

Everyone:
I am newer for J2ME. I have a TC65 module, I want to get a sending and receiving UDP data package exeample codes running on TC65. who can help me? thanks!

Hi deepspace,
I programmed a demo codes and run it on TC65T, debug trace like :
at^sjra=a:/NetDemo.jar
OK
NetDemo: Constructor
NetDemo: startApp
NetDemo: Profile could not be activated
NetDemo: destroyApp(true)
// below is demo codes, can you help me where error is?
package example.netdemo;
import javax.microedition.midlet.*;
import java.io.*;
import javax.microedition.io.*;
import javax.microedition.io.Datagram;
import javax.microedition.io.DatagramConnection;
public class NetDemo extends MIDlet {
public NetDemo()
System.out.println("NetDemo: Constructor");
public void startApp() throws MIDletStateChangeException
System.out.println("NetDemo: startApp");
try
DatagramConnection conn = (DatagramConnection) Connector.open("datagram://58.185.157.91:12003");
byte[] buffer = new byte[32];
Datagram dgram = conn.newDatagram(buffer, buffer.length);
for (int i = 0; i < 30; i++) {
buffer[i] = (byte)('0' + (i % 10));
conn.send(dgram);
catch (Exception e)
System.out.println("NetDemo: " + e.getMessage());
destroyApp(true);
public void pauseApp() {
System.out.println("NetDemo: pauseApp()");
public void destroyApp(boolean cond) {
System.out.println("NetDemo: destroyApp(" + cond + ")");
notifyDestroyed();
}

Similar Messages

  • HT3529 I am confused about messaging. Shouldn't I be able to send and receive messages with cellular data off?  I can usually send the message, but often do not receive messages until I either have wifi or turn cellular on.

    I am confused about messaging. Shouldn't I be able to send and receive messages with cellular data off and without wifi? I can send the message but often do not receive messages from others, iPhone or other, until  I turn on cellular or wifi.

    Depends on the type of Message.
    SMS messages will send and receive with data off.  and while you can guarantee you send using SMS you cannot guarantee that whoever replies to you does also. They may be replying thorugh iMessage if they are using iPhones.
    However Android should be sending through SMS.
    You can turn off iMessage if you want to, though people with limtied SMS text messaging in their plans may not appreciate it, and stop messaging you.

  • Not receiving texts from iPhone contacts when I'm not connected to wifi or cell data. I can't send and receive regular SMS texts with non iMessage users but iMessage users message are not being converted to text when I don't have internet connect

    I can send and receive to any non iPhone user. I can send a message as a text to an iPhone user but if I'm not connected to cellular data or wifi I do not receive messages from iPhone contacts. From what I understand these message should automatically send to me as texts instead of iMessages but since the update it's not functioning properly. Please help. I've tried turning iMessage off and I still don't receive the messages until after I reconnect to wifi.

    I have the same problem! Before the upgrade, if I wasn't connected to the internet, any messages sent to me from an iphone would convert automatically to a text message. I have payg tarriff, so I turn cell data off, as it costs too much to use it. I have wifi at home and work, but if I'm out and about, I don't receive texts from iphone users until I'm on wifi. I get them ok from non iphone users. There was never any problem until ios7

  • I'm unable to send and receive email through Apple Mail 4.  I've checked my settings on Preferences, and my password to Gmail is up to date for syncing with IMAP, but it still won't connect.  Suggestions?

    I'm unable to send and receive email through Apple Mail 4.  I've checked my settings on Preferences, and my password to Gmail is up to date for syncing with IMAP, but it still won't connect.  Suggestions?

    I think it's trying to open it in a gMail eMail & is losing your gMail password that it needs log into gMail, but not 100% positive.
    Have you tried Right clicking or Control+click on the eMail link & choose Copy? Works on some, not others.

  • Continuous data send and receive with unknown source

    When I connect my ipad to the lightning cable, no matter if it is connected to PC or it is going to be charged, if the wifi is on, it will start sending and receiving data continuously and with a high speed.
    I want to stop this thing from happening because it nearly consumed all of my internet account
    What is the reason?

    >
    >
    Did you download from
    http://java.sun.com/products/javacomm/
    If so, there is an example in
    commapi\samples\SerialDemo
    but this only sends characters back and forth.
    You will have to create a design to handle the send
    and recieve. What will the data be?
    Will you transmit files? Maybe you need to create
    something like XMODEM.
    Will you transmit media streams? Maybe you should look
    at JTAPI
    http://java.sun.com/products/jtapi/
    (which is only a definition, or a real reference
    implementation like:
    http://gjtapi.sourceforge.net/
    ==================================================================I'm sending information from a client for a credit verification, This information is sent in a variable, and then the modem receives a file with the results.

  • How to stop apps from sending and receiving data?

    Or does it even matter because I have cellular data turned off...

    If you have cellular data turned off apps can still send and receive data via WiFi. But why do you have apps that send and receive data if you don't want them to send and receive data?

  • I changed my carrier , i can't send and receive any sms any call, i erase my data and after the problem still..ifone 4S ios 8.3..thank u

    iPhone 4S 16 Gb
    iOS 8.3
    I change my carrier , I can't send and receive any sms any call
    I erase my data .,after the problem still again
    can you help me please ?
    thank u

    thank u
    but when I make my sim card in another phone it work normaly.and when I make another sim card in my fone the problem still and I can't send
    have you another solutions ?

  • Question about Sender and Receiver Structure for JDBC

    Dear All,
    I want to know why there is a fixed format for sender and receiver structure for JDBC. why cant we use the structure like what we want? explain me in detail.
    Thanks

    Good Question:
    We have to create our data structure based on the existing database table structure. While reading or writing , JDBC adapter convert our data type structure in to SQL Query Statements that matches Table structure.

  • Send and receive comments toolbar missing

    Hi there,
    I have been dealing with an issue and need some assistance.
    We recently updated Adobe Reader from 10 to 11 and now the "Send and Receive comments" toolbar does not appear when performing browser based reviews. this same issue also occurs for users who have Adobe Pro 11 installed on their PC's
    The issue occurs only with Adobe Reader 11 and Adobe Pro 11, previous versions of Adobe (such as Pro 9 and reader 10) work just fine. The documents are prepared for the online review by Adobe LiveCycle ES2 and users are provided a link to the PDF via a Sharepoint based workflow.
    There have been no other changes to our configuration, simply installing Adobe Reader or Pro 11 on client PC's and they can no longer send their comments as the toolbar does not appear.
    Can anyone please help? This issue is holding back Adobe Reader 11 being deployed to around 1600 users and I am feeling the heat, it already was deployed and I have had to get it rolled back due to this issue.
    Cheers,
    Simon

    Hello
    This forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Microsoft Office or your question in any way. If you have issues or questions about Office, it's probably best you post Office related questions on Microsoft's own forums for their Mac products.
    http://www.officeformac.com/productforums

  • Cannot send or receive email from the cloud. all updates are competed and everything else is working fine on MAC. iPad sends and receives fine. any ideas.

    On Imac I am not able to send or receive messages. All software is updated. My iPad that uses the same email address and the Cloud, sends and receives just fine. It is not "the colored" thing that is spinning but the little black and white circular icn that is spinning away. My other email address is functioning fine. It is merely the ICLOUD based email that is acting up. Any ideas?

    First try deleting the account and reinstall it.

  • Trouble send and receiving messages and trouble calling people or receiving phone calls

    Hello everyone, I bought a Blackberry Q5 one year ago and has worked perfectly since but on christmas day I had was struggling to send message to people I thought nothing of it since it was christmas and people would be wishing there families and friends a merry christmas. So i just carried on as usual not aware that the problem was much worse then i thought, since then I have tried time and time again to try text people and call them but nothing would happen.
    The Problems I am experiencing,
    Everytime I try sending a message it fails and times out after a while doesn't matter whom they are being sent to it's the same story no matter who I send them to, and then of course when i try calling someone the phone goes to the calling screen but doesn't make a sound for atleast 10 seconds then a message pops up saying "Call Failure, The call could not be connected. Please try again later". This message appears even when I ring '789' which is the number to find out what my balance is on my contract.
    At first I thought it was the Sim what was cauing the problems but when i swapped it into another Virgin phone i received quite an alarming amount of messages what would not come through on my phone, this is when i realised I am not just struggling to send messages but to receive them as well. I have scoured the internet for possible answers but nothing has worked, so far I have tried manually scanning for available networks and selecting the correct one which did not change the problem this didn't make things better nor did it make things worse.
    I have also tried changing the data services while roaming settings which again did not make any differences, I have tried changing network mode no changes again, turning the mobile network off all together and then turning it back on after 5 minutes no success there either. I have even reset the phone back to factory setting to try and fix the problem, but no, the problem still will not go away.
    Please if there is anyone out there who has any ideas on how to fix what is happening to my phone please do give me your advice, at this moment I really need a miracle to come around at the next corner.

    Hi rhupa!
    Here is an article that will help you troubleshoot this issue:
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Mail Connection Doctor shows one or more red dots in the account Status column
    Check your Incoming IMAP or POP and Outgoing SMTP email account settings
    Use Apple's online Mail Setup Assistant to discover what the correct settings should be for both your Incoming (IMAP or POP) and Outgoing SMTP email servers. If your email service provider is not listed in the Mail Setup Assistant, visit your email service provider's website or contact their support staff to get the correct settings. You can use this "cheat sheet" when asking your email service provider about the settings you need.
    After you have the correct email service provider settings, make sure Mail is configured properly.
    Click here if your Incoming and Outgoing email account settings are correct, but the issue persists
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Problem with sending and receiving e-mail through exchange [GMail]

    Hello I have problem with sending and receiving e-mail.
    all is well set, username and password are correct, the server set m.google.com. verification of data is about like stepping into a post and want to check the post office gives me an error message: Can not Get Mail. The connection to the server has failed
    I have this problem on my two iPhone

    http://www.zdnet.com/google-drops-exchange-activesync-support-for-free-email-acc ounts-7000008836/

  • Need to use only one sender and receiver communication channel.

    Hello Experts.
    I have a scenario where in I have to use only one sender and receiver communication channel to push files from different source directories to different receiver directories.
    For Eg;
    Sender                              
    D://dir1/file1 --->                  E://dir1/File1
    F://dir2/file2 ---->                 G://dir2/file2
    H://dir3/file3----->                 I://dir3/file3.
    Can this be achieved by using pass through scenario?
    Please let me know if the requirement is not clear.     
    Thanks in advance.
    Advit Ramesh

    Hi Advit,
    I think it is possible. You have to use the Advanced Selection for Source file in the sender channel to define multiple files to be picked up. Also, the Dynamic configuration must also be enabled and used in the mapping so you can manipulate the target directory and target file name based on your source files.
    For Polling from multiple directories:
    http://wiki.scn.sap.com/wiki/display/XI/File+Sender+Adapter+-+Polling+Multiple+Directories
    Dynamic Configuration:
    Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integration - SCN Wiki

  • Can 2 people in different locations at the same time import, access, send, and receive the same messages from the same email account

    I import messages into Thunderbird. I send and receive emails. One of the things I like about Thunderbird is that I can insert (image, link, etc) right where I want to, and I can Attach. But not just a simple attach file. No, I can also click Attach and choose Webpage. A lot of web-based emails are plain, simple, no frills - Attach file and that's it.
    So I need to have my client be able to do the same thing I do when sending out emails, Namely sending out emails with an Electronic Press Kit (EPK) attached - which is to say, a webpage (not a pdf in our case). So, I need her to download, install, and use Thunderbird.
    Here's the problem and my question. She needs to access, send, and receive from my email account. That would be easy if it was simple attach files - she could just login on the web, go to squirrel mail and bang it out.. Here it is: She needs to be able to import the messages to be able to reply to some messages - she needs access to what I have access to. She needs to use Thunderbird so she can take advantage of the features like insert image with link or attaching a webpage. My question is how will this affect my use? Can 2 people simultaneously and from different locations access and use the same email account or is it a case where her importing the emails would cut me off..Is it an either or thing? Basically, can her and I both import the emails or can they only be imported to one location at a time. Because every time someone sends me an email i get it right there on my Thunderbird application..it's imported to my Thunderbird..I want her and I to be able to do that without affecting each other. I don't want her to start importing to her desktop and then I can no longer import. If she says "point those messages to my computer what will happen to my ability to access them on my computer in the same manner I am currently?

    I think there is a contradiction in your requirements. You want two people to share an account and you don't want either to interfere with the other.
    The short and simple answer is to use IMAP to connect to the mail server. If your current email provider doesn't offer IMAP, find another that does. This is old technology already and it's disgraceful that some email providers haven't yet put it in place.
    IMAP means that your messages are stored on the server and both of you will see exactly the same set of messages. And therein lies the contradiction; you will both see changes made by the other so you are inherently interfering with one another.
    Caveats: some providers may not permit you both to access the account concurrently, and even if they do, things may become interesting if you both choose to work on the same message simultaneously.
    Note that all of this is about email servers and protocols; your choice of Thunderbird as your email client has little bearing on the situation.

  • Send and Receive not working in Outlook 2011 Mac.

    After doing a clean reinstall of Office 2011 the Send and Receive toolbar button does nothing when clicked. Performing a manual send and receive of the email account does not work either.
    Note: Web Mail works fine.
    Troubleshooting:
    I’ve re-checked all account settings to ensure all settings are correct—they are.
    I have recreated and reset my Outlook identities several times with no success.
    I also rebuilt the Microsoft Database several times.
    As a last resort, I performed a clean install of the entire Office package–twice.
    Specs:
    MacBook Pro OS X 10.9.5
    Office 2011 updated to 14.4.8
    POP3 email account

    Hello
    This forum is for troubleshooting Apple Software Update for Windows, a software package for Windows designed to update Apple products that run on Windows, and not related to Microsoft Office or your question in any way. If you have issues or questions about Office, it's probably best you post Office related questions on Microsoft's own forums for their Mac products.
    http://www.officeformac.com/productforums

Maybe you are looking for