[Swansea Hackspace] you have probably seen this

Tim Moore timmoore47 at gmail.com
Thu Dec 4 23:49:18 GMT 2014


I've just got the 28pin PIC32 which MicroMite.org use working.

This is the details (Linux fans only)

___
Now I used one of these USB to TTY converters:-
1P HOT SALE PL2303HX USB To RS232 TTL Auto Converter Adapter Controller
Module <http://www.ebay.co.uk/itm/111495072392>

which cost less than a quid delivered ,

If anyone is using Linux and gets to the CLI

and types

sudo apt-get install picocom

and once it has done that

types

picocom /dev/ttyusb0 -b 38400 -l   (now -l is really lowercase -L)

they can communicate with your brilliant PIC32 IC


to save the program and jump to the command mode control Q does the job

then RUN works and the code is saved.


To go back to the code type

Edit

_______________


Its all on page 10 of user manual Ver 4.5D


________________________


There are lots of red herrings hanging about such as minicom,


but that is the fix !


:  )))


Tim_1



On 27 November 2014 at 20:22, Tim Moore <timmoore47 at gmail.com> wrote:

> For the record, I think picocom  fixes the problem at a stroke  (I hope)
>
> once installed this cryptic line does it all
>
> picocom /dev/ttyUSB0 -b 9600 -l
>
> Note     l   = lower case L
>
> http://freecode.com/projects/picocom/
>
> http://processors.wiki.ti.com/index.php/Setting_up_Minicom_in_Ubuntu
>
> (brilliant ! )
>
> :  ))
>
> Tim_2
>
>
>
>
> On 26 November 2014 at 22:31, Tim Moore <timmoore47 at gmail.com> wrote:
>
>> For the record, the Arduino 'ADD' option was used on installation of the
>> Arduino IDE and it worked fine on selecting the serial board ttyUSB0 at
>> 9600 baud.
>>
>> the CR+NewLine option worked well to.
>>
>> It would not go faster than 9600 baud.
>>
>> However it solved the problem immediately !
>>
>> Many many thanks !
>>
>> :  )))
>>
>> Tim_1
>>
>> On 26 November 2014 at 22:04, Tim Moore <timmoore47 at gmail.com> wrote:
>>
>>> Many thanks Justin ! Greatly appreciated !
>>>
>>> I'll try the arduino first as it seems friendly !
>>>
>>> :  ))))
>>>
>>> Tim_1
>>>
>>> On 26 November 2014 at 21:19, Justin Mitchell <justin at discordia.org.uk>
>>> wrote:
>>>
>>>> On Wed, 2014-11-26 at 21:14 +0000, Tim Moore wrote:
>>>> > OT but I'm trying to get my usb serial port to send and receive data
>>>> > using minicom or cutecom.  Using Ubuntu 14.04
>>>> >
>>>> >
>>>> > I seem to think selling it that 'ttyUSB0' does the trick but nothing
>>>> > I've tied works.
>>>> >
>>>> >
>>>> > I've connected TX and RX together so what I type get reflected back.
>>>>
>>>> Depending on the brand it will either be /dev/ttyUSB0 or /dev/ttyACM0
>>>> look at the end of the 'dmesg' command to see what device it was
>>>> assigned when it was plugged in (replug if necessary).
>>>>
>>>> you will also need permission on the device, i dont know about that
>>>> ubuntu specifically but if you do an 'ls -l' on the device file you will
>>>> usually find its in group 'dialout' or 'uucp'
>>>>
>>>> which ever it is, add your username to that group in /etc/group
>>>> when you login again yu should now have write permission to those files.
>>>>
>>>> check to see if ModemManager is running, if it is ypu need to kill it,
>>>> and disable/uninstall it somehow, it is a bit dumb and assumes that all
>>>> serial ports have modems on the end of them, grabs the serial port and
>>>> shoves AT commands down it, so kill it off.
>>>>
>>>> with all those fixed you should have more luck
>>>> you can also use the 'serial monitor' feature inside the arduino editor,
>>>> it doesnt have to be an arduino connected, its just a serial terminal
>>>> program.
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Hackspace mailing list
>>>> Hackspace at swansea.hackspace.org.uk
>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://swansea.hackspace.org.uk/pipermail/hackspace/attachments/20141204/7ce7b9ed/attachment.html>


More information about the Hackspace mailing list