Click here to Skip to main content
16,017,788 members

Comments by usmanali.ali843 (Top 10 by date)

usmanali.ali843 7-Jun-16 7:49am View    
Resolution to this problem what really I am missing because I am new to embedded programming so don't have enough information about this. What I have tried is when I listed my available serial com ports in a dropdown list and I picked one port then on "Set Command" button I write a command for selected com port like.
serailPort.Write("PAyacEtheLed");
And in serialPort_DataRecieved(Object sender, SerialDataReceivedEventArgs e)
I just Read and again write the bytes from select serialPort console and append console's text to my text control to show that given command's result like:
txtConsole.AppendText(serialPort.Read(dataBytes, 0, dataBytesLength));
and in response to this command which I have given above "PAyacEtheLed" router's LED blink
This is manual Com selection test, somehow passes.
But when I go to fix into code for LED tester there I have a function which iterate through all NetworkInterface IPAddressCollections,
now firstly, how could I get to know that what IP would be for my router's device which further I need to pass on to my portScan function and if IP is ping successfully then I would proceed this IP address to my LED blink function to blink LED for that IP.
But when I unplugged the device then It should get my PC IP , code should not crashed and when connect ethernet to either port of router device to my PC then It should detect the connected ethernet LED IP address and blink LED whenever I run LED tester module in my winforms.
usmanali.ali843 7-Jun-16 7:49am View    
Resolution to this problem what really I am missing because I am new to embedded programming so don't have enough information about this. What I have tried is when I listed my available serial com ports in a dropdown list and I picked one port then on "Set Command" button I write a command for selected com port like.
serailPort.Write("PAyacEtheLed");
And in serialPort_DataRecieved(Object sender, SerialDataReceivedEventArgs e)
I just Read and again write the bytes from select serialPort console and append console's text to my text control to show that given command's result like:
txtConsole.AppendText(serialPort.Read(dataBytes, 0, dataBytesLength));
and in response to this command which I have given above "PAyacEtheLed" router's LED blink
This is manual Com selection test, somehow passes.
But when I go to fix into code for LED tester there I have a function which iterate through all NetworkInterface IPAddressCollections,
now firstly, how could I get to know that what IP would be for my router's device which further I need to pass on to my portScan function and if IP is ping successfully then I would proceed this IP address to my LED blink function to blink LED for that IP.
But when I unplugged the device then It should get my PC IP , code should not crashed and when connect ethernet to either port of router device to my PC then It should detect the connected ethernet LED IP address and blink LED whenever I run LED tester module in my winforms.
usmanali.ali843 18-Apr-13 8:25am View    
thanks for reply okay the scenario is:
In our old version, we have document list collections of each schools, colleges and universities
and whenever a student login to our site then he was able to see his uploaded documents in each schools/college/university list collections and there he has to search his uploaded documents in every institute where he belonged and there documents submitted by other users related to that institute also showing him/her and that was implemented by active directory but now we are going to move on forms based authentications so each user can login to our site and when he login we would show all documents uploaded by him/her in a single document list collection containing all institutes document(School,college,univ) where he just can see documents uploaded no content operations should be able for him/her like edit, upload, delete or other else just can view datagrid of document list while site admin can view all users documents and perform all sort of operations as well. Thanks in advanced
usmanali.ali843 16-Apr-13 5:26am View    
but the problem is about maintenance of that project my friend if a student moved fron one school/college/university to another one then how would we update all permissions to see document uploaded by that student to watch his/her all documents uploaded for all particular school/colleg/univer. and if we have 100s of schools , colleges/ unive then don't you think that will be so tough task for maintenance and also would load all site of sharepoint.
usmanali.ali843 16-Apr-13 4:13am View    
Deleted
thanks for you reply. sorry the scenerio little changed i want that i have all schools / colleges and universities document uploaded by their students on my sharepoint site now the thing i required is that is it possible that when a student login to my site and when click on the document library of sharepoint then just the document uploaded by him relevant to his school/colleage/university just visible to him currently all documents of all schools colleges and universites showing to all students.