|
Mailing Lists
|
Home /
Groups /
ColdFusion Linux (CF-Linux)
USB control under ColdFusion
Hello folks,riccardo\.cecinati\ 05/06/10 11:32 A On Thursday 06 May 2010 16:30:13 riccardo.cecinati@poste.it wrote:Tom Chiverton 05/06/10 11:45 A > might be a way to do it from Java, but my first thought would be that youTom Chiverton 05/06/10 11:49 A in my (limited) experience, talking to USB devices from Java isn'tSimon Horwith 05/06/10 11:48 A Riccardo,David Henry 05/06/10 03:15 P I agree with David --Angelo McComis 05/06/10 03:38 P >I agree with David --Riccardo Cecinati 05/07/10 04:20 A I would probably look into C# as serial port communicator and if itMisha Mishyn 05/06/10 04:23 P > I would probably look into C# as serial port communicator and if itTom Chiverton 05/07/10 04:12 A Hello folks, I hope to post in the right place. I am developing in OpenBluedragon under CentOS 5 Linux platform. To protect my app, I have been told to use a USB "dongle" which behaves as a serial RS232 port (that's what has been said to me)., on which read and write simple patterns. Don't know where to start from. Should I look for a CFC component? I haven't found yet Can anybody give me a clue? Thanxx Riccardo Cecinati On Thursday 06 May 2010 16:30:13 riccardo.cecinati@poste.it wrote: > Hello folks, > I hope to post in the right place. I am developing in OpenBluedragon under > CentOS 5 Linux platform. To protect my app, I have been told to use a USB > "dongle" which behaves as a serial RS232 port (that's what has been said > to me)., on which read and write simple patterns. Don't know where to > start from. > Should I look for a CFC component? I haven't found yet If it really does appear as a serial device, there's no CF support. There might be a way to do it from Java, but my first thought would be that you can just use CFExecute to 'cat' to and 'echo' from the /dev/ttyXXX file... -- Tom Chiverton Developer Tom.Chiverton@halliwells.com 3 Hardman Square, Manchester, M3 3EB **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.co > might be a way to do it from Java, but my first thought would be that you > can just use CFExecute to 'cat' to and 'echo' from the /dev/ttyXXX file... Having said that, I bet CFFILE might just work... -- Tom Chiverton Developer Tom.Chiverton@halliwells.com 3 Hardman Square, Manchester, M3 3EB **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.co in my (limited) experience, talking to USB devices from Java isn't usually much fun, but if it's exposing itself as a serial port then I'd imagine it will be easier. If the device manufacturers have an API for Java, great (check their site). If they don't, and want to make this work ASAP, you may want to quick try to use a serial to socket server, and then simply "talk" to that local port. That isn't the most elegant solution, but may be the fastest to get up and running. ~Simon Simon Horwith CTO, Nylon Technology http://www.nylontechnology.com blog - http://www.horwith.com riccardo.cecinati@poste.it wrote: ----- Excess quoted text cut - see Original Post for more ----- Riccardo, I wouldn't think a USB dongle would be an effective means of protecting an app written in a script based language like ColdFusion. I imagine it would be trivial to circumvent any such security with simple CF code changes. I'd be interested in hearing about any solutions you come up with. Cheers, David Henry On Thu, 2010-05-06 at 17:30 +0200, riccardo.cecinati@poste.it wrote: ----- Excess quoted text cut - see Original Post for more ----- I agree with David -- Merely putting a file on USB storage, is just a file and can be read from/written to like any other file. However, the dongles that are spoken of are not typically of the storage variety. This is based on what kind of hardware class (device) they show up as to the OS. I believe what you're after is some sort of crypto token device. AKA a hardware token. (like this: http://www.rockey.nl/en/products/rockey-products.html) We could go back and forth all day, but since CF is an interpreted, script-based language, you really couldn't stop someone from subverting any hardware tokens, whether or not they were USB Storage or USB Crypto keys. On Thu, May 6, 2010 at 3:13 PM, David Henry <davidhenry@coldfusionpowered.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- I would probably look into C# as serial port communicator and if it works for you, later you just can integrate DLL with CF, so CF will be able request/response via your .NET DLL. Here is the tutorial for C# serial port communication: http://www.dreamincode.net/forums/topic/35775-serial-port-communication-in-c%23/ OR using JAVA: http://www.java2s.com/Code/Java/Development-Class/OpenaserialportusingJavaCommunications.htm CF is not really good tool for that task. On Thu, May 6, 2010 at 3:13 PM, David Henry <davidhenry@coldfusionpowered.com> wrote: ----- Excess quoted text cut - see Original Post for more ----- > I would probably look into C# as serial port communicator and if it > works for you, later you just can integrate DLL with CF, so CF will be > able request/response via your .NET DLL. This is the cf-linux list :-) -- Tom Chiverton Developer Tom.Chiverton@halliwells.com 3 Hardman Square, Manchester, M3 3EB **************************************************** This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office together with a list of those non members who are referred to as partners. We use the word ?partner? to refer to a member of the LLP, or an employee or consultant with equivalent standing and qualifications. Regulated by the Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.co
|
May 24, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||