# Sending and receiving info from serial port and download file

**URL:** <https://discourse.nodered.org/t/sending-and-receiving-info-from-serial-port-and-download-file/43414>\
**Category:** General\
**Created:** [30 March 2021 17:36 UTC](https://discourse.nodered.org/t/sending-and-receiving-info-from-serial-port-and-download-file/43414 "2021-03-30T17:36:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lousa](https://avatars.discourse-cdn.com/v4/letter/l/b77776/32.png) [@Lousa](https://discourse.nodered.org/u/Lousa)\
**Post date:** [30 March 2021 17:36 UTC](https://discourse.nodered.org/t/sending-and-receiving-info-from-serial-port-and-download-file/43414/1 "2021-03-30T17:36:22Z")

</div>

Hello!

I'm new in node-red and i'm doing a project where i have a graphical interface with some numeric parameters to be inserted by the user, send to a serial port (mbed) and receive another information to the same serial port and a graphic will be generated and i should save that file to analysis.

The questions i have are:  
1: With the parameters inserted i want iniciate to send a package to the serial port, how i edit the nodes to make a button "start" working and sending that information? I should also use a function node to conect the inputs and to send the package right?

2: If i have also a text input to the user choose the name file, how i can save with that name using a button "save"? I should dowload as cvs file?

3: If i have a form node it will be different the resolution to the problem in 2? Instead of having a text input for example.

I don´t know if i was explicit enough but if someone can help me i apreciate, thank you!

---

<div class="post-metadata">

**Author:** ![davidz](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@davidz](https://discourse.nodered.org/u/davidz)\
**Post date:** [31 March 2021 22:13 UTC](https://discourse.nodered.org/t/sending-and-receiving-info-from-serial-port-and-download-file/43414/2 "2021-03-31T22:13:04Z")

</div>

May I give you some suggestions first:  
Do a spell check, use a screen shot, draw a picture, post a flow, or put in some codes if possible. Your questions are not clear with lots of typos. This might be the reason that nobody has answered 😅  
With that said, I will try to get it going:

1. Yes you can use a function node. Or a button followed by a function node.
2. You can use context save function to save the user input. Check out this page: [Working with context : Node-RED](https://nodered.org/docs/user-guide/context)
3. The solution is similar

---

<div class="post-metadata">

**Author:** ![Lousa](https://avatars.discourse-cdn.com/v4/letter/l/b77776/32.png) [@Lousa](https://discourse.nodered.org/u/Lousa)\
**Post date:** [1 April 2021 13:33 UTC](https://discourse.nodered.org/t/sending-and-receiving-info-from-serial-port-and-download-file/43414/3 "2021-04-01T13:33:28Z")

</div>

Thanks for your answer! I should double check the questions before posting here and illustrate the situation, it would be more clear, sorry for that. I will look for your suggestion, thanks again.

---

<div class="post-metadata">

**Author:** ![davidz](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@davidz](https://discourse.nodered.org/u/davidz)\
**Post date:** [1 April 2021 17:05 UTC](https://discourse.nodered.org/t/sending-and-receiving-info-from-serial-port-and-download-file/43414/4 "2021-04-01T17:05:19Z")

</div>

You are welcome Lousa. Hopefully you can solve the problem soon. 😁

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 May 2021 17:06 UTC](https://discourse.nodered.org/t/sending-and-receiving-info-from-serial-port-and-download-file/43414/5 "2021-05-31T17:06:07Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
