Click here to Skip to main content
15,887,283 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I am a Digital weight scale yp200 braunker received from the RS232 port sends.
Now I want to get this information in my application I want to display.
The source does not anyone do this?
C # language using the Serial port

What I have tried:

Hi I am a Digital weight scale yp200 braunker received from the RS232 port sends.
Posted
Updated 17-Jan-24 5:45am
v2

You need to do research via Google Search. To get you started, here is the question I asked it: c# example of reading values from the Digital weight scale yp200 braunker[^] ... there are a few results

Here is a helpful answer, but not for that brand and model that you are asking for help with. Follow the advice given: How to Communicate with digital scale using C#[^]
 
Share this answer
 
Comments
CPallini 17-Jan-24 2:13am    
5.
You can also download the (Spanish) manual of the device, wherein the serial protocol is concisely described.
 
Share this answer
 
Comments
Bernardo Martinez 17-Jan-24 8:42am    
I downloaded the manual, reviewed the codes, however I have not achieved communication https://cdn.shopify.com/s/files/1/2482/2334/files/Manual_de_usuario_YP200.pdf?4035985435804019145
anexo codigo

private void Form1_Load(object sender, EventArgs e)
{
string data = "02(hex)B03(hex)";

try
{
serialPort1 = new SerialPort("COM8", 9600, Parity.None, 8, StopBits.One);
serialPort1.Handshake = Handshake.None;
serialPort1.DataReceived += new SerialDataReceivedEventHandler(sp_DataReceived);
serialPort1.ReadTimeout = 500;
serialPort1.WriteTimeout = 500;
serialPort1.Open();
serialPort1.Write("02(hex)B03(hex)");
}
catch (Exception ex)
{
MessageBox.Show("MENSAGE:",ex.Message);
}

}
void sp_DataReceived(object sender, SerialDataReceivedEventArgs e)
{
MessageBox.Show("sp_DataReceived");
if (this.Enabled == true)
{
MessageBox.Show("Enabled");
Thread.Sleep(500);
string data = serialPort1.ReadExisting();
this.BeginInvoke(new DelegadoAcceso(si_DataReceived), new object[] { data });
}
}
CPallini 17-Jan-24 9:03am    
I suggest you to first use a reliable terminal emulator program (e.g. PuTTY) to attempt the communication with the scale.
Then you can write your application.
Dave Kreskowiak 17-Jan-24 10:17am    
serialPort1.Write("02(hex)B03(hex)");

You have to write the BYTES 0x02, 0x42, 0x03, not the string "02(hex)B03(hex)".
Bernardo Martinez 17-Jan-24 9:25am    
I tried the communication successfully, however when I made the request by command I did not get a response
CPallini 17-Jan-24 9:51am    
You could also try realterm, if you need to send binary data (the manual is not clear about what you should send in order to obtain the listed answers).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900