![]() |
Forum Index : Microcontroller and PC projects : uMiteII IEEE485 executing MMBasic Command
Author | Message | ||||
redrok![]() Senior Member ![]() Joined: 15/09/2014 Location: United StatesPosts: 209 |
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: AustraliaPosts: 3282 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |