01-30-2018 05:24 AM
Hello,
I am trying to acquire a data (string of numbers and characters) from my Raspberry Pi using TCP protocol. I made a similar topic concerning UDP connection with a problem of port connection, fortunately I got help there and I moved forward. I had to change the UDP to TCP and now I encountered another problem.
I can see that I am connecting to Raspberry Pi successfully, because in the terminal I can see that there is a connection but I do not receive any string in Labview. I thought that parsing might be wrong but I figured out that not a single byte is transmitted to Labview. I set up "TCP Read" to Immediate mode and to read at 1 byte with a timeout of -1 so as far as I understand there is a connection but not a transfer.
Do you know what might be the issue? Thank you very much.
01-30-2018 06:18 AM
What is the format of your data? You do realize your indicator will only show the last character read, right? And if that character is unprintable (like a Line Feed or Carriage Return) it will look like there is no data. You could change the indicator's display style to Hex to see any data that comes in. But you might also want to use a shift register and Concatenate String to have your indicator show all of the data that has come in.
You could also use a terminal program like Putty to make sure your Raspberry Pi is actually putting out the data. You could also use WireShark to sniff the incoming messages.
01-31-2018 06:02 AM
Hi crossrulz, thanks for the reply.
The data looks as following:
1516885782 25/01/2018 14:09:42 r temp: 24.46 °C RH: 31.27 temp1: 24.00 °C temp2: 23.81 °C
and it pops every 2 seconds. Yes you are right, I will have to modify the display to see it, but now I that no bytes passes through. In immediate mode I am getting error 56 "The network operation exceeded the user-specified or system time limit". In standard mode I do not get any error but I think no a single byte is transmitted.
I am monitoring Raspberry Pi and I can see an entry in the terminal when I launch the play button in Labview, however I think my vi only connects and takes no data from Raspberry Pi.