Minute Range

Hi all,
My problem is, i have calculated time in minutes i have to show output in terms of minute range. The minute range is defined in the selection screen by the user.
Eg If user has defined in selection screen the minute range as 10.
Now if the calculated minutes i have is 5 min then output =  show range as 0-10
                                           if i have  13 min then output =  shoe range as 10-20 and so on.
Similarly if User enters 5 in selection screen, then
                                  3 min output = show range as 0-5
                                 13 min ouput = show range as 10-15 and so on.
Is there any FM which could help me, or nay other possible way.
Please help me out. Points will be rewarded.
Thanks
Vijay

Hi vijay,
no idea if there is a standard function but such a function module is written quite fast. Here an example. You have to adapt the data types perhaps if you have greater value ranges.
FUNCTION zrwe_range.
""Local Interface:
*"  IMPORTING
*"     REFERENCE(IV_VALUE) TYPE  I
*"     REFERENCE(IV_RANGE) TYPE  I
*"  EXPORTING
*"     REFERENCE(EV_RANGE) TYPE  CHAR10
local data definition
  DATA:
    lv_segment    TYPE i,
    lv_start      TYPE i,
    lv_end        TYPE i,
    lv_char_buff1 TYPE char4,
    lv_char_buff2 TYPE char4,
    lv_range      TYPE char10.
clear the exporting parameter
  CLEAR:
    ev_range.
get the segment the value is in
  lv_segment = ( iv_value DIV iv_range ) + 1.
get the start
  lv_start = ( lv_segment - 1 ) * iv_range.
get the end
  lv_end = ( lv_segment ) * iv_range.
build the result
  WRITE lv_start TO lv_char_buff1.
  WRITE lv_end   TO lv_char_buff2.
  CONDENSE lv_char_buff1.
  CONDENSE lv_char_buff2.
  CONCATENATE
    lv_char_buff1
    lv_char_buff2
    INTO
      ev_range.
ENDFUNCTION.
To sum up several entries just call such a function module in a loop and collect them into a table.
Best regards
Roman Weise

