Search code examples
java-meserial-portmidpat-commandhyperterminal

why I can't send data to hyper terminal by using my mobile phone


I have a china mobile phone and I connected it to my laptop by using USB cable. I have a j2me app installed on the mobile which listens to any incoming data. So when I type AT commands in hyper terminal I get OK response. Anything else seems to be ignored by mobile like just a hello word. Why? if this is so how my j2me app is supposed to see the incoming data?

Here is an example of my hyper terminal window:

at

OK

hello [nothing returned and carriage returns to the begining of the line]

at hello

ERROR

Update: in my Midlet code the DataInputStream.available() or InputStream.available are always zero. Beside that the DataInputStream.read(byte[]) or InputStream.read(byte[]) always return zero which means they can't find any input. As I said the issue might be because phone is ignoring anything but AT commands


Solution

  • "hello" it's not AT command or parameter for "AT"

    Generally syntax of the AT command is:

    AT
    

    or

    AT+<command><parms>
    

    I think: Hyperterminal under Win is connected with modem in your phone, not with j2me app.