Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 12:45 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 : uMiteII IEEE485 executing MMBasic Command

Author Message
redrok

Senior Member

Joined: 15/09/2014
Location: United States
Posts: 209
Posted: 06:46am 23 Feb 2015
Copy link to clipboard 
Print this post

Hi All;

I've been experimenting with master/slave uMites over long IEEE485/RS485 lines. In this case, 650'at full 230400 baud. Cool huh!

I was thinking about something I did years ago with a COSMAC1802 processor. I could send short pieces of code to the slave micro and it would execute it to completion then wait for some more code to be sent.

What I was thinking of doing is to send a string containing a single line of MMBasic code, then execute the line of code. All this while the slave is servicing the IEEE485.

I already tried this with 2 uMiteII slaves. One to service the IEEE485 which operates the second uMiteII through its console port. With this method I can send whole programs to it.

I really only want to be able to execute a single line of code in a string to read sensors or flip bits and such. The problem with doing this with a single slave is it must do the commands while the main program is still running.

I can see this could be quite useful in general.
I suppose one needs to be able to tell the command parser to look in the string.

Am I way off in trying to do this?
Can it be done?

redrok
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3282
Posted: 02:37pm 23 Feb 2015
Copy link to clipboard 
Print this post

At this time the only method that I can think of is to cause the slave uMite to drop into the command prompt which will cause it to interpret the next line sent as a string of commands (separated by the colon (:) character). If the last command on the line was RUN the program in flash would then regain control.

It is rather messy and you have the issue of converting IEEE485 to TTL serial for the console.

Geoff
Geoff Graham - http://geoffg.net
 
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