Search found 8 matches

by preetamvp
Sun Oct 06, 2013 8:47 am
Forum: LeoStick
Topic: C# SerialPort not reading LeoStick
Replies: 7
Views: 7626

Re: C# SerialPort not reading LeoStick

:D got it working with C#.

fix: set port.DtrEnable=true before calling port.Open();

Cheers,
Preetam
by preetamvp
Sun Oct 06, 2013 2:26 am
Forum: LeoStick
Topic: LeoStick does not work with USB3 ports
Replies: 5
Views: 4319

Re: LeoStick does not work with USB3 ports

I have a dell xps 12 laptop that has only USB 3 port and a mac mini with USB3 ports and leostick works fine on both.

Cheers,
Preetam
by preetamvp
Sat Oct 05, 2013 5:16 am
Forum: LeoStick
Topic: C# SerialPort not reading LeoStick
Replies: 7
Views: 7626

Re: C# SerialPort not reading LeoStick

Hi again, Just another quick update. I was able to read from the serial port on my mac using the following python script. #!/usr/bin/python from serial import Serial ser = Serial('/dev/tty.usbmodemfd121', 38400) while True: print(ser.readline()) Will try python on windows. ** Edited ** - Tested pyth...
by preetamvp
Sat Oct 05, 2013 3:44 am
Forum: LeoStick
Topic: C# SerialPort not reading LeoStick
Replies: 7
Views: 7626

Re: C# SerialPort not reading LeoStick

Hi Angus, No luck.. tried serial.ReadChar() in C# and it still blocks and when I call serial.BytesToRead in C# it always returns 0. I was monitoring Device manager when uploading sketch and did see the switch from one COM port to another... and switch back to the COM port that Serial Monitor is read...
by preetamvp
Mon Sep 30, 2013 1:15 pm
Forum: Random Chit-Chat
Topic: Uploading code via USB-Serial Adapter
Replies: 4
Views: 5344

Re: Uploading code via USB-Serial Adapter

Hi Angus, :oops: Rookie mistake.. Tx to Rx makes sense.. Thanks for that.. will give it another go on the weekend and update this topic if I have still have issues. Just one quick question.. do I need the 16 Mhz crystal connecting to X1 and X2 pin? As on Arduino Uno I see only one 16 Mhz crystal.. a...
by preetamvp
Mon Sep 30, 2013 1:04 pm
Forum: LeoStick
Topic: C# SerialPort not reading LeoStick
Replies: 7
Views: 7626

Re: C# SerialPort not reading LeoStick

Hi, Thanks for the quick response. I have extracted out the piece of code that connects and reads from the COM port. In the below code when serial.ReadLine() is called it blocks forever when reading from a Leostick.. the same code has no issue reading from the port when the sketch is uploaded to an ...
by preetamvp
Sun Sep 29, 2013 7:13 am
Forum: LeoStick
Topic: C# SerialPort not reading LeoStick
Replies: 7
Views: 7626

C# SerialPort not reading LeoStick

Hi, Serial Monitor using IDE 1.0.5 and Leostick works for me. The issue I am having is as follows. I have connected a temp and humidity sensor to leostick and uploaded the temp and humidity example sketch.. This sketch runs fine and I can see the data in Serial Monitor, but when I try to use a C# Co...
by preetamvp
Sat Sep 28, 2013 7:38 am
Forum: Random Chit-Chat
Topic: Uploading code via USB-Serial Adapter
Replies: 4
Views: 5344

Uploading code via USB-Serial Adapter

Hi, I am using Arduino IDE on Mac to upload code to a ATmega328P MCU with Arduino Uno bootloader (http://www.freetronics.com/products/atmega328p-mcu-with-arduino-bootloader#.UkZtdWSMGGp) using a USB-Serial Adapter (http://www.freetronics.com/products/usb-serial-adapter#.UkZy82SMGGo) by following the...