Author Topic: Huh, How's this working??  (Read 12120 times)

GlennP

  • Frequent Contributor
  • ****
  • Posts: 141
Huh, How's this working??
« on: June 10, 2011, 06:43:29 am »
Hi,

More picking up pieces of someones leaving under a cloud.  Umm I now have the boards working(ish) but now need to use the software supplied to upload images.  Much confusion on my part due to the way the com port is setup see below.
 
   comms = new comms("COM1", 9600, System.IO.Ports.Parity.None, 8, System.IO.Ports.StopBits.One);
   comms.protocol.versionInfoRxd += new lbcp.InfoReceivedEvent(addItem);
   comms.protocol.temperatureDataRxd += new lbcp.TemperatureReceivedEvent(protocol_temperatureDataRxd);
   comms.packetSentEvent += new comms.PacketSent(packetSent);
   comms.protocol.txQueueEmpty += new lbcp.EmptyTxQueue(progressComplete);
   comms.protocol.AcknowledgeReceivedEvent += new lbcp.ACKReceived(protocol_AcknowledgeReceivedEvent);
   this.FormClosing += new FormClosingEventHandler(Form1_FormClosing);
   this.mutex = new Mutex();



   comms = new comms("COM1", 9600, System.IO.Ports.Parity.None, 8, System.IO.Ports.StopBits.One);
I take it you can set up serial ports like this as there is no reference in the top of the code for Sysyem.IO.Ports will this decalre a comm port??

Glenn
 
UPDATE!! Found more code in a seperate file seems like you can declare it like that, but is darned odd!
« Last Edit: June 10, 2011, 06:59:54 am by GlennP »