Similar Messages

  • How to create minute range

    Hi experts,
    I need to populate two column in order to get waiting time, then i need to create minute range as below:-
    i ) less than 30 minute
    ii) 30 minute - 60 minute
    iii) 60 minute - 90 minute
    iv) more than 90 minute
    select TO_CHAR(abs(vlh.SERVICING_DATETIME-vlh.ARRIVAL_DATETIME )* 1440,'99999999.99'),count(TO_CHAR(abs(vlh.SERVICING_DATETIME-vlh.ARRIVAL_DATETIME )* 1440,'99999999.99'))
    from visitlochis vlh
    where servicing_datetime is not null
    and arrival_datetime is not null
    AND servicing_datetime >= TO_DATE ('01/01/2009', 'dd/mm/yyyy')
    AND servicing_datetime <= TO_DATE ('10/01/2009', 'dd/mm/yyyy')
    and (TO_CHAR(abs(vlh.SERVICING_DATETIME-vlh.ARRIVAL_DATETIME )* 1440,'99999999.99'))>=60
    and (TO_CHAR(abs(vlh.SERVICING_DATETIME-vlh.ARRIVAL_DATETIME )* 1440,'99999999.99'))<=90
    group by TO_CHAR(abs(vlh.SERVICING_DATETIME-vlh.ARRIVAL_DATETIME )* 1440,'99999999.99')
    Any advise and guidance is needed..
    Thanks in advance

    Hi,
    Welcome to the forum!
    What is the prupose of the WHERE -clause conditions:
    and (TO_CHAR(abs(vlh.SERVICING_DATETIME-vlh.ARRIVAL_DATETIME )* 1440,'99999999.99'))>=60
    and (TO_CHAR(abs(vlh.SERVICING_DATETIME-vlh.ARRIVAL_DATETIME )* 1440,'99999999.99'))<=90? It looks like you're trying to only get waiting times between 60 and 90 minutes; but since you're comparing strings to numbers (the expressions to the left of the >= and <= operators are strings, but the expressions to the right are numbers) you might be getting something you didn't expect.
    If you want to assign one of the numbers 1, 2, 3 or 4 to each row, depending on its wait time, you could always use CASE, like this:
    CASE
        WHEN  vlh.SERVICING_DATETIME - vlh.ARRIVAL_DATETIME <  (1 / 48)  THEN 1  -- 1/48 day = 30 minutes
        WHEN  vlh.SERVICING_DATETIME - vlh.ARRIVAL_DATETIME <  (2 / 48)  THEN 2
        WHEN  vlh.SERVICING_DATETIME - vlh.ARRIVAL_DATETIME <  (3 / 48)  THEN 3
        WHEN  vlh.SERVICING_DATETIME - vlh.ARRIVAL_DATETIME >= (3 / 48)  THEN 4
    END     AS  wait_grpTo avoid computing the difference 4 times, you could do it once in a sub-query.
    In certain circumstances, you can do something a little shorter.
    For example, if servicing_datetime is never earlier than arrival_datetime, you can get the same results as above like this:
    1 + LEAST ( FLOOR ( ( vlh.SERVICING_DATETIME - vlh.ARRIVAL_DATETIME)
                / 48
              , 3
           )   AS wait_grp

  • SAP Freeze for 30 minutes

    Dear gurus,
    In our SAP production environment, SAP frequently hold for some minutes, ranging from 10 to 30 minutes.
    When that happens, no users can logged onto SAP System (Waiting for system response in SAP Logon).
    When that happen, I can't do anything except restarting SAP Server.
    We rarely do an update record nor an intensive report program when that happened,
    Where can I check the initial problem for this?
    For information,
    Our system running on AIX 5.2 Oracle 10.0.2.0 with 16GB Memory (SAP ECC 6.0).
    The Detail:
    Buffer size:
    ABAP Programs: 900000 KB
    Nametab: 89996 KB
    Generic key table: 97657 KB
    Single key table: 90000 KB
    CUA information: 10000 KB
    Screens: 19532 KB
    No of Work Process:
    Dialog: 25
    Update (V1): 6
    Update (V2): 3
    Enqueue: 1
    Background: 3
    Spool: 4
    Initial / max. swap requirement: 11154 MB / 13062 MB.
    Even when the users is only 5, the memory could drop to only 200MB in the server (as in ST06).
    I do not know what consume the high memory.
    Also, when I go to DB02, an see the space, it shows blank record.
    That is, the used space, total DB size, is 0. I have checked that SAPOSCOL is running.
    Thanks for gurus help.
    Regards,

    Hi Bobby
    There could be more than one issues in your system.
    > no users can logged onto SAP System (Waiting for system response in SAP Logon).
    When this happens, check ORAARCH directory under SAPDATA_HOME. If this directory is full, database goes to dormat state and until and unless this directory is free ( free space is there) database wont allow any user to get it.
    What is the frequency of your archive log job?  Check https://service.sap.com/sap/support/notes/391
    >Even when the users is only 5, the memory could drop to only 200MB in the server
    Could you find any reason of this high memory consumption from OS level, you can check the PID from there and then from sm50 you can check which program is using maximum meory. Also check from ST02 what is the number of swapping for important buffers , like program buffer. What are the values of "Commit charge limit Kb" and "Commit charge free  Kb" from ST06 when you see this memory bottleneck?
    >Also, when I go to DB02, an see the space, it shows blank record.
    Run RSORAT0D report and then check again. Clickking Rfresh on the DB02 first screen will run this report for you or else you can run it from SA38 or se38 directly

  • BT Homehub 2 dropping connection every few minutes

    Hi, my homehubs been working perfectly until today when it started dropping the connection every few minutes (ranging from 3 minutes up to 13). The broadband and phone lights go out then orange and then back to blue after about a minute.
    Having browsed the forums etc Ive changed the location of the hub, changed channels, checked cabling and changed the microfilter.
    Im now at a bit of a loss. The firmware is Version 8.1.H.J (Type A) and i notice that the firmware updated on todays date.
    Im hoping someone has some ideas as im all out now.
    Thanks
    Here are the figures from the adsl line status:
    ADSL line status
    Connection information
    Line state
    Connected
    Connection time
    0 days, 0:01:04
    Downstream
    7,616 Kbps
    Upstream
    448 Kbps
    ADSL settings
    VPI/VCI
    0/38
    Type
    PPPoA
    Modulation
    ITU-T G.992.1
    Latency type
    Interleaved
    Noise margin (Down/Up)
    5.1 dB / 22.0 dB
    Line attenuation (Down/Up)
    22.0 dB / 13.0 dB
    Output power (Down/Up)
    19.7 dBm / 11.9 dBm
    Loss of Framing (Local)
    19
    Loss of Signal (Local)
    14
    Loss of Power (Local)
    0
    FEC Errors (Down/Up)
    320 / 0
    CRC Errors (Down/Up)
    1 / 2147480000
    HEC Errors (Down/Up)
    nil / 0
    Error Seconds (Local)
    284
    Solved!
    Go to Solution.

    I have the same problem friday afternoon at 4.30 to 11.30 at night the router reset itself every five minutes ....the prob first started in nov 2010 i have had 3 home engineer visits and finally we might be getting somwhere it looks like its caused by interferance on the line the phones fine its the broadband ,looking at the engineers meter it was running fine then all of a sudden it spikes erros 21,000 of them the router reboots and steadys again .......somthings causing line interferance it could be anything a pir on a security light ,a street lamp with a faulty timer ,there has even been a case where a car tyre garage has had its broadband removed by sombodys faulty tv .......
             the engineer fitted a resistor box under the wall socket and ran the wires through it to the socket ...this is disigned to filter out certain frequencies of line pollution but not all ......it seems to be working its only shut down twice tonight and that could be the exchange mucking about as they are continuing to monitor the problem ......HOPING ....... oh he also removed the front of the wall socket and fitted me a dsl one with a separate phone socket hence doing away with the dsl filter ......................

  • Is there some kind of program to register Beats per minute of a song

    Hi,
    My friend and I are creating playlists on our ipods for working out at the gym and would like to create the playlists in certain BPM (beats per minute) ranges.  any idea on a program for itunes where it will show BPM?
    Thanks,
    Patti

    Hi and Welcome to Apple Discussions ...
    What you need to do is contact Apple. http://www.apple.com/support/contact/phone_contacts.html
    And go here. MacBook Service - Frequently Asked Questions
    Your English is just fine.
    Carolyn

  • Recording Voice-Over via Final Cut Pro and Recording Via Pro Tools?

    Hey all,
    I'm recording some voice-over for a documentary shot on DV.
    Here's my question: all other factors being the same, is there any disadvantage in terms of audio quality of recording into Final Cut (through an m-box2) using the voice-over tool, or recording into M-Powered Pro Tools using the mbox 2 (and then bringing the file to Final Cut)?
    Pro Tools obviously allows for a far more sophisticated treatment of the sound after it has been imputed - but in terms of using it for capture?
    I know that Pro tools allows 24bit recording, but I'd probably record at 16bit anyway so as to match the sample rate of the rest of my audio in the project.
    I'd be using the same mic-xlr-mbox2 set-up and the same computer, does anyone have any views on the difference in the quality of the recorded audio?
    Thanks
    Richard O'Sullivan
    San Francisco

    actually an in point by itself won't help you
    a valid recording range needs both In and Out point, or simply a clip in the timeline which by its presence denotes the recording range
    the recording range must be less than 5 minutes
    in a blank timeline some like to throw a slug in there to mark the recording range, i find it easiest to just enter a duration in the canvas (i type 4.. in the duration field at top left of the canvas and it automatically marks a 4 minute range)

  • New to PrPro with specific workflow questions

    Hi, All!
    I'm a 20+ year video veteran wading into the Premiere Pro pool this year. I have an extensive Avid and FCP background. Please don't hold that against me! I also realize this is long, but I'm trying to cram everything in so you can see where I've been to possibly re-route me, make it understandable, and at least a wee bit interesting.
    I'm currently running PrPro 5.5.2 on a MBP 2.8 GHz Intrel Core 2 Duo with 4GB RAM. My media storage is a 2TB Sonnet Tempo RAID partition over eSATA to an Express34 card on the MBP.
    I've sucessfully been doing AVC-Intra projects in PrPro for the last few months. This new project is different, and I want to see if there is any way to make my process more efficient. It's a very simple project, but it's very long. I'm finding as I do my workflow tests that the render, export and conversion process I had been doing for the short AVC-Intra projects (which were in the 5-7 minute range) are going to be very time consuming on this project, which has a hefty 2 1/2 hour run time over 14 modules. The editing is simple, if not cookie-cutter. It's creating the deliverables that's going to be the real bear here. I'm hoping your collective experience can offer me a better workflow that what I've cobbled together from my other knowledge and previous forum searches.
    The nitty gritty:
    These videos  are basically putting a narrator to PowerPoint presentation and prettying it up with a music stinger at the open and close and adding a nicer-than-PPT transition betweeen the slides. I have an AIFF audio track for narration, AIFF music file from SmartSound, PNG graphic files (converted PowerPoint deck), & an animated Apple PNG transition. (from the Digital Juice people. It's one of their "Swipes".)
    I started with a AVC-Intra timeline because that seemed to me to be the highest quality. I understand this was probably my first error. The renders are taking about run time for the module. With these elements and the following deliverables, what Sequence Settings do you recommend I should be using?
    My deliverables will be myriad, which is why I want to export out a high-quality master file out of PrPro and then do the mulitple conversions to other sizes & codecs in a compression app. I have Encore, Sorenson Squeeze, and Compressor at my disposal. I'm guessing Encore will be my friend here, but it's also the one I know the least.
    I tried exporting out a ProRes file. That took over 40 minutes on a 14 minute module. Then I converted that to a 640 x 360 H.264 to upload as an approval file. That took about 35 minutes. (I used Compressor becasue I have a droplet craeated for that and it's what I have been sucessfully been using to make small, good-looking files that my clients can reasonably download or stream).
    Next I tried exporting out the highest quality H.264 at 1920x1080 and tried converting that using my Compressor droplet. That took 50 minutes to export out of PrPro, but it saves me one step of converting to a full size H.264. What I'm not sold on is whether or not that file is the best file I should be using to make the other deliverables.
    What I will eventually need to deliver is a family of H.264 in various sizes from 1920x1080 to 320x180 & an authored DVD. So we're talking hours of processing for each one if I go with what I know.
    Since the only thing that moves in these videos are a handful of animated transitions (10-15 per module) and a fade in & fade out, my gut tells me I could make this happen faster if I only changed a few things in my workflow. I'm just at a loss as to what those things might be.
    Another little note. The client will wnat to  custominze these with different logos, so I will have to be able to get in, add or change a logo super, and re-export and re-convert all 2 1/2 hours multiple times. A more efficeint way to do that would be very helpful. Both for my sanity and my clients' budget.
    Any insight would be greatly appreciated! Thanks!!
    deb

    >avoid 24 hours of processing
    Adding to what was just posted
    The computer I replaced in 2010 was based on the Pentium4 CPU (Windows XP with CS3) and when I was done editing my SD video and ready to create a DVD, I would start Encore before I went to bed, so it would have an ISO ready for disc writing in the morning
    The computer I have now is described in http://forums.adobe.com/thread/652694 and my entire process of going from AVCHD to an SD AVI and then the encoding to ISO in Encore is just a bit over real time (maybe twice real time, but that is subjective, not based on a stop watch)
    CPU cores and speed plus lots of ram (12Gig for my motherboard... 16Gig for newer technology motherboards) and multiple fast hard drives ALL make a difference
    Your computer is, very simply, just barely able to run PPro... I have NO idea what is available in the Mac world, but to have "acceptable" speed, you need a new computer

  • Hostapd - client sees network but can't connect

    I have a mobile phone Samsung S5230W with WiFi capability, and a laptop HP Compaq nx7400 with Broadcom BCM4311 wireless card. I'm trying to share an Internet connection between those two devices, but I can't because i receive 'authentication failed' message, even that the password is right -
    ##### hostapd configuration file ##############################################
    # Empty lines and lines starting with # are ignored
    # AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
    # management frames); ath0 for madwifi
    interface=wlan0
    # In case of madwifi, atheros, and nl80211 driver interfaces, an additional
    # configuration parameter, bridge, may be used to notify hostapd if the
    # interface is included in a bridge. This parameter is not used with Host AP
    # driver. If the bridge parameter is not set, the drivers will automatically
    # figure out the bridge interface (assuming sysfs is enabled and mounted to
    # /sys) and this parameter may not be needed.
    # For nl80211, this parameter can be used to request the AP interface to be
    # added to the bridge automatically (brctl may refuse to do this before hostapd
    # has been started to change the interface mode). If needed, the bridge
    # interface is also created.
    bridge=br0
    # Driver interface type (hostap/wired/madwifi/test/none/nl80211/bsd);
    # default: hostap). nl80211 is used with all Linux mac80211 drivers.
    # Use driver=none if building hostapd as a standalone RADIUS server that does
    # not control any wireless/wired driver.
    driver=nl80211
    # hostapd event logger configuration
    # Two output method: syslog and stdout (only usable if not forking to
    # background).
    # Module bitfield (ORed bitfield of modules that will be logged; -1 = all
    # modules):
    # bit 0 (1) = IEEE 802.11
    # bit 1 (2) = IEEE 802.1X
    # bit 2 (4) = RADIUS
    # bit 3 (8) = WPA
    # bit 4 (16) = driver interface
    # bit 5 (32) = IAPP
    # bit 6 (64) = MLME
    # Levels (minimum value for logged events):
    # 0 = verbose debugging
    # 1 = debugging
    # 2 = informational messages
    # 3 = notification
    # 4 = warning
    logger_syslog=-1
    logger_syslog_level=2
    logger_stdout=-1
    logger_stdout_level=2
    # Dump file for state information (on SIGUSR1)
    dump_file=/tmp/hostapd.dump
    # Interface for separate control program. If this is specified, hostapd
    # will create this directory and a UNIX domain socket for listening to requests
    # from external programs (CLI/GUI, etc.) for status information and
    # configuration. The socket file will be named based on the interface name, so
    # multiple hostapd processes/interfaces can be run at the same time if more
    # than one interface is used.
    # /var/run/hostapd is the recommended directory for sockets and by default,
    # hostapd_cli will use it when trying to connect with hostapd.
    ctrl_interface=/var/run/hostapd
    # Access control for the control interface can be configured by setting the
    # directory to allow only members of a group to use sockets. This way, it is
    # possible to run hostapd as root (since it needs to change network
    # configuration and open raw sockets) and still allow GUI/CLI components to be
    # run as non-root users. However, since the control interface can be used to
    # change the network configuration, this access needs to be protected in many
    # cases. By default, hostapd is configured to use gid 0 (root). If you
    # want to allow non-root users to use the contron interface, add a new group
    # and change this value to match with that group. Add users that should have
    # control interface access to this group.
    # This variable can be a group name or gid.
    #ctrl_interface_group=wheel
    #ctrl_interface_group=0
    ##### IEEE 802.11 related configuration #######################################
    # SSID to be used in IEEE 802.11 management frames
    ssid=network
    # Country code (ISO/IEC 3166-1). Used to set regulatory domain.
    # Set as needed to indicate country in which device is operating.
    # This can limit available channels and transmit power.
    #country_code=US
    # Enable IEEE 802.11d. This advertises the country_code and the set of allowed
    # channels and transmit power levels based on the regulatory limits. The
    # country_code setting must be configured with the correct country for
    # IEEE 802.11d functions.
    # (default: 0 = disabled)
    #ieee80211d=0
    # Operation mode (a = IEEE 802.11a, b = IEEE 802.11b, g = IEEE 802.11g,
    # Default: IEEE 802.11b
    hw_mode=g
    # Channel number (IEEE 802.11)
    # (default: 0, i.e., not set)
    # Please note that some drivers (e.g., madwifi) do not use this value from
    # hostapd and the channel will need to be configuration separately with
    # iwconfig.
    channel=1
    # Beacon interval in kus (1.024 ms) (default: 100; range 15..65535)
    beacon_int=100
    # DTIM (delivery trafic information message) period (range 1..255):
    # number of beacons between DTIMs (1 = every beacon includes DTIM element)
    # (default: 2)
    dtim_period=2
    # Maximum number of stations allowed in station table. New stations will be
    # rejected after the station table is full. IEEE 802.11 has a limit of 2007
    # different association IDs, so this number should not be larger than that.
    # (default: 2007)
    max_num_sta=5
    # RTS/CTS threshold; 2347 = disabled (default); range 0..2347
    # If this field is not included in hostapd.conf, hostapd will not control
    # RTS threshold and 'iwconfig wlan# rts <val>' can be used to set it.
    rts_threshold=2347
    # Fragmentation threshold; 2346 = disabled (default); range 256..2346
    # If this field is not included in hostapd.conf, hostapd will not control
    # fragmentation threshold and 'iwconfig wlan# frag <val>' can be used to set
    # it.
    fragm_threshold=2346
    # Rate configuration
    # Default is to enable all rates supported by the hardware. This configuration
    # item allows this list be filtered so that only the listed rates will be left
    # in the list. If the list is empty, all rates are used. This list can have
    # entries that are not in the list of rates the hardware supports (such entries
    # are ignored). The entries in this list are in 100 kbps, i.e., 11 Mbps = 110.
    # If this item is present, at least one rate have to be matching with the rates
    # hardware supports.
    # default: use the most common supported rate setting for the selected
    # hw_mode (i.e., this line can be removed from configuration file in most
    # cases)
    supported_rates=10 20 55 110 60 90 120 180 240 360 480 540
    # Basic rate set configuration
    # List of rates (in 100 kbps) that are included in the basic rate set.
    # If this item is not included, usually reasonable default set is used.
    #basic_rates=10 20
    #basic_rates=10 20 55 110
    #basic_rates=60 120 240
    # Short Preamble
    # This parameter can be used to enable optional use of short preamble for
    # frames sent at 2 Mbps, 5.5 Mbps, and 11 Mbps to improve network performance.
    # This applies only to IEEE 802.11b-compatible networks and this should only be
    # enabled if the local hardware supports use of short preamble. If any of the
    # associated STAs do not support short preamble, use of short preamble will be
    # disabled (and enabled when such STAs disassociate) dynamically.
    # 0 = do not allow use of short preamble (default)
    # 1 = allow use of short preamble
    #preamble=1
    # Station MAC address -based authentication
    # Please note that this kind of access control requires a driver that uses
    # hostapd to take care of management frame processing and as such, this can be
    # used with driver=hostap or driver=nl80211, but not with driver=madwifi.
    # 0 = accept unless in deny list
    # 1 = deny unless in accept list
    # 2 = use external RADIUS server (accept/deny lists are searched first)
    macaddr_acl=0
    # Accept/deny lists are read from separate files (containing list of
    # MAC addresses, one per line). Use absolute path name to make sure that the
    # files can be read on SIGHUP configuration reloads.
    #accept_mac_file=/etc/hostapd/hostapd.accept
    #deny_mac_file=/etc/hostapd/hostapd.deny
    # IEEE 802.11 specifies two authentication algorithms. hostapd can be
    # configured to allow both of these or only one. Open system authentication
    # should be used with IEEE 802.1X.
    # Bit fields of allowed authentication algorithms:
    # bit 0 = Open System Authentication
    # bit 1 = Shared Key Authentication (requires WEP)
    auth_algs=1
    # Send empty SSID in beacons and ignore probe request frames that do not
    # specify full SSID, i.e., require stations to know SSID.
    # default: disabled (0)
    # 1 = send empty (length=0) SSID in beacon and ignore probe request for
    # broadcast SSID
    # 2 = clear SSID (ASCII 0), but keep the original length (this may be required
    # with some clients that do not support empty SSID) and ignore probe
    # requests for broadcast SSID
    ignore_broadcast_ssid=0
    # TX queue parameters (EDCF / bursting)
    # default for all these fields: not set, use hardware defaults
    # tx_queue_<queue name>_<param>
    # queues: data0, data1, data2, data3, after_beacon, beacon
    # (data0 is the highest priority queue)
    # parameters:
    # aifs: AIFS (default 2)
    # cwmin: cwMin (1, 3, 7, 15, 31, 63, 127, 255, 511, 1023)
    # cwmax: cwMax (1, 3, 7, 15, 31, 63, 127, 255, 511, 1023); cwMax >= cwMin
    # burst: maximum length (in milliseconds with precision of up to 0.1 ms) for
    # bursting
    # Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e):
    # These parameters are used by the access point when transmitting frames
    # to the clients.
    # Low priority / AC_BK = background
    #tx_queue_data3_aifs=7
    #tx_queue_data3_cwmin=15
    #tx_queue_data3_cwmax=1023
    #tx_queue_data3_burst=0
    # Note: for IEEE 802.11b mode: cWmin=31 cWmax=1023 burst=0
    # Normal priority / AC_BE = best effort
    #tx_queue_data2_aifs=3
    #tx_queue_data2_cwmin=15
    #tx_queue_data2_cwmax=63
    #tx_queue_data2_burst=0
    # Note: for IEEE 802.11b mode: cWmin=31 cWmax=127 burst=0
    # High priority / AC_VI = video
    #tx_queue_data1_aifs=1
    #tx_queue_data1_cwmin=7
    #tx_queue_data1_cwmax=15
    #tx_queue_data1_burst=3.0
    # Note: for IEEE 802.11b mode: cWmin=15 cWmax=31 burst=6.0
    # Highest priority / AC_VO = voice
    #tx_queue_data0_aifs=1
    #tx_queue_data0_cwmin=3
    #tx_queue_data0_cwmax=7
    #tx_queue_data0_burst=1.5
    # Note: for IEEE 802.11b mode: cWmin=7 cWmax=15 burst=3.3
    # Special queues; normally not user configurable
    #tx_queue_after_beacon_aifs=2
    #tx_queue_after_beacon_cwmin=15
    #tx_queue_after_beacon_cwmax=1023
    #tx_queue_after_beacon_burst=0
    #tx_queue_beacon_aifs=2
    #tx_queue_beacon_cwmin=3
    #tx_queue_beacon_cwmax=7
    #tx_queue_beacon_burst=1.5
    # 802.1D Tag (= UP) to AC mappings
    # WMM specifies following mapping of data frames to different ACs. This mapping
    # can be configured using Linux QoS/tc and sch_pktpri.o module.
    # 802.1D Tag 802.1D Designation Access Category WMM Designation
    # 1 BK AC_BK Background
    # 2 - AC_BK Background
    # 0 BE AC_BE Best Effort
    # 3 EE AC_BE Best Effort
    # 4 CL AC_VI Video
    # 5 VI AC_VI Video
    # 6 VO AC_VO Voice
    # 7 NC AC_VO Voice
    # Data frames with no priority information: AC_BE
    # Management frames: AC_VO
    # PS-Poll frames: AC_BE
    # Default WMM parameters (IEEE 802.11 draft; 11-03-0504-03-000e):
    # for 802.11a or 802.11g networks
    # These parameters are sent to WMM clients when they associate.
    # The parameters will be used by WMM clients for frames transmitted to the
    # access point.
    # note - txop_limit is in units of 32microseconds
    # note - acm is admission control mandatory flag. 0 = admission control not
    # required, 1 = mandatory
    # note - here cwMin and cmMax are in exponent form. the actual cw value used
    # will be (2^n)-1 where n is the value given here
    wmm_enabled=1
    # WMM-PS Unscheduled Automatic Power Save Delivery [U-APSD]
    # Enable this flag if U-APSD supported outside hostapd (eg., Firmware/driver)
    #uapsd_advertisement_enabled=1
    # Low priority / AC_BK = background
    wmm_ac_bk_cwmin=4
    wmm_ac_bk_cwmax=10
    wmm_ac_bk_aifs=7
    wmm_ac_bk_txop_limit=0
    wmm_ac_bk_acm=0
    # Note: for IEEE 802.11b mode: cWmin=5 cWmax=10
    # Normal priority / AC_BE = best effort
    wmm_ac_be_aifs=3
    wmm_ac_be_cwmin=4
    wmm_ac_be_cwmax=10
    wmm_ac_be_txop_limit=0
    wmm_ac_be_acm=0
    # Note: for IEEE 802.11b mode: cWmin=5 cWmax=7
    # High priority / AC_VI = video
    wmm_ac_vi_aifs=2
    wmm_ac_vi_cwmin=3
    wmm_ac_vi_cwmax=4
    wmm_ac_vi_txop_limit=94
    wmm_ac_vi_acm=0
    # Note: for IEEE 802.11b mode: cWmin=4 cWmax=5 txop_limit=188
    # Highest priority / AC_VO = voice
    wmm_ac_vo_aifs=2
    wmm_ac_vo_cwmin=2
    wmm_ac_vo_cwmax=3
    wmm_ac_vo_txop_limit=47
    wmm_ac_vo_acm=0
    # Note: for IEEE 802.11b mode: cWmin=3 cWmax=4 burst=102
    # Static WEP key configuration
    # The key number to use when transmitting.
    # It must be between 0 and 3, and the corresponding key must be set.
    # default: not set
    #wep_default_key=0
    # The WEP keys to use.
    # A key may be a quoted string or unquoted hexadecimal digits.
    # The key length should be 5, 13, or 16 characters, or 10, 26, or 32
    # digits, depending on whether 40-bit (64-bit), 104-bit (128-bit), or
    # 128-bit (152-bit) WEP is used.
    # Only the default key must be supplied; the others are optional.
    # default: not set
    #wep_key0=123456789a
    #wep_key1="vwxyz"
    #wep_key2=0102030405060708090a0b0c0d
    #wep_key3=".2.4.6.8.0.23"
    # Station inactivity limit
    # If a station does not send anything in ap_max_inactivity seconds, an
    # empty data frame is sent to it in order to verify whether it is
    # still in range. If this frame is not ACKed, the station will be
    # disassociated and then deauthenticated. This feature is used to
    # clear station table of old entries when the STAs move out of the
    # range.
    # The station can associate again with the AP if it is still in range;
    # this inactivity poll is just used as a nicer way of verifying
    # inactivity; i.e., client will not report broken connection because
    # disassociation frame is not sent immediately without first polling
    # the STA with a data frame.
    # default: 300 (i.e., 5 minutes)
    #ap_max_inactivity=300
    # Maximum allowed Listen Interval (how many Beacon periods STAs are allowed to
    # remain asleep). Default: 65535 (no limit apart from field size)
    #max_listen_interval=100
    # WDS (4-address frame) mode with per-station virtual interfaces
    # (only supported with driver=nl80211)
    # This mode allows associated stations to use 4-address frames to allow layer 2
    # bridging to be used.
    #wds_sta=1
    ##### IEEE 802.11n related configuration ######################################
    # ieee80211n: Whether IEEE 802.11n (HT) is enabled
    # 0 = disabled (default)
    # 1 = enabled
    # Note: You will also need to enable WMM for full HT functionality.
    ieee80211n=0
    # ht_capab: HT capabilities (list of flags)
    # LDPC coding capability: [LDPC] = supported
    # Supported channel width set: [HT40-] = both 20 MHz and 40 MHz with secondary
    # channel below the primary channel; [HT40+] = both 20 MHz and 40 MHz
    # with secondary channel below the primary channel
    # (20 MHz only if neither is set)
    # Note: There are limits on which channels can be used with HT40- and
    # HT40+. Following table shows the channels that may be available for
    # HT40- and HT40+ use per IEEE 802.11n Annex J:
    # freq HT40- HT40+
    # 2.4 GHz 5-13 1-7 (1-9 in Europe/Japan)
    # 5 GHz 40,48,56,64 36,44,52,60
    # (depending on the location, not all of these channels may be available
    # for use)
    # Please note that 40 MHz channels may switch their primary and secondary
    # channels if needed or creation of 40 MHz channel maybe rejected based
    # on overlapping BSSes. These changes are done automatically when hostapd
    # is setting up the 40 MHz channel.
    # Spatial Multiplexing (SM) Power Save: [SMPS-STATIC] or [SMPS-DYNAMIC]
    # (SMPS disabled if neither is set)
    # HT-greenfield: [GF] (disabled if not set)
    # Short GI for 20 MHz: [SHORT-GI-20] (disabled if not set)
    # Short GI for 40 MHz: [SHORT-GI-40] (disabled if not set)
    # Tx STBC: [TX-STBC] (disabled if not set)
    # Rx STBC: [RX-STBC1] (one spatial stream), [RX-STBC12] (one or two spatial
    # streams), or [RX-STBC123] (one, two, or three spatial streams); Rx STBC
    # disabled if none of these set
    # HT-delayed Block Ack: [DELAYED-BA] (disabled if not set)
    # Maximum A-MSDU length: [MAX-AMSDU-7935] for 7935 octets (3839 octets if not
    # set)
    # DSSS/CCK Mode in 40 MHz: [DSSS_CCK-40] = allowed (not allowed if not set)
    # PSMP support: [PSMP] (disabled if not set)
    # L-SIG TXOP protection support: [LSIG-TXOP-PROT] (disabled if not set)
    #ht_capab=[HT40-][SHORT-GI-20][SHORT-GI-40]
    ##### IEEE 802.1X-2004 related configuration ##################################
    # Require IEEE 802.1X authorization
    ieee8021x=0
    # IEEE 802.1X/EAPOL version
    # hostapd is implemented based on IEEE Std 802.1X-2004 which defines EAPOL
    # version 2. However, there are many client implementations that do not handle
    # the new version number correctly (they seem to drop the frames completely).
    # In order to make hostapd interoperate with these clients, the version number
    # can be set to the older version (1) with this configuration value.
    #eapol_version=2
    # Optional displayable message sent with EAP Request-Identity. The first \0
    # in this string will be converted to ASCII-0 (nul). This can be used to
    # separate network info (comma separated list of attribute=value pairs); see,
    # e.g., RFC 4284.
    #eap_message=hello
    #eap_message=hello\0networkid=netw,nasid=foo,portid=0,NAIRealms=example.com
    # WEP rekeying (disabled if key lengths are not set or are set to 0)
    # Key lengths for default/broadcast and individual/unicast keys:
    # 5 = 40-bit WEP (also known as 64-bit WEP with 40 secret bits)
    # 13 = 104-bit WEP (also known as 128-bit WEP with 104 secret bits)
    #wep_key_len_broadcast=5
    #wep_key_len_unicast=5
    # Rekeying period in seconds. 0 = do not rekey (i.e., set keys only once)
    #wep_rekey_period=300
    # EAPOL-Key index workaround (set bit7) for WinXP Supplicant (needed only if
    # only broadcast keys are used)
    eapol_key_index_workaround=0
    # EAP reauthentication period in seconds (default: 3600 seconds; 0 = disable
    # reauthentication).
    #eap_reauth_period=3600
    # Use PAE group address (01:80:c2:00:00:03) instead of individual target
    # address when sending EAPOL frames with driver=wired. This is the most common
    # mechanism used in wired authentication, but it also requires that the port
    # is only used by one station.
    #use_pae_group_addr=1
    ##### Integrated EAP server ###################################################
    # Optionally, hostapd can be configured to use an integrated EAP server
    # to process EAP authentication locally without need for an external RADIUS
    # server. This functionality can be used both as a local authentication server
    # for IEEE 802.1X/EAPOL and as a RADIUS server for other devices.
    # Use integrated EAP server instead of external RADIUS authentication
    # server. This is also needed if hostapd is configured to act as a RADIUS
    # authentication server.
    eap_server=0
    # Path for EAP server user database
    #eap_user_file=/etc/hostapd/hostapd.eap_user
    # CA certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS
    #ca_cert=/etc/hostapd/hostapd.ca.pem
    # Server certificate (PEM or DER file) for EAP-TLS/PEAP/TTLS
    #server_cert=/etc/hostapd/hostapd.server.pem
    # Private key matching with the server certificate for EAP-TLS/PEAP/TTLS
    # This may point to the same file as server_cert if both certificate and key
    # are included in a single file. PKCS#12 (PFX) file (.p12/.pfx) can also be
    # used by commenting out server_cert and specifying the PFX file as the
    # private_key.
    #private_key=/etc/hostapd/hostapd.server.prv
    # Passphrase for private key
    #private_key_passwd=secret
    # Enable CRL verification.
    # Note: hostapd does not yet support CRL downloading based on CDP. Thus, a
    # valid CRL signed by the CA is required to be included in the ca_cert file.
    # This can be done by using PEM format for CA certificate and CRL and
    # concatenating these into one file. Whenever CRL changes, hostapd needs to be
    # restarted to take the new CRL into use.
    # 0 = do not verify CRLs (default)
    # 1 = check the CRL of the user certificate
    # 2 = check all CRLs in the certificate path
    #check_crl=1
    # dh_file: File path to DH/DSA parameters file (in PEM format)
    # This is an optional configuration file for setting parameters for an
    # ephemeral DH key exchange. In most cases, the default RSA authentication does
    # not use this configuration. However, it is possible setup RSA to use
    # ephemeral DH key exchange. In addition, ciphers with DSA keys always use
    # ephemeral DH keys. This can be used to achieve forward secrecy. If the file
    # is in DSA parameters format, it will be automatically converted into DH
    # params. This parameter is required if anonymous EAP-FAST is used.
    # You can generate DH parameters file with OpenSSL, e.g.,
    # "openssl dhparam -out /etc/hostapd/hostapd.dh.pem 1024"
    #dh_file=/etc/hostapd/hostapd.dh.pem
    # Configuration data for EAP-SIM database/authentication gateway interface.
    # This is a text string in implementation specific format. The example
    # implementation in eap_sim_db.c uses this as the UNIX domain socket name for
    # the HLR/AuC gateway (e.g., hlr_auc_gw). In this case, the path uses "unix:"
    # prefix.
    #eap_sim_db=unix:/tmp/hlr_auc_gw.sock
    # Encryption key for EAP-FAST PAC-Opaque values. This key must be a secret,
    # random value. It is configured as a 16-octet value in hex format. It can be
    # generated, e.g., with the following command:
    # od -tx1 -v -N16 /dev/random | colrm 1 8 | tr -d ' '
    #pac_opaque_encr_key=000102030405060708090a0b0c0d0e0f
    # EAP-FAST authority identity (A-ID)
    # A-ID indicates the identity of the authority that issues PACs. The A-ID
    # should be unique across all issuing servers. In theory, this is a variable
    # length field, but due to some existing implementations requiring A-ID to be
    # 16 octets in length, it is strongly recommended to use that length for the
    # field to provid interoperability with deployed peer implementations. This
    # field is configured in hex format.
    #eap_fast_a_id=101112131415161718191a1b1c1d1e1f
    # EAP-FAST authority identifier information (A-ID-Info)
    # This is a user-friendly name for the A-ID. For example, the enterprise name
    # and server name in a human-readable format. This field is encoded as UTF-8.
    #eap_fast_a_id_info=test server
    # Enable/disable different EAP-FAST provisioning modes:
    #0 = provisioning disabled
    #1 = only anonymous provisioning allowed
    #2 = only authenticated provisioning allowed
    #3 = both provisioning modes allowed (default)
    #eap_fast_prov=3
    # EAP-FAST PAC-Key lifetime in seconds (hard limit)
    #pac_key_lifetime=604800
    # EAP-FAST PAC-Key refresh time in seconds (soft limit on remaining hard
    # limit). The server will generate a new PAC-Key when this number of seconds
    # (or fewer) of the lifetime remains.
    #pac_key_refresh_time=86400
    # EAP-SIM and EAP-AKA protected success/failure indication using AT_RESULT_IND
    # (default: 0 = disabled).
    #eap_sim_aka_result_ind=1
    # Trusted Network Connect (TNC)
    # If enabled, TNC validation will be required before the peer is allowed to
    # connect. Note: This is only used with EAP-TTLS and EAP-FAST. If any other
    # EAP method is enabled, the peer will be allowed to connect without TNC.
    #tnc=1
    ##### IEEE 802.11f - Inter-Access Point Protocol (IAPP) #######################
    # Interface to be used for IAPP broadcast packets
    #iapp_interface=eth0
    ##### RADIUS client configuration #############################################
    # for IEEE 802.1X with external Authentication Server, IEEE 802.11
    # authentication with external ACL for MAC addresses, and accounting
    # The own IP address of the access point (used as NAS-IP-Address)
    own_ip_addr=127.0.0.1
    # Optional NAS-Identifier string for RADIUS messages. When used, this should be
    # a unique to the NAS within the scope of the RADIUS server. For example, a
    # fully qualified domain name can be used here.
    # When using IEEE 802.11r, nas_identifier must be set and must be between 1 and
    # 48 octets long.
    #nas_identifier=ap.example.com
    # RADIUS authentication server
    #auth_server_addr=127.0.0.1
    #auth_server_port=1812
    #auth_server_shared_secret=secret
    # RADIUS accounting server
    #acct_server_addr=127.0.0.1
    #acct_server_port=1813
    #acct_server_shared_secret=secret
    # Secondary RADIUS servers; to be used if primary one does not reply to
    # RADIUS packets. These are optional and there can be more than one secondary
    # server listed.
    #auth_server_addr=127.0.0.2
    #auth_server_port=1812
    #auth_server_shared_secret=secret2
    #acct_server_addr=127.0.0.2
    #acct_server_port=1813
    #acct_server_shared_secret=secret2
    # Retry interval for trying to return to the primary RADIUS server (in
    # seconds). RADIUS client code will automatically try to use the next server
    # when the current server is not replying to requests. If this interval is set,
    # primary server will be retried after configured amount of time even if the
    # currently used secondary server is still working.
    #radius_retry_primary_interval=600
    # Interim accounting update interval
    # If this is set (larger than 0) and acct_server is configured, hostapd will
    # send interim accounting updates every N seconds. Note: if set, this overrides
    # possible Acct-Interim-Interval attribute in Access-Accept message. Thus, this
    # value should not be configured in hostapd.conf, if RADIUS server is used to
    # control the interim interval.
    # This value should not be less 600 (10 minutes) and must not be less than
    # 60 (1 minute).
    #radius_acct_interim_interval=600
    # Dynamic VLAN mode; allow RADIUS authentication server to decide which VLAN
    # is used for the stations. This information is parsed from following RADIUS
    # attributes based on RFC 3580 and RFC 2868: Tunnel-Type (value 13 = VLAN),
    # Tunnel-Medium-Type (value 6 = IEEE 802), Tunnel-Private-Group-ID (value
    # VLANID as a string). vlan_file option below must be configured if dynamic
    # VLANs are used. Optionally, the local MAC ACL list (accept_mac_file) can be
    # used to set static client MAC address to VLAN ID mapping.
    # 0 = disabled (default)
    # 1 = option; use default interface if RADIUS server does not include VLAN ID
    # 2 = required; reject authentication if RADIUS server does not include VLAN ID
    #dynamic_vlan=0
    # VLAN interface list for dynamic VLAN mode is read from a separate text file.
    # This list is used to map VLAN ID from the RADIUS server to a network
    # interface. Each station is bound to one interface in the same way as with
    # multiple BSSIDs or SSIDs. Each line in this text file is defining a new
    # interface and the line must include VLAN ID and interface name separated by
    # white space (space or tab).
    #vlan_file=/etc/hostapd/hostapd.vlan
    # Interface where 802.1q tagged packets should appear when a RADIUS server is
    # used to determine which VLAN a station is on. hostapd creates a bridge for
    # each VLAN. Then hostapd adds a VLAN interface (associated with the interface
    # indicated by 'vlan_tagged_interface') and the appropriate wireless interface
    # to the bridge.
    #vlan_tagged_interface=eth0
    ##### RADIUS authentication server configuration ##############################
    # hostapd can be used as a RADIUS authentication server for other hosts. This
    # requires that the integrated EAP server is also enabled and both
    # authentication services are sharing the same configuration.
    # File name of the RADIUS clients configuration for the RADIUS server. If this
    # commented out, RADIUS server is disabled.
    #radius_server_clients=/etc/hostapd/hostapd.radius_clients
    # The UDP port number for the RADIUS authentication server
    #radius_server_auth_port=1812
    # Use IPv6 with RADIUS server (IPv4 will also be supported using IPv6 API)
    #radius_server_ipv6=1
    ##### WPA/IEEE 802.11i configuration ##########################################
    # Enable WPA. Setting this variable configures the AP to require WPA (either
    # WPA-PSK or WPA-RADIUS/EAP based on other configuration). For WPA-PSK, either
    # wpa_psk or wpa_passphrase must be set and wpa_key_mgmt must include WPA-PSK.
    # For WPA-RADIUS/EAP, ieee8021x must be set (but without dynamic WEP keys),
    # RADIUS authentication server must be configured, and WPA-EAP must be included
    # in wpa_key_mgmt.
    # This field is a bit field that can be used to enable WPA (IEEE 802.11i/D3.0)
    # and/or WPA2 (full IEEE 802.11i/RSN):
    # bit0 = WPA
    # bit1 = IEEE 802.11i/RSN (WPA2) (dot11RSNAEnabled)
    wpa=3
    # WPA pre-shared keys for WPA-PSK. This can be either entered as a 256-bit
    # secret in hex format (64 hex digits), wpa_psk, or as an ASCII passphrase
    # (8..63 characters) that will be converted to PSK. This conversion uses SSID
    # so the PSK changes when ASCII passphrase is used and the SSID is changed.
    # wpa_psk (dot11RSNAConfigPSKValue)
    # wpa_passphrase (dot11RSNAConfigPSKPassPhrase)
    #wpa_psk=---
    wpa_passphrase=---
    # Optionally, WPA PSKs can be read from a separate text file (containing list
    # of (PSK,MAC address) pairs. This allows more than one PSK to be configured.
    # Use absolute path name to make sure that the files can be read on SIGHUP
    # configuration reloads.
    #wpa_psk_file=/etc/hostapd/hostapd.wpa_psk
    # Set of accepted key management algorithms (WPA-PSK, WPA-EAP, or both). The
    # entries are separated with a space. WPA-PSK-SHA256 and WPA-EAP-SHA256 can be
    # added to enable SHA256-based stronger algorithms.
    # (dot11RSNAConfigAuthenticationSuitesTable)
    wpa_key_mgmt=WPA-PSK
    # Set of accepted cipher suites (encryption algorithms) for pairwise keys
    # (unicast packets). This is a space separated list of algorithms:
    # CCMP = AES in Counter mode with CBC-MAC [RFC 3610, IEEE 802.11i/D7.0]
    # TKIP = Temporal Key Integrity Protocol [IEEE 802.11i/D7.0]
    # Group cipher suite (encryption algorithm for broadcast and multicast frames)
    # is automatically selected based on this configuration. If only CCMP is
    # allowed as the pairwise cipher, group cipher will also be CCMP. Otherwise,
    # TKIP will be used as the group cipher.
    # (dot11RSNAConfigPairwiseCiphersTable)
    # Pairwise cipher for WPA (v1) (default: TKIP)
    wpa_pairwise=CCMP
    # Pairwise cipher for RSN/WPA2 (default: use wpa_pairwise value)
    rsn_pairwise=CCMP
    # Time interval for rekeying GTK (broadcast/multicast encryption keys) in
    # seconds. (dot11RSNAConfigGroupRekeyTime)
    wpa_group_rekey=600
    # Rekey GTK when any STA that possesses the current GTK is leaving the BSS.
    # (dot11RSNAConfigGroupRekeyStrict)
    #wpa_strict_rekey=1
    # Time interval for rekeying GMK (master key used internally to generate GTKs
    # (in seconds).
    wpa_gmk_rekey=86400
    # Maximum lifetime for PTK in seconds. This can be used to enforce rekeying of
    # PTK to mitigate some attacks against TKIP deficiencies.
    #wpa_ptk_rekey=600
    # Enable IEEE 802.11i/RSN/WPA2 pre-authentication. This is used to speed up
    # roaming be pre-authenticating IEEE 802.1X/EAP part of the full RSN
    # authentication and key handshake before actually associating with a new AP.
    # (dot11RSNAPreauthenticationEnabled)
    rsn_preauth=1
    # Space separated list of interfaces from which pre-authentication frames are
    # accepted (e.g., 'eth0' or 'eth0 wlan0wds0'. This list should include all
    # interface that are used for connections to other APs. This could include
    # wired interfaces and WDS links. The normal wireless data interface towards
    # associated stations (e.g., wlan0) should not be added, since
    # pre-authentication is only used with APs other than the currently associated
    # one.
    #rsn_preauth_interfaces=eth0
    # peerkey: Whether PeerKey negotiation for direct links (IEEE 802.11e) is
    # allowed. This is only used with RSN/WPA2.
    # 0 = disabled (default)
    # 1 = enabled
    #peerkey=1
    # ieee80211w: Whether management frame protection (MFP) is enabled
    # 0 = disabled (default)
    # 1 = optional
    # 2 = required
    #ieee80211w=0
    # Association SA Query maximum timeout (in TU = 1.024 ms; for MFP)
    # (maximum time to wait for a SA Query response)
    # dot11AssociationSAQueryMaximumTimeout, 1...4294967295
    #assoc_sa_query_max_timeout=1000
    # Association SA Query retry timeout (in TU = 1.024 ms; for MFP)
    # (time between two subsequent SA Query requests)
    # dot11AssociationSAQueryRetryTimeout, 1...4294967295
    #assoc_sa_query_retry_timeout=201
    # okc: Opportunistic Key Caching (aka Proactive Key Caching)
    # Allow PMK cache to be shared opportunistically among configured interfaces
    # and BSSes (i.e., all configurations within a single hostapd process).
    # 0 = disabled (default)
    # 1 = enabled
    #okc=1
    ##### IEEE 802.11r configuration ##############################################
    # Mobility Domain identifier (dot11FTMobilityDomainID, MDID)
    # MDID is used to indicate a group of APs (within an ESS, i.e., sharing the
    # same SSID) between which a STA can use Fast BSS Transition.
    # 2-octet identifier as a hex string.
    #mobility_domain=a1b2
    # PMK-R0 Key Holder identifier (dot11FTR0KeyHolderID)
    # 1 to 48 octet identifier.
    # This is configured with nas_identifier (see RADIUS client section above).
    # Default lifetime of the PMK-RO in minutes; range 1..65535
    # (dot11FTR0KeyLifetime)
    #r0_key_lifetime=10000
    # PMK-R1 Key Holder identifier (dot11FTR1KeyHolderID)
    # 6-octet identifier as a hex string.
    #r1_key_holder=000102030405
    # Reassociation deadline in time units (TUs / 1.024 ms; range 1000..65535)
    # (dot11FTReassociationDeadline)
    #reassociation_deadline=1000
    # List of R0KHs in the same Mobility Domain
    # format: <MAC address> <NAS Identifier> <128-bit key as hex string>
    # This list is used to map R0KH-ID (NAS Identifier) to a destination MAC
    # address when requesting PMK-R1 key from the R0KH that the STA used during the
    # Initial Mobility Domain Association.
    #r0kh=02:01:02:03:04:05 r0kh-1.example.com 000102030405060708090a0b0c0d0e0f
    #r0kh=02:01:02:03:04:06 r0kh-2.example.com 00112233445566778899aabbccddeeff
    # And so on.. One line per R0KH.
    # List of R1KHs in the same Mobility Domain
    # format: <MAC address> <R1KH-ID> <128-bit key as hex string>
    # This list is used to map R1KH-ID to a destination MAC address when sending
    # PMK-R1 key from the R0KH. This is also the list of authorized R1KHs in the MD
    # that can request PMK-R1 keys.
    #r1kh=02:01:02:03:04:05 02:11:22:33:44:55 000102030405060708090a0b0c0d0e0f
    #r1kh=02:01:02:03:04:06 02:11:22:33:44:66 00112233445566778899aabbccddeeff
    # And so on.. One line per R1KH.
    # Whether PMK-R1 push is enabled at R0KH
    # 0 = do not push PMK-R1 to all configured R1KHs (default)
    # 1 = push PMK-R1 to all configured R1KHs whenever a new PMK-R0 is derived
    #pmk_r1_push=1
    ##### Neighbor table ##########################################################
    # Maximum number of entries kept in AP table (either for neigbor table or for
    # detecting Overlapping Legacy BSS Condition). The oldest entry will be
    # removed when adding a new entry that would make the list grow over this
    # limit. Note! WFA certification for IEEE 802.11g requires that OLBC is
    # enabled, so this field should not be set to 0 when using IEEE 802.11g.
    # default: 255
    #ap_table_max_size=255
    # Number of seconds of no frames received after which entries may be deleted
    # from the AP table. Since passive scanning is not usually performed frequently
    # this should not be set to very small value. In addition, there is no
    # guarantee that every scan cycle will receive beacon frames from the
    # neighboring APs.
    # default: 60
    #ap_table_expiration_time=3600
    ##### Wi-Fi Protected Setup (WPS) #############################################
    # WPS state
    # 0 = WPS disabled (default)
    # 1 = WPS enabled, not configured
    # 2 = WPS enabled, configured
    #wps_state=0
    # AP can be configured into a locked state where new WPS Registrar are not
    # accepted, but previously authorized Registrars (including the internal one)
    # can continue to add new Enrollees.
    #ap_setup_locked=1
    # Universally Unique IDentifier (UUID; see RFC 4122) of the device
    # This value is used as the UUID for the internal WPS Registrar. If the AP
    # is also using UPnP, this value should be set to the device's UPnP UUID.
    # If not configured, UUID will be generated based on the local MAC address.
    #uuid=12345678-9abc-def0-1234-56789abcdef0
    # Note: If wpa_psk_file is set, WPS is used to generate random, per-device PSKs
    # that will be appended to the wpa_psk_file. If wpa_psk_file is not set, the
    # default PSK (wpa_psk/wpa_passphrase) will be delivered to Enrollees. Use of
    # per-device PSKs is recommended as the more secure option (i.e., make sure to
    # set wpa_psk_file when using WPS with WPA-PSK).
    # When an Enrollee requests access to the network with PIN method, the Enrollee
    # PIN will need to be entered for the Registrar. PIN request notifications are
    # sent to hostapd ctrl_iface monitor. In addition, they can be written to a
    # text file that could be used, e.g., to populate the AP administration UI with
    # pending PIN requests. If the following variable is set, the PIN requests will
    # be written to the configured file.
    #wps_pin_requests=/var/run/hostapd_wps_pin_requests
    # Device Name
    # User-friendly description of device; up to 32 octets encoded in UTF-8
    #device_name=Wireless AP
    # Manufacturer
    # The manufacturer of the device (up to 64 ASCII characters)
    #manufacturer=Company
    # Model Name
    # Model of the device (up to 32 ASCII characters)
    #model_name=WAP
    # Model Number
    # Additional device description (up to 32 ASCII characters)
    #model_number=123
    # Serial Number
    # Serial number of the device (up to 32 characters)
    #serial_number=12345
    # Primary Device Type
    # Used format: <categ>-<OUI>-<subcateg>
    # categ = Category as an integer value
    # OUI = OUI and type octet as a 4-octet hex-encoded value; 0050F204 for
    # default WPS OUI
    # subcateg = OUI-specific Sub Category as an integer value
    # Examples:
    # 1-0050F204-1 (Computer / PC)
    # 1-0050F204-2 (Computer / Server)
    # 5-0050F204-1 (Storage / NAS)
    # 6-0050F204-1 (Network Infrastructure / AP)
    #device_type=6-0050F204-1
    # OS Version
    # 4-octet operating system version number (hex string)
    #os_version=01020300
    # Config Methods
    # List of the supported configuration methods
    # Available methods: usba ethernet label display ext_nfc_token int_nfc_token
    # nfc_interface push_button keypad
    #config_methods=label display push_button keypad
    # Static access point PIN for initial configuration and adding Registrars
    # If not set, hostapd will not allow external WPS Registrars to control the
    # access point. The AP PIN can also be set at runtime with hostapd_cli
    # wps_ap_pin command. Use of temporary (enabled by user action) and random
    # AP PIN is much more secure than configuring a static AP PIN here. As such,
    # use of the ap_pin parameter is not recommended if the AP device has means for
    # displaying a random PIN.
    #ap_pin=12345670
    # Skip building of automatic WPS credential
    # This can be used to allow the automatically generated Credential attribute to
    # be replaced with pre-configured Credential(s).
    #skip_cred_build=1
    # Additional Credential attribute(s)
    # This option can be used to add pre-configured Credential attributes into M8
    # message when acting as a Registrar. If skip_cred_build=1, this data will also
    # be able to override the Credential attribute that would have otherwise been
    # automatically generated based on network configuration. This configuration
    # option points to an external file that much contain the WPS Credential
    # attribute(s) as binary data.
    #extra_cred=hostapd.cred
    # Credential processing
    # 0 = process received credentials internally (default)
    # 1 = do not process received credentials; just pass them over ctrl_iface to
    # external program(s)
    # 2 = process received credentials internally and pass them over ctrl_iface
    # to external program(s)
    # Note: With wps_cred_processing=1, skip_cred_build should be set to 1 and
    # extra_cred be used to provide the Credential data for Enrollees.
    # wps_cred_processing=1 will disabled automatic updates of hostapd.conf file
    # both for Credential processing and for marking AP Setup Locked based on
    # validation failures of AP PIN. An external program is responsible on updating
    # the configuration appropriately in this case.
    #wps_cred_processing=0
    # AP Settings Attributes for M7
    # By default, hostapd generates the AP Settings Attributes for M7 based on the
    # current configuration. It is possible to override this by providing a file
    # with pre-configured attributes. This is similar to extra_cred file format,
    # but the AP Settings attributes are not encapsulated in a Credential
    # attribute.
    #ap_settings=hostapd.ap_settings
    # WPS UPnP interface
    # If set, support for external Registrars is enabled.
    #upnp_iface=br0
    # Friendly Name (required for UPnP)
    # Short description for end use. Should be less than 64 characters.
    #friendly_name=WPS Access Point
    # Manufacturer URL (optional for UPnP)
    #manufacturer_url=http://www.example.com/
    # Model Description (recommended for UPnP)
    # Long description for end user. Should be less than 128 characters.
    #model_description=Wireless Access Point
    # Model URL (optional for UPnP)
    #model_url=http://www.example.com/model/
    # Universal Product Code (optional for UPnP)
    # 12-digit, all-numeric code that identifies the consumer package.
    #upc=123456789012
    ##### Multiple BSSID support ##################################################
    # Above configuration is using the default interface (wlan#, or multi-SSID VLAN
    # interfaces). Other BSSIDs can be added by using separator 'bss' with
    # default interface name to be allocated for the data packets of the new BSS.
    # hostapd will generate BSSID mask based on the BSSIDs that are
    # configured. hostapd will verify that dev_addr & MASK == dev_addr. If this is
    # not the case, the MAC address of the radio must be changed before starting
    # hostapd (ifconfig wlan0 hw ether <MAC addr>). If a BSSID is configured for
    # every secondary BSS, this limitation is not applied at hostapd and other
    # masks may be used if the driver supports them (e.g., swap the locally
    # administered bit)
    # BSSIDs are assigned in order to each BSS, unless an explicit BSSID is
    # specified using the 'bssid' parameter.
    # If an explicit BSSID is specified, it must be chosen such that it:
    # - results in a valid MASK that covers it and the dev_addr
    # - is not the same as the MAC address of the radio
    # - is not the same as any other explicitly specified BSSID
    # Please note that hostapd uses some of the values configured for the first BSS
    # as the defaults for the following BSSes. However, it is recommended that all
    # BSSes include explicit configuration of all relevant configuration items.
    #bss=wlan0_0
    #ssid=test2
    # most of the above items can be used here (apart from radio interface specific
    # items, like channel)
    #bss=wlan0_1
    #bssid=00:13:10:95:fe:0b
    I tried to access this network through the other device - same problem. What's the problem? Thanks in advance.

    Retracting the question...no one seems to know.
    LarryMcJ

  • Can anyone help?? Another new MacPro thread....

    Hi all.
    Another person here having big issues with PP CC 2014 on the new MacPro..
    A little background;
    I've been having issues with PP for years. Previously I was a photographer, and Lightroom was my software of choice. That was a great Adobe experience, pretty faultless software really...
    Then when I moved to video it was a different story... obviously it's a whole different ballgame dealing with video files, I've not had much luck with my editing workflow!
    I was working off an underpowered PC first, then was on a few Macbook Pros. Eventually, I got the go ahead to get a new MacPro from my employer, I thought that would solve all my problems! How wrong I was!
    Even after the apparent "fix" for the GPU issues, I'm still having problems...
    I'm no Adobe basher....No one wants PP to work well more than me (Al Mooney got highly offended on Twitter after I suggested PP might be slightly less than perfect!)
    I'm hoping I might get some tips to improve performance or even a fix for the issues I'm having.
    Here's the gist of my specs, can give more if needed;
    Yosemite 10.10.2 (14C109)
    Mac Pro (Late 2013)
    3.5 GHz 6-Core Intel Xeon E5
    64 GB 1866 MHz DDR3 ECC
    AMD FirePro D700 6144 MB
    My main drive is a G RAID 8GB TB2
    So,
    My main issue is that when a sequence gets more complex, the performance dips massively, to the point where it's unusable and crashes constantly.
    The timeline freezes, the playhead is laggy, the system gets really slow to respond in general..... Maybe 15 seconds for the keyboard to respond to keypresses. (or else I need to tap spacebar twice instead of once to get it to respond). If I try to make any change on the timeline that anything more than a simple delete etc, the system can freeze and I need to force quit.
    Another symptom is that when quitting the program, often it doesn't quit properly and I need to force quit.
    The sequences I'm working on don't seem that demanding (especially give the machine I have) so it's really confusing as to what the issue is.
    We're talking videos usually in the 2 -5 minutes range. Maybe 4 video layers. Footage wise; generally 1080p XAVC from a Sony F5, some Canon 4K from a 1DC. Can PP really handle native footage, should I be transcoding??? One of the big benefits of PP is the apparent ability to handle native formats, so it's really disappointing if that's the issue....
    I do use a reasonable amount of plugins, like Izotope for denoising dialogue, the dreaded Red Giant plugins, and occasionally Red Giant Denoiser (is this the root of my problems??!). My current project has two layers keyed interviews (2 angles) and I'm using Ultrakey for that. (I bought Red Giant Primatte Keyer, but my system isn't powerful enough to run it without major issues....ridiculous!!)
    If anyone has any suggestions I'd love to hear them. I've read other threads but my issue seems different. I can't rule out that I'm making some obvious mistake in my workflow either... so any general workflow best practise tips in that regard would be good too.
    Sorry for the long thread and thanks for reading.

    Hi healyb2,
    Sorry you're experiencing this issue.
    I think I've identified one of the issues, Izotope 4 Dialogue Denoiser.....
    I've disabled it on an existing sequence and the crashes have stopped (for now).
    Let us know if these issues crop up again. You can let us know directly here: http://adobe.ly/ReportBug
    So, possibly (like Red Giant) Izotope plugins may not work usably in Premiere Pro....... which really grinds my gears......
    Actually, we work hand in hand with plug-ins developers in the realm of compatibility. Some of these plug-ins companies are quite small so you have to pay close attention to precisely what is supported for the host application. In some cases, it takes some time to catch up to the latest versions.
    why are Adobe not calling out the plugins as not usable? What about the plugin manufacturers themselves? I can't see this being a performance issue on my end...frustrating!
    That's actually up to the plug-ins manufacturers. Please communicate with them accordingly regarding compatibility. Sorry for any confusion this may have brought about.
    Thanks,
    Kevin

  • How do I export all the tracks from a certain portion of a session?

    To be more specific, I have a session that is 30 minutes long. I want to export all of the tracks between minutes 2 and 3. The audio files need to be the same length, so my mixer can synch them, so any empty space at the beginning or end needs to be silence in the AIF or WAV file.
    I'd prefer to be able to do them all at once, but would settle for doing them one at a time. Right now, can't do either...
    Thanks for any help.

    Activate cycle mode, adjust cycle area as needed and export tracks as audio files, no?
    http://help.apple.com/logicpro/mac/10/#lgcp8e5ce2d3
    Or cut globally at position 2min and 3min, then mute manually regions before and after the 2 - 3 minute range, bounce and get rid of the not needed silence in the audio.
    Cheers!

  • Itunes 7.6.1.9 - ripping cds using too much cpu!

    When ripping new cds, itunes starts hogging the cpu like no tomorrow. it will get to 99% at times! I have a 1GB ram, and have NEVER had this problem with any other application or version of iTunes for that matter. I consistantly run multiple programs at the same time, such as Photoshop CS, Firefox and itunes all at the same time with not even 30% of the cpu being used. This is ridiculous.
    In addition to basically fearing my machine will crash if i want to put a new cd on my computer, now songs hang up / skip randomly (including itunes purchases!) and this also NEVER happened before the upgrade.
    What is the deal?

    Hey folks, there is a DEFINITE bug in version 7.6.029 which is causing a variety of problems, including massively slow time to rip CDs, and frequent hangs of iTunes. I just upgraded from 7.5 to 7.6.029 after ripping about 200 CDs relatively quickly using iTunes.... IMMEDIATELY after iTunes "auto upgraded" itself to 7.6.029, I started seeing massively slower times....rips that took 4 minutes previously now take over 20 minutes. I tried a variety of other suggested fixes (deleting video files, deleting podcasts, upgrading quicktime, etc).... not a bit of it helped.
    Here is what DID fix the problem:
    1. I copied my already ripped music files to another disk for safety,
    2. then I deleted version 7.6.029 from my PC via add/delete programs.
    3.deleted quicktime via add/delete programs
    4.killed ituneshelper via task manager
    5. rebooted my pc,
    6. installed version 7.5.0.20 by using file I found at:http://appldnld.apple.com.edgesuite.net/content.info.apple.com/iTunes7/Win/061-3 902.20071105.G6edS/iTunes75Setup.exe
    7. manually delete "iTunes Library.itl" in the ..My Documents/My Music/iTunes directory
    8. I then got the 'old' iTunes to come up by selecting "repair" on the iTunes restart
    9. I then did "file->add folder to library" on iTunes menu (pointing at the saved music files from step 1.) to re-import all my music. Of course, I logged onto iTunes beforehand with my AppleID so that iTunes would re-retrieve all the album art. I did NOT manually delete any files at any time in the except the iTunes Library.itl file in the ....->My Documents->My Music->iTunes folder.
    That has completely fixed my problem. Disks are now back to being ripped in the 3 to 5 minute range...CPU usage is still as high as it was in 7.6, but iTunes no longer locks up, and the program is now properly managing my multispeed CD disk drive...operating it at 10x speed to rip discs (as opposed to 1.2 to 2x speeds under iTunes version 7.6)
    So, sorry Apple, I won't be upgrading iTunes until I read that you have really fixed this problem...comments everywhere point out this performance bug, and I don't see any coherent response from you guys...just misplaced blame on disc drives, cpus, etc.....but the code is BAD... Hey, you didn't just outsource the iTunes coding effort did you? Sure looks like it.

  • Space Bar not responding during editting

    Under normal circumstances when editting in the timeline, my reporters use the spacebar to play and pause/stop the timeline. There has been some issues of late where the space bar seems to not be working, and requires two or three pushes before it plays or pauses the video in the timeline. The video being rendered does not affect it one way or the other, and it is not constant. It can happen at any time, and often doesn't affect a reporter, or will affect a reporter non-stop (both occured today). For the record, yes I have checked the keyboard and it is not the problem. The spacebar works fine for normal use, its just PPro that has the problem.
    Specs: I have four identical edit bays. Each has a Dual Core 2.5 Ghz Pentium  processor, 3.0 gbs of ram, a single sata drive split into two partitions  (system 30 gb and video 470 gb). I am running up to date PPro 5.0.2,  freshly installed on virgin drives. I have two of the bays with the most up to date 64 bit  manufacturer video and audio drivers, and two bays with Windows 7  automatically installed video and audio drivers. The problem is the same  in all four bays.
    Help?

    Your problem is that your systems are below minimum requirements, with some serious setup faults.
    This is harsh:
    1. A single disk is below minimum requirements. You need at least two physical 7200 RPM SATA disks
    2. Never partition a disk. It will only increase wear and tear and slow down performance.
    3. You likely never tuned your system. Look here: Adobe Forums: Guide for installing and tuning a Vista... This also applies to Win7.
    4. Your dual core CPU is absolutely bare minimum for DV material, but anything more will grind to a halt.
    5. 3 GB RAM is not enough.
    You are in for a serious upgrade of your systems.
    First Harm, I do want to say thank you and that I realize you are trying to help. But, budget is a major issue, and the likelyhood of upgrading soon is non-existant. So what can we do to work within the specs I have? I had not done all of the steps in the tune up, but yes most of them I had, specifically I had not installed Ccleaner, and I had not turned off all of the windows add ons as yet - both will be fixed soon. Our editting needs are pretty minimal to be honest, which is part of why its so frustrating that PPro is being so cantankerous. Cut in and out of five or ten clips, add in a voice over track, and once in a great while a cross fade between two clips or fade out audio (using the pen tool), export to mpeg, and we're done. Our longest package is 4 minutes and that's most of a news block (segment between commercials - we have a 30 minutes news show, so you can imagine most are in the 1:30 to 2 minute range).
    function(){return A.apply(null,[this].concat($A(arguments)))}
    Someone is sure to comment on that.  I wanted to jump in first and say that while the idea of using a single partitioned hard drive isn't a good one, doing so is highly unlikely to be the cause of this particular issue.
    Thanks for the reply. Yeah, I knew about someone would say something eventually, but given that it works most of the time, and only freezes up occasionally, like you I find it unlikely that this is the issue. I'm not saying it won't contribute to it (I know it can). The sad part of all this is I can't get it to replicate the space bar freeze up for me, and while I experience it when I go into the bays for the reporters, I have no idea what they have done up until that point in order to troubleshoot what they are doing wrong. I can and have run an install at the same time as editting video and not had a single slow down whatsoever, while several reporters have issues running PPro and notepad. One is running her yahoo mail in IE, and I think that is one of the problems she runs into (given how resource hoggy IE can be - especially on yahoo's webmail interface), but that's one person, not all of them.

  • FLVPlayback: buffer with progressive video?

    I've been searching around the web and coming up confused.
    I am using the FLVPlayback component to deliver
    progressive-download video in Flash 8. I want the component to
    download more video before it starts playing so the playback
    doesn't get ahead of the download and hang up.
    I would have thought FLVPlayback.bufferTime would do the
    trick, but I've read two things in the docs which seem to say not:
    1. "NOTE This property does not specify the amount of the FLV
    file to download before starting playback." (Does that mean it only
    specifies the amount of time to buffer, not the amount of the file
    to buffer?)
    2. "For a progressively downloaded FLV file over HTTP, there
    is little benefit to increasing this value although it could
    improve viewing a high-quality video on an older, slower computer."
    (Some of the sites I've found in my searching say bufferTime _does_
    make a difference using progressive video, but others say no.)
    So my question is, what is the recommended way to make sure
    enough file has downloaded before starting playback? Seems like a
    simple question, but also seems there's a lot of confusion
    surrounding this and I think the documentation is a little vague.
    Thanks for any advice!
    -Helene

    dzedward: I've got a few videos, all in the 1-3 minute range.
    I'm sorry to say I didn't understand your answer. I thought RTMP is
    streaming, and buffers to memory, and what I'm using is progressive
    download, which is something else.
    Nickels55: Your answer implies that bufferTime should work on
    progressive video. I'll give it a try. The default is not 1 second
    but .1 second (one tenth), which I suppose can't be enough! I'll
    try pushing it up and see what happens.

  • Poor query performance with BETWEEN

    I'm using Oracle Reports 6i.
    I needed to add Date range parameters (Starting and Ending dates) to a report. I used lexicals in the Where condition to handle the logic.
    If no dates given,
    Start_LEX := '/**/' and
    End_LEX := '/**/'
    If Start_date given,
    Start_LEX := 'AND t1.date >= :Start_date'
    If End_date given,
    End_LEX := 'AND t1.date <= :End_date'
    When I run the report with no dates or only one of the dates, it finishes in 3 to 8 seconds.
    But when I supply both dates, it takes > 5 minutes.
    So I did the following
    If both dates are given and Start_date = End date,
    Start_LEX := 'AND t1.date = :Start_date'
    End_LEX := '/**/'
    This got the response back to the 3 - 8 second range.
    I then tried this
    if both dates are given and Start_date != End date,
    Start_LEX := 'AND t1.date BETWEEN :Start_date AND :End_date'
    End_LEX := '/**/'
    This didn't help. The response was still in the 5+ minutes range.
    If I run the query outside of Oracle Reports, in PL/SQL Developer or SQLplus, it returns the same data in 3 - 8 seconds in all cases.
    Does anyone know what is going on in Oracle Reports when a date is compared with two values either separately or with a BETWEEN? Why does the query take approx. 60 times as long to execute?

    Hi,
    Observe access plan first by using BETWEEN as well as using <= >=.
    Try to impose logic of using NVL while forming lexical parameters.
    Adinath Kamode

  • SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first

    Hello, I was trying to send mails via GMail's smtp server (smtp.gmail.com) but the following exception occurred. I used port 25 (used 467 also, didnt work). Would anybody tell what the following exception mean. Thanx.
    com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command firstHere's my code:
    import javax.mail.*;
    import javax.mail.event.TransportListener;
    import javax.mail.event.TransportEvent;
    import javax.mail.internet.*;
    import java.util.Properties;
    import javax.activation.*;
    class MailSender {
         private String mailHost="smtp.gmail.com";
         private String body;
         private String myFile="F:\\DRacing.avi";
         private Properties props;
         private Session mailSession;
         private MimeMessage message;
         private InternetAddress sender;
         private Multipart mailBody;
         private MimeBodyPart mainBody;
         private MimeBodyPart mimeAttach;
         private DataSource fds;
         MailSender()
              //Creating a Session
              props=new Properties();
                        props.put("mail.transport.protocol", "smtp");
              props.put("mail.smtp.host", mailHost);
              props.put("mail.smtp.port", "25");
              props.put("mail.smtp.auth", "true");
              mailSession=Session.getDefaultInstance(props, new MyAuthenticator());
              //Constructing and Sending a Message
              try
                   //Starting a new Message
                   message=new MimeMessage(mailSession);
                   mailBody=new MimeMultipart();
                   //Setting the Sender and Recipients
                   sender=new InternetAddress("[email protected]", "Kayes");
                   message.setFrom(sender);
                   InternetAddress[] toList={new InternetAddress("[email protected]")};
                   message.setRecipients(Message.RecipientType.TO, toList);
                   //Setting the Subject and Headers
                   message.setSubject("My first JavaMail program");
                   //Setting the Message body
                   body="Hello!";
                   mainBody=new MimeBodyPart();
                   mainBody.setDataHandler(new DataHandler(body, "text/plain"));
                   mailBody.addBodyPart(mainBody);
                   //Adding a single attachment
                   fds=new FileDataSource(myFile);
                   mimeAttach=new MimeBodyPart();
                   mimeAttach.setDataHandler(new DataHandler(fds));
                   mimeAttach.setFileName(fds.getName());
                   mailBody.addBodyPart(mimeAttach);
                   message.setContent(mailBody);
                                  Transport.send(message);
              catch(java.io.UnsupportedEncodingException e)
                   System.out.println(e);
              catch(MessagingException e)
                   System.out.println(e);
              catch(IllegalStateException e)
                   System.out.println(e);
    public class TestMail01
         public static void main(String args[])
              new MailSender();
    class MyAuthenticator extends Authenticator
         MyAuthenticator()
              super();
         protected PasswordAuthentication getPasswordAuthentication()
              return new PasswordAuthentication("dider7", "MY_PASSWORD");
    }

    This is an application that sends a message but there is a problem the domain could not be resolved
    * Notifier.java
    * Created on March 23, 2006, 11:22 AM
    * To change this template, choose Tools | Options and locate the template under
    * the Source Creation and Management node. Right-click the template and choose
    * Open. You can then make changes to the template in the Source Editor.
    * @author Trainee
    import java.util.*;
    import java.sql.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.io.*;
    import java.net.InetAddress;
    import java.util.Properties;
    import java.util.Date;
    public class Notifier //throws MessagingException
    public static void main(String args[]) //throws Exception
    //SystemTray.getDefaultSystemTray().addTrayIcon(new TrayIcon(new ImageIcon("imagefilename")));
    // starts time getter
    NotifierThread NThread = new NotifierThread();
    Thread t = new Thread(NThread);
    t.start();
    //email module
    //EmailThread emailThread = new EmailThread();
    //emailThread.sendMessage();
    /*SimpleSender simple = new SimpleSender();
    simple.senderClassKo();*/
    //String[] arrayKo = { "[email protected]","def","xyz" };
    //String[] arrayKo = { "[email protected]","def","xyz" };
    //String recipients = "[email protected]";
    /*EmailThread EThread = new EmailThread();
    try
    // ( String recipients[ ], String subject, String message , String from)
    EThread.postMail( "[email protected]" , "NOTIFY", "ContractOverdue" , "[email protected]");
    System.out.println("ethread");
    catch(MessagingException me)
    me.printStackTrace();
    //DBConnection dbc = new DBConnection();
    //dbc.DBConnect();
    String host = "smtp.gmail.com";
    String from = "[email protected]";
    //String to = "[email protected]";
    String to = "[email protected]";
    // Get system properties
    Properties props = System.getProperties();
    // Setup mail server
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.starttls.enable", "true");
    props.put("mail.smtp.auth", "true");
    // Get session
    Authenticator auth = new MyAuthenticator();
    Session session = Session.getDefaultInstance(props, auth);
    // Define message
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO,
    new InternetAddress(to));
    message.setSubject("Hello JavaMail");
    message.setText("Welcome to JavaMail");
    // Send message
    //com.sun.mail.smtp.SMTPSSLTransport.send(message);
    Transport.send(message);*/
    class DBConnection
    static String[] email2 = new String[10];
    static int ctr = 0;
    static String ctrlno = "";
    public void DBConnect()
    Connection connection = null;
    Statement statement = null;
    ResultSet rs = null;
    try
    Class.forName("org.postgresql.Driver");
    connection = DriverManager.getConnection("jdbc:postgresql:cms", "postgres", "password");
    statement = connection.createStatement();
    String ctrlno2 = "ctrlno1";
    String sql = "SELECT (expiredate - CURRENT_DATE) as no_days, cms_trans_contract.ctrlno, cms_trans_contract_notify.notifyid, ofc_employee.email, notify1, notify2, notify3 from" +
    " cms_trans_contract, cms_trans_contract_notify, ofc_employee where" +
    " cms_trans_contract.ctrlno = cms_trans_contract_notify.ctrlno and cms_trans_contract_notify.notifyid = ofc_employee.idnum";
    //where ctrlno = " + "'"+ctrlno2+"'";
    //"select expiredate from cms_trans_contract";
    //wherer ctrlno = " + "'"+ctrlno2+"'";
    //SELECT (CURRENT_DATE - expiredate) as no_days from cms_trans_contract
    sql += "where startdate between '";
    sql += request.getParameter("commenceStartDate") + "' and '"
    sql += request.getParameter("commenceEndDate") + "'";
    sql += "and expiredate between '";
    sql += request.getParameter("expireStartDate") + "' and '"
    sql += request.getParameter("expireEndDate") + "'";
    rs = statement.executeQuery(sql);
    //System.out.println("rs: " + rs.next());
    while (rs.next())
    //System.out.println("Record Found");
    String firstname = "";
    String lastname = "";
    String notifyid = "";
    String email = "";
    int notify1;
    int notify2;
    int notify3;
    //Date expiredate;
    int subtracted_date;
    //firstname = (rs.getString(1));
    subtracted_date = (rs.getInt(1));
    ctrlno = (rs.getString(2));
    notifyid = (rs.getString(3));
    //email = (rs.getString(4));
    email2[ctr] = (rs.getString(4));
    notify1 = (rs.getInt(5));
    notify2 = (rs.getInt(6));
    notify3 = (rs.getInt(7));
    //lastname = (rs.getString(2));
    //out.println(contract.getCtrlno());
    //System.out.println("FIRSTNAME: " + firstname);
    //System.out.println("LASTNAME: " + lastname);
    //System.out.println("Expiredate: " + expiredate);
    //System.out.println("Ctrlno: " + ctrlno);
    System.out.println("SUB: " + subtracted_date);
    //System.out.println("sql: " + sql);
    if((((subtracted_date == notify1) || (subtracted_date == notify2)) || (subtracted_date == notify3)) && (subtracted_date > 0))
    System.out.println("CtrlnoGET: " + ctrlno);
    System.out.println("NotifyID: " + notifyid);
    //System.out.println("email " + email);
    System.out.println("EmailCTR: " + ctr +": " + email2[ctr]);
    System.out.println("notify1: " + notify1);
    System.out.println("notify2: " + notify2);
    System.out.println("notify3: " + notify3);
    EmailThread emailThread = new EmailThread();
    emailThread.sendMessage(DBConnection.email2, DBConnection.ctrlno);
    //ctr++;
    ctr++;
    if (rs.next() == false)
    System.out.println("No records found");
    catch (Exception ex)
    ex.printStackTrace();
    System.out.println("Error getting connections");
    finally
    try
    if (rs != null)
    rs.close();
    if (statement != null)
    statement.close();
    if (connection != null)
    connection.close();
    catch (Exception ex)
    ex.printStackTrace();
    System.out.println("Error closing connections");
    // time getter module
    class NotifierThread implements Runnable
    public void run()
    while (true)
    Calendar cal = new GregorianCalendar();
    int hour12 = cal.get(Calendar.HOUR); // Range 0..11
    //int hour24 = cal.get(Calendar.HOUR_OF_DAY); // Range 0..23
    int min = cal.get(Calendar.MINUTE); // Range 0..59
    int sec = cal.get(Calendar.SECOND); // Range 0..59
    //int ms = cal.get(Calendar.MILLISECOND); // Range 0..999
    int ampm = cal.get(Calendar.AM_PM); // Range 0=AM, 1=PM
    String am_pm = "";
    if(ampm == 0)
    am_pm = "AM";
    else
    am_pm = "PM";
    System.out.println("Time " + hour12 + ":" + min + ":" + sec + " " + am_pm);
    if(sec == 10)
    System.out.println("YIPEE");
    //EmailThread emailThread = new EmailThread();
    //emailThread.sendMessage(DBConnection.email2);
    DBConnection dbc = new DBConnection();
    dbc.DBConnect();
    try
    Thread.sleep(1000);
    catch(Exception e)
    e.printStackTrace();
    class SimpleSender
    * Main method to send a message given on the command line.
    /*public void senderClassKo()
    try
    //String smtpServer="mail.kiksbalayon.com";
    String smtpServer="localhost";
    String to="[email protected]";
    String from="[email protected]";
    String subject="hello";
    String body="sa wakas ng send din";
    send(smtpServer, to, from, subject, body);
    catch (Exception ex)
    //System.out.println("Usage: java com.lotontech.mail.SimpleSender"
    //+" smtpServer toAddress fromAddress subjectText bodyText");
    System.exit(0);
    /*public static void send(String smtpServer, String to, String from, String subject, String body)
    try
    Properties props = System.getProperties();
    // -- Attaching to default Session, or we could start a new one --
    props.put("mail.smtp.host", smtpServer);
    Session session = Session.getDefaultInstance(props, null);
    // -- Create a new message --
    Message msg = new MimeMessage(session);
    // -- Set the FROM and TO fields --
    msg.setFrom(new InternetAddress(from));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(to, false));
    // -- We could include CC recipients too --
    // if (cc != null)
    // msg.setRecipients(Message.RecipientType.CC
    // ,InternetAddress.parse(cc, false));
    // -- Set the subject and body text --
    msg.setSubject(subject);
    msg.setText(body);
    // -- Set some other header information --
    //msg.setHeader("X-Mailer", "LOTONtechEmail");
    msg.setSentDate(new Date());
    // -- Send the message --
    Transport.send(msg);
    System.out.println("Message sent OK.");
    catch (Exception ex)
    ex.printStackTrace();
    //Authentication module
    class MyAuthenticator extends Authenticator
    MyAuthenticator()
    super();
    //protected PasswordAuthentication getPasswordAuthentication()
    public PasswordAuthentication getPasswordAuthentication()
    return new PasswordAuthentication("johann108", "password");
    // email module
    class EmailThread //throws MessagingException
    public void sendMessage(String toEmail[], String ctrlno) //throws MessagingException
    try
    String host = "localhost";
    //String host = "mail.philweb.com";
    //String from = "[email protected]";
    String from = "[email protected]";
    //String[] to = toEmail;
    //"[email protected]";
    // Get system properties
    Properties props = System.getProperties();
    // Setup mail server
    props.put("mail.smtp.starttls.enable","true");
    props.put("mail.smtp.host", host);
    props.put("mail.smtp.auth", "true");
    // Get session
    Authenticator auth = new MyAuthenticator();
    Session session = Session.getDefaultInstance(props, auth);
    boolean debug = true;
    session.setDebug(debug);
    // Define message
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    InternetAddress[] to = new InternetAddress[DBConnection.ctr];
    for (int i = 0; i < DBConnection.ctr; i++)
    to[i] = new InternetAddress(toEmail);
    //System.out.println("EMAILTO:" + to[i]);
    message.setRecipients(Message.RecipientType.TO, to);
    //message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    message.setSubject("Contract Expiry");
    message.setText(
    "Contract is about to expire\n" +
    " ContractNumber is " + DBConnection.ctrlno
    // Send message
    Transport.send(message);
    catch(Exception me)
    me.printStackTrace();
    System.out.println("Error in Sending Message");

Maybe you are looking for