Need help detecting modem

Hello, as part of a program I need to detect modems for various platforms. On unix, this was no problem as I called the following:
Enumeration PortList =
CommPortIdentifier.getPortIdentifiers();
CommPortIdentifier Port = (CommPortIdentifier)
PortList.nextElement();
while(!Port.getName().equals("/dev/modem")){
Port = (CommPortIdentifier)
PortList.nextElement();
Thus, returning the port as a commPortIdentifier. However, I tried to implement this into windows but ran into problems. First, I couldn't find what to search for (the equivalent of /dev/modem) in windows, so I wrote a program to output all the ports, and then I would pick from one. Unforutnatley, that did not recognize any ports. Could someone please help me detect the modem port in any manner they might knwo how. All help is greatly appreciated. Thanks!

Hi,
Use the enviroment variable os.name to get the operating system. Then try something like this
public static void main(String[] args) {
        portList = CommPortIdentifier.getPortIdentifiers();
        while (portList.hasMoreElements()) {
            portId = (CommPortIdentifier) portList.nextElement();
            if (portId.getPortType() == CommPortIdentifier.PORT_SERIAL) {
                // if (portId.getName().equals("COM1")) {
                if (portId.getName().equals("/dev/term/a")) {
                    SimpleRead reader = new SimpleRead();
    }I have just cut and paste the code from the sample provided with the comm API package. You will have to add an if clause to handle both windows and unix.
Hope this helps.

Similar Messages

  • NEED HELP! Modem keeps disconnecting w/K7T266 Pro & WinXP

    My system:
    K7T266 Pro
    Athlon 1333MH
    256Mb DDR 2100
    MSI GeForce 2 MX, 32Mb
    Zoom V.92 internal modem
    SB Live! 5.1
    2 x 80Gb Maxtor HD
    LiteOn 16x12x40 CD-RW
    USB mouse
    340 W Enlight Power Supply
    This system worked fine on the internet when I was running Win98.  I upgraded to WinXP and now the modem keeps disconnecting shortly after connecting (but it always connects for a short period of time).
    Here's what I have tried:  Reloaded WinXP Home Edition on a newly formatted HD using a clean install (not an upgrade) and the NT file system.  Loaded the latest MSI 4-in-1 drivers and upgraded Bios to latest version (v1.9).  Reloaded all the software.  Got all the latest XP drivers and WinXP updates.  Have tried 4 different brands of modems, internal and external.  Have tried modems in different PCI slots (currently using PCI slot 3 with SB in slot 4).  Have tried modem on different Com ports (currently using Com 3).  Have tried slowing down the com port speed.  There is no IRQ sharing with the modem.  Have tried different phone jacks and cords (the same ones that work fine on the older HP Win98 computer I am writing this on).  Have tried 2 different ISPs (currently using CompuServe).  Have reloaded the ISP software several times (trying different versions) and currently have their latest XP version - ISP says others are not having this problem with their software (have spent hours with their technical help with no resolution).  Not using any ad blocker or anti-virus software (yet).
    Nothing I have tried has made any difference so far.  Am I missing something?  I don't want to go back to Win98!
    Oh ya, another minor annoyance:  My system freezes after sitting idle for a while, even though the Windows power scheme is set to Always On and no screensaver.  Otherwise, everything else works fine.

    Hello everyone,
    I was gone for a few days, but when I got home I was very happy to see some more posts to this thread!!
    Last night I tried disabling the SoundBlaster (with the Windows System Device Manager).  I disabled both the sound card and the game port.  The modem was still disconnecting.
    Until now I hadn't heard of Via chipsets and SoundBlasters not getting along well with each other either.  I had, however, previously tried another sound card - it was an older Diamond Monster card I had, but I couldn't find a WinXP driver for it.  It didn't work well at all with WinXP.  So back to the SoundBlaster Live! 5.1.
    I did find a cure for the other problem I mentioned.  I noticed that the SoundBlaster and all 3 USB controllers were sharing IRQ 10.  I removed the USB optical mouse and tried a PS2 ball mouse.  That solved the problem where the system was freezing after sitting idle for a while.  I sure liked the optical mouse better though.  This same problem may have been related to another one I noticed.  When playing audio CDs, sometimes the sound would stop momentarily and then go on again.  I haven't yet had a chance to see if removing the USB mouse solved that problem as well.  I have also noticed that the volume of audio CDs are controlled by the wave volume and not the CD volume.  Is this normal?  I have both the analog and digital cables connected and the CD digital setting enabled.  It's very annoying, since turning the volume up on audio CDs causes the Windows wave sounds to blast me out when they play.  I don't know how to set the SoundBlaster to use one of the other unused IRQs - can anyone tell me how to?
    I haven't yet tried the PCI latency patches, because I wasn't too hopeful after seeing that it didn't work for Philipponnat.
    Now for the Bios.  I have always had my Primary Graphics Adapter setting on AGP.  The onboard modem and audio settings have always been set to disabled.  I was excited to see that Philipponnat found a cure for the modem disconnections with the PCI latency setting.  When I went to my computer to do the same thing, I was disapointed to find that my Bios does not have a setting by that name, either in the PNP/PCI configuration or anywhere else.  The only thing I found that looked related was one called "PCI Delay Transaction" in the Advanced Chipset Features section, but the only settings available are enabled or disabled.  Mine was set to disabled, but I couldn't tell any difference when I set it to enabled.  Maybe we have different boards - mine is version 1, but I have flashed the Bios to the latest version I found, v1.9.
    I have noticed another strange thing in the Bios.  The Bios no longer detects the power supply fan speed - it always reads zero RPM in Bios even though the lead is hooked up.  The other fans show a reading.  The power supply fan used to show a reading when I first put the computer together.
    I also have S.M.A.R.T. enabled.  I have 2 identical hard drives.  They are Maxtor 80Gb 7200RPM ATA133 drives which are S.M.A.R.T. capable.  Only the primary drive (master on the primary IDE) displays S.M.A.R.T values in SpeedFan.  The other drive is set as a slave on the secondary IDE (my CD-R-RW is set as the master on the secondary IDE).
    There have sure been a lot of wierd things about this motherboard.  Thank you everyone for your input so far.  Still need more help!!
    John

  • Need help writing modem driven application

    Not sure where to start but this is what I would like to do:
    Write a java program to listen on a modem. The program should perform some task when someone dails in and enters a number via the phone. In other words, I would like to call my computer and direct to perform a function based on the number entered. Can this be done?
    Please direct me where information can be found or where to start.
    Thanks,
    Ulises

    Ulises,
    I would not use a modem, I will get a DTMF chip (about $3.00) and connect it to the phone line. Connect the DTMF chip to a microcontroller (AVR $3, 8051, Stamp) and read the serial port thru javax.comm. You do need a cheap answering machine so the phone will pick-up.
    Sonny

  • Need Help With Modem

    I have a Westell 6100F. After I reinstalled Windows on my computer, I was no longer able to access the wired internet from my computer. The DSL  light is on and stable, but the data light is off while the internet light blinks. The data light is off because it's not recognizing a connection with the computer. But, here's the kicker. When I connect the modem to my Macbook, the data light turns on. Then it gives me the option of signing up for Verizon Internet. So, the modem isn't the problem. But, when I connect it to my mom's laptop which runs Windows, the data light doesnt come on as well.I dont think anything is wrong with the computers connection port either.
    Another kicker: when I connect the modem to my wireless router, the data lght comes on and I have wireless internet access.
    Message Edited by rsxjersey on 03-06-2009 12:41 PM

    Based upon what you said, I think I know why...
    Verizon in DHCP areas, is using MAC Address Bonding.
    This is true as long as you can connect from behind the RJ-45 WAN port router. In your case that means the wireless router...
    For Windows, I would recommend staying behind the router.
    Let the router handle the public IP DHCP connection.
    You will find it, a lot safer then directly connecting to the net.
    If you are the original poster (OP) and your issue is solved, please remember to click the "Solution?" button so that others can more easily find it. If anyone has been helpful to you, please show your appreciation by clicking the "Kudos" button.

  • Need help detecting data changes in my jTable

    I have created a jTable and a corresponding TableModel that extends the AbstractTableModel.
    In my TableModel, I call fireTableCellUpdated within setValueAt.
    I want to be able to say "if jTable has been edited then do something".
    How do I do this? Do I have to implement an action listener? If I do then where do I implement that?
    I've read the tutorial and the help several times but the tutorial is just a brief overview and does not go into what to do when you have extended the AbstractTableModel.
    TIA,
    Jennifer
    Message was edited by:
    jmc95825

    I'm pretty much a novice to Java programming so I don't know why I'm using a custom table model. I'm just following my predecessor. My app has to be able to edit a .dbf file so I thought the table model has to be able to read the headers.
    I've tried the code from the link you referenced and things are working great now.
    Thanks again!

  • Need help .. 4g usb modem .. application installed but cannot detect the usb modem .. mobily network interface installed but cannot detect the unit

    need help .. 4g usb modem .. application installed but cannot detect the usb modem .. mobily network interface installed but cannot detect the unit

    When you contacted the modem manufaturer what did they have to say?

  • Help! Modem Not Detected!

    need help. I just got my iMac today and I installed the AOL 5.0 thing. The AOL program isn't detecting the intenal modem. It is V.90 I supose, I do not see the modem cotrol panel in the apple menu. I tried all the apple internal modems form the list, I pluged in the phone line and I is saying Does Not Detect. I am not on my iMac so I can't take any confusing comands right now. Thanks. PLEASE HELP!

    Tiger -
    Let's try one more thing. Open Macintosh HD. Scroll down to System Folder. Open System Folder and scroll down to Control Panels. Open Control Panels and see if Modem Control Panel is in the lineup. It's probably not since it doesn't show under the 'Apple'.
    Just under Control Panels should be Control Panels (Disabled). Open that and see if Modem is in there. If it is, drag it to the closed Control Panels folder and do a restart.
    If it's not in the disabled panels folder, do a Sherlock search for Modem and see what comes up. I guess it's possible that the modem panel has been put somewhere else in the HD. If it shows up, drag it to the closed Control Panels folder as above.
    If the modem panel is totally absent from the HD, about all I can think of is to perform a Restore using the original CDs that came with the machine. But before that, I'll pose the problem to the larger gang here.
    Schadow

  • Need help with setting up VPN on a Cisco EPC3925 Modem

    Hi everyone,
    I need help setting VPN on Cisco EPC3925 modem (I tried using Help and I have read the entire section in the manual but the manual is not the same as the window I get in my settings. For example in the manual they say I can choose "all" under Remote Secure Gateway but there is no option like that).
    When I go to the VPN section this is what I get:
    1. Does this mean that I can connect to my modem via VPN from some other location? I would like to be able to connect to this modem when I am not at home from some remote location from my computer in order to be able to use NAS-Storage.
    2. If the answer on the first question is yes, what settings I need to enter for the:
    Local Secure Group
    Remote Secure Group
    Remote Secure Gateway
    My ISP is using dynamic IP but I have DDNS.
    My router local IP is 192.168.0.1
    Subnet: 255.255.255.0
    Starting IP Address: 192.168.0.10
    Here is how the advanced settings looks like:
    Thanks in advance for your help!

    My problem similar too this. I create a tunnel between two epc3925 but impossible to send data between them.
    The status is connected.  What can I do? UPC tell me this router has only vpn client so i will doesn't work.

  • Itunes won't detect my iphone!really need help!!!!:/

    hello everyone!my problem is a serious one:/ so,i got my iphone hacked about half an year ago and it has been making me problems recently,that's why i decided to remove my jailbreak!i went to the settings of the iphone and clicked erase data&settings,it didn't do anything,i did it twice-the same,no result.so i decided to upgrade my version to the latest which is 6.1.3 i think or  6.0.3.however,when i did half of the update,a picture appeared on the phone showing i must connect my phone to itunes,BUT there is 1 big problem here.my iphone port had been broken and i can't connect it with my computer,although it can charge in the computer port and normally!so,i don't really get why my itunes can't detect my iphone......i tried everything...i really need help or i am not going to have my iphone normally working again.....://////////

    Sorry, terms of service of the Apple Support Communities forbid us from helping jailbroken or hacked iPhones.
    Hopefully your next iPhone will not be hacked or jailbroken.
    Good luck.

  • Using iPhone 3G ,Version 4.2.1,Modem Firmware 06.15.00, In this phone i was using Facebook upgraded app and Smart Sync App. Suddenly my sisiter reset all setings and now I can't use the upgraded facebook app, for smart sync is asking for IOS 4.3,Need help

    Using iPhone 3G ,Version 4.2.1,Modem Firmware 06.15.00, In this phone i was using Facebook upgraded app and Smart Sync App. Suddenly my sisiter reset all setings and now I can't use the upgraded facebook app, for smart sync is asking for IOS 4.3,Need help.

    Thank you for the answers so far, but I'll make one correction: I said earlier that the Boston Globe website, boston.com, does not have a mobile site, and I would need to visit their regular website on my iPhone. Actually, I just found out that boston.com has a mobile site, so I'd obviously use that instead of the regular site. By doing that, I'd save a ton of data (I think). Does that change your answers?

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • Windows Xp not detecting Ipod Need help

    When i plug my ipod in to my desktop my ipod starts charging but it doesnt detect my ipod.I have even tried to do that restore thing where you hold menu/center button then when the apple logo appears hold center button/play or pause.I really really need help with getting my computer to detect my ipod.

    Actually, the "vice-versa" part works, Macs can read and write Windows formatted iPods, but you can only manage music manually (syncing does not work until it it is restored for Mac). But back to the topic...
    And it seems like this is a situation where the iPod has been working and now it does not. Please correct me if this assumption is wrong.
    You have to eliminate the possible problems one by one, as many as possible. Starting at the computer... Note: These are separate things to try, not a single procedure.
    Power down and restart the computer, if you have not already.
    Try a different USB port.
    Try a different docking cable, if possible. The connectors can become worn. Only two pins handle the power, so it is very possible for it to charge yet not connect for data.
    The dock connector on the iPod may be worn out or have become faulty. Not much you can do about that, except have it replaced.
    The "thing where you hold menu/center button" is not a restore. It is a reset (think rebooting your PC). Make sure you do it again following these instructions precisely.
    http://support.apple.com/kb/HT1320
    If this does not help, put the iPod into disk mode, and then connect it to the computer.
    http://support.apple.com/kb/HT1363
    If you manage to get iTunes to recognize the iPod, you may then want to do a restore (think reformatting your PC's hard drive and reinstalling Windows). This will erase the iPod and initialize its software. Then you can sync your iTunes library again.

  • Purchased extreme to replace modem/router DSL used telephone cord need help with set up

    Prior to purchasing Airport Extreme had a standard modem/ wireless router from ATT for DSL. I have two macbooks both dropped connections while online with older modem.
    Airport Extreme purchased to correct connection issues I need help with set up. The older modem just used telephone cord. I tried to use telephone with extreme it did not work.
    How do I get extreme to work as the modem and router ?

    How do I get extreme to work as the modem and router ?
    you can't. the extreme is only a router. you need a separate modem (or disable the wireless part of your old router and use it as a modem - if that's possible).

  • Portege M900 cannot detect/read from DVD drive - Need help badly!

    I have this problem with Portege M900. My laptop cannot read from the DVD drive.
    Does any one has similar problem? Need help badly as I cannot play my game from the CD.

    Test if the dvd drive is seated correctly in the compuer, I had a computer the dvd drive did not work until I removed one of the on back of the laptop (machine was a Toshiba different model) and then I was able to seat the dvd drive correctly.

  • WRT54GS cannot be configured, need help!!!!

    Ok.. I am getting so lost.  I will try to explain the best I can what is going on.  I just bought the Wireless G router with speedbooster and put the CD in to set it up, did everything it told me to do on the screen as far as pluggin cables in yada yada. When it came to step 4 of 4 it said "Waiting for Router". Then after about 2-3 minutes it comes back saying the following:
    YOUR ROUTER DOES NOT APPEAR TO BE CONNECTED PROPERLY
    Error 322: New router or Gateway not detected
    Follow these steps:
    1) Make sure you are connecting your new router and not your old router
    2) Make sure the ethernet cable from your computer is securely connected to a LAN port on the back of your new router
    3) Click retry to try installing your router again
    Also, when I try to retry the setup without unplugging anything it says this:
    Linksys EasyLink Advisor Setup Wizard has discovered that you are already connected to a router. Many people choose to replace an existing router with their new Linksys Router.
    I can connect to the internet without configuring the router!!! It isn't secure though!  I want to configure my router so that it is secure and I don't know what to do to fix this.
    I am using a Comcast provided modem, RCA model # DCM425
    Any help would be greatly appreciated... Remember I am a noob so please don't confuse me more with words I don't understand.. Thanks
    One more thing.  When it is "Waiting for router" the 2 computer icon comes up at bottom of screen saying acquiring IP address so I double clicked on it and it would be connected with the IP address 192.168.1.1 and then all of a sudden it would say Invalid IP address not connected.  I really need help here!!!

    Ok, I'm not 100% sure I can help you, but I will try.
    First thing, find the setup disk that came with the router and use it as a coaster or a frisbee or something because it is almost completely worthless. 
    Until you have completed the setup of the router, I would suggest using a computer that is connected directly to the router via ethernet cable. The reason being, if you change any settings wirelessly, such as security features, you will be disconnected and unable to access it again. So use a computer that is directly connected for setup. 
    The IP address you saw in you system tray is the IP address of the router itself. You actually need this for your router setup. Open whichever web browser you use and type in that IP address, nothing else. 192.168.1.1 A login screen should appear for you to enter your user name and password. Leave the user name blank and for the password enter "admin" without the quotes. This should bring you to your basic settings screen for the router. 
    From this point, I'm sure exactly how you want to set everything up. If you're not very familiar with networking or routers I would suggest you change very little. If you desire security for your network (which I suggest) click on the "Wireless" tab at the top of the screen. This should bring you to basic wireless settings. From here, you can change the name of your wireless network, change the broadcast frequency and enable/disable wireless broadcast. You can change these if you like or leave them alone whichever you prefer. I do suggest changing the name of you network (SSID) so you can tell which one is yours when you try to connect. It gets confusing when everyone in your neighborhood has a Linksys and all of the names look similar.
    Once you're done here, next click on the "Wireless Security" tab within the "Wireless" tap. Make sure you are click "Wireless Security" and not just "Security." From here, you can select the kind of wireless security you want to use. I'm not highly informed on which of these is the best, but WEP is probably the strongest security you're going to need anyway, so I would go with that. After you select WEP you get a few more options. For "default transmit key" just select one. Then in the "WEP Encryption" drop down, select "128 bits 26 hex digits." 64 would most likely be ok, but 128 bit encryption is definitely better. 
    In the next box "Passphase" enter a word or short phrase that is only known to you an click generate. The four boxes below will now have you WEP keys. I delete all but the first key to keep things simple, but whatever you want to do is up to you. After you delete the other three lines, select the key in your first line and select/copy it so that you can just paste it into the box in network options when you're connecting to the network. Regardless, I would also write this key down somewhere. If you have multiple computers in the house you have to enter it on each and every one and it's a pain to go back and forth. Click save settings. You're pretty much done. There are other things you can do to beef up security, but this is the most basic and it's still quite strong. 
    If you are looking at playing games frequently or anything like that I would go to PortForward.com
    Any other questions you have, you should be able to google I think. I hope I can help. Good Luck. 

Maybe you are looking for

  • Error while running UTL_MAIL package

    SQL> conn system/sys@ORCL; Connected. SQL> @F:\oracle\product\10.2.0\client_5\RDBMS\ADMIN\utlmail.sql Package created. Synonym created. SQL> @F:\oracle\product\10.2.0\client_5\RDBMS\ADMIN\prvtmail.plb Warning: Package Body created with compilation er

  • Sending Unicode HTML email from Oracle

    Dear All, How we can send the HTML email from Oracle in Unicode format (I am using Arabic Language, to be specific). So far I have tried the following solutions (using utl_smpt) without any success (either i see junk characters in the email or see qu

  • Since installing Reader I cannot open any pdf

    I have uninstalled Adobe Reader but still cannot open any pdf. Can anyone help me resolve this?

  • Memory test fail on G4, won't boot

    Our school has two labs and one is using all older G4 computers. ONe of the towers is a G4 with 768MB of RAM and is the AGP 733mhz model. It is running 10.4.1. It no longer boots. It has not booted in about three months. I finally have time to try an

  • Import between different Oracle releases

    Hi, Is there a way to import an Oracle9 dump in Oracle8 ? Thanks.