Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - neil

Pages: 1 [2] 3 4 ... 10
16
µTasker general / Waiting for IIC to complete
« on: October 04, 2017, 09:58:25 AM »
Hi Mark
  I have connected an IIC that requires initialization of few registers. But there must be a delay in between each  call, see below. When the below is carried out, I assume it goes to a buffer where all is transmitted to the device. Is there a way I can poll a register to see if the 1st send is complete before continuing with the second?

Regards
Neil

unsigned char VAL[4];
VAL[0]=0x40;
 VAL[1]=0;
 VAL[2]=0x0; //set as output
 fnWrite(IICPortIDG2, (unsigned char *)VAL, 3);
 
//has to be a delay here....

VAL[1]=9;
VAL[2]=0;
fnWrite(IICPortIDG2, (unsigned char *)VAL, 3);

17
NXPTM M522XX, KINETIS and i.MX RT / HID class on USB
« on: November 01, 2015, 07:32:07 PM »
Hi Mark
   Finally I will be starting soon to hopefully use the USB HID. I found a small library that I can use on Visual Studio within the Windows platform. Looking at your previous post (a while back), I see you carried out mouse buttons simulation, who I assume the Windows HID will pick it up as mouse buttons. The library I have will read and send data to the USB port, does your code allow to read and send data ? If so how is this done?

Thanks in advance


regards

Neil

18
utFAT / Files saved on SD card dont show on PC
« on: August 24, 2015, 01:12:47 PM »
Hi Mark,
  I am using the latest version of the SD source, v2.01 with changes to some SD cards where they didn't format.    These cards are formatted as FAT32, and the files are created and read ok when connected to the processor. When I remove the card and place in the PC , it says the card is empty. The properties shows that 1.5MB has been used, but now files are displayed.

Regards
Neil

19
NXPTM M522XX, KINETIS and i.MX RT / Ethernet ID
« on: June 26, 2015, 10:42:41 AM »
Hi Mark,
   I cant remember where to find the following..  :'(  When the processor is powered up with ethernet connected , and I use wireshark or a ip scanner , it gives a name associated with the mac address (comes under heading 'Source' in wireshark). Where can I change this?

Thanks
Neil

20
utFAT / Type of micro SD cards
« on: April 01, 2015, 12:03:30 PM »
Hi Mark,
  We are using micro SD cards with our system, and works well. We have a client that purchased 3 8GB Sandisk HC1 (I attached a snapshot of it) cards.  When they format them in windows is says approx 8GB, but when they put it in the board it says 4GB approx .  Sometimes (cant remember if straight format from windows, or after the board does a format) it doesnt read the card correctly, it says 0GB.   

I know version 2 of the cards are required , but when a client asks what type of micro SD card (HC etc), and max capacity, what is the best thing to tell them?

Regards
Neil

21
utFAT / Information from utListDir command
« on: March 09, 2015, 03:24:30 PM »
Hi Mark,
  I was thinking about using the ulListDir command to go through the whole sd card (trailing into directories and collecting files), is there a way to detect after the call if the entry is directory or a file? If so are there any variables that can get the file, or directory  name ?

Thanks
Neil


22
utFAT / SD Card not formatting
« on: March 09, 2015, 03:15:55 PM »
Hi Mark,
  I am using V2.01 with the processor 52259 , and purchased 20 new 2GB Transcend micro sd cards . When I used (after being formatted on the computer for FAT32) the utFormat or utReformat about 8 of them never formatted. I know my board is ok as I can put a card i know that works in the board. I poll the card with the following command every second.
        if (!(ptrDiskInfo->usDiskFlags & DISK_MOUNTED))
            ...

Regards
Neil

23
utFAT / utReadFile/utWriteFile return code
« on: January 08, 2015, 05:31:22 AM »
Hi Mark,
  if a utReadFile(..) command doesnt return UTFAT_SUCCESS, can I assume that no data was read, and the file position hasnt moved, so another read would continue from the same position within the file? The same with utWriteFile, if it doesnt return UTFAT_SUCCESS , can I assume no data was written and the file position hasnt changed, so another attempt will continue from the same place?

