Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
ysujith  
#1 Posted : Wednesday, October 11, 2017 5:56:03 AM(UTC)
ysujith

Rank: Newbie

Groups: Registered
Joined: 10/11/2017(UTC)
Posts: 1

Was thanked: 1 time(s) in 1 post(s)
I really like the software but i have a question regarding the serial port function. I am new to this programming software. I am wondering how to create a program to listen to the serial port and echo back?

Edited by user Wednesday, October 11, 2017 8:48:12 AM(UTC)  | Reason: Not specified

thanks 1 user thanked ysujith for this useful post.
sample@email.tst on 4/7/2024(UTC)
EmbrioAdmin  
#2 Posted : Wednesday, October 11, 2017 1:12:03 PM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 109 time(s) in 104 post(s)
Could you tell me a little more about what you are trying to do? Do you mean you want to do that on the Arduino?

You would make a custom node, see this section of the docs.

Basically:

  • Go to the Project tab (the tool tab with the Embrio logo).
  • Right click and make a new node definition.
  • Drag the definition onto a node screen, then open it up for editing by pressing the open arrow in the top right.
  • Click "touches pin" so that the node only runs on the Arduino.
  • Then the node code would be very similar to a simple Arduino program. In the setup handler you would do a serial.begin(), then in the Every Update handler you would do a serial.Read(), and if it gets data, send it out with a Serial.Print().


You might run into an issue though. While you're working in Embrio with a connected Arduino, they communicate over the serial port, so what you write might interfere. However in a final compiled program it shouldn't be a problem.

Is this part of a larger project? What else will you have going on?
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error