Asked — Edited

Need A Way To Monitor The Ezb4 Serial Ports

Now that the EZB4 has arrived is there a way we can monitor the three serial ports using the ARC terminal GUI ? Not all at once of course, just one at a time would be helpful.


ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

PRO
Synthiam
#1  

Can you be more specific of what you are asking? I'm unsure what you mean, sorry:)

#2  

No problem DJ, lets say that I have hooked up one of the serial ports to the Roomba and the Roomba is sitting on a home base. Normally when charging, the Roomba outputs a ASCII battery charging report every second. This report continues until the Roomba is removed from the home base. There is a software reset command "7" that clears all dynamic registers and re-starts the charging process. At the same time the software version is reported.

That charging info would be helpful in determining battery status prior to setting up for sending commands similar to what is done using the D0 port now.

PRO
Canada
#3  

Hi @Robot-Doc, you can always use the "UART Peripheral" example (under Examples->EZ-Script Function Syntax) in ARC to collect data and print it out to the script console as data is received. It's a pretty handy example, I've used it a few times myself:)

PRO
Synthiam
#4  

I created a Terminal EZB that will be in tomorrow's release of ARC. I have to test it first. It turns the EZ-B v4 into a Wi-Fi serial terminal

User-inserted image

#5  

Oh man, I thought I had trouble sleeping.... wow, another great addition to ARC... Just what the Doc ordered....;)

PRO
USA
#6  

OMG, just what i needed..i think!

#7  

Thanks for the creation of the WiFI Terminal for EZB4 DJ, that is so cool.

Jeremie thanks for the UART peripheral tool clue using the script console.

#8  

DJ, you have made my day, thanks for this tool. This lets me monitor live battery reports as they are happening on the Roomba. This will also work on the Create.

User-inserted image

#9  

Hey Robot Doc, Nice work. Could you share the code you typed into the terminal to get it to do that?

#10  

This particular output does not require any input commands. It is an automatic output that begins just as soon as you connect the Roomba to a home base or directly connected to a power supply.

#11  

Oh, OK, thanks. I'm just trying to learn how to use serial commands and terminals to communicate and control my Kangaroo X2 with the V4 (or anything else for that matter). :)

#12  

One command that I use in a script to do a soft reset is this one:

Uartinit(0,0,115200) # board 0 Uart 0 baud 115,200 Uartwrite(0,0,0x7) # soft reset