• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Receive message from Serial Port with AT Command in Javax.comm

 
Nek Efsiken
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Goodday,

I am new to AT Commands and javax.comm api. I have written a code in which I send an AT command to a device in java (using javax.comm), but I am unable to read the reply from the device. For example in my example below, I send the code "AT+CUSD=1, #123# to check the credit in my modem, but I don't get any results. I want to get the value returned and show it on the screen. Any way forward?





Regards,
 
Campbell Ritchie
Sheriff
Posts: 51344
86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

I added code tags to your post, and deleted about two empty lines. Always use the tags: doesn't it look better .
Don't know myself. Have you found any tutorials anywhere? I found this and this (maybe a bit old) and this. There were others. Maybe one of those will be of help to you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic