Using Serial as user

Hello!
I need to read and write some data by serial. That was fine until last update (after at least 4 or 5 weeks), then the java GUI won't run in sudo mode. Ok, maybe it's a security issue, but in normal user mode i can't use the serial.
I've found some guide, but they give different groups to user... what's the best (or at least working) way?

I have usb to serial converter and udev makes /dev/ttyUSB0 device node(or symlink, I haven't checked which) automatically and sets it permissions and owner group. You probably have to make a udev rule for your usb-serial device, I have never made udev rules so I can't help more.
Last edited by ak-89 (2010-09-14 19:16:35)

Similar Messages

  • I still can't get a redemption code it won't accept my serial number what happened to Adobe it used to be user friendly

    I still can't get a redemption code it won't accept my serial number what happened to Adobe it used to be user friendly

    Bentnote if you are unable to redeem your redemption code then please contact Costco.
    If you were provided a serial number then please register it under your account at http://wwww.adobe.com/.  You can find more details regarding locating and registering your serial number at Find your serial number quickly - http://helpx.adobe.com/x-productkb/global/find-serial-number.html.

  • I pull fiftyfour bytes of data from MicroProcessor's EEPROM using serial port. It works fine. I then send a request for 512 bytes and my "read" goes into loop condition, no bytes are delivered and system is lost

    I pull fiftyfour bytes of data from MicroProcessor's EEPROM using serial port. It works fine. I then send a request for 512 bytes and my "read" goes into loop condition, no bytes are delivered and system is lost

    Hello,
    You mention that you send a string to the microprocessor that tells it how many bytes to send. Instead of requesting 512 bytes, try reading 10 times and only requesting about 50 bytes at a time.
    If that doesn�t help, try directly communicating with your microprocessor through HyperTerminal. If you are not on a Windows system, please let me know. Also, if you are using an NI serial board instead of your computer�s serial port, let me know.
    In Windows XP, go to Start, Programs, Accessories, Communications, and select HyperTerminal.
    Enter a name for the connection and click OK.
    In the next pop-up dialog, choose the COM port you are using to communicate with your device and click OK.
    In the final pop
    -up dialog, set the communication settings for communicating with your device.
    Type the same commands you sent through LabVIEW and observe if you can receive the first 54 bytes you mention. Also observe if data is returned from your 512 byte request or if HyperTerminal just waits.
    If you do not receive the 512 byte request through HyperTerminal, your microprocessor is unable to communicate with your computer at a low level. LabVIEW uses the same Windows DLLs as HyperTerminal for serial communication. Double check the instrument user manual for any additional information that may be necessary to communicate.
    Please let me know the results from the above test in HyperTerminal. We can then proceed from there.
    Grant M.
    National Instruments

  • Goods reciept through MB31 against production order using serial number

    Dear ALL,
    We are using MB31 for goods receipt against production order using serial number.
    First we do confrmation by tcode co11 and then recieve the material by mb31 against the order.
    I want that sysstem should not allow good reciept by mb31 more than the confirmation done in co11.
    Please suggest.
    regards,
    Pradeep

    Hi,
    There are two ways to control this problem; 1) User Exit    2) BADI
    1) User-Exit
    Enhancement: MBCF0002
    Function module: EXIT_SAPMM07M_001
    Code for your copy pasting in the source code of ZXMBCU02.
    Remember to activate the program. In SMOD enter the enhancement, press F8 and then click on activate button.
    *& Include ZXMBCU02
    data it_afvv like afvv occurs 0 with header line.
    tables: afvv, afko, afpo.
    data tot_gr like mseg-menge.
    If i_mseg-bwart = '101' and i_mseg-aufnr is not initial.
    select single * from afko where aufnr = i_mseg-aufnr.
    select * from afvv into table it_afvv where aufpl = afko-aufnr.
    sort it_afvv by aplzl descending.
    read table it_afvv index 1.
    select single lmnga from afvv into afvv-lmnga where aufpl = afko-aufnr and aplzl = it_afvv-aplzl.
    select single * from afpo where aufnr = i_mseg-aufnr.
    tot_gr = afpo-wemng + i_mseg-menge.
    if tot_gr > afvv-lmnga.
           MESSAGE 'GR Qty greater than Confirmation Qty of the last operation' TYPE 'E'.
    Endif.
    endif.
    2) BADI
    Implement the BADI for WORKORDER_GOODSMVT in this there is method
    MANUAL_GOODS_RECEIPT under that
    write you code here
    if_ex_workorder_goodsmvt~manual_goods_receipt.
    endmethod.
    Technical Logic
    Check the confirmation qty in AFVV table with production order get the last operation confirmation qty and subtract the Delivered qty. If this is Greater than or equal to the GR Qty entered in the screen allow the posting or through Error.
    Tables: S022, AFPO, AFKO, AFRU, AFVV
    Regards,
    Sankaran

  • How to look up iphone specs using serial number online?

    I heard there is a way to look up any iphone or any apple product using serial number, yea? how?
    Also if i'm buying a used apple product and wanna make sure its not stolen, can i check that online?
    Very truly,
    New user

    I thank you for your reply although that's review for your Apple warranty status and eligibility for support and extended coverage.
    I was aiming more for complete specs of an iphone or any apple product.              

  • Query to find out the time used by an user for an application

    Hello All,
    I want to know the query to find out the whole time used by the user for an application. Please view the below data
    Employee:
    SNO EMP_ID EMP_NAME EMP_DATE LOGIN_TIME LOGOUT_TIME
    1 10 Visu 21-Nov-2010 06:30:00 07:30:00
    2 10 Visu 21-Nov-2010 06:40:00 07:20:00
    3 10 Visu 21-Nov-2010 06:50:00 07:50:00
    4 10 Visu 21-Nov-2010 07:30:00 08:30:00
    5 10 Visu 21-Nov-2010 09:30:00 10:30:00
    By checking the above data we can say that the total time Visu used the application is
    8.30 - 6.30 (From 1,2,3,4 records) = 2hrs
    10.30 - 9.30 (Based on 5th rec) = 1hr
    So the total time Visu used the application would be 3 hrs = 180 mins.
    Could you please help me in getting the result from that data using a query?

    odie_63 wrote:
    I think it may be solved with analytics too.
    with t1 as (
                select 1 sno,10 emp_id,'Visu' emp_name,'21-Nov-2010' emp_date,'06:30:00' login_time,'07:30:00' logout_time from dual union all
                select 2,10,'Visu','21-Nov-2010','06:40:00','07:20:00' from dual union all
                select 3,10,'Visu','21-Nov-2010','06:50:00','07:50:00' from dual union all
                select 4,10,'Visu','21-Nov-2010','07:30:00','08:30:00' from dual union all
                select 5,10,'Visu','21-Nov-2010','09:30:00','10:30:00' from dual
         t2 as (
                select  emp_id,
                        emp_name,
                        emp_date,
                        to_date(emp_date || login_time,'DD-MON-YYYYHH24:MI:SS') login_time,
                        to_date(emp_date || logout_time,'DD-MON-YYYYHH24:MI:SS') logout_time
                  from  t1
         t3 as (
                select  t2.*,
                        case
                          when login_time < max(logout_time) over(
                                                                  partition by emp_id,emp_date
                                                                  order by login_time
                                                                  rows between unbounded preceding
                                                                           and 1 preceding
                            then 0
                          else 1
                        end start_of_group
                  from  t2
         t4 as (
                select  t3.*,
                        sum(start_of_group) over(partition by emp_id,emp_date order by login_time) grp
                  from  t3
         t5 as (
                select  emp_id,
                        emp_date,
                        min(login_time) login_time,
                        max(logout_time) logout_time
                  from  t4
                  group by emp_id,
                           emp_date,
                           grp
    select  emp_id,
            numtodsinterval(sum(logout_time - login_time),'day') time_spent
      from  t5
      group by emp_id
      order by emp_id
        EMP_ID TIME_SPENT
            10 +000000000 03:00:00.000000000
    SQL> SY.

  • Iphoto on my macbook pro has stopped working. It comes up with a message saying that the library is either being used by another user or it is unreadable. Any ideas why I should be receiving this message?

    MacBook Pro 2009
    Model Identifier: MacBookPro5,1
    Processor  2.4 GHz Intel Core 2 Duo
    Memory  4 GB 1067 MHz DDR3
    Software  OS X 10.8.5 (12F45)
    Iphoto '11
    Iphoto on my macbook pro has stopped working. It comes up with a message saying that the library is either being used by another user or it is unreadable. Any ideas why I should be receiving this message?
    "Your photo library is either in use by another application or has become unreadable"
    Offered solution doesn't work:
    Shut down and restart your computer, and then open iPhoto again. If the problem persists, try rebuilding your photo library. To do this, quit iPhoto, and then reopen it while keeping the Option and Command keys pressed. You can also try restoring your photo library from a backup.
    I have already copied my photographs to the a library manager but when I tried to reuse iphoto and import the photos back into iphoto, it would not let me.
    I can't download photographs from my iphone or my digital camera.
    Any ideas on how I can solve this problem?
    There is a possibility that when I went to update applications that I started to install Mavericks which I then interrupted and cancelled. I am not definite that this caused this problem but it was at about the same time as when this problem started.
    Many thanks,
    Ed

    I have already copied my photographs to the a library manager but when I tried to reuse iphoto and import the photos back into iphoto, it would not let me.
    You can't "copy" your photos to the "library manager", there is just no way to any such thing.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.  
    Regards
    TD

  • Need to build communication redundancy using serial RS-232 for Data Transfer b/w Host and RT irrespective of TCP/IP Data Transfer

    Hi - I would like to build the logic in which it should accomodate the communication redundancy using serial RS-232 for Data Transfer b/w Host and RT irrespective of TCP/IP Data Transfer.
    I want to do data transfer b/w host and RT through RS232 VISA portal whenever TCP/IP ethernet cable has been unplugged from the controller continuosly , it should keep on checking for TCP/IP link re-establishing also , when ever the tcp/ip link established again that time the communication should be using in that link only. This is accomplished by deploying the RT vi as execuatbale file. I made some logic regards to the above said logic , bur it was not working as much I expected.
    I request you to go through the attached two VI's and let me know , what I did wrong in that,
    Please do the needful.
    Attachments:
    TCP_Serial_Host.vi ‏33 KB
    TCP_Serial_RT.vi ‏41 KB

    even i am new to this topic and i am trying to get familiar with these protocols
    refer to tcp server/client examples in labview examples

  • Hello and HELP! Over the years I have saved Invoices in my Documents. I have just tried to open them and all I am getting is " cannot be opened, Invoice**** is used by another user, do you want to make a copy?" That's on all my invoices.

    Can someone help please.
    I have just "lost" ( cannot open) all my saved Invoices in the Document folder.  All I am getting is " cannot open, Invoice ** is used bey another user, do you want to make copy? " That doesn't work either. I can't get anything on the time capsule either. How can I reset to an earlier time? Or what can I do?
    Thank you

    Did you recently reinstall the OS then copy all your files back over? Do a Get info on one of the documents and see if your current UserName is listed and has Read & Write permissions. If not select the Documents folder and check that for Read & Write permissions for your UserName. If it doesn't have R & W permissions Add it so it does.

  • Problem in using serial port.

    I am using serial port to get data from a fusion splicer. The number of bytes at the port is 4096 but the read buffer of VISA read is empty. I am reading the same number of bytes. Can any one tell me what is the maximum size of VISA Read buffer? I am trying to put the contents of the buffer in a file. I am using labVIEW 6.1 on linux.I am also attaching the VI.
    I also noticed this problem...If I read the number of bytes in the serial buffer many times, sometimes it reads it as 0 and I have to keep trying until it reads this 4096 bytes.
    Thanx for any help.
    S.Vijayalakshmi
    Attachments:
    serail_comm.vi ‏52 KB

    Hey Viji,
    In your application it looks like you are just checking to see how many bytes are at the serial port. Is it possible that your application is check for the serial data at the port before the data actually gets there. If you are looping this code as a subVI or just running it over and over it is possible that one of the iterations could occur faster than your device can write the information to the bus. In this instance you are checking the number of bytes at the port and there might not be any there yet. In this case the port reads 0 as you have designed it.
    If you want the read function to wait and always read 4096 then don't wire the bytes at port to the read function. Just wire a constant/control equal to 4096 to the read function instead o
    f the bytes at port. In this case, if there are not any bytes at the port the read function will wait for the bytes to show up or until the timeout period is reached.
    I would also, suggest lowering your time to something more reasonable, because if your instrument quits transmitting your application is going to wait for 33 minutes. That is a long time for a program to hang.
    I hope this helps out.
    JoshuaP
    National Instruments

  • I have a new ipod and when I sign in to Words with Friends it says that user name is already in use. How can I continue using the same user name with a different ipod?

    I have a new ipod and added all my apps to it. When I sign in to Words with Friends it says that "user name is already in use" because it is linked to my old ipod. How can I use the same user name with my new ipod?

    Was the iPod setup via iTunes on this computer?
    Setup via wifi?
    Was the iPod previous synced to another iTunes library/computer?
    Have you successfully synced from this iTunes library/computer before?
    Do the songs play in iTunes?           
    Do you have the right boxes checked to sync?
    iTunes: Syncing media content to iOS devices and iPod        
    Try syncing using the manual method                 

  • Can I use the same user accounts for both Lion & SL?

    I have one Mac that I can upgrade to Lion but it is the one that the entire family uses every day (I only can use it (and administer it) on weekends), so I have to make sure that there are no problems and no issues so my plan is to:
    Move all of the users accounts to a different drive.
    Configure 10.6.8 (SL) to use the user accounts on the different drive.
    Back up SL to a bootable drive.
    Repartition the Mac for a SL & Lion partition.
    Reconstitute SL on both partitions.
    Upgrade one SL partition to Lion.
    I should now have a partition for SL and Lion that both use the same users accounts so when I (and then my family) are comfortable with Lion, the switch will be transparent.
    Any problems that I am unaware of (and how to remediate it)?
    TIA.

    There are a few discussions here on the topic that I was planning to employ:
    Moving Home folder to different HDD From Mac OSX Snow Leopard via Terminal?
    Moving some Users to different volume
    How do you move a user account to a different drive?
    Another way of doing it is to move the directory, and then alter the user's home directory using the NetInfo utility (Tiger) or Directory Utility (Leopard). In both, you can change the user's home directory from the command line in Terminal.app like so:
    $ sudo dscl . -create /Users/user NFSHomeDirectory /Volumes/volname+/+user
    In the SL System Preferences -> Accounts one can select a user's account, right click and choose Advance Options presents the screen below. This is how I intend to point each OS to the same user account on an external HDD.
    Does that answer your question?
    TIA.

  • How to use an authenticated user for a proxy call

    Dear all,
    I am currently working on a JEE application where the user needs to authenticate (for this I have configured the web.xml).
    Now inside this application I need to do a proxy call to a PI webservice.
    I would like to use the user credentials of the already logged in user in order to call the proxy.
    What I don't want to do is to use a service user for the proxy call.
    The code I am trying to call looks something like this:
         private IntegratedConfigurationIn getPort() throws Exception{
              IntegratedConfigurationIn port = null;
              try {
                   IntegratedConfigurationInService service = null;
                   service = new IntegratedConfigurationInService();
                   port = (IntegratedConfigurationIn) service.getIntegratedConfigurationIn_Port();
                  BindingProvider bp = (BindingProvider)port;
                  bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, user);
                  bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, password);
                  if (url.length() != 0)
                       bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, url);
              catch (Exception ex){
                   ex.printStackTrace();
              return port;
    The examples I found to retrieve the userdata pointed to codes similar to this one:
    public HttpServletRequest getHttpRequest() throws Exception {
              // Get runtime context
              Properties props = new Properties();
              props.put("domain", "true");
              Context initialContext = new InitialContext(props);
              ApplicationWebServiceContext wsContext = (ApplicationWebServiceContext) initialContext
                        .lookup(" /wsContext/ApplicationWebServiceContext");
              HttpServletRequest req = wsContext.getHttpServletRequest();
              return req;
    com.sap.security.api.IUser sapUser = com.sap.security.api.UMFactory.getAuthenticator().getLoggedInUser(getHttpRequest(), null);
              IUser ep5User = com.sapportals.wcm.util.usermanagement.WPUMFactory.getUserFactory().getEP5User(sapUser);
    Now I don't know how to bring it togehter and how to use an authenticated user for the BindingProvider.
    I would appreciate any hints or ideas.

    Peter,
    from the first screenshot, what I understood is that, you are calling an inbound PI web service that is intended to create an integrated configuration object (this is used for whole lot of other reason completely) but not actually calling a development web service.
    For this, you would have to generate your client classes from the WSDL provided by the PI developer for that particular service. Once you get those client classes generated, you could used the method provided in the other screenshot to extract the user and password and call the intended web service.
    Vijay Konam

  • Sharpener Pro 3 has problems in Aperture as the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Have removed all duplicate fonts and tried using a new user account. Any ideas?

    I am experiencing problems with Sharpener Pro 3 as an Aperture 3 plug-in. These are:  the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Following discussions with Nik Software I have removed all duplicate fonts and tried using a new user account. Neither of the courses of action worked. Have other users experienced these difficulties? Can you suggest an alternative remedy?

    I am experiencing problems with Sharpener Pro 3 as an Aperture 3 plug-in. These are:  the Pre sharpener continually asks one to buy or activate and the Output Sharpener causes Aperture to hang. Following discussions with Nik Software I have removed all duplicate fonts and tried using a new user account. Neither of the courses of action worked. Have other users experienced these difficulties? Can you suggest an alternative remedy?

  • My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    My question is in regard to pc to mac migration. How do I migrate information from my pc with specific user account to an existing user account on my mac? I do not want to use multiple mac user accounts.

    https://discussions.apple.com/message/16371308#16371308

Maybe you are looking for

  • Computer won't detect iphones

    Why won't my computer detect iphones? I know for a fact that it isn't the cables OR the the USB ports, so don't even try with that. I have tried all the ports and I know my cable works, I have it plugged into a wall right now. I have tried with my ow

  • On Windows 2012,WMIPRVSE.EXE WMI service leaks memory

    Hello all, In my Windows 2012 9700 server,I have installed LSI provider and I am running associator queries to LSI Provider which further interacts with WMI service which acts as a CIM Object Manager(CIMOM).When I run these queries,I am seeing huge m

  • How to create JDBC data source w/o LDAP server

    I am trying to test using JDBC data source on a computer without a LDAP server. Is there an alterative JNDI solution? How about using file system or RMI registry JNDI service providers?

  • How to export QT file in 16:9 when using DVX100E(pal)

    Hi, I shot some footage in 'Squeeze' mode 16:9, on Panasonic DVX100E( pal) When I captured it (FCP 5.0.4) and checked the 'Anamorphic' option in the 'Sequence Settings' it had the right aspect in the Canvas (16:9). To see it correctly in the Viewer,

  • Scan to Email issues

    In setting up Scan to Email, testing from the setup portion of the web interface works, and the test email comes through.  When a user attempts to scan from the printer itself, they get an error message: Error:  There was a problem sending the email