Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!liuida!indic.se!zap From: zap@indic.se (Jonas Petersson) Newsgroups: comp.sys.hp Subject: Re: read ID-MODULE series# Message-ID: <1991Jan30.173017.7036@indic.se> Date: 30 Jan 91 17:30:17 GMT References: <3104@unccvax.uncc.edu> Organization: Indic Computerised Air Quality Surveillance Lines: 24 In article <3104@unccvax.uncc.edu> cs00wsc@unccvax.uncc.edu (Wen-Shiang Chin) writes: > Does anyone know how to read the series number of >a ID-MOUDLE (a HP-HIL device) by using C under Hp-UX 7.03. dev=open("/dev/idmodule", 0); ioctl(dev, HILSC, buf); This will bring the id into buf (9 chars long). You might want to decode it since it is packed, but that really isn't needed - it's unique anyway. (Note: You ought to check return values etc, and your id module might not be /dev/idmodule) Regards / Jonas -- /// "Are you THE Zaphod Beeblebrox ????" # zap@indic.se __ /// # Air Quality Surveillance \\\/// "No, just A Zaphod Beeblebrox. # "I can feel it coming \/// Didn't you hear - I come in sixpacks !" # in the air..."