Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New models? #27

Open
iminet opened this issue Apr 9, 2020 · 17 comments
Open

New models? #27

iminet opened this issue Apr 9, 2020 · 17 comments

Comments

@iminet
Copy link

iminet commented Apr 9, 2020

Hey, what's about new models, such as Pi 4 variants?
This lib is great but I'm really missing the new models and new features as well.
Is this project also abandoned like it's predecessor?

@JTrotta
Copy link
Owner

JTrotta commented Apr 9, 2020

No the project is still alive. I'm working to move some features to the new system.device.iot.
When the Microsoft project will be ready, than this one will die.
I do not have a PI4, but I can add it if you need.

@iminet
Copy link
Author

iminet commented Apr 9, 2020

Sure, it would be great, thank you! I tried to use some other information what can be found in the files /proc/cpuinfo and /proc/meminfo. Let me know, if you need these snippets.

@JTrotta
Copy link
Owner

JTrotta commented Apr 9, 2020

Chcek if the result is like this, or, better, copy and paste me the result you get:

processor : 0
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 1
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 2
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

processor : 3
model name : ARMv7 Processor rev 3 (v7l)
BogoMIPS : 108.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3

Hardware : BCM2835
Revision : c03111

@CsharpAndVB
Copy link

Hi there,
Can this lib. be used on a Pi 4b?
If not then could you please let me know how else I can access Pi 4b peripherals & gpio using c# / mono.
Thank you!

@JTrotta
Copy link
Owner

JTrotta commented Aug 31, 2020

@CsharpAndVB Yes.

@CsharpAndVB
Copy link

CsharpAndVB commented Aug 31, 2020

Super!

Only, the 4b isn't mentioned in the list of supported models:

https://github.com/JTrotta/RaspberrySharp#supported-raspberry-pi-versions

@CsharpAndVB
Copy link

Hi,
I just compiled the Blink example in VS2019 community, copied over Blink.exe and RaspberrySharp.dll to the Pi 4b and tried to run it.
Unfortunately it just crashes and the DOS window disappears after half a second or so.
The initial connection line causes the crash:

conPin = new GpioConnection(ProcessorPin.Gpio16.Output());

If I remove all references to the GPIO then the program works (obviously).

Any help getting this working would be most appreciated.

Thank you

@tylerforsythe
Copy link

Hi,
I just compiled the Blink example in VS2019 community, copied over Blink.exe and RaspberrySharp.dll to the Pi 4b and tried to run it.
Unfortunately it just crashes and the DOS window disappears after half a second or so.
The initial connection line causes the crash:

conPin = new GpioConnection(ProcessorPin.Gpio16.Output());

If I remove all references to the GPIO then the program works (obviously).

Any help getting this working would be most appreciated.

Thank you

Did you run as sudo? That’s the issue 99% of the time.

@CsharpAndVB
Copy link

CsharpAndVB commented Aug 31, 2020

Hi,
I just compiled the Blink example in VS2019 community, copied over Blink.exe and RaspberrySharp.dll to the Pi 4b and tried to run it.
Unfortunately it just crashes and the DOS window disappears after half a second or so.
The initial connection line causes the crash:
conPin = new GpioConnection(ProcessorPin.Gpio16.Output());
If I remove all references to the GPIO then the program works (obviously).
Any help getting this working would be most appreciated.
Thank you

Did you run as sudo? That’s the issue 99% of the time.

Hi,

Sorry, I'm new to the Pi therefore I'm not sure how to do that.
In terminal I switched to root, then ran "mono Blink.exe".
This reported "Object ref. not set to an instance of an object".

Problem appears to be the variable "driver", which is NULL.

Any clues how I fix this?

Thank you

@CsharpAndVB
Copy link

@JTrotta
Hi, I just tried the demo. app. The log file also reports the same error "Object ref. not set to an instance of an object".
Thanks

@CsharpAndVB
Copy link

@JTrotta
Hi, sorry to trouble you but could you please help me get this working on a 4b?

I'm just trying to get the BLINK example working and it appears the DRIVER object is NULL.

Thank you

@Graveen
Copy link

Graveen commented Sep 2, 2020

you tryed "sudo mono blink.exe" ? Unfortunatly i does not have 4b so i can't really troubleshoot
++

@CsharpAndVB
Copy link

CsharpAndVB commented Sep 2, 2020

@Graveen
Hi, yes - I've tried that and I get the same "Object ref. not set to an instance of an object." error.

If you run the Blink program on your windows machine you will see the same error when the program tries to create a new IO connection.

The error occurs at this line:
Driver.Allocate(configuration.Pin, configuration.Direction);

… because the Driver object is NULL.

Thanks for your help!

@CsharpAndVB
Copy link

I think the problem is that the software actually isn't compatible with the 4b. I notice there's a GetModel function and the 4b is not listed in the Switch statement, so "unknown" is returned.
@JTrotta
Can you please add the 4b to this?
Thank you

@JTrotta
Copy link
Owner

JTrotta commented Sep 3, 2020

Hello,
I do not have a 4b yet. As soon as I got a 4b, I will add it to RaspberrySharp.

@CsharpAndVB
Copy link

CsharpAndVB commented Sep 3, 2020

@JTrotta
Thanks, but that could be months from now & I was hoping to get this working soon.
I will try to get it working myself but I can't get remote debugging to work either so it's all a bit of a pain! :-)
Plus I'm new to mono & the pi so I'm a bit of a fish out of water at present.

@HansR00
Copy link

HansR00 commented Dec 10, 2021

How do I get this to NET5 so I can use it with upgrades of my app in VS2022?
I have been trying some things but apparently it is not so simple or I miss the obvious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants