Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 00:18 06 Jul 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Simple Comms between MM’s

Author Message
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 12:36pm 02 Jun 2016
Copy link to clipboard 
Print this post

Been reading the examples in the Serial Comms Appendix, and get a general idea on what I need to do for MM1 to ask MM2 for a variable.

Very basically,

MM1 says "Send me EvaporatorTemp",
Interupt Sub on MM2 is triggered,
MM2 Says "This is EvaporatorTemp"
Which triggers a sub on MM1.

Is it possible to do something similar with the console ports?

The two MM's have their consoles sitting on 192.168.55.181 & 182.

That would mean each ESP8266 would need to know to connect to each other and I don't know if that is doable.

Alternatively I have some HC-12's that could do the task once the communications are established with wires.

Thanks

Phil

 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9588
Posted: 02:33pm 02 Jun 2016
Copy link to clipboard 
Print this post

Rather then the console, you would normally do this kind of thing via I2C, SPI or in the case of the HC-12 or ESP8266, the serial ports.

Taking your RF module concept, this is best done via serial ports and NOT the console, as the program can they implement controls on the data(such as checking for a qualifier), which the console can't do.

Why do you want or need it to be via the console?
(not being critical, i'm just curious)
Smoke makes things work. When the smoke gets out, it stops!
 
Phil23
Guru

Joined: 27/03/2016
Location: Australia
Posts: 1667
Posted: 09:30pm 02 Jun 2016
Copy link to clipboard 
Print this post

  Grogster said  
Why do you want or need it to be via the console?
(not being critical, i'm just curious)


Reason I wondered about the console port is that it already has an ESP8266 on it for VT100 output to a phone terminal and for programming etc.

Don't think I'd like 2 Wi-Fi per MM module.

Already have quite good data displayed in VT100 format that is port forwarded thru the router to the Internet, an can monitor that on my phone.

Plan to also add some control back in as well.

Phil.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025