Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • 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
Marshal
Posts: 53113
124
  • 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!