Dear all,
I've a Feather M0 Adalogger connected via USB/Serial to my PC.
The firmware is running fine and connecting to the adalogger via Arduino-Teminal oder putty is working fine:
I'm able to send commands to the adalogger and to receive data.
Thus in principle I would assume everything is working so far.
Connecting to the adalogger using a piece of software I've coded in VB.net gives me a hard time:
I'm able to open the serial connection using the VB.Net Ports.SerialPort class.
I'm able to send commands to the adalogger. Which are accepted and processed.
BUT I'm not able to receice any data data from the adalogger. BytesToRead Property of the Ports.SerialPort object is always 0 and also there is no event raised indicating any incomming data.
Does anyone has any idea whats going wrong?
Feather M0 Adalogger connecting to vb.net
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- schafma
- Posts: 8
- Joined: Fri Sep 14, 2018 2:56 am
Re: Feather M0 Adalogger connecting to vb.net
I finally found the solution for the above problem.
It's crucial to enable DTR and RTS on the port (See below)
It's crucial to enable DTR and RTS on the port (See below)
Code: Select all
mCOM = New IO.Ports.SerialPort(ComboBox1.Text, 9600, IO.Ports.Parity.None, 8, IO.Ports.StopBits.One)
mCOM.DtrEnable = True
mCOM.RtsEnable = True
mCOM.Handshake = IO.Ports.Handshake.RequestToSendXOnXOff
Please be positive and constructive with your questions and comments.