Search results

  1. C

    How to catch a disconnected serial port?

    @Sheepings I am not sure what you mean by run the loop in a new thread. I assumed it would just be made after the port is opened similar to what I did with the DataReceived handler. I then complete more actions in the Handler function like this: The same thing is not working for the...
  2. C

    How to catch a disconnected serial port?

    @Skydiver Are you suggesting that my form will eventually turn red? Am I using the ErrorReceivedHandler in the correct way for what I am trying to detect or is there a better solution? Ideally, i would use something as simple as but I don't know if anything like that exists: if...
  3. C

    How to catch a disconnected serial port?

    So I have a C# windows form application with a GUI that allows me to connect to an Arduino via a Bluetooth Serial connection and I want to turn the GUI background RED when the connection is broken. I have created an ErrorHandler in my connectToArduino function but it does not seem to be working...
  4. C

    Writing Data over Bluetooth connection?

    The working app does not show any port settings. The port settings work for reading in data so I assumed they would work for writing.
  5. C

    Writing Data over Bluetooth connection?

    Using a Win 10 BT terminal from the app store worked and allowed me to send data from PC to Teensy so I believe there is something wrong with my C# code. My code freezes on the BTSend.Write line everytime I run it. This is what I have: Teensy: #define HWSERIAL Serial1 void setup() {...
  6. C

    Writing Data over Bluetooth connection?

    @Sheepings The data only reads in on COM9 so I don't know what is wrong with the ports
  7. C

    Writing Data over Bluetooth connection?

    @Skydiver I was confused about that as well but all my sensor data reads in on COM9 and is displayed on the GUI! That part is working fine.
  8. C

    Writing Data over Bluetooth connection?

    I am attempting to send data from a C# GUI to the Teensy 3.2 via the Bluetooth port on my PC but am having no luck. The data transfer is working in the opposite direction (sending data from Arduino to C# GUI). I am using the Bluetooth port on Putty to try to see the "test string" but am getting...
  9. C

    BayerBG8 to RBG image and putting in PictureBox

    @Skydiver I am getting my test array from the Basler SDK. IGrabResult grabResult = camera.StreamGrabber.RetrieveResult(5000, TimeoutHandling.ThrowException); using (grabResult) { // Image grabbed successfully? if (grabResult.GrabSucceeded) { test = grabResult.PixelData...
  10. C

    BayerBG8 to RBG image and putting in PictureBox

    @Sheepings Completely different is a stretch, I was using a slightly different approach to find the R,G,B pixels of the Bayer image but everything else was the same. Besides, the posts were asking different questions. I deleted my SO question because I solved the problem. I am now stuck on...
  11. C

    BayerBG8 to RBG image and putting in PictureBox

    @Skydiver I wrote a new code to fix my earlier problem, I don't understand where you are going with that.
  12. C

    BayerBG8 to RBG image and putting in PictureBox

    I am having a lot of trouble converting a BagerBG8 byte array to RGB and then populating the RGB image into a pictureBox. I believe the code below solves the transformation to RGB but I cannot get that new byte array to fit inside the pictureBox. int src_width = 3840; int src_height = 2748...
Top Bottom