Send Serial to Digital Blood Pressure Monitor UA-767PC

Hello every one

Hi,

I study Computer engineering at thailand and i do project for graduated

I order Digital Blood Pressure Monitor UA-767PC for my project and i can't get value from it

i see this forum

https://forum.arduino.cc/index.php?topic=284452.0

but i so confuse about it

UA767PC RS232 command set and format PDF

i use jack 3.5 mm. to send and get value from blood pressure when i send some text it show "------" on the LCD display but it show "-----" for 10 sec and Disappear like blood pressure get some value and when i swap RX and TX i send some this to blood pressure monitor by Serial.write frist it show "------" and when i send something while "------" it show ERROR

RS-232 Serial logic levels are +/-15v
Arduino uses TTL logic levels 0v/5v

Looks like you don’t have a TTL to RS232 converter in there. My guess is the UA-767PC uses RS232 logic levels.

can i get example for buy
thank you for your reply

If this is indeed the problem then as you suggested in your PM, something with a MAX232 (or similar).

okay i will try tomorrow
thank

it not work i send some text and send command to open Communication mode by serial monitor in arduino

i use ttl to rs232 between arduino and jack3.5 mm to blood pressure

Show us a circuit diagram. We can’t follow wiring looking at pictures.

Only 2 wires to the converter module DB9 connector? Missing a ground perhaps?

What Arduino are we using here? Looks like you are using an UNO and trying to use the hardware serial port used for debugging to also talk to the blood pressure monitor.

That won’t work, you’ve got 3 devices on the same serial connection: Arduino, USB to serial adapter on the Uno board, and TTL/RS232 adapter connected to the monitor. Try software serial for the blood pressure monitor.

Duplicate topics merged

Why did you start a new one ?

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a timeout from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

UKHeliBob:
Duplicate topics merged

Why did you start a new one ?

Cross-posting is against the rules of the forum. The reason is that duplicate posts can waste the time of the people trying to help. Someone might spend 15 minutes (or more) writing a detailed answer on this topic, without knowing that someone else already did the same in the other topic.

Repeated cross-posting will result in a timeout from the forum.

In the future, please take some time to pick the forum board that best suits the topic of your question and then only post once to that forum board. This is basic forum etiquette, as explained in the sticky "How to use this forum - please read." post you will find at the top of every forum board. It contains a lot of other useful information. Please read it.

Thanks in advance for your cooperation.

i sorry about that i think my post is about project guild
i so sorry to you

this is my diagram

i not sure my command is correct

in PDF command

say Example: Request of open communication port (from PC to UA-767PC)
|02|43|50+43|30+35|3B|
-Check SUM: 43+50+43+30+35=13b(HEX) (setting 1 byte only)

idont sure about this but in this oldpost forum it work in comment #16 he say he confirm the command code is correct (weirdsymbolhere)CPC05;

he use (weirdsymbolhere)CPC05;
for open communication port

so how can i send CPC05; to my bloodpressure

Yeah, don’t use pins 0 and 1 on the Arduino Uno.
They are for the hardware serial port redirected via the USB for the debugger.
Use a software serial to connect to the blood pressure monitor, use the hardware serial in the debugger to monitor/echo what is going on.

#include <SoftwareSerial.h>
SoftwareSerial UnoSerial(3, 2); // RX | TX
//Open communication port Checksum:43+50+43+30+35=13B
byte commUp[] = {0x02, 0x43, 0x50, 0x43, 0x30, 0x35, 0x3B};
//Request measurement Checksum = 43+50+43+31+30=137
byte reqMeasure[] = {0x02, 0x43, 0x50, 0x43, 0x31, 0x30, 0x37} ;

void setup() {
   pinMode(3, INPUT);
  pinMode(2, OUTPUT);
 Serial.begin(9600);
 UnoSerial.begin(9600);
 //Serial.write(commUp,sizeof(commUp));
 UnoSerial.write(commUp,sizeof(commUp));
 UnoSerial.write(reqMeasure,sizeof(reqMeasure));
 
 }


void loop() {
    if(Serial.available()){
    int inByte = Serial.read();
    //Serial.println(inByte);
    UnoSerial.write(inByte);
}
}

this is my new code
i don't get anything from blood pressure

pcbbc:
Yeah, don’t use pins 0 and 1 on the Arduino Uno.
They are for the hardware serial port redirected via the USB for the debugger.
Use a software serial to connect to the blood pressure monitor, use the hardware serial in the debugger to monitor/echo what is going on.

can i have an example

Software serial example
Note the example just echoes everything from the PC to the software serial port and back the other way.
Just where I’d be starting.

i can't so i change to use image processing thank you