Author Topic: Looking for a way forward with Microcontrollers/Microprocessors  (Read 21388 times)

0 Members and 1 Guest are viewing this topic.

Offline donotdespisethesnake

  • Super Contributor
  • ***
  • Posts: 1093
  • Country: gb
  • Embedded stuff
Re: Looking for a way forward with Microcontrollers/Microprocessors
« Reply #75 on: January 24, 2015, 06:11:30 pm »
Andreasf: I've not used a real com port in well over 6 years, I use FTDI mainly these days. I tried the FTDI DLL method in Delphi but I feel I'm going about parsing the input in a wrong way. I will look into C#, I used it at college, but they only had us doing simple stuff like adding numbers on screen.

I moved from Delphi to C#, and although there is a bit of a learning curver, C# is a lot like a better Delphi. I am sure part of the reason for that is that Anders Hejlsberg was chief architect of Delphi who went on to be lead architect of C#. The Visual Studio Express editions are nice to use and free, there is now a free Visual Studio edition as well.

Certainly for building a basic GUI and talking to serial ports it is fairly easy.
Bob
"All you said is just a bunch of opinions."
 

Offline pmurray4Topic starter

  • Contributor
  • Posts: 25
Re: Looking for a way forward with Microcontrollers/Microprocessors
« Reply #76 on: January 24, 2015, 08:46:47 pm »
Is there a cross platform way to easily communicate between a computer and a MCU with java or qt? Since com port is dicey across platforms is there a way of direct USB per chance?
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26906
  • Country: nl
    • NCT Developments
Re: Looking for a way forward with Microcontrollers/Microprocessors
« Reply #77 on: January 24, 2015, 09:24:34 pm »
I'm using wxCtb for dealing with serial ports on Linux and Windows (http://wxcode.sourceforge.net/showcomp.php?name=wxCtb). It is supposed to be a WxWidgets 'component' but that just ends with the naming convention. It can be used completely standalone without any of the WxWidgets includes.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: Looking for a way forward with Microcontrollers/Microprocessors
« Reply #78 on: January 25, 2015, 12:05:13 am »
I used pyserial on Mac OSX but without GUI.
 

Offline enz

  • Regular Contributor
  • *
  • Posts: 134
  • Country: de
Re: Looking for a way forward with Microcontrollers/Microprocessors
« Reply #79 on: January 25, 2015, 10:04:05 am »
Qt comes with QSerialPort. I used it on Windows and Linux and it worked out of the box with both OS.
 

Offline donotdespisethesnake

  • Super Contributor
  • ***
  • Posts: 1093
  • Country: gb
  • Embedded stuff
Re: Looking for a way forward with Microcontrollers/Microprocessors
« Reply #80 on: January 25, 2015, 11:23:41 am »
I haven't done much Java, but I have used JSSC which worked quite well https://github.com/scream3r/java-simple-serial-connector.

As for a direct USB interface, it's a great idea but I don't think any OS supports that directly. The idea of USB is that it is device oriented, i.e. mouse, keyboard, modem, disk etc. Having a plain old IO port to make it easy for developers seemed to escape the USB designers. The closest thing to a raw pipe is CDC serial, which is a subset of the whole comms device class, designed to include modems, fax machines etc, which were assumed to be the only things that would require COM port type functions.

If anyone has tried it, can libusb be used to create a cross platform "direct" comms? Or at least a uniform device interface.
Bob
"All you said is just a bunch of opinions."
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6190
  • Country: us
Re: Looking for a way forward with Microcontrollers/Microprocessors
« Reply #81 on: January 25, 2015, 06:03:09 pm »
I haven't done much Java, but I have used JSSC which worked quite well https://github.com/scream3r/java-simple-serial-connector.

It looks very good. Thanks. Always struggled with Java when it came to serial ports.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf