First of many noob questions

Hello! Been a fly on the wall in your forums for a month or so now. Very nice, helpful crowd.

I bought an AH3-R a little while ago and have been playing with it ever since. Everything is working out of the box and doing great. I’ve got it walking around with the ps2 controller. Starting to move on.

I’m trying to get a better undertanding of how the ps2 controller MBasic code works. I’ve read the wiki sites and think i have a pretty good undertanding. My question is how serout (serial out) works with communicating to the ssc32.

here’s the first serout sent to ssc32 in “attack mode” code

serout SSC32,I8N1_38400,"#",MRHH,MRHH2,"P1800#",MRHV,MRHV2,"P1700#",MRK,MRK2,"P1700#", | MLHH,MLHH2,"P1200#",MLHV,MLHV2,"P1300#",MLK,MLK2,"P1300T288",13]

What I understand:
This sends an asycronous serial communication to SSC32 (ssc32 is the predefined friendly name for pin8) at a boud of 38400.

What I don’t understand:
Why do we send “I8N1_38400” instead of just “38400”?
What do the “#” signs do, and why we need them?
What’s the “13” i’ve seen at the end of every ssc32 communicationn code do? Is it like a termination or something?

Sorry for the noobishness of these questions. I’m sure this has been discussed before, but I couldn’t find anything in search.

Thanks!
Perl

Hi fly on the wall :wink: At First I want to welcome you on this forum!

A serial port has got a few settings to get the communication right. One of them is the baud rate but there are more settings like databits (8), stopbits (1), parity (N). That’s what the I8N1 means. I have to say that I’ve never used and seen “I8N1_38400â€

A serial port has got a few settings to get the communication right. One of them is the baud rate but there are more settings like databits (8), stopbits (1), parity (N). That’s what the I8N1 means. I have to say that I’ve never used and seen “I8N1_38400â€

Thanks Xan! The SSC32 manual is just what I needed. Somehow I missed this.

I should be able to get this guy flopping around on the ground in no time :wink:

Ahh, then your sequences will look much like most of mine have. :smiley: