SerialPort.Write(data)

My device is not recognizing the data send to it in a loop using a list<string>
Am i sending this data too fast in the loop ?  
public override void SendData(string data)
        {                       
            sPort.Write(data);
            Thread.Sleep(100);
        }
 
        public override void SendData(byte[] data)
        {                      
            sPort.Write(data, 0, data.Length);            
        }

Open in new window

u2envy1Asked:
Who is Participating?
 
fuzzymallets1Connect With a Mentor Commented:
Make sure you have the serial settings setup the same in the device and port itself.
0
 
angus_young_acdcCommented:
What do you mean it's not recognising it?  Is it attempting to do anything?  Or returning an error?  Or only processing part of the list?
0
 
u2envy1Author Commented:
It processes everything. I see all info going through a port sniffer. The device is sending back a command not processed. If I send one value to the device the command is processed. Sending it one after the other it does not get recognized by my device.
0
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

 
u2envy1Author Commented:
Settings is good in both.
0
 
fuzzymallets1Commented:
Have you verified the connection to the device work outside of your app. ie. telnet or something similar.
0
 
u2envy1Author Commented:
Yes, it works with a clarion app.
0
 
u2envy1Author Commented:
.........
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.