chipKIT® Development Platform

Inspired by Arduino™

Problem with driver USB of fubarinoSD

Created Tue, 29 Oct 2013 20:11:36 +0000 by jbcard


jbcard

Tue, 29 Oct 2013 20:11:36 +0000

Hello,

I am write a program to read - write with fubarinoSD and PC.

The program is write with microsoft visual C#.NET and work fine with a arduino nano. But with fubarinoSD I can write PC->fubarinoSD but It is impossible to read. My PC has windows 8, but it is the same problem with XP.

The Monitor of MPIDE work fine. Have you a dll to communicate ?

Jean


EmbeddedMan

Tue, 29 Oct 2013 21:02:48 +0000

Jean,

I have never had a problem reading or writing from/to the Fubarino SD from PC applications. I'm not sure why one program should only communicate in one direction. There is no special DLL needed - just treat it like a normal serial port.

*Brian


jbcard

Tue, 29 Oct 2013 21:45:09 +0000

The com port name is for me the Stk500v2(COM7). It is the last driver ? The arduino make a loop to write "Test" to one second.

In my program I choice the COM7, but I don't read test With the arduino nano and with the same program I read test.

Strange, no ?

Jean


EmbeddedMan

Wed, 30 Oct 2013 15:35:37 +0000

Jean,

Yes, that is very strange indeed. I've never seen such a thing before.

There isn't actually a driver for the Stk500v2 COM port - we just use the built-in CDC ACM driver in Windows. The .inf file that we use simply tells Windows to use its build in driver with our board. So there shouldn't be a driver problem.

There must be something different you need to do in your program to get the data back from the Fubarino compared to the Arduino. Since other programs on your PC (like MPIDE) have no problem reading from the Fubarino SD, you know that there isn't a problem with your PC or Windows drivers. It must be something specific to your PC side application code. Maybe something to do with handshaking lines? I'm just guessing here . . .

*Brian


jbcard

Wed, 30 Oct 2013 18:16:44 +0000

Hum hum,

A different code for Arduino and fubarinoSD ?

Have you developed. NET Brian? It is not impossible for me to do a specific code, I'm looking ...

my code is :

private void serialPort1_DataReceived(object sender, serialDataReceivedEventArgs e) { RxString += serialPort1.ReadExisting(); this.Invoke(new EventHandler(delegate { Print(); })); }

private void Print() {

        TextRetour.AppendText(RxString); // read fubarino SD
        TextRetour.Refresh();     
        RxString = "";
    }

jean


EmbeddedMan

Thu, 31 Oct 2013 15:27:01 +0000

Jean,

I've never done any .NET programming - I'm almost strictly an embedded guy (C) and when I do program on the PC, it's always in Basic. :-)

Sorry I can't provide a better answer. Hopefully somebody else will be able to help duplicate your problem and fix it.

*Brian


jbcard

Mon, 04 Nov 2013 20:41:05 +0000

Ok Brian,

The same problem exist with Fubarino mini.

if MPIDE java works, can we have a DLL that reads and writes the com port? what is the basic that you use?

Jean


EmbeddedMan

Tue, 05 Nov 2013 17:53:15 +0000

Jean,

I believe that MPIDE (as well as Arduino) uses the RXTX library for Java. [url]http://rxtx.qbang.org/wiki/index.php/Main_Page[/url]

Maybe you can link to that to do your serial I/O?

*Brian


jbcard

Wed, 06 Nov 2013 21:31:57 +0000

Thank's Brian.

I will try several things. do the update windows 8.1, install visual studio express 2013 and uses the RXTX library...

Jean