×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2012
    Posts
    2

    Post Access to the phone modem AT Commands trough Java Midlet App

    Hello,

    Here it's what I want to do.

    I want to create somehow a serial connection from a Midlet App on the phone with the phone's modem, so that I can write commands directly to the modem. I have no idea what interfaces/methods should I use, but I am sure it is allowed by the phone's platform.

    I think it can be done trough CommConnection, or java.io.InputStreamReader. What do you say?

    The same way you can connect to the modem of the phone from the PC over Bluetooth and sent AT-commands, the same way it must be possible to do it from the midlet itself.

    Have anyone tried this?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,557

    Re: Access to the phone modem AT Commands trough Java Midlet App

    Quote Originally Posted by baiatgigel View Post
    The same way you can connect to the modem of the phone from the PC over Bluetooth and sent AT-commands, the same way it must be possible to do it from the midlet itself.
    The assumption may not be correct or at least not universal (at least in the case of Nokia's own cellular modems, as far as I know, the modem/cellular interface/API from the host operating - Series 40 or Symbian - system is not based on AT commands, so the AT-interface might only be available/exposed externally by the host OS, but not to the Java VM at all).

    In any case, with Nokia's modems, as it isn't "natively" based on AT commands, the supported AT command set is a subset of what the private modem APIs/cellular stack actually can do (the evidence to that is also the fact that when connecting a Nokia phone as a modem to a PC, the AT command set is limited as far as what the phone really can do).

  3. #3
    Registered User
    Join Date
    Mar 2012
    Posts
    2

    Re: Access to the phone modem AT Commands trough Java Midlet App

    My point is that if you can send ATCommands from a PC through Bluetooth connection to a mobile terminal, you should also be able to sent them directly from a midlet installed on the terminal and be able to communicate with the modem.

    Anyway, how can I have at least a bit of access to the few ATCommands that exist, or how can I get to the HAL Level?

    "so the AT-interface might only be available/exposed externally by the host OS, but not to the Java VM at all)." You mean I have no chance in querying the modem with ATCommands from a Midlet?

  4. #4
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,557

    Re: Access to the phone modem AT Commands trough Java Midlet App

    Quote Originally Posted by baiatgigel View Post
    My point is that if you can send ATCommands from a PC through Bluetooth connection to a mobile terminal, you should also be able to sent them directly from a midlet installed on the terminal and be able to communicate with the modem.
    And my point is that even if you think that it should be possible, it doesn't mean that it necessarily is possible. ;-) (Because what's possible from Java is restricted by what the Java VM implementation allows, which also first restricted by what the host OS APIs/interfaces allow.)

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    4,105

    Re: Access to the phone modem AT Commands trough Java Midlet App

    Quote Originally Posted by baiatgigel View Post
    My point is that if you can send ATCommands from a PC through Bluetooth connection to a mobile terminal, you should also be able to sent them directly from a midlet installed on the terminal and be able to communicate with the modem.
    You cannot – I would be so happy if it would be different.

Similar Threads

  1. Internet on PC trough phone's WiFi modem
    By hellsgrimtyrant in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2010-01-02, 04:35
  2. Replies: 3
    Last Post: 2009-07-06, 12:46
  3. New to Java SIM Access through APDU commands
    By munish_khanduja in forum Mobile Java General
    Replies: 3
    Last Post: 2008-07-25, 19:57
  4. Access Point Pop-up with Java midlet on S60 3.1
    By athakur in forum Mobile Java General
    Replies: 1
    Last Post: 2008-03-10, 23:59
  5. Access cell phone line to send AT commands to a pc modem
    By sssoares in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-09-07, 21:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×