Wrong value in serial

#1


my esp8266 reads the temperature sensor and print the output in serial.
In arduino serial monitor the output is correct, but in node red its showing -127 all the time.

Thank you in advance,

Karthhic

0 Likes

#2

Show us what the node red log shows when you restart node red (the node-red-log command will show the log). Also show us how you have got the serial node configured (either a screenshot or export the node and paste here).

Are you running the serial monitor on the same machine that node-red is running on?

What OS are you running under.

Do you see a message in the debug node at the times you expect?

0 Likes

#3

I am using Windows 10 the node-red is running in the same laptop.

an ESP8266 is sending serial messages to this computer connected using USB.

For the time being i created a webserver in the ESP8266 responding the temperature and node red is GET ing it using http request.

13 Oct 12:31:47 - [info] Started flows
13 Oct 12:31:47 - [info] [sqlitedb:efd90b5c.51cee] opened C:\Users\User1\Documents\temperature.db ok
13 Oct 12:31:47 - [info] serial port COM3 opened at 115200 baud 8N1
13 Oct 12:32:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:33:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:34:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:35:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:36:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:37:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:38:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:39:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:40:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:41:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:42:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:43:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:44:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:45:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:46:47 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:46:58 - [error] serial port COM3 closed unexpectedly === > I plugged out the cable.
13 Oct 12:47:13 - [info] serial port COM3 opened at 115200 baud 8N1 === > Connected back again.
13 Oct 12:47:22 - [info] Stopping flows
13 Oct 12:47:22 - [info] serial port COM3 closed === > removed the block.
13 Oct 12:47:22 - [info] Stopped flows
13 Oct 12:47:22 - [info] Starting flows
13 Oct 12:47:22 - [info] Started flows
13 Oct 12:47:22 - [info] [sqlitedb:efd90b5c.51cee] opened C:\Users\User1\Documents\temperature.db ok
13 Oct 12:48:23 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:49:22 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:50:22 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:51:22 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:52:22 - [warn] [http response:96389476.eddb5] No response object
13 Oct 12:53:22 - [warn] [http response:96389476.eddb5] No response object

0 Likes

#4

Sorry I don't know about serial on Windows, hopefully someone else can help.

0 Likes

#5

Hi,

I played with serial a lot in both windows and linux.

its giving the minimum value of the sensor.

i am using web server now.

https://karthhic.github.io/Project1/myroom.html

Here is the output. I made it work in other way.

0 Likes