Gemalto is now part of the Thales Group, find out more.

You are here

analog reading (DB15) | Thales IoT Developer Community

August 5, 2019 - 12:47pm, 8759 views

good morning!

I want to read the data of a pressure translator, to know the pressure level. I have activated the DB15 port to use the analog inputs in it. I have made the connection through COM1 and it has been successful. But I don't know how to do the reading. I have connected the translator cable on pin 13 and pin 15. which are the analogs. But I don't know what else to do. How do I read by pin 13? or by pin 15?

I know that the reading I do then I must convert because the range of values ​​is 0.5 to 4.5 volts. and I must do an operation to get the real value of the pressure. But I don't know how to read this voltage.

use the example of rs232:

public void lectura(){

try {

    int ch =;


} catch(IOException e) {

    Logger.message("Error al establecer comunicación en el puerto:"+e.toString());



I never get any value with this code, it stays in this line: int ch =;

the pressure translator is always returning voltage, if it has no pressure it returns 0.5V, So the mistake is that I am reading badly.

could someone guide me a little?

thank you!