I want to send a file from my PC to a remote device connected through serial port. So is there any API in java to send file over serial port?
checkout javax.comm
See also RXTX. It is widely used and includes straightforward examples.
There is also JPeripheral.
Related
I am using A software called ASTM protocol Demo to send ASTM messages and another software Virtual Serial Port to use a Port RS232
My question is: I want to create a java project that can access this port and read/write messages from/to this port.
You can use RX/TX.
There is a lot of info on the web about how to use it.
for example.
I need to make a troubleshooting tool in java
From the java code, I need to communicate with tethereal (linux commands) to help me generate a .pkt file. The .pkt file will contain all the contents of the communication that took place between the client and the server- i.e. all the packet communication between the client and server.
how should I do that?
Do you know WireShark? That is a cross-platform Network Packet Capturing application.
The idea is that it captures all packets (TCP and UDP) that passes one network device (eg: WiFi card) and you apply a filter on the port that your application uses, and eventually an IP address. Very useful tool.
If you really need to do it in java you can use http://jnetpcap.com/ which is a wrapper for libpcap which works similar to tethereal.
I need a package for communicating with a electronic console via usb-2-rs232 cable. I got a package called RXTX, but i am not still satisfied with this package. Is there any other alternative for serial communication under windows??
For Serial Communication we can alos use the Labview software,in his builtin example there is serial communication module.
You can also does serial communication by using hyperterminal.set the default parameters for serial commuinication.
RXTX is also an open source
I would like to recommend you Java Serial Port from serialio.com In java there is java serial API
which you can use
I want to implement Java code to send and receive sms through serial comport using gsm modem. Before implementing this I need Java communication api for this. If so please let me know from where I have to download for Windows Xp?
Here is the download link for Java Communication API:
http://www.oracle.com/technetwork/java/index-jsp-141752.html
Don't know if it helps but on one of my previous project we were using http://www.kannel.org/ to manage sms.
Don't remember exactly how it worked but i think we can set a kannel server that would receive REST requests to send sms for exemple.
You can download the Java communication api from http://smslib.org/download/. There are some other useful links on that page also like the RXTX library also.
So I am trying to stream a webcam feed from my computer to my android phone. I am using a simple forwarding server to connect the two so that I don't have to worry about home network IP firewalls ect. I am using FMJ to capture the video feed and was thinking rtsp protocol would be best because android supports reading it. My problem is I dont know how to forward the information via the server, is it as simple as forwarding UDP packets? all programs involved are implemented in java btw.
Use Netty. It is very easy to create an RTSP server with this library. For hints see the sources here.
Or you can port my library which is written in C#
http://net7mma.codeplex.com/
CodeProject article # http://www.codeproject.com/Articles/507218/Managed-Media-Aggregation-using-Rtsp-and-Rtp