Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Mcu Serial Port

4 posters

Go down  Message [Page 1 of 1]

1Mcu Serial Port Empty Mcu Serial Port Mon May 03, 2021 2:34 am

Mistral



When I try to open the serial port in this Simulide/share/examples/arduino-file I see this:

Mcu Serial Port Mcu_se10

I've been watching some Simulide video's and the Simulide micro controller tutorial. And on the sourceforge forum like this one:
https://sourceforge.net/p/simulide/discussion/feature/thread/e8b98966/
At Port Name I tried /tmp/ttyS1, no result.

I have nothing connected to my windows10 computer, I would like to have it only virtual. Please some advise what to do next. I read about downloading com0com software? 
https://sourceforge.net/projects/com0com/

Before I do that I want to be sure that for example my printer can't connect anymore over a usb-port because it is messed up by lack of knowledge from my part. 
I hope this topic will be usefull for other readers as well. In the mean time I'll do some more searching. Thanks.

2Mcu Serial Port Empty Re: Mcu Serial Port Mon May 03, 2021 3:47 am

Mistral



I think I've found it, with the help of this Simulide-video, from minute 05:00
https://www.youtube.com/watch?v=WVBgmah6gE0

Mcu Serial Port Mcu_se11

What I did not know is that there is extra software needed to make this connection. If this is correct please add that information to the Microcontroller tutorial. I used this Eltima Software:
https://www.virtual-serial-port.org/nl/articles/com-port-on-windows-10/
It takes 12.5 Mb space and is not free, I am using the trial. It looks like this:

Mcu Serial Port Mcu_se12


At first I did get some Simulide Bargraph_serial 'not responding' but the connection is established and it's going better now. It seems to take some processing power, my computer fan is running overtime so I closed other programs.

3Mcu Serial Port Empty Re: Mcu Serial Port Mon May 03, 2021 2:06 pm

arcachofo

arcachofo

Open Serial Port just connects to an existing serial port in your computer.
You just must provide a valid serial port name/path.

What I did not know is that there is extra software needed to make this connection.
You don't need extra software to connect to a serial port.
If you want to create virtual serial ports you might need to use some sotware.
But that is external to simulide and depends on your OS and which sofware you choose.

There is a topic about virtual serial ports here:
https://simulide.forumotion.com/t13-connection-of-multiple-simulide-applications-in-win10

Mistral likes this post

4Mcu Serial Port Empty Re: Mcu Serial Port Tue May 11, 2021 2:57 am

mhassler



Just figured this out myself last night, searching for the same thing.
On linux I used this that I found on another forum.

socat -d -d pty,raw,echo=0 pty,raw,echo=0
Output on mine showed ports
2021/05/10 19:09:09 socat[6188] N PTY is /dev/pts/1
2021/05/10 19:09:09 socat[6188] N PTY is /dev/pts/2
2021/05/10 19:09:09 socat[6188] N starting data transfer loop with FDs [5,5] and [7,7]

On windows 10 I used Com0Com and used the ports it defined on install CNCA# CNCB# This was on a virtual machine using virtualbox. Saw a post from 2020, that com0com wasn't working correctly for secure boot. It may have been fixed, but I haven't tried it yet.

arcachofo likes this post

5Mcu Serial Port Empty Re: Mcu Serial Port Wed May 12, 2021 7:32 am

sooraj



Check your ports in Device Manager (in Windows ) or in /dev/tty* in linux.

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum