Skip to main content
12 events
when toggle format what by license comment
Dec 28, 2022 at 11:30 vote accept Pedro Ferreira
Dec 28, 2022 at 11:07 comment added Pedro Ferreira @PMF yes the code works and it is the correct port, I'm used to this kind of code and serial code exchange, multi threading, events etc. There is really an issue with the new Arduino Nano 33 BLE I guess... I was hoping that someone had seen this before and have some kind of workaround...
Dec 28, 2022 at 2:07 answer added timemage timeline score: 4
Dec 27, 2022 at 20:09 comment added PMF This code should be working. Maybe dumb question: Are you sure the port is the right one? IIRC there are some pitfalls when using the DataReceived event [others say it's completely broken] Try using a thread for the receive end instead.
Dec 27, 2022 at 19:57 comment added Pedro Ferreira As I also mention in my question, this C# code works fine with an Arduino Nano, so I'm sure the C# code is working. It just doesn't work with the new Arduino Nano 33 BLE. Probably something to do with he mbed layer... but it doesn't make sense, working with Arduino IDE Serial Monitor and not with a C# compiled app. I also read somewhere that the Arduino Nano 33 BLE USB serial port is virtual, so it is a pure software serial port and not a hardware conversion from serial to USB.
Dec 27, 2022 at 19:33 comment added jsotola Using the Arduino IDE Serial Monitor this works very well with the Arduino Nano 33 BLE ... that means that the data is getting to your computer ... what you do with the data after it gets there is off topic here
Dec 27, 2022 at 19:17 comment added chrisl Have you actually made sure (for example through a debug message), that serialPort.WriteLine("HELLO"); is actually executed? From what you described the problem is in your C# app, not in the Arduino part
Dec 27, 2022 at 19:07 history edited Pedro Ferreira CC BY-SA 4.0
Add the rest of the C# test code...
Dec 27, 2022 at 19:03 comment added Pedro Ferreira I only copy/past the essential code... but its there... gonna edit the question and add them
Dec 27, 2022 at 13:20 comment added chrisl I'm no expert in C#, but I don't see you actually sending anthing. And where is SerialPort_DataReceived defined?
S Dec 27, 2022 at 13:03 review First questions
Dec 27, 2022 at 18:01
S Dec 27, 2022 at 13:03 history asked Pedro Ferreira CC BY-SA 4.0