With the "communications" component "Serial1" I can get a 'true' result from call serial.close and a fale from call serial.open which indicated that the component is somehow working (it kicks up an error if i try to call serial.open before serial.Initialise) however i can't serial.open and get a true result... and i can't transmit data. (I am using a pl2302 board) it works with other app store serial apps.... i see leds flashing and ger data back via a jumper across Tx and Rx.
But there is NO HELP ANYWHERE on this component. I am sure that someone would know the answer but i have been trying on and off for years to get data in and out via a use serial board. No i do not wish to open the non-functional otg.usb.serial.bridge app or any other app.aix i just want the serial component to work !
Anyone out there in the whole wide world who can help without asking me why i want to use it or how about bluetooth or how about a bespoke software ? ? ?
Hello Kevin - have you thought about using Bluetooth? (just kidding).
The App Inventor Serial lib is relatively new - those that are familiar with using Serial comms have made suggestions for improvement. In particular, have you seen this Topic:
You might contact some of the users that participated in that thread Kevin. One of them might have some ideas; however since you are not using an Arduino (for which the control does work) you have to get lucky. The discussion indicates that there are issues which may indicate why you get " a fale from call serial.open which indicated that the component is somehow working (it kicks up an error if i try to call serial.open before serial.Initialise) "
Thanks for updating my knowledge there. I will look at the link. The only blocks i have apart from the app inventor activity starter for their "bridge" are shown in the attachment i am about to upload.when i can figure out how to.
Also i ought to mention i imported the arduino extension drom the github site and i found i couldn't drag it onto the designed page of the app inventor ! Strange lol sorry if i am being dim.
The drivers built into the "Serial" component are incomplete. To support more UART boards, an extension was created to which Chris provided a link above. Replace a built-in component with this extension and everything will work.
OK this is looking very good indeed. I have just downloaded the example apk and the transmits text through my 2302 board I'll try importing the. aia file into my app later today. I'll keep you posted!