Help needed, example (serial port) streams module not working.

I am trying to make work the tblt.c example of a streams module on Solaris 8.
This sample is the one provided by Sun in it's Driver Dev. Kit.
My test program gets blocked in the I_PUSH ioctl (after having successfully
poped ttcompat and ldterm).
Debug prints in the module tell me that the tbltopen() stays in the loop
     * Now wait for it. Let our read queue put routine wake us up
     * when it arrives.
     while (tbltd->tbltd_flags & TBLT_IOCWAIT) {
          if (!qwait_sig(q)) {
               lwp_error = EINTR;
               goto error;
done, after
iocb = (struct iocblk *)mp->b_wptr;
     iocb->ioc_count = sizeof (struct iocblk);
     cb = (struct termios *)datap->b_wptr;
     cb->c_iflag = 0;
     cb->c_oflag = 0;
     cb->c_cflag = CREAD|CS8|B9600;
     cb->c_lflag = 0;
     bzero((caddr_t)cb->c_cc, NCCS);
     datap->b_wptr += sizeof (*cb)/(sizeof (*datap->b_wptr));
     mp->b_cont = datap;
     tbltd->tbltd_flags |= TBLT_IOCWAIT;     /* indicate that we're */
     tbltd->tbltd_iocid = iocb->ioc_id;     /* waiting for this response */
     (void) putnext(WR(q), mp);
(used to set baudrate, I suppose)
and only a Ctlr-C of my test prog. makes it return via
lwp_error = EINTR;
               goto error;
A few years ago, I had no trouble with the same Solaris 5 example.
and my hardware (tablet + cable) works fine on a Solaris 5 system.

darren,
thanks for your help here and over on comp.sys.solaris. ultimately the problem was portmon on ttya, and i think i know how it happened. the machine was set up with a keyboard and monitor, and ttya was enabled using admintool. later, with the machine headless, the console was changed over to ttya via eeprom, which produced the conflict i noted above.
solution:
# pmadm -l
PMTAG PMTYPE SVCTAG FLGS ID <PMSPECIFIC>
zsmon ttymon ttyb u root /dev/term/b I - /usr/
bin/login - 9600 ldterm,ttcompat ttyb login: - tvi925 y #
zsmon ttymon ttya u root /dev/term/a - - /usr/
bin/login - 9600 ldterm,ttcompat neo ttya login: - vt100 y #Terminal
# pmadm -d -p zsmon -s ttya
# pmadm -l
PMTAG PMTYPE SVCTAG FLGS ID <PMSPECIFIC>
zsmon ttymon ttyb u root /dev/term/b I - /usr/
bin/login - 9600 ldterm,ttcompat ttyb login: - tvi925 y #
zsmon ttymon ttya ux root /dev/term/a - - /usr/
bin/login - 9600 ldterm,ttcompat neo ttya login: - vt100 y #Terminal
# echo $TERM
sun-color
# svccfg
svc:> select system/console-login
svc:/system/console-login> setprop ttymon/terminal_type = "vt100"
svc:/system/console-login> exit
# echo $TERM
vt100
also see
http://www.bordergatewayprotocol.net/jon/helpful_stuff/solaris/solaris-advanced-sysadmin-guide/ch09/181-186.html

Similar Messages

  • Help needed in serial port connection

    I tried to write a midlet such that an emulator can get images from a webcam which shall is attached to the serial port of a cell phone. But I always get the following error message:
    IOException:javax.microedition.io.ConnectionNotFoundException: The requested protocol does not exist comm:0;baudrate=9600
    My code appears as follows:
    InputConnection cc;
    DataInputStream inc;
    static byte img_data[];
    static int frame_len = 30000;
    public void start()
    try
    System.out.println("I am here:");
    cc = (StreamConnection)Connector.open("comm:0;baudrate=9600");
    //************* I can't pass through here
    //I also try to use
    //cc = (StreamConnection)Connector.open
    //("comm:0;baudrate=9600;bitsperchar=8;stopbits=1;parity=none");
    // to do it, but get same problem
    inc = new DataInputStream(cc.openDataInputStream());
    inc.readFully( img_data);
    catch (IOException e)
    {   System.err.println("IOException:" + e);  }
    finally
    // free up the I/O stream after use
    try { if (inc != null ) inc.close(); }
    catch (IOException ignored) { System.err.println ("Exception:" + ignored); }
    // free up the connection after use
    try { if ( cc != null ) cc.close(); }
    catch (IOException ignored) { System.err.println("Exception:" + ignored); }
    System.out.println("I am ok:");
    Does anybody know some reasons that probably lead to this error.
    thanks in advance

    well, as i know, midp 1.0 does not support serial connections, actually, any connection type other than http connection.
    this is my problem noeadays too, is it practically possible to use serial connection under midp.
    have you had any improvements since than?

  • I need help with my serial number - it's not working. The wizard is asking for 24 numbers - I only have 18?

    The serial number is on the back of the box my DVD came in.

    If you only have 18 numbers that's not a serial number. Try this first:
    Find your serial number quickly

  • HELP!!! Photo stream is not working since i got iphone 5

    since I wiped my iphone 4s and bought an iphone 5 my photo stream seems to have stopped working, if I take a picture on my iphone 5 it moves to the photo stream within the phone but is not uploaded on to my ipad or pc, if I take a picture on my ipad it does not move to the photo stream at all? All setting seem to be correct, i.e. photo stream is on and the e-mail address is correct on all devices, what has gone wrong?

    Yes iCloud enabled and all accounts are the same, I just updated the software on my iPad to 6.0.1 from 6.0.0 and the pictures are slowly coming in so don't know if that had something to do with it? Very strange?

  • Help needed - Headers and footers of subtemplates not working.

    Hi,
    I need to call 3 different subtemplates from the main template. Headers and footers of these subtemplates are differenet. When i call these subtemplates headers and footers is not getting displayed.
    Can anyone please suggest how to display the headers and footers of subtemplates when called from another template.
    Thanks.

    Hi,
    Thanks for your reply. Do you mean to call the headers and footers from the main template or in the sub template. I cant call in the main template because the headers and footers are different for each template. I used micrsosoft headers and footers in sub templates. But it didnt work. So created header and footer templates in the sub template and called them from the same sub templates using the call: statements. But when i run the prog am getting the below warning.
    Beginning post-processing of request 35618954 on node DSOTEST6HE at 15-FEB-2010 03:37:41.
    Post-processing of request 35618954 failed at 15-FEB-2010 03:37:42 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Note: am running the running prog from XML Publisher responsinilty and not from BIEE standalone.
    Thanks.

  • Hello Forum, you need a serial ports for software icprog to program EPROM and Pic

    Hello Forum, you need a serial ports for software icprog to program EPROM and Pic.I was wondering if this or a similar card is compatible with my Lenovo Desktop h50-50 -->  -> PCI-E 2 serial ports and 1 parallel port PCI-Controller Card 3 Port ► http://fli.zz.mu/cut/scheda-pci-e-2-porte-seriali-1-porta-parallela .
    My my Lenovo Desktop h50-50 upgrade to win 10,  If it is not compatible to win 10. I could use it too virtualizing win Xp? Thank since TIME FOR ANSWERS, I apologize for my bad English.
    THANK Joe  

    Unfortunately, no Sanyo phones are iSync compatible so you will not be able to synchronize your Contacts and Calendars with the phone.
    Also, you may have problems with the Bluetooth adapter you purchased, as the only one officially supported by Apple for use with Macs is the D-Link DBT-120.
    The Official Apple list of iSync compatible devices is here:
    http://www.apple.com/macosx/features/isync/devices.html
    It's always a good idea to check this list before purchasing a new phone.
    Other phones are supported by third party plugins from here and here. But still no Samsung, Sanyo, LG etc. who all use thier own proprietary syncing protocols rather than the industry standard SyncML. These manufacturers also don't provide Mac software with their phones like the do for Windows users.
    I'm afraid you're not going to have much luck if you stick with the Sanyo. I would seriously consider taking it back and swapping it for one of the handsets on the above linked pages. Personally I would recommend a Sony Ericsson model. I've always had excellent Mac compatibility with those.

  • Serial communicat​ion does not work in an executable​.

    I have created a vi that communicates with a serial device. It works fine on the computer that it was creatd on. I then created an application and then built an installer to put it on another machine. The second machine does not have LV 2009 on it. Once installed on the machine the vi does not work. When it runs on the computer with LV 2009 the the com port control is a pull down, and it lists all comports on the computer and then you select the one you want to connect with. The computer that the vi is installed on does not list the available com ports. This leads me to believe that there is no serial comms support in the installable version. What do I do now?? I noticed that you can add "Additional Installers" when you build the installer and one of them is NI-Serial 3.4. I try to add this and a message said that it had to get, so I didn't use it thinking it was more than I needed and that standard com port driver would be included. Am I wrong here or am I missing something else?? All help is greatly appreciated.
    [email protected]
    Solved!
    Go to Solution.

    claudio.rossi wrote:
    Hi  at all!!
    I'm new in NI forum.
    I have one similar problem. My VI communicate with external device on serial port. The VI work very well, but when I create executable (.exe) file with Labview application builder (on Labview 2010) the .exe don't use serial port!!! The executable run perfectly (nothing error or warning by the application builder), but the serial data on selected COM port  isn't send!!! Also on the PC where I developed the VI!!!
    What do you mean by your last sentence?  Are you trying to say that you can't run your executable even on the same computer on which you developed the application?  If so, was LabVIEW open when you tried to run it?  Try quitting LabVIEW; if you had previously run your VI and didn't close the serial port, LabVIEW might have kept it open, which would prevent the executable from accessing it.  If the executable won't run on the development machine it's unlikely to be resolved by installing VISA since you need that installed for the VI to work properly in the development environment.  Do you have any error handling in your code that would indicate if an error occurred after trying to write to the serial port (an indicator on the front panel, or a call to Simple Error Handler)?

  • F4 help on Parameter for ddic domain does not work

    Hello,
    I try:
    Parameters:  pa_waers TYPE WAERS.
    WAERS is a ddic data element for currencies and also a  domain with this name exists. The domain WAERS has a check table TCURC.
    When I press F4 for my field PA_WAERS in the Selection Screen, I assume a value help from the check table TCURC.
    I activated and re-generated my coding (as mentioned in the ABAP-Keyword help for "PARAMETERS") but it still does not work.
    Does anybody has a clue why this does this not work.
    The same thing is for a parameter:
    Parameters ..... type CTU_MODE.
    Domain CTU_MODE has value Fields (A, E, B) but also here on my program no F4 help occurs.
    Thanks in advance
    Stefan Berger

    A value table is assigned to a domain.  It becomes a check table when a foreign key relationship is established for a field in a table.  The field uses the data element and the data element uses the domain.
    For example, if you try:
    PARAMETERS: PA_WAERS TYPE EKKO-WAERS.
    You will get the F4 help you are looking for.  If you use tran SE11 and view EKKO, find field WAERS, use tab Entry Help/check and you will see that table TCURC has been established as a check table.  You can use the foreign key button to see the relationship that has been established between EKKO and TCURC.
    Also, domains cannot be used to type a field.  Your reference to CTU_MODE must be referring to a Data Element.  I tried this in a 4.7 system and the F4 works for me.  What version are you using?

  • Disable port monitoring task not working

    Hi,
    On SCOM 2012 SP1 the task "disable port monitoring" is not working. When I run it shows a success message but the port\interface keeps to be monitored on scom, the ports that I'm trying to disable the monitoring are members of the Relay Network
    Adapters Group. Is there any way to fix this task or manually stop the monitoring of the port\interface ?

    Hi Carlos,
    By coincidence I ran into the same problem today.
    It can be disabled by creating an override where you target the specific port object and set the parameter enabled=false.
    I am not 100% sure this is the correct way but it works. I am assuming the disable port does something similar but I have to open up the task to confirm this.
    For now I hope this helps.
    Regards Marthijn van Rheenen
    Blog: Heading To The Clouds

  • My IPad cannot download live Tv from skygo. I have no problem with my lap top so I assume the broad band is okay. Can anybody suggest why the live streaming will not work on my iPad one.

    My IPad cannot download live Tv from skygo. I have no problem with my lap top so I assume the broad band is okay. Can anybody suggest why the live streaming will not work on my iPad .

    Are you using the Sky Go app to try and watch it ? If so are you logged in with your Sky account ?
    If you are using the app then you could try closing the app completely and see if it works when you re-open it : from the home screen (i.e. not with Sky Go 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Sky Go app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    If that doesn't work then you could try a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • The Port : 6001 is not working in the system

    Hi Experts,
    OS   :  AIX 6.1
    SAP :  SAP Netweaver EHP1
    In the OS level the Port : 6001 is not working and giving the out put as...
    pb2adm> telnet abcprdpb2 6001
    Trying...
    telnet: connect: A remote host refused an attempted connect operation.
    Virtual host : abcprdpb2
    As it is the BI java stack system & I configured the SMD & wily in the system. From the BI java stack system the wily agent is not working and it uses the port : 6001.
    Now the issue is regarding to the port : 6001
    when telnet in the same system which is Virtual host : abcprdpb2 is not working and which I have given the output above. It is working when I telnet to the other systems. Please see the output  below...
    pb2adm>  telnet abcprd001 6001
    Trying...
    Connected to abcprd001.
    Escape character is '^]'.
    Connection closed.
    From other system  virtual host : abcprd001
    As I have checked with the firewall team and said it is fine in the system and same us AIX team also. But still port : 6001 issue is not resolved in the Virtual host : abcprdpb2
    Can you please let me know how to open the port : 6001 in the Virtual host : abcprdpb2 and also how we can confirm that port : 6001 is opened or blocked in the Virtual host : abcprdpb2.
    Thanks & Regards,
    Sandeep.

    Hi,
    The both mentioned virtual systems are in different LPAR's (Physical host).
    Already I have checked the /etc/services and looks every thing is fine in the file. I have also checked the file inetd.conf  and I didn't find any thing # on the Telnet.It seems every thing is fine in the both files.
    Can you please look in to it and provide some thing which I have to look in the OS level.
    Thanks & Regards,
    Sandeep

  • I purchased PSE 13 but have a Vista OS. It was suggested in this chat room that I download PSE 12. I did that & installed. The serial # for 13 does not work. Any thoughts on how I can get a number for PSE 12?

    I purchased PSE 13 but have a Vista OS. It was suggested in this chat room that I download PSE 12. I did that & installed 12.
    The serial # for 13 does not work. Any thoughts on how I can get a serial number for PSE 12?

    Hi
    There is a newer version of Resolution+ Plug-in released for an Qosmio X series
    [Resolution+ Plug-in v 1.1.2004|http://eu.computers.toshiba-europe.com/innovation/download_driver_details.jsp?service=EU&selCategory =2&selFamily=381&selSeries=231&selProduct=7506&sel ShortMod=null&language=13&selOS=all&selType=400&ye arupload=&monthupload=&dayupload=&useDate=null&mod e=allMachines&search=&action=search&macId=&country =all&selectedLanguage=13&type=400&page=1&ID=82406& OSID=30&driverLanguage=42]
    try it out...
    If it has not been installed properly, try rebooting your computer and reverify.

  • HT4972 I am using iphone 3g and it is having currently IOS 4.1 version,till what IOS version can i upgrade ? please help me many of my apps are not working esp whatsapp.

    am using iphone 3g and it is having currently IOS 4.1 version,till what IOS version can i upgrade ? please help me many of my apps are not working esp whatsapp.

    iOS 4.2.1 is the latest version of iOS for the 3G.
    Facebook and Whatsapp both require 4.3 or higher.
    If you want to use those apps, either use the old version that should be in your iTunes library or upgrade the hardware to a 3GS or newer device.

  • Photo Stream is not working in Apple TV.

    After upgrading to 5.1, Photo Stream is not working.  An "Unable to sign in. The iCloud Terms of Service have changed" indication appears when trying to connect.
    What should i do?
    Thanks.

    First thing first: are you logged in with the same Apple ID on the iPhone and the Apple TV?

  • Function Module not working for old Role

    Dears
    Function Module not working for old Role
    Function Module: /VIRSA/BAPI_AE_USERS_FOR_ROLES
    Before EHP4 upgrade this functional module working fine, but after updated users are not visible.
    We have chekced if the users are assigned directly users are visible but indirect (Position Based) assignment users are not apprearing.
    Pl check the fucntion module with given roles below and identify the root cause,
    EP_TRVL_ALL_CAB     - Old Role
    EP_TRN_TRVL_DRGC_V2 - New Role
    Regards
    Krishna Mohan CH
    9704500717

    Krishna,
    I do not think this BAPI is meant to be called by anyone but the application using it, and its functionality may therefore change without notice.
    What are you trying to achieve? Maybe there's a better way to do that...
    Frank.

Maybe you are looking for