I am developing an application for scanning using WIA. Everything works fine when the "Access Rights (4102)" are READ/WRITE(3). If the access rights are readonly, you can scan but only with the existing settings.
For testing I used several devices with the manufacturer's drivers (Hp, Brother, Canon) and I only got write access to the HP device.
Is it possible to change the access rights from 1 (readonly) to 3 (read/write)? If yes which steps are needed?
I searched for this information on google and microsoft but did not found anything about it.
Devices:
HP LJ M278M281
WIA_DIP_VEND_DESC- 3 : HP ;
WIA_DIP_DEV_NAME- 7 : HP LJ M278M281 (NET) ;
WIA_DIP_SERVER_NAME - 8 : local ;
WIA_DIP_WIA_VERSION - 14 : 2.0 ;
WIA_DPA_FIRMWARE_VERSION - 1026 : 1.0.na ;
WIA_DPS_DOCUMENT_HANDLING_CAPABILITIES - 3086 : 3 ;
WIA_IPA_FULL_ITEM_NAME - 4099 : 0001\Root ;
WIA_IPA_ACCESS_RIGHTS - 4102 : 3 ; //Read/Write
Brother MFC-L8650CDW
WIA_DIP_VEND_DESC- 3 : Brother ;
WIA_DIP_DEV_NAME- 7 : Brother MFC-L8650CDW ;
WIA_DIP_SERVER_NAME - 8 : local ;
WIA_DIP_WIA_VERSION - 14 : 2.0 ;
WIA_DPA_FIRMWARE_VERSION - 1026 : 1.0 ;
WIA_DPS_DOCUMENT_HANDLING_CAPABILITIES - 3086 : 7 ;
WIA_IPA_FULL_ITEM_NAME - 4099 : 0001\Root ;
WIA_IPA_ACCESS_RIGHTS - 4102 : 1 ; //Readonly
I found an alternative that allows the values to be changed indirectly. My statement regarding scanning with only existing settings is therefore not quite correct. It is no longer necessary to change the access rights property.As an example, the BitsPerPixel ("4104") property is set in the background when the DataType ("4103") or CurrentIntent ("6146") property is changed. These two properties always have write rights regardless of the access rights property.
I noticed this with the help of the WiaTest tool which is part of the Windows Driver Development Kit (DDK). It enables a visual tree representation of the properties.
Related
I have an i.mx7 som. I want to build a Yocto image which I can dd onto a usb stick to boot from. I believe that I want an hddimg image but cannot see how to create one (I have sdimg which works prefectly).
I would appreciate advice.
I have set IMAGE_FSTYPES to "hddimg" but get "ERROR: Nothing PROVIDES 'syslinux'"
The SOM is the Technexion i.MX7. Layers are:
layer path priority
=======================================================
meta sources/poky/meta 5
meta-poky sources/poky/meta-poky 5
meta-oe sources/meta-openembedded/meta-oe 6
meta-multimedia sources/meta-openembedded/meta-multimedia 6
meta-freescale sources/meta-freescale 5
meta-freescale-3rdparty sources/meta-freescale-3rdparty 4
meta-freescale-distro sources/meta-freescale-distro 4
meta-powervault sources/meta-powervault 6
meta-python sources/meta-openembedded/meta-python 7
meta-networking sources/meta-openembedded/meta-networking 5
meta-virtualization sources/meta-virtualization 8
meta-filesystems sources/meta-openembedded/meta-filesystems 6
meta-cpan sources/meta-cpan 10
meta-mender-core sources/meta-mender/meta-mender-core 6
meta-mender-freescale sources/meta-mender/meta-mender-freescale 10
Nope, you certainly do not want an hddimg, as this is a mostly deprecated format for x86 systems. On ARM, you almost never want syslinux :-)
Usually your SOM comes with a Board Support Package in the form of a layer, which includes the MACHINE definition which in turn defines the IMAGE_FSTYPE that this machine likes for booting. If in doubt, consult the manual or ask your vendor.
Having said that, if you specify SOM and layers in use we can have a look if publicly accessible, but without those details it is impossible to give a proper answer.
Do you know how to set up the Spreading Factor to 12 in a Mbed-OS LoRaWAN protocol APIs to connect to a LoRaWAN network using OTAA?
I'm trying to make LoRA node to use Spreading Factor SF12, because the default one is SF7. I know that in the PHY layer we can change Radio configurations. There are several examples to change between the different sub-GHz frequency bands, however, I can't find one on how to change the LoRa modulation SF between 7 and 12 and with a bandwidth of 125 kHz.
I'm using an SX1276 radio at EU 868 MHz config.
In the source code you can find the SF7-12 different configurations, but there is not a clear way to set it up. These configs are the definitions (#define) DR_0, DR_, etc ).
In the configuration file in the Phy part you find some example like this:
"phy": {
"help": "LoRa PHY region. 0 = EU868 (default), 1 = AS923,
2 = AU915, 3 = CN470, 4 = CN779, 5 = EU433,
6 = IN865, 7 = KR920, 8 = US915, 9 = US915_HYBRID",
"value": "0"
},
But there is no examples or description for the Spreading Factor.
I would like to change it via source code, rather than the configuration file.
EDIT 1:
after Jon's answer, I add the following lines, but still not forcing the SF12 Joins.
retcode = lorawan.disable_adaptive_datarate ();
retcode = lorawan.set_datarate (0); // DR_0
Call:
lorawan.set_datarate(0); // SF12 125 KHz
Make sure to:
Disable ADR.
Either use ABP, or call the function above in the JOIN_SUCCESS event handler. This is because join procedure always starts at SF7, and then keeps the data rate on which the join succeeded.
I'm working on a XScale PXA270 with NOR Flash on Chip select 0.
due to the obsolescence of the previous flash, my company change it for an AMD/Spansion compatible MX29GL128.
I'm trying to write on it using Lauterbach JTAG.
here is my script : https://pastebin.com/jcjsbwE3
; reset the FLASH declaration
FLASH.CFI 0x00000000 L
; declare FLASH sectors via
; CFI query
;FLASH.CHANGEtype ALL AM29F100
; change type to AM29F100 to use "word wise" mode
FLASH.UNLOCK ALL
; unlock FLASH if required
FLASH.ReProgram ALL
; enable the FLASH for programming
;Data.LOAD.auto /home/lai/devel/uboot-2017-01/u-boot.bin
Data.LOAD.binary /tftpboot/u-boot-rioms-pxa270.bin D:0x00000000--0x1FFFF
; load the programming file
FLASH.ReProgram off
; program the FLASH and disable
; the FLASH programming
But get an error.
Flash programming error around address SD:0x7C.
On this picture, you can see the commands on the bus and the error.
Have you some idea ? I'm stuck on it since many days
I am trying to write to gemfire server in region 'trade'.
My class is like :
public class TradeDetails{
String exchange;
String Product;
String Account;
String Quantity;
//getter and setter }
I have deployed the jar in the gfsh console.
The query I am running on gfsh console is
put --key=1 --value=('exchange':'xyz','Product':'abc','Account':'xyz','Quantity':'123L') --region=/trade --value-class=model.TradeDetails
But I am getting an error
Couldn't convert JSON to Object of type class model.TradeDetails.
What could be the cause?
Well, according to the GemFire documenation, your Gfsh put command appears to be correct...
put --key=1 --value=('exchange':'xyz','Product':'abc','Account':'xyz','Quantity':'123L') --region=/trade --value-class=model.TradeDetails
However, your key value 1 is a bit suspect. If you used a key constraint of java.lang.Long on your "/trade" Region then you also need to specify the --key-class option on the put.
I was able to successfully perform the following...
$ gfsh
_________________________ __
/ _____/ ______/ ______/ /____/ /
/ / __/ /___ /_____ / _____ /
/ /__/ / ____/ _____/ / / / /
/______/_/ /______/_/ /_/ v8.2.0
Monitor and Manage GemFire
gfsh>connect
Connecting to Locator at [host=localhost, port=10334] ..
Connecting to Manager at [host=10.99.199.3, port=1099] ..
Successfully connected to: [host=10.99.199.3, port=1099]
gfsh>list members
Member Count : 1
Coordinator : SpringGemFireDataServer (10.99.199.3(SpringGemFireDataServer:77179)<v0>:47312)
Name | Id
----------------------- | ----------------------------------------------------
SpringGemFireDataServer | 10.99.199.3(SpringGemFireDataServer:77179)<v0>:47312
gfsh>describe member --name=SpringGemFireDataServer
Name : SpringGemFireDataServer
Id : 10.99.199.3(SpringGemFireDataServer:77179)<v0>:47312
Host : 10.99.199.3
Regions : People
PID : 77179
Groups :
Used Heap : 229M
Max Heap : 3641M
Working Dir : /Users/jblum/pivdev/spring-data-gemfire-tests-workspace/spring-data-gemfire-tests/target
Log file : /Users/jblum/pivdev/spring-data-gemfire-tests-workspace/spring-data-gemfire-tests/target
Locators : localhost[10334]
Cache Server Information
Server Bind : localhost
Server Port : 40404
Running : true
Client Connections : 0
gfsh>list regions
List of regions
---------------
People
gfsh>describe region --name=/People
..........................................................
Name : People
Data Policy : partition
Hosting Members : SpringGemFireDataServer
Non-Default Attributes Shared By Hosting Members
Type | Name | Value
------ | ---- | -----
Region | size | 0
gfsh>
gfsh>put --region=/People --key=1 --key-class=java.lang.Long --value=('firstName':'Jon','lastName':'Doe') --value-class=org.spring.data.gemfire.app.beans.Person
Result : true
Key Class : java.lang.Long
Key : 1
Value Class : org.spring.data.gemfire.app.beans.Person
Value
------
<NULL>
gfsh>
gfsh>describe region --name=/People
..........................................................
Name : People
Data Policy : partition
Hosting Members : SpringGemFireDataServer
Non-Default Attributes Shared By Hosting Members
Type | Name | Value
------ | ---- | -----
Region | size | 1
Note, my "/People" Region has a key type of java.lang.Long and value type of org.spring.data.gemfire.app.beans.Person.
Although, when I attempted to read "Jon Doe" back out, Gfsh puked...
gfsh>get --region=/People --key=1 --key-class=java.lang.Long --value-class=org.spring.data.gemfire.app.beans.Person
Exception occurred. null
However, I did go onto create a (Spring Boot-based) GemFire client cache application (with a base configuration of SpringGemFireClient) that pulled the Person back out successfully.
Person is [Jon Doe]
You might try annotating your model.TradeDetails application domain type with the Jackson mapping annotations, though I am not certain Gfsh actually uses them to perform the mapping since I think (when I lasted checked) Gfsh was not using Jackson. But, it wouldn't hurt either. Either way.
Note, my Server was started with this SpringGemFireDataServer, which is based on SpringGemFireServer.
Hope this helps (a little :-).
Cheers!
John
I am referring the TRM of DM3730 and modifying the pad configurations on an EVM 3530 accordingly. I couldn't understand the following properly.
1) What are CORE power domain and WKUP power domain?
2) What is core control module and Wake-Up control module?
3) The above two questions may be completely hardware-oriented. But the reason I'm asking is, in EVM 3530 source code, in pad configurations, certain pins are defined as PAD_ENTRY and certain others as WKUP_PAD_ENTRY. What makes the difference?
#define PAD_ENTRY(x,y) {PAD_ID(x),y,0},
#define WKUP_PAD_ENTRY(x,y) {WKUP_PAD_ID(x),y,0},
#define I2C3_PADS \
PAD_ENTRY(I2C3_SCL, INPUT_ENABLED | PULL_RESISTOR_DISABLED | MUXMODE(0)) \
PAD_ENTRY(I2C3_SDA, INPUT_ENABLED | PULL_RESISTOR_DISABLED | MUXMODE(0))
#define I2C4_PADS \
WKUP_PAD_ENTRY(I2C4_SCL, INPUT_ENABLED | PULL_RESISTOR_DISABLED | MUXMODE(0)) \
WKUP_PAD_ENTRY(I2C4_SDA, INPUT_ENABLED | PULL_RESISTOR_DISABLED | MUXMODE(0))
Any kind of guidance is welcome.
WKUP provides functions for sections of the OMAP SoC to come out of power-saving mode.
A power domain can be turned on/off without affecting others (4.1.3.2). WKUP power domain is continously active, it allows for switching others. CORE power domain comprises interconnect / memory / peripheral core functions.
Wake-up control module and core control module provide for save and restore of pad configurations (7.3) when switched off.
It looks like the pads which can be configured as I2C4 SCL/SDA can also be configured with wakeup capabilities. Then in your code base (Windows CE 6 BSP?) a different macro from generic PAD_ENTRY is appropriate, probably there is an error check of (x) to confirm pad ID is valid. The non-wakeup-related macro parameters should work the same for you, there won't be a difference.
Section references are to OMAP35x-TRM.