|
[WM20] Serial connections |
Iniciado por rob, mar., 02 2016 3:30 PM - 6 respostas |
| |
| | | |
|
| |
Membro registado 105 mensagems |
|
Publicado em março, 02 2016 - 3:30 PM |
Hey all, I have a new android device here that has a barcode scanning laser on it. This barcode reader talks to the device via a serial port labeled as /dev/ttyMT0 in the OS.
My question is, is there a Windev Mobile function that will allow me to read this serial input? I saw several functions, but none for Android. If that's not possible, is there a way I can include straight android code into a Windev Mobile project?
Thanks! |
| |
| |
| | | |
|
| | |
| |
Publicado em março, 02 2016 - 4:45 PM |
Hi Rob
On 3/2/2016 9:30 AM, rob wrote:
Hey all, I have a new android device here that has a barcode scanning laser on it. This barcode reader talks to the device via a serial port labeled as /dev/ttyMT0 in the OS.
My question is, is there a Windev Mobile function that will allow me to read this serial input? I saw several functions, but none for Android.
No... there is no serial pot management for android
If that's not possible, is there a way I can include straight android code into a Windev Mobile project?
Yes. Create a global procedure. Change its type from WL to JAVA (by clicking on the wl at the top left), then paste/type yor java code
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
> Thanks! |
| |
| |
| | | |
|
| | |
| |
Membro registado 105 mensagems |
|
Publicado em março, 02 2016 - 5:22 PM |
Thanks once again Fabrice! That helps |
| |
| |
| | | |
|
| | |
| |
Membro registado 105 mensagems |
|
Publicado em março, 02 2016 - 6:35 PM |
So after messing with this a bit, I'm guessing that the manufacture has some custom APIs that can control the barcode reader. I've asked them for documentation on these, but I'm guessing that I'm going to have to import some kind of file into WDM to get it to recognize them.
Does that sound about right? |
| |
| |
| | | |
|
| | |
| |
Publicado em março, 03 2016 - 10:52 AM |
Hi Rob,
yes it does, and that would be during the generation phase.
Best regards
-- Fabrice Harari International WinDev, WebDev and WinDev mobile Consulting
Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM (open source)
More information on http://www.fabriceharari.com
On 3/2/2016 12:35 PM, rob wrote:
So after messing with this a bit, I'm guessing that the manufacture has some custom APIs that can control the barcode reader. I've asked them for documentation on these, but I'm guessing that I'm going to have to import some kind of file into WDM to get it to recognize them.
Does that sound about right? |
| |
| |
| | | |
|
| | |
| |
Membro registado 105 mensagems |
|
Publicado em abril, 28 2016 - 3:46 PM |
So I have some aidl files and documentation from the device manufacture. But i haven't had any luck figuring out how to get WDM to use them. Anyone have any pointers? |
| |
| |
| | | |
|
| | |
| |
Membro registado 105 mensagems |
|
Publicado em junho, 10 2016 - 11:42 PM |
Ok, so this is getting really frustrating. I have a working demo app in android studio that does what i want.
But getting the same functionality to work in windev... well no clue where to begin.
Currently my thought process is to try and get a .jar file out of android studio and import that into WDM since I've had 0 luck getting any java copy/pasted code to compile successfully in WDM. |
| |
| |
| | | |
|
| | | | |
| | |
|