oceans Posted July 2, 2009 Share Posted July 2, 2009 Hi people! I want to I/O with RS232 or USB 2.0 using php. Firstly can this be done? I know RS232 is dyeing, maybe dead soon, so lets look at USB 2.0. Please suggest how should I go about. I have done similar implementations on VB, thus I should understand your technical suggestions. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/ Share on other sites More sharing options...
.josh Posted July 2, 2009 Share Posted July 2, 2009 did you try using a samophlange? Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/#findComment-867546 Share on other sites More sharing options...
oceans Posted July 2, 2009 Author Share Posted July 2, 2009 Thanks for your advice. I could not understand you "samophlange" can you explain. Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/#findComment-867571 Share on other sites More sharing options...
.josh Posted July 2, 2009 Share Posted July 2, 2009 You attach the samophlange to the USB. Actually you need 2 samophlanges, since it's USB 2.0. Then hook the other end to php. You can also use it to I/0 R2D2 at the same time. You have to insert the samophlange into the back end for that though. Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/#findComment-867573 Share on other sites More sharing options...
oceans Posted July 2, 2009 Author Share Posted July 2, 2009 I am sorry, I still can't get you. To be honest, I could not google "samophlange" as well. I mean, I could not find a listing for this term. OK lets talk about the simple one first, RS232, I need to have a micro-controller chip and RS232 bridge, we need DLL or OCX from Microsoft, then we write code (in the PC) to opening com, communicate output, listen for input, close com. For USB 2.0, I have the micro-controller chip, and the device driver (for PC) for it. My intention, is to push ascii char to the chip and get receive some returns. As for the chip routines, I can handle separately. As for VB implementations I can handle at the PC side well, the situation is I need to implement in PHP. Thanks Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/#findComment-867642 Share on other sites More sharing options...
Mark Baker Posted July 2, 2009 Share Posted July 2, 2009 OK, let's talk about why it's so absolutely essential to do this in PHP. Why do you need to do this in PHP? Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/#findComment-867653 Share on other sites More sharing options...
oceans Posted July 3, 2009 Author Share Posted July 3, 2009 I want to implement browser based POS system (replacement for my application based), I only know PHP browser based language as for now. For POS system, to open cash door latch we need this I/O. Bar code input as well. If you suggest an easy alternatives for this browser based initiative, I will be happy. Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/#findComment-868219 Share on other sites More sharing options...
Mark Baker Posted July 3, 2009 Share Posted July 3, 2009 I want to implement browser based POS system (replacement for my application based), I only know PHP browser based language as for now. PHP is not designed for interactions with hardware, although it isn't impossible. However, it probably isn't recommended. If you've done this before in VB, then one option would be to use PHP's exec() or passthru() functions to call a VB program. An alternative would be to consider using a different language than PHP for generating the browser code, perhaps using MS .NET framework Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/#findComment-868247 Share on other sites More sharing options...
oceans Posted July 7, 2009 Author Share Posted July 7, 2009 Thanks Mate, Do you think Java and its script will help me on my implementation. I do not want to call up a file at run time. Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/#findComment-870236 Share on other sites More sharing options...
oceans Posted July 16, 2009 Author Share Posted July 16, 2009 Any One want to add something that could help me. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/164465-asking-for-kind-your-help/#findComment-876189 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.