Controlling eletronic devices with JAVA ( LEDS, MOTORS...)

Advertisement
November 30

All this week I try to find some help about how to control eletronic devices like leds using the parallel or serial port using JAVA. Using C it's very simple, but with JAVA, I guess that NOBODY do this kind of application... If I'm wrong, please, tell me.... ( I know that I need to use javax.comm or JNI, but I want to see a real application that works ...

Advertisement

Replay

First thing to note is that using javax.comm you cannot set pin outputs
levels directly (you can set some pin levels directly such as CTS and
RTS on a serial port). There are ways around this such as writing the correct byte value to the parallel port (depends on port type though)
Therefore the device you wish to communicate with should be able
to talk to parallel or serial ports. If this is the case you just send
messages to the device and it lights up you leds.
A, perhaps better, solution would be to write, or obtain from the
internet, some native lib that allows bit bashing on the port of your
choice. Then write a wrapper class for it an call its methods (JNI).
This is only worth while if you have some reason to use java rather
then another language, such as C or C++, to talk to you device. This
whole thing would probably be easier in one of those languages.
matfud

View 3 Replies

Sending data during the call with java enabled mobile devices

November 30

hi every one , this is the problem : i have 2 mobile phone with java enabled os , i want to call (dial) from phone1 to phone2 with java code , (this will be done by platformRequest("tell:123456")) AND then i want to for example press key '1' in

View All Replies

HT204368 Can you (Handoff) control your iphone with 3rd party devices ? (Like making calls, sending message, etc...)

November 30

I am wondering if you can control your iphone or other iOS devices with 3rd party devices? I have in mind like making calls, sending sms, etc.... Thank you!No,Read other 2 answers

View All Replies

Send data during dialing with java enabled mobile devices

November 30

hi every one , this is the problem : i have 2 mobile phone with java enabled os , i want to call (dial) from phone1 to phone2 with java code , (this will be done by platformRequest("tell:123456")) AND then i want to for example press key '1' in

View All Replies

How to set default audio device for java apps on Linux?

November 30

I would like to find a way to choose a particular (ALSA) audio device for java applications. How can this be done without reprogramming the application or changing the default ALSA device? I came across "sound.properties", but could not find any

View All Replies

14.3.1 Issues with JAVA

November 30

                   My company has just upgraded to 14.3.1 and there are several issues that are taking place with our systems. The main issue is with JAVA. it appears that 14.3.1 doen't operate with java 1.7.51. Is there a work around for this. Also

View All Replies

Printing with Java

November 30

Well, this is the third time I post this message, but I don't seem to find anyone interested in it, so I decided to put on some dukes... :-) I have never printed directly with Java, I have rather created pdf files or web-pages. However, Now I might b

View All Replies

Help with Java Web Start

November 30

Hi everybody, I have a simple Java application that has a JFrame containing a TextField displaying some text inside it. I am using the NetBeans IDE. I am trying to Enable Java Web start for this application. The steps I have taken upto now are: 1. Ri

View All Replies

Whether the NI step controller can control the digital servo driver and motor

November 30

I want to you can help me confirm whether the NI step controller can control the digital servo driver and motor.If can,what is the differents between servo controller and step controller to control servo motor?Thank you so much! Best regardsThe PCI/P

View All Replies

Workflow intergration with Java

November 30

Dear All, I have the requirement in which I have to integrate the workflow with Java. The scenario is like the person want to trigger the workflow from web or mobile device , and want to do all the relevant things related to workflow like approval re

View All Replies

Using jce with java 1.3.1

November 30

Hi, I use Java 1.3.1, jce 1.2.2 and eclipse. To include the packet added it with �Project/Properties/ Add External JARs� but when I compile the program I get the following errors: compile: [javac] Compiling 10 source files to D:\MyTemp\ZFProjectView\

View All Replies

How to do a program with java user intarface (internet app) and c++ core

October 11

I want to do a program to run on the internet with java but to run the mathematical core with c++ on a SUN machine. so, any help will be cool!, any tip about this subjet will be apreciate! my mail is [email protected] and [email protected] I am doing

View All Replies

Problem with java and pogo games

October 11

i use mozilla and now with the problems with java and hackers cannot play my pogo games,what can i do? i disabled my java i tried java 6 doesnt work or is not safe,what is a safe way to play games on pogo that use java?Oracle has released a Java 7 Up

View All Replies

Can I download previous purchases on a new device with a different Apple ID?

October 11

My daugther got an iPad mini for Christmas and setup her own Apple ID. Prior to this everything we bought went through my account. She wants to download the music that is on my account but I am telling her she can't because she has a different Apple

View All Replies

Opening MS-DOS with Java

November 30

I'm involved in a college programming class with Java and I'm stumped. I need to create a Java program that is able to open the MS-DOS prompt window and run a Java program in it as well as add a MS-DOS command afterwards in order to catch the output.

View All Replies

Phantom device with address 21 on GPIB

November 30

I try to find all conncected GPIB devices with the GPIB function "FindLstn". However, additionally to the really connceted devices this function find something with address #21. If I disconnect all devices, it really finds nothing (as expected).

View All Replies

The performance of management system with Java and MySQL

November 30

Hi all, I want to develop one management application with Java and MySQL. However I am not sure which is a good way to design the system. The system has to deal with customers' data in the database. Should I create objects for every customers when ap

View All Replies

I can't install iTunes 10 on mac os x; therefore, I can't sync new iPod devices with my old iTunes version 9?

November 30

I can't install iTunes 10 on mac os x; therefore, I can't sync new iPod devices with my old iTunes version 9?Mac OS X 10.5 Leopard installation system requirements http://support.apple.com/kb/TA24950 Leopard is no longer available at the Apple Store

View All Replies

How to launch a navigator with java

November 30

I would like to know how we can launch navigators such as Netscape, internet Explorer or Opera with java thanksNobody will answer you because of your appaling behaviour on the forum so far. I have to browse this forum in work, with colleugues around.

View All Replies

Conflicting advice with zpools and the use of /dev/did devices with HASP

November 30

I've read that you should not use /dev/did devices with zpools/HAStoragePlus resources, and I've also read that you can. From the EIS checklist (we're a Sun partner): • It's recommended to use cXtXdX devices for ZFS. • Do not use did devices! On the

View All Replies

Tags:

  1. ipod nano wont turn on
  2. my ipod wont turn on
  3. input VAT.xml
  4. wifi no pasward janva ni app
  5. java development tools e.g. JCreator
  6. elitepad 900 shutsdown
  7. where character is in string sql
  8. inch5aa
  9. centers2k
  10. tonightyeq
Copyrights 2019 Fcffair BigData Resource, All rights reserved