Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

N+ Laptop GUI Client


  • Please log in to reply
9 replies to this topic

Poll: N+ Laptop GUI Client (5 member(s) have cast votes)

Is this a useful learning tool?

  1. Yes (5 votes [100.00%] - View)

    Percentage of vote: 100.00%

  2. Maybe - needs more work (0 votes [0.00%])

    Percentage of vote: 0.00%

  3. It's so bad, it's hard to tell (0 votes [0.00%])

    Percentage of vote: 0.00%

  4. No, never. (0 votes [0.00%])

    Percentage of vote: 0.00%

Vote Guests cannot vote

#1 BanksySan

BanksySan

    Member

  • Members
  • PipPip
  • 28 posts
  • LocationBristol, United Kingdom

Posted 17 April 2012 - 11:12 PM

Hia all,

I've been playing with an LCD screen lately (massive high-five to the μLiquidCrystal library. In order to figure out the chip I've been trying to reproduce the library in my own words. It occurred to me, that when you're dealing with complex pin changes it can get quite hard to visualise. Constantly checking the pins with a multimetre or stepping through code can be a pain when you're trying to figure out what the pin configuration should be. It'd be nice to be able to just turn some on and off without having to constantly re-deploy.

I thought a Windows form with coloured lights would do the trick, something like this:

xPosted Image

I called it HelloDuino, it communicates via a webserver on the N+. I'm having some 'oddities' with the socket.Accept() method. It seems to decide to take an incoming request, but then not allow the thread to continue. It never seems to happen when debugging though, so I suspect it's a race condition. Any suggestions gratefully received!

I thought I would share it, it might be something that helps someone or just a curiosity for someone getting started.

URL: https://bitbucket.or...ySan/helloduino
GIT repo: git clone https://BanksySan@bi.../helloduino.git

I'd love to hear any comments, I'm planning on making it work over USB (does anyone know if this is possible?).

Thanks all

Dave

#2 smarcus3

smarcus3

    Advanced Member

  • Members
  • PipPipPip
  • 134 posts

Posted 17 April 2012 - 11:39 PM

I have made the same type of thing for arduinos to visualize what is happening in a given program. They are ALWAYS helpful.
Steve


My Other Hobby: Engineer Turned Baker

#3 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 18 April 2012 - 04:12 AM

I'm planning on making it work over USB (does anyone know if this is possible?).

Unidirectional communication from the Netduino to the PC is possible using the HID interface. See this example.

Regards,
Mark

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#4 BanksySan

BanksySan

    Member

  • Members
  • PipPip
  • 28 posts
  • LocationBristol, United Kingdom

Posted 18 April 2012 - 11:31 AM

Unidirectional communication from the Netduino to the PC is possible using the HID interface. See this example.


I'll have a look, I'd read it in passing before, the chap has done a sterling work here! Thanks for pointing it out, I'd forgotten that it was there.

#5 Geancarlo2

Geancarlo2

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts

Posted 18 April 2012 - 01:15 PM

FYI bidirectional hid is possible, but it would be much easier with a serial->usb bridge on the netduino.

#6 BanksySan

BanksySan

    Member

  • Members
  • PipPip
  • 28 posts
  • LocationBristol, United Kingdom

Posted 18 April 2012 - 04:39 PM

FYI bidirectional hid is possible, but it would be much easier with a serial->usb bridge on the netduino.


Thanks for the advise, I haven't looks at either option in anger yet.

Why do you say one is simpler than the other? (Not a loaded question, I promise).

#7 Geancarlo2

Geancarlo2

    Advanced Member

  • Members
  • PipPipPip
  • 70 posts

Posted 18 April 2012 - 05:39 PM

Simply because for usb HID you probably will need to read the usb specification for the device type you are trying to implement and figure how to interface it on desktop, whereas using a serial to usb converter all you gotta do is use SerialPort class on both netduino and desktop.

#8 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 18 April 2012 - 08:28 PM

Hi Geancarlo2,

Simply because for usb HID you probably will need to read the usb specification for the device type you are trying to implement and figure how to interface it on desktop, whereas using a serial to usb converter all you gotta do is use SerialPort class on both netduino and desktop.

Luckily we already took care of that for you. :)

Here you go:
http://forums.netdui...tion-using-usb/

Chris

#9 Nevyn

Nevyn

    Advanced Member

  • Members
  • PipPipPip
  • 1072 posts
  • LocationNorth Yorkshire, UK

Posted 19 April 2012 - 07:05 AM

FYI bidirectional hid is possible, but it would be much easier with a serial->usb bridge on the netduino.

For some reason I always forget this option when thinkning about USB comms with a PC. I think it's because I classify this as serial comms. This works well and only needs a small amount of additional hardware to implement.

Regards,
Mark

To be or not to be = 0xFF

 

Blogging about Netduino, .NET, STM8S and STM32 and generally waffling on about life

Follow @nevynuk on Twitter


#10 BanksySan

BanksySan

    Member

  • Members
  • PipPip
  • 28 posts
  • LocationBristol, United Kingdom

Posted 19 April 2012 - 08:09 PM

Hi Geancarlo2,

Luckily we already took care of that for you. :)

Here you go:
http://forums.netdui...tion-using-usb/

Chris


Awesome, thanks...

  • The instructions say I need to deploy over COM, but I can't find any instructions on how to do that. Can you help?
  • My N+ config says this: HAL build info: 4.1.2821.0, Netduino Plus by Secret Labs LLC, I assume this is the Firmware version?
  • What does 'HAL' stand for? Is it the computer on Space Odessy?
Cheers

Dave




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.