• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Serial port (is Apple16X50Serial prevented from loading?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Serial port (is Apple16X50Serial prevented from loading?)


  • Subject: Re: Serial port (is Apple16X50Serial prevented from loading?)
  • From: Jens Bauer <email@hidden>
  • Date: Sat, 9 Nov 2002 01:12:44 +0100

Hi all,

On Tuesday, Nov 5, 2002, at 19:32 Europe/Copenhagen, Christian Weykopf wrote:

I just bought a PCI card, which contains 1 parallel interface (DB25) and 2 serial interfaces (DB9).
My plan is to program a PIC-controller, so I took the chance that I could find a driver for Mac OS X, even though card-package didn't tell me anything else than support for 7 different Windows platforms (?!??)
Now, I took a look at Apple System Profiler, and I noticed "Apple16X50Serial.kext 1.0.5 27 Jul 2002 10:42 PM (No description)
It appears that I'm in luck (if my guess is right), and I got the driver.

It seems to be a standard UART. Google for UART and 16550. You find lots of information about the chip.
IOKit is your friend. Read about it.
You can get the sources for Apple16X50Serial from the Apple Darwin site. Maybe IOSerialfamily is also interesting.

Christian gave me a hint:
---
Is there no /dev/tty.xxx or /dey cu.xxx for the card? Then you can use the device file.
http://developer.apple.com/techpubs/macosx/Darwin/IOKit/ DeviceInterfaces/AccessingHardware/
AH_POSIX_Serial/index.html
---

Now, this is pretty good, because now I can find out which part is missing.
I modified the above mentioned code, so that it looks for RS232 interfaces instead, and it appears that they do not get registered.

-Earlier, I downloaded Apple16X50Serial.kext source version 1.1, and tried moving it into the kext folder (ofcourse I backed up the existing ones), and it appears there are no differences to me.

Now.. I turned on debugging in the Apple16X50Serial.kext, and expected some kind of output, because I've already taken the IOKit tutorial found on this page...
http://www.opensource.apple.com/projects/documentation/howto/html/ KEXT_Tutorials/HelloIOKit.html

-The IOKit tutorial extension loads, and outputs debug information to the log. That's cool.

But when I look at the Apple16X50Serial.kext's log, I see *no* output.
-I believe that something is preventing it from being loaded, can anyone confirm this ?
I tried adding extra code myself, but with no results.


Love,
Jens
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Serial port (From: Christian Weykopf <email@hidden>)

  • Prev by Date: Re: ISP internet connection ...
  • Next by Date: Re: MoreSCF and masterPort
  • Previous by thread: Re: Serial port
  • Next by thread: In search of suitable Carbon networking API...
  • Index(es):
    • Date
    • Thread