Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
K

Karthik S Prakash

@Karthik S Prakash
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Security rights of the SetIPConnectionMetric Method (Win32_NetworkAdapterConfiguration class) in Windows 7
    K Karthik S Prakash

    Hi, I am trying to set the IPConnectionMetric parameter of a network adapter in Windows 7. The method that I need to use is the "SetIPConnectionMetric" in the Win32_NetworkAdapterConfiguration class. The problem is that the method returns an error code of 91 - Access Denied in Windows 7. However, this method works fine on Windows XP. Can someone give me pointers to a solution? I played around with the Local Security Policies, but couldn't find anything :| Here is more information about the method: http://msdn.microsoft.com/en-us/library/aa393303%28v=VS.85%29.aspx[^] Thanks, Karthik

    C# help visual-studio com sysadmin security

  • Code seems to loops indefinitely
    K Karthik S Prakash

    True. I am compiling this in the Xilinx SDK.

    C# question

  • Code seems to loops indefinitely
    K Karthik S Prakash

    Yes, I did check the image. It was garbled. Then I realized my mistake in the calculation of rows and cols... it should be 144 x 176. But that didnt solve the infinite loop until i was able to debug on hardware. I noticed j decreased to 0 and then increased back to the highest (32bit) value. Realized the mistake of making j unsigned int . Loop ends now :) Thank you!

    C# question

  • Code seems to loops indefinitely
    K Karthik S Prakash

    @Luc: On the other side, my image file keeps growing > 1.8MB. The code never finishes.

    C# question

  • Code seems to loops indefinitely
    K Karthik S Prakash

    I am trying to transmit about 75Kbytes of image data at 115200 baud. Ideally it should take about 5 secs. But this code seems to loop forever. Am I missing something obvious here?

    #define rows 288
    #define cols 352

    for (j=rows-2; j>=0; j-=2)
    {
    for (i = (j*cols); i<((j*cols)+cols); i++)
    {
    cam_output = ram_read(i*4);
    SendBuffer[0] = (cam_output >> 24) & 0xff;
    SendBuffer[1] = (cam_output >> 16) & 0xff;
    SendBuffer[2] = (cam_output >> 8) & 0xff;

            uart\_send(&SendBuffer, 3);    
            
        }        
    }
    

    void uart_send(u8 *DataBufferPtr, unsigned int NumBytes)
    {
    int i;

    for (i=0; i<NumBytes; i++)
    {
        XUartLite\_SendByte(XPAR\_UARTLITE\_0\_BASEADDR, \*(DataBufferPtr+i));
    }
    

    }

    Regards, Karthik

    C# question

  • SerialPort UART input buffer omits zeroes
    K Karthik S Prakash

    @gszakacs : That did it! I set SerialPort.DiscardNull = False and I was able to see all the hex values. I was using code from a previous project where I used 50-50 encoding to transmit data. Thank you!

    C# help csharp question

  • SerialPort UART input buffer omits zeroes
    K Karthik S Prakash

    Hi, I need to tranfer hex values through UART. But the problem is the default ASCII encoding of the SerialPort omits zeroes and such values (mostly below 0x14). What do I change this setting to in order to receive all values from 0-255 through the port? Please Help. For ex: 0x55, 0x55, 0x00, 0x00, 0x55, 0x55 comes through to the PC C# app as UUUU Regards, Karthik

    C# help csharp question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups