Is smserialport broken or am I doing something wrong?

I'm trying to configure a serial port and I keep getting blown off by smserialport. I have tried using the SMC gui and that shows no ports and gives me no actions to add a port. So I went back to the command line :
Firstly, it won't list ports :
# ./smserialport list -u root -p xxx --
Loading Tool: com.sun.admin.serialmgr.cli.SerialMgrCli from sinister
Login to sinister as user root was successful.
Download of com.sun.admin.serialmgr.cli.SerialMgrCli from sinister was successful.
An internal inconsistency was detected at NoListData. Exiting.
So I assume it was badly coded and noone ever considered that there wouldn't be a port, so forgot to have code to deal with that.
I have devices ttya and ttyb :
# ls -l tty?
lrwxrwxrwx 1 root root 26 Sep 2 18:37 ttya -> ../devices/isa/asy@1,3f8:a
lrwxrwxrwx 1 root root 26 Sep 2 18:37 ttyb -> ../devices/isa/asy@1,2f8:b
So, I try and configure one of those for a terminal
(I have seen a link on Sunsolve for adding a serial port with smserialport, but I don't have enough privs to read it...)
What I have tried so far is based on the man page :
# ./smserialport configure -u root -p xxx -- -n a -b 19200 -t vt100
Loading Tool: com.sun.admin.serialmgr.cli.SerialMgrCli from sinister
Login to sinister as user root was successful.
Download of com.sun.admin.serialmgr.cli.SerialMgrCli from sinister was successful.
Error: Invalid serial port name: a
Usage:
smserialport configure [-H host:port] [-u user] [-p password] [-r rolename] [-l rolepassword] [-D domain] --
-n port_name [-x device=terminal] [-b baudrate] [-t terminal_type] [-l login_prompt] [-c Comment]
-n port_name [-x device=modemdialin] [-b baudrate] [-t terminal_type] [-l login_prompt] [-c Comment]
-n port_name [-x device=modemdialout] [-b baudrate] [-t terminal_type] [-l login_prompt] [-c Comment]
-n port_name [-x device=modemdialinout] [-b baudrate] [-t terminal_type] [-l login_prompt] [-c Comment]
-n port_name [-x device=initializeonly] [-b baudrate] [-t terminal_type] [-l login_prompt] [-c Comment]
So what am I missing? It looks to me like it can't detect my serial ports in /dev, which I can do with an 'ls' command.
Thanks,
Max

So, I figured it out.
Sometimes I want the exact opposite order than is (reliably) possible given the table sort algorithm.
If, in a table sort function, one replaces:
return order
with
return not order
(in a perfectly working sort function), it reverses the order of the sort but may not handle the last element properly.
The reason is this:
The table sort return value is determining whether to swap two values or not to swap them, it is *not* determining absolute ordering - if it were, then returning true would mean order one way, and returning false would mean order the opposite way.
Enough talk - test plugin: http://www.robcole.com/_temp/TestLrPlugins/Scratch_LrPlugin_0.0.zip
(Instructions: In plugin manager, click 'Local Test' button. Source code is in ExtendedManager.lua (tableSortTest function) and Framework/Data/Table.lua (reverseSortCopy method).
Rob

Similar Messages

  • Table.sort - is it broken, or am I doing something wrong?

    sometimes, what should be the last element is not being put in the correct position (last) (all others are in the correct order) - no matter what I do, and I have to resort to this function, which works flawlessly:
    function Table:sort( t, func )
        local tc = self:copy( t ) -- make shallow copy
        tc[#tc + 1] = "___dUmMy___" -- 3 underscores on each side.
        table.sort( tc, func )
        local index = 1
        for i = 1, #tc do
            if tc[i] ~= "___dUmMy___" then
                t[index] = tc[i]
                index = index + 1
            else
                -- skip it.       
            end
        end
        t[#tc] = nil -- shouldn't be necessary, but cheap insurance...
    end
    i.e. add an extra dummy element to the table, then sort it using the same sort function, then remove the dummy element.
    Its like table.sort makes one iteration too few, unless the dummy is there to force it, or something...
    This is driving me crazy!
    Any ideas?

    So, I figured it out.
    Sometimes I want the exact opposite order than is (reliably) possible given the table sort algorithm.
    If, in a table sort function, one replaces:
    return order
    with
    return not order
    (in a perfectly working sort function), it reverses the order of the sort but may not handle the last element properly.
    The reason is this:
    The table sort return value is determining whether to swap two values or not to swap them, it is *not* determining absolute ordering - if it were, then returning true would mean order one way, and returning false would mean order the opposite way.
    Enough talk - test plugin: http://www.robcole.com/_temp/TestLrPlugins/Scratch_LrPlugin_0.0.zip
    (Instructions: In plugin manager, click 'Local Test' button. Source code is in ExtendedManager.lua (tableSortTest function) and Framework/Data/Table.lua (reverseSortCopy method).
    Rob

  • I cannot change from grid view to list view when i contol click on the downloads folder on the dock am i doing something wrong? if so how do i change the ?view in the dock

    when i contol click on the downloads icon in the dock i get the gris view . I thought if you control click, you are able to change the view to fan or list. am I doing something wrong.? Icheck to make sure the contol key is working by doing a screenshot and it works there. What am I doing wrong?

    Needs to be a Stack ?

  • I have added photos to My Photo Stream on my PC (Windows 7). They appear in the Uploads folder instead. They do not upload to iCloud. Am I doing something wrong?

    I have added photos to My Photo Stream on my PC (Windows 7). They appear in the Uploads folder instead. They do not upload to iCloud. Am I doing something wrong?

    Unfortunately, photo stream on a PC is iffy at best.  Many people have problems getting it to work properly, including myself.  A work around would be to use an app like PhotoSync on your PC, which can send photos wirelessly to the camera roll on any of your iOS devices on the same wifi network.  Once in the camera roll, you iOS device will be added to your photo stream.

  • Iphone 4s wont sync when I connect it to the pc( not apple). It is connected as it comes up on itunes but when I try to sync it with apps/ music etc it wont. I am doing something wrong or is it a mistake with the phone.

    My iphone 4s wont sync when I connect it to the pc( not apple). It is connected as it comes up on itunes but when I try to sync it with apps/ music etc it wont. I am doing something wrong or is it a mistake with the phone. I am still able to download apps and music from itunes on my phone though.
    I already restored it but that didn't help.
    TIA for any replies.

    iPod touches or any iDevices from Apple sync only to one computer. If you sync to a different computer, all your music will be replace with the music from the new computer's iTunes. If the music were purchased from iTunes, you can re-download them again otherwise the music on iPod touch will be deleted. Do you have iTunes backup? 

  • I have backed up my old phone to itunes, however, when I try to restore data to new phone it is saying the password is incorrect but I can get into my itunes account with my password so I am doing something wrong?

    I have backed up my old phone to itunes, however, when I try to restore data to my new phone it is saying the password is incorrect but I can get into my itunes account with my password so I am doing something wrong?

    I'm having this EXACT same problem with my iPhone 4, and I have the same computer stats (I have a Samsung Series 7)

  • I have a Windows 8.1 and it's even running slow.  I'm a complete novice with computers (I've only had this one for 3 weeks) and I'm probably doing something wrong, but I haven't a clue what....

    I have a Windows 8.1 and it's even running slow.  I'm a complete novice with computers (I've only had this one for 3 weeks) and I'm probably doing something wrong, but I haven't a clue what.
    The tools are not responding when I try to use them.  Some of them work sometimes, but not others and some don't work at all.  I'm in a design class online and I need these tools desperately.  I have an assignment due Monday and I'm losing the whole weekend because Tech Support is only open M-F!
    Any help anyone can give me will be appreciated.
    Thanks,
    Rose Ireland

    Maybe these links provide some pertinent information.
    Optimize performance | Photoshop CS4, CS5, CS6, CC
    Photoshop: Basic Troubleshooting steps to fix most issues

  • HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    HELP! Downloaded LR5 and when open it shows an error message saying error while trying to change from modules and I can not even import photos. Am I doing something wrong?

    I have the same problem, and the solutions in   Error changing modules | Lightroom do not work.  Even uninstalling and reinstalling a new copy did not solve the problem.  As anyone got an idea what other lingering files might be causing the problem?

  • After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    After creating a new slideshow I export it with the  setting HD 1080p it is then saved as a .mov i then create a dvd in idvd and the quality is not  as good as the original photo's when viewed on the monitor or a TV, am i doing something wrong?

    DVD's are only 640 x 480 (interlaced), so yes, the quality is not nearly as good.  You should probably create your .mov in DV format to best match the DVD format

  • Is this a bug in ipod software or am i doing something wrong?

    I got my ipod video a few weeks ago and was excited to be able to carry all 7000+ songs around in one place.. but then i ran into this problem and i'm not sure if it's a bug or if i'm doing something wrong.
    let's say i have exactly one album by an artist.. and i also happen to have some singles from the artist, with no album set... (i prefer not to have albums set for songs i don't have the entire album for, to keep from having to sort through a truckload of albums i don't completely have).
    when i browse by artist, and i select the artist, only the songs in the album shows up, all the non-album labeled songs are not visible! the same thing happens when i choose by genre..
    in fact the only way to find those songs not bound to an album is to select them from the song list.. and having to scroll through 7000+ songs to find one really bites..
    curiously enough, if there is two or more albums, then i can find the songs without albums.. definately sounds like a bug to me.. the software for the ipod video is only at v1.0, maybe they'll fix this (hopefully other ipods don't have this problem, i have no way of knowing though).
    one work around i have tried is to set an empty album for the artist's song that has none, but i mean i don't want to do that for all my non-albumed songs because i'm interested in preserving the timestamp of songs (to know when i got them) and i can't reasonably search for songs that have exactly one album to just set those..

    when i go to Music > Artist > All, as you suggested, i see all the albums i have listed. doesn't really relate to my problem with artists with songs in one album, as well as song w/o album set, and the latter not showing up.
    but that reminds me, why is it when i go to the All section from a particular artist and they do have more than one album (or even no albums), the order of the songs is in the order they are in the albums.. if i wanted the order it is on albums, i would have selected that album for example.. it would be nice if the songs were in alphabetical order when you're NOT browsing by album, making a particular song easier to find (what if you have thirteen albums for example and u aren't sure which album a song is on, now you have to scroll through a seemingly random ordered list to find one song, alphabetical would be SOOOO helpful!)

  • I just purchased Adobe Acrobat in order to convert a pdf to an excel program but it appears that it will only convert to Word, not excel? Am I doing something wrong or should I cancel my subscription?

    I just purchased Adobe Acrobat in order to convert a pdf to an excel program but it appears that it will only convert to Word, not excel? Am I doing something wrong or should I cancel my subscription?

    What happens when you convert to excel?

  • Using the crop tool in Lightroom 5 I can only move and crop my photos from the top. Am I doing something wrong?

    I am new to Lightroom 5 and find I cannot crop my photos as easily as I did in iPhoto. I would like to be able to drag them if I choose a custom size or crop them from the bottom as well as from the top but my two sided arrow disappears when I work at the bottom of the photo. Am I doing something wrong?

    I would suggest you trash the prefs.
    Quit Lightroom
    Launch Finder and find the user Library by clicking the Go menu whilst holding down the Optn (alt) key (n.b. the library is hidden until you press the optn key) and inside the Library folder select the preferences folder. Then trash the following file:
    com.adobe.Lightroom5.plist
    Then re-launch Lightroom
    It’s then worth clearing each cache. Go to the top menu bar:
    Lightroom >> Preferences >> File Handling (tab)
    Click the Purge Cache button under Camera Raw Cache Settings; then click the Purge Cache button under Video Cache Settings. Finally click OK.

  • Ive just signed up for the adobe photoshop pack, i use a mac, when i click download, nothing is happening..  Am I doing something wrong?? When I try and open the software I already had from trial it says its expired,  or i need to use a serial number... H

    Ive just signed up for the adobe photoshop pack, i use a mac, when i click download, nothing is happening..  Am I doing something wrong?? When I try and open the software I already had from trial it says its expired,  or i need to use a serial number... HELP Anyone else experienced this?

    If there is an option to "license this software", and it takes you to a sign-in page with username and password (not a serial number) - then just go ahead and sign in.
    If it insists on a serial number you need to uninstall the trial. Then try to download again.

  • IPhoto won't delete the photos from my iphone once I have imported them and indicated to delete the photos from my phone.  Am I doing something wrong?

    I have imported several hundred photos from my iPhoen 5C into iPhoto library.  I selected yes to delete them from my iPhone but the photos remain on the phone.  Am i doing something wrong.  I don't want to pay apple a fee to get this answered via their support system.  This should be straight forward, shouldn't it?  Thanks.

    Are you asking about iCloud Photo Library (Beta) as described in: iCloud Photo Library beta FAQ - Apple Support   ?
    In that case you will still see all photos on your iPhone, even after uploading the Photos to the iCloud Photo Library.  The photos on your iPhone may be light-weight optimized previews, if you have the setting
    Settings > iCloud > Photos or Settings > Photos & Camera > iCloud Photo Library > Optimize [device] Storage   enabled.
    But as long as you have enough free storage, will the your iPhone keep the full resolution versions of the photos you access most frequently.

  • Why can't i access my Apps that I downloaded through iTunes. I believe I'm doing something wrong and not that the issue is iTunes itself

    Occasionally ill try downloading an App through my Macbook Pro 13.5 & it directs me to iTunes to be downloaded. So, I go to iTunes and download the App I need. For instance, Amazon. I go into 'My Apps' in iTunes and try clicking on one of my DL Apps, but nothing happens. Why can't I access the Apps, which I downloaded through iTunes.?I believe I'm doing something wrong and not that the issue is iTunes itself.  I have OS X Yosemite 10.10.1. I am due for an upgrade from that software and also an upgrade for iTunes as well, but that shouldn't be the problem. I've tried everything on my end to troubleshoot. I don't really have the time during the day to call in and troubleshoot, so thats why I'm asking the community. Please help with this problem if anyone can. Thank You!

    Once you download an iOS app, you cannot run that app from the computer. That can only be run from an iOS device. You cannot download Mac Apps from the iTunes App Store, those are downloaded from the Mac App Store. Two different places. If you want a Mac app that will run on your Mac, you need to download that from the Mac App Store. iTunes App Store only has iOS apps that work on iOS devices, iPhone, iPad, or iPod.

Maybe you are looking for

  • Binding To a Propery - Inside an ArrayCollection Problem

    I'm trying to make an editor where users can select an editable item from a list (each item in the list might be a different type of editable object). When the user selects an item from the list its editable properties show up in a panel with a suita

  • Taking time to execute if where clause have  parathesis

    SELECT t0.CONVICTION_ID, t0.JDO_CLASS_TXT, t0.CONVICTION_CD, t0.CONVICTION_DT, t0.CONVICTION_DESC_CD, t0.CONVICTION_LEVEL_CD, t0.DRIVER_ID, t0.HIST_NUM, t0.LAST_UPD_DT, t0.REPORT_ID, t0.SOURCE_CD, t0.APPEAL_END_DT, t0.CASE_NUM_TXT, t0.CGI_VIOLATION_C

  • URGENT PLEASE HELP: iTunes Will Play Songs With No Sound.

    Hello all. I recently did the following and significantly screwed up my iTunes: -Tried to move my directory to an external hard drive. -This didn't work, so I then had to reload my iTunes. -I did this by doing the standard copying the .xml library fi

  • HT5463 do not disturb still rings

    my phone still rings between the time i set the do not disturb. i allowed no one to call, but it still rings. i have an iphone 5 iOS6

  • AWM download(s) from OTN fail -- no zip file found

    The AWM download link(s) on OTN all seem to be broken at this point (Nov 13). On the BI & DW Tech Center page (( http://www.oracle.com/technology/tech/bi/index.html )) > Downloads > AW Manager, the link points to a 10.2.0.1.0A version on "download.or