Is There a Standard or Common JNI to the (POSIX) C Driver Interface?
I have the source code in (POSIX) C for an RS422 Serial Driver.
I've been asked to create the JNI for using the 8 driver interfaces:
install()
open()
read()
write()
ioctl()
select()
close()
uninstall()
This seems like something that enough people would want to do that there'd be a Standard or Common Practice way to do this. However, my Google-foo has let me down on finding it.
Since I have the source code, I've considered re-compliling the driver code into a library and writing the JNI to call into that library. The potential problem I see with this is that normally the driver would get dynamically linked into the kernel, and the calls from Java would run the library functions in userspace.
I've also considered creating the JNI to call clib functions (read, write, ioctl, ...). Then the driver would get used normally, but the problem I see with this is that install() and uninstall() do not seem to have a standard (POSIX) C function that directly corresponds do them. Most Linux forums mention insmod and mknod to install the driver and make the device node, but LynxOS uses dr_install and dev_install.
So here's my question: Is there a Standard or Common Practice way to access a driver from Java?
870745 wrote:
So what I was hoping to find out about was a standard or common practice that applies to the code ...As applies to java.comm?
I doubt there is such a thing. There just are not that many implementations. And most are proprietary so they are not saying.
You can look at rxtx (java comm api) and download the reference implementation and see which ways they do it. If they both do it one way that might be good. If they do it different ways then neither means much.
Similar Messages
-
Is there any standard SAP table which stores the license number assigned to a delivery item
Hi Experts,
This is in relation to license number assigned to a delivery item under ‘Export License Log’. Our scenario is for delivery of type NLCC created for an inter-company stock transport order. (i.e.not a sales order case where the license may get copied from sales order to delivery through copy control)
As we understand, for legal control – relevant scenarios, export license for each item shall be determined afresh every time the delivery is accessed. (Depending on legal regulation, grouping, destination country, export control class, delivery partners vis-à-vis license master customer assignments etc.)
To print the license text on one of the delivery output types, we want to access the license number for each item. (determined under export license log)
Our question is: is there any standard SAP table which stores the license number assigned to a delivery item?
We have checked some of the license tables (T606*, VAEX, EMXX etc.) but couldn’t get any specific table storing delivery-item-specific license data.
Helpful answers Text Removed
Regards,
Jagan
Message was edited by: G Lakshmipathi
Dont add such text in your postHi Lakshmipathi,
The export control log can be accessed by going to delivery Extras-> Export license log
We need a table that stores the determined license for each item in a delivery document ( as shown in the below screenshot)
Regards,
Jagan -
Is there any standard report available to view the loan payments for the FY
Hi Experts...
Is there any standard report to view the loan payments taken by the employees in a paticular financial year.
We are entering the details of loans through 0045 and through a subtype.
When im using tcode pcoo_m99_cwtr...
thet are showing up details with out employee number.
How we cn get the details of amount recoverd/deducted from employee salary of a particular employee in the financial year.
Regards,
VSai.hi
check the std transaction:-
pc00_m40_lon1 (this is for india specific)
Regards
sameer -
Is there any standard Adhoc query to get the Previous employers list
Hi Experts,
Is there any standard Sap Adhoc query available to get the details of Previous empoyers list.
Please advice me to get the list of employees with their previous employers..
Thank you very much.
Regards,
Vishnu.Hi Vishnu,
U could go as per wat Suhasini has said. But if u want the end user to view this report time and again, then u need to create a query.
The steps are as follows:
1) T-code: SQVI
2) Qucik View: give some name here and then click on "Create"
3) You will get a "Create Quick View" screen.
4) Goto "Datasource" and select "Logical Database" from the drop down
5) Then goto "Tableview" and enter "PNCPE" and click on enter.
6) A screen pops up and click on the Infotypes u would want to extract the data from and press enter.
7) Now, u would get the following screen "Qucik Viewer: Initial screen". Here u can see coulple of tabs.
8) Goto the tab "List selcted field" and select watever fileds u want in the output screen and then press "Execute".
Hope this would solve ur issue.
Thanks -
Is there any Standard BAPI's to update the table BP021?
Hi,
I am developing an inbound program to update the Business Partner Master(BP021) table. I need to update the field 'Staff_Count' in that table.
Is there any BAPI's available to update the BP021 table? Thanks in advance for your help..
PoornimaHi,
Some FM's are available.
Please refer these FM's
FS_API_BP021_CHANGE Change Fiscal Year Information
FS_API_BP021_GET Read Fiscal Year Information
FTB_BUPA_BP021_GET
FTBP_READ_BP021
FSBP_READ_BP021
Regards,
Jyothi CH. -
Hello,
I just received my Mac and I am trying to see if there is an easy way to convert all my music files from my external harddrive on my PC to iTunes. Most, if not all, the files are in .wma format. Does anyone know if I am able to connect my external harddrive, convert the files, and add them to iTunes?If they don't contain DRM, use a program such as Switch. If they do, you can't.
(59769) -
Standard report Programs to find the current status of workflows
Hi Experts,
Are there any Standard report Programs to find the current status of workflows or workflows which are pending.
Regards,
HariGo to SWI1 t-code
Give the appropriate Status - Ready or Inprocess or Waiting
Input the Task - either WF Template or Standard Task.
Choose the time period and execute the report.
Regards,
PR. -
Standard report which can show the details of Invoice value and PO value
Hi all,
Is there any standard report which can show the details of Invoice value is more than 5% of PO value. MIRO value and PO value.
If any report which caters the maximum requirement is also fine
Regards
Sanjith
Edited by: Sanjith Sethu Lekha on Dec 6, 2011 2:42 PMHi
Please refer the below mentioned link
/thread/1789934 [original link is broken]
Regards
Praveen P C -
Is there any way to clean the CD/DVD drive?
Is there any way that you can clean the CD/DVD drive?
You can try and clean then the CD/DVD read/write laser lenses by purchasing a commercially available, retail Dry Brush CD/DVD lens cleaning system disc.
-
My Imac is getting slower and slower. Is there a standard utility I can run that will clean things up? I am an old PC guy but changed to Mac about 5 years ago. PC had a program called DeFrag. Is there anything like that for the Mac? Thanks, Rick
Rick,
A Mac that loses performance can be caused by many many things. Forget about Defrag, that isn't the problem and is something done by PC users in the 1990s. The more common things to check are RAM (do you have enough) and Login Items. You can easily check if you need a RAM upgrade by operating your computer as you normally do and opening Activity Monitor (Applications - Utilities - Activity Monitor) and click the System Memory tab. In the lower left you will see:
Free
Wired
Active
Inactive
Used
If the amount of Free RAM is in the vicinity of 500MB or less your system needs more RAM.
To check the Login Items navigate to System Preferences - Accounts - Login Items. If you seen applications in the list that you don't need loading when you login simply highlight them and click the - symbol at the bottom of the box to remove them.
Finally I would recommend your visit and read 25 Ways to Speed Up Your Mac.
Roger -
Setting up new iPad and screen locked. Is there a standard assigned code to get past the locked page?
No
-
Is there any standard report for capacity of machines used /ideal
Hi,,
i am interested in knowing any standard report which tells us how long is my machine ( work center) ideal and how many hours i have used during a period of say one month.
how can we use capacity planning and work scheduling in repetitive manufacturing . pls tell me a the procedure to be followed.
thanks in advance
regards
madan mohanHi,
thanks for your reply . but i am not able to get a report on total capacity available in the last month and capacity i have utilized for that month . so that i can derive my work center ideal time during that past month.this gives the time i have kept the machine ideal . Is there any standard report meeting this requirement.
pls give me some solution
regards
madan -
Is there any standard report for GR / IR to see as on particular date
Hi ,
Is there any standard report for GR/ IR to see as on paricular date.
please help me. points will be given.
regards,
Hari priyaHi,
Please go to MR11.
It may help you.
Regards,
Jigar -
Is ther any standard report for GR/IR Maintenance Main Tool
is ther any standard report for GR/IR Maintenance Main Tool ?
Hi Salsa,
Use Tcode MB5S --> List of GR/IR Balance.
Assign pts, if found useful
Regargds
Sandeep Acharya -
Is there any standard report which give all information about purchase orde
hi
is there any standard report which give all information about purchase order.
i need following information from Purchase Order.
Vendor No, vendorname, PO No, basic , Excise , insurance , Frieght.
thanks .Hi,
Try following
MC$G PURCHIS: Material Purchase Val Selection
MC$I PURCHIS: Material Purch Qty Selection
Kedar K
Maybe you are looking for
-
Is there a way to get the font names used in a computer (C:\windows\fonts), which can be used in Javascript line? I have the barcode font but I don't know its name for Javascript to recognize. see line on myTextRef.font below: // make a variable for
-
What external DVD player plays commercial movies with a 2008 iMac?
What external DVD player plays commercial movies with a 2008 iMac? I have a Samsung external player/writer but it will not play movies. Only shows data in it's finder window!
-
What should I purchase to download my checkbook?
What should I purchase to download and reconcile my checkbook?
-
Problem using workflow with ess leave requests
Hello, I have been experiencing some problems using wf for approval with leave request in ess. I customized ws12300111 for request approval and it is working fine. But when we try to cancel a request in ess, there are strange things happening: - If t
-
How to configure the SOA MANAGER
Hi, I having WAS 7.0, I created a service provider,for cosuming the service Im using SOAMANAGER transaction, but the transaction doesnt exist in system.Please tell me how to configure the SOAMANAGER or there is other way to consume the web ser servi