Search found 18 matches

by dieselnutjob
Wed Jul 24, 2019 8:20 pm
Forum: Projects
Topic: Serial Updater (no more pulling SD cards in and out)
Replies: 2
Views: 664

Serial Updater (no more pulling SD cards in and out)

It sort of works.... I am programming on a Pi Zero which out of the box has no networking ports at all except for the serial interface on the GPIO header. If you add the unit below to your project then it starts up a new thread. The thread constantly transmits a C character on the serial Tx. If you ...
by dieselnutjob
Wed Jul 24, 2019 5:08 pm
Forum: General
Topic: CPU utilisation?
Replies: 1
Views: 312

CPU utilisation?

Is there a function somewhere that will report what the current CPU utilisation is?
Normally this is quite OS specific but Ultibo doesn't have an OS....
by dieselnutjob
Sat Jul 20, 2019 9:19 pm
Forum: Discussion
Topic: Testing the FTDI USB Serial
Replies: 35
Views: 5324

Re: Testing the FTDI USB Serial

slightly embarrassingly it works now. I'm not sure why (yet) that it didn't before program project1; {$mode objfpc}{$H+} uses {$IFDEF UNIX} SysUtils, Serial; {$ENDIF} {$IFDEF ULTIBO} RaspberryPi, GlobalConfig, GlobalConst, GlobalTypes, Platform, Threads, SysUtils, Classes, Ultibo, Console, FTDISeria...
by dieselnutjob
Sat Jul 20, 2019 10:58 am
Forum: Discussion
Topic: Testing the FTDI USB Serial
Replies: 35
Views: 5324

Re: Testing the FTDI USB Serial

The "device" contains an FT232R chip which is powered from the USB cable, and an ATMEGA164P which is powered by a separate 5V power supply. The FT232R is connected like this:- VCC connected to USB socket 5V VIO connected to USB socket 5V 3V3 connected to a capacitor to 0V and nothing else ...
by dieselnutjob
Fri Jul 19, 2019 10:42 am
Forum: Discussion
Topic: Testing the FTDI USB Serial
Replies: 35
Views: 5324

Re: Testing the FTDI USB Serial

ok thanks.
I think that there is something else going on here with the status.
With processor power off I get status of $0000004
With processor power off and RI shorted to GND I get status of $00004004
I need to figure out what's going on.
by dieselnutjob
Fri Jul 19, 2019 10:12 am
Forum: Discussion
Topic: Testing the FTDI USB Serial
Replies: 35
Views: 5324

Re: Testing the FTDI USB Serial

I have updated from GitHub and I am seeing an improvement (though I'm not 100% there). If my device is powered I receive packets very slowly, one byte at a time, and they don't make too much sense. It's as if the processor is sending packets faster than they can be processed or maybe the FTDI chip i...
by dieselnutjob
Thu Jul 18, 2019 11:16 pm
Forum: Discussion
Topic: Testing the FTDI USB Serial
Replies: 35
Views: 5324

Re: Testing the FTDI USB Serial

I see that from https://ultibo.org/forum/viewtopic.php?f=13&t=1279&start=20 that there have been some updates since Beetroot which is what I have installed.
It looks like I need to update from github and try again.
by dieselnutjob
Thu Jul 18, 2019 9:49 pm
Forum: Discussion
Topic: Testing the FTDI USB Serial
Replies: 35
Views: 5324

Re: Testing the FTDI USB Serial

in the log window I have idVendor=0403 and idProduct=6001 this doesn't seem to match these lines in ftdiserial.pas {FTDI Vendor and Product ID constants} {Devices using FTDI VID} FTDI_VID = $0403; {Vendor Id} {Original FTDI device PIDs} FTDI_8U232AM_PID = $6001; {Similar device to SIO above} FTDI_8U...
by dieselnutjob
Thu Jul 18, 2019 9:40 pm
Forum: Discussion
Topic: Testing the FTDI USB Serial
Replies: 35
Views: 5324

Re: Testing the FTDI USB Serial

If I query device status using alongword:=SerialDeviceStatus(SerialDevice); I get $0000006 if my device is powered up and $00000004 if it is not. The difference is because the RI pin (pin 6 of FT232RL) is connected to the processor power supply on my device. On the PC software the state of the RI pi...
by dieselnutjob
Thu Jul 18, 2019 8:35 pm
Forum: Discussion
Topic: Testing the FTDI USB Serial
Replies: 35
Views: 5324

Re: Testing the FTDI USB Serial

I have hit another problem. When my PC program talks (through the FT232RL) to the processor inside my device the processor responds, but when the Ultibo program sends the same packet sequence through the same FT232RL I don't get a response. One difference that I can see is that with the PC program t...

Go to advanced search