Community discussions

MikroTik App
 
User avatar
dynek
Member Candidate
Member Candidate
Topic Author
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Reading CPU temperature through serial port ?

Thu Mar 27, 2014 11:56 pm

Hello All,

As anyone tried reading CPU temperature through the serial port using an Arduino ?
I'm trying to find a way to fetch this value.

Thank you
 
plisken
Forum Guru
Forum Guru
Posts: 2509
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: Reading CPU temperature through serial port ?

Sun Mar 30, 2014 10:20 am

 
User avatar
docmarius
Forum Guru
Forum Guru
Posts: 1222
Joined: Sat Nov 06, 2010 12:04 pm
Location: Timisoara, Romania
Contact:

Re: Reading CPU temperature through serial port ?

Mon Mar 31, 2014 8:17 am

send "/system health print" to the console and parse the response for "temperature: <value>C"
 
User avatar
dynek
Member Candidate
Member Candidate
Topic Author
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Reading CPU temperature through serial port ?

Mon Mar 31, 2014 10:15 am

Thanks to both of you. I was thinking about "/system health print" in the first place but would you happen to know if TX/RX and GND are enough to send and read data of the Mikrotik using Arduino ?

Thank you

Edit: Also I'm wondering if this could be a solution as I only want temperature info, not full system management (even if user/password can be used I guess): http://wiki.mikrotik.com/wiki/Sending_t ... erial_port
 
User avatar
dynek
Member Candidate
Member Candidate
Topic Author
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Reading CPU temperature through serial port ?

Mon Mar 31, 2014 11:32 pm

I just tried to send text trough serial port but all I get is garbage even though I follow Mikrotik's serial pinout (DB9F) and I configured both ends with same settings (115200 8N1).

Calling this script http://wiki.mikrotik.com/wiki/Sending_t ... erial_port is seen like this on my machine:

[�*�/5��

Using /system serial-terminal serial0 doesn't give better results.

Any idea ?

Thank you!
 
User avatar
c0d3rSh3ll
Long time Member
Long time Member
Posts: 557
Joined: Mon Jul 25, 2011 9:42 pm
Location: [admin@Chile] >

Re: Reading CPU temperature through serial port ?

Tue Apr 01, 2014 12:06 am

Are you using an arduino module something like this ?

http://www.dx.com/es/p/rs232-to-ttl-ser ... ack-221240

It have a tx/rx for connect to arduino.


sent from my mobile phone using tapatalk
 
User avatar
dynek
Member Candidate
Member Candidate
Topic Author
Posts: 223
Joined: Tue Jan 21, 2014 10:03 pm

Re: Reading CPU temperature through serial port ?

Tue Apr 01, 2014 12:07 am

I'm using this:
http://arduino.cc/en/Main/USBSerial

And actually it's plugged to my laptop simply reading data off this module, it works fine when connecting to other serial ports (i.e. WNDR3700 for recovery).

Who is online

Users browsing this forum: No registered users and 53 guests