Jump to content

Recommended Posts

Posted
54 minutes ago, Ashi Valkoinen said:

If you have Discord or any other platform, we can also do some screen-share talk about. 

I do have a discord ...  I'll give you my username in PM.

Posted (edited)

I added in Lego Blockly toolbox, in NXT new category named Messages, the Message WRITE and READ blocks.

You can write/read messages of type TEXT or a NUMBER (Floating point) to mailbox of a running program in the NXT.

Mailbox are numbered 1 to 10 in the dropdown to fit with NXT-G mailbox numbering but behind the scene, blockly uses 0-9...

I tested both Read and Write for both Text and Number.
Sometime the NXT does not detect to the MSG blockly sends, sometime it detects just fine... I don't know why.

To read or write a number you must check the Number? checkbox otherwise the default is text.

To write a number you can write you number in the default text field or use a Math Number block from the Math toolbox category.

 

Here are some examples:

400x52.png

400x55.png

400x58.png

400x58.png

400x60.png

Edited by Bliss
Posted

NICE!

Mailbox messages are LEGO Blockly to NXT, and NXT to LBlockly, correct? As I can compose outgoing NXT messages also in BricxCC, I can read the reply in LBockly, right? 

Best
Thorsten

Posted
31 minutes ago, Toastie said:

As I can compose outgoing NXT messages also in BricxCC, I can read the reply in LBockly, right? 

Yes.

I used NXT-G to make very basic NXT programs that I uploaded into the NXT brick to test the messaging.

And from what I read, BricxCC uses the same FW as the official Lego NXT FW so the Direct Command protocol remains the same.

Even the Enhanced NBC/NXC Firmware kept the original Direct Command protocol intact if I understand well.

Posted
10 minutes ago, Bliss said:

Even the Enhanced NBC/NXC Firmware kept the original Direct Command protocol intact if I understand well.

Can confirm: Yes, that worked/works as well!

Cool. 

Best
Thorsten

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...