Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 21:55 02 May 2024 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 : [MicroMite] How is RS485 implemented

Author Message
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 06:13pm 08 Sep 2014
Copy link to clipboard 
Print this post

Can someone tell me how to use the RS485 capabilities of the MicroMite (MMBasic).

What kind of setup can be made.
One master/multiple slaves, multiple masters/multiple slsaves?

Is there a provision for bus conflicts?
How do two nodes talk to each other?

The project i would need it for is for a friend who has a catamaran with two diesel engines that need to be controlled.

Each engine would get a uMite for measuring RPM, temperature and oil pressure.
It would also control gearing (forward/idle/reverse) and throttle by using dc motors and using switches as feedback for the gearing and measuring RPM and end switches for feedback on the throttle.

the uMite should be able to transmit all measurements on a interval of about 5 seconds with faster intervals when throttle is used.
It should also be able to receive commands for choosing gear and RPM.

Main concern is reliability. I understand that with RS485 you need to build reliability using a good protocol. Is there already a lower level protocol built in the firmware upon which i can put another 'data' layer?

Thanks!






Microblocks. Build with logic.
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1421
Posted: 04:37am 09 Sep 2014
Copy link to clipboard 
Print this post

If you are not using a protocol like MODBUS, you can roll your own.

Look at the protocol called S.N.A.P. http://www.hth.com/snap/

You can implement S.N.A.P. or at least use it as a guide to making your own protocol.

I typically use a master/slave/slave topology with the master polling at the rate it chooses. Slaves are addressable.


Micromites and Maximites! - Beginning Maximite
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 07:52am 09 Sep 2014
Copy link to clipboard 
Print this post

Thanks CG. That looks like a good and easy protocol to use.

Microblocks. Build with logic.
 
Print this page


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

© JAQ Software 2024