I ask the above, as mentioned in a previous post, there is a possibility that the SD cards internal processor may be busy when a request is made, thus preventing the command to return success.

Best Regards
Neil

24
utFAT / MANAGED_FILES
« on: November 14, 2014, 06:29:32 PM »
Hi Mark,
  I have just upgraded to the latest uFat and noticed MANAGED_FILES isnt defined , but see UTFAT_MANAGED_MODE defined as #10 in the .h file.  Does this mean I havent been using managed mode?

Do I have to #define MANAGED_FILES too?  If so, what is the value after it represent?


What is the difference between MANAGED_FILES/MANAGED_FILE_COUNT  and UTMANAGED_FILE_COUNT ?

Thanks

Neil

25
utFAT / GET_SDCARD_WP_STATE() no prototype
« on: November 14, 2014, 05:55:01 PM »
Hi Mark,
  I have loaded the latest uFAT, and during compiling I get no prototype for  GET_SDCARD_WP_STATE(), what should this be?  I am not using write protect, so do I just do a #define GET_SDCARD_WP_STATE() 0?

Regards
Neil

26
utFAT / returning UTFAT_DISK_READ_ERROR during a write.
« on: July 18, 2014, 02:04:32 PM »
Hi Mark,
  I have a few hundred units out in the field and working well, but occasionally I get a UTFAT_DISK_READ_ERROR (-4) error returned from a utWriteFile(..) command.  It doesn't always happen to the same units , but they all have the same firmware. I have one file for collecting data ,with 2 file handles (FileStruct) opened on it, one for writing and the other for reading .  I have set the read to UTFAT_MANAGED_MODE so its always updated on every write. I have looked through my code but cant see any problems, it can run for days, collecting data every minute before it happens.

Regards
Neil

27
µTasker general / Enabling/Disabling Serial port
« on: June 17, 2014, 03:16:30 PM »
Hi Mark,
   Throughout my application I wish to simply switch off/on the RX side of a serial port, but also keep all settings as before (baud rate,handshaking etc..).  Can I simply use the lines:
   fnDriver( SerialPortID,RX_ON, 0 );   
            and
   fnDriver( SerialPortID,RX_OFF, 0 );   

  Regards
   Neil

28
utFAT / UTFAT_MANAGED_MODE
« on: June 12, 2014, 11:54:11 AM »
Hi Mark,
   I have 4 file handles opening the same file, 2 write and 2 read. Do I set the UTFAT_MANAGED_MODE on ALL file handles or just the read?

At present I set only the files open for read to UTFAT_OPEN_FOR_READ | UTFAT_MANAGED_MODE , but want to make sure all file handles will be updated.

Best Regards
Neil

29
µTasker general / cleaning up a socket with no connection
« on: April 17, 2014, 10:50:58 AM »
Hi Mark,
  What is the best way to clean up a socket if a connection isnt established?  I do the following steps:

  1. get a socket fnGetTCP_Socket(..)
  2. then call fnTCP_Connect(..) and set a 2 second timer using uTaskerMonoTimer(..)
  3. if a connection is established, then stop timer, if not then:
        a.  fnTCP_close() is called..
        b. TCP_EVENT_CLOSED within the callback is processed and fnReleaseTCP_Socket() is called.

Should the fnTCP_close() only be carried out if a connection is made, or simply call fnReleaseTCP_Socket()?

What I am noticing is the next time I am carrying out the above for fnGetTCP_Socket() ucTCP_state = TCP_STATE_ESTABLISHED for the previous fnGetTCP_Socket()


Best Regards
Neil


30
µTasker general / single tcp callback
« on: April 16, 2014, 06:41:06 PM »
Hi Mark,
  Is it possible to have a single tcp call back for multiple sockets (when using the fnGetTCP_Socket(..) command)? I have 10 sockets, but and would like to use just the 1 callback routine. Within the call back I go through the list of active sockets checking the socket number, so I can identify which one is being serviced.

   
Thanks
Neil

Pages: 1 [2] 3 4 ... 10