Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jun 12, 2013, 06:54 PM   #1
waffles123
macrumors regular
 
Join Date: Feb 2009
Read data from serial ports via Tcl/Tk

I am having trouble with a tcl/tk program that works flawlessly on windows, but has trouble reading data via usb from a device when the tcl/tk program runs on a mac.

The device is supposed to send two integers to the computer every second, but the software cannot seem to recognize the device when connected to the usb.

When the tcl/tk program tries to open the file path to the usb device, I get an error that the program "cannot find a channel named /dev/tty.usb-serial-####".

The usb device shows up in /dev in terminal, and I am able to receive some data via the screen command, but I have been stuck at this point, and have unable to find a way to even open a stream to the device, let alone read it.

Any suggestions on how to get the tcl/tk program to read data from a serial port? (I've seen conflicting arguments on the internet saying it is and it is not supported)
waffles123 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
I/O data rates using Thunderbolt 1 devices on different ports vs. being daisy chained bxs Mac Pro 3 Feb 21, 2014 05:29 PM
Serial data over Audio (Mic in) xArtx iPhone/iPad Programming 6 Feb 16, 2014 10:49 AM
How do you make serial reads to devices wait for data to become available? StantonC Mac Programming 8 Jun 25, 2013 03:15 PM
iPad: Read/write data via wifi Stephen Valente iPad 1 Dec 3, 2012 12:17 AM
How to read SQLite data in child thread Narendar Singh iPhone/iPad Programming 3 Oct 4, 2012 11:51 AM

Forum Jump

All times are GMT -5. The time now is 12:15 